【云计算】使用supervisor管理Docker多进程-ntpd+uwsgi+nginx示例最佳实践
supervisor安装启动:
apt-get install supervisor -y # start supervisord nodaemon
/usr/bin/supervisord --nodaemon
nginx示例:
[program:nginx]
command = /usr/sbin/nginx -g 'daemon off;'
process_name = %(program_name)s
stopsignal = QUIT
autostart = true
# startsecs =
# startretries =
autorestart = true
# exitcodes = ,,
stdout_logfile_maxbytes = 10MB
stdout_logfile_backups =
stdout_logfile = /var/log/supervisor/%(program_name)s-stdout.log
# stderr_logfile = /var/log/supervisor/%(program_name)s-stderr.log
redirect_stderr = true
ntpd示例:
[program:ntpd]
command = /usr/sbin/ntpd -d
process_name = %(program_name)s
stopsignal = QUIT
autostart = true
# startsecs =
# startretries =
autorestart = true
# exitcodes = ,,
stdout_logfile_maxbytes = 10MB
stdout_logfile_backups =
stdout_logfile = /var/log/supervisor/%(program_name)s-stdout.log
# stderr_logfile = /var/log/supervisor/%(program_name)s-stderr.log
redirect_stderr = true
uwsgi示例:
[program:uwsgi]
command = uwsgi ${APP_PATH}/server-config/uwsgi/uwsgi.ini
process_name = %(program_name)s
stopsignal = QUIT
autostart = true
# startsecs =
# startretries =
autorestart = true
# exitcodes = ,,
stdout_logfile_maxbytes = 10MB
stdout_logfile_backups =
stdout_logfile = /var/log/supervisor/%(program_name)s-stdout.log
# stderr_logfile = /var/log/supervisor/%(program_name)s-stderr.log
redirect_stderr = true
参考资料:
supervisor 进程控制服务:http://www.litrin.net/2012/08/02/supervisor-%E8%BF%9B%E7%A8%8B%E6%8E%A7%E5%88%B6%E6%9C%8D%E5%8A%A1/
用supervisor管理nginx+uwsgi部署django项目:http://outofmemory.cn/code-snippet/35403/supervisor-manage-uwsgi-python-django-process
nginx and supervisor setup in Ubuntu:http://stackoverflow.com/questions/10716159/nginx-and-supervisor-setup-in-ubuntu
Nginx with Supervisor keep changing status b/w Running and Starting:http://stackoverflow.com/questions/23216819/nginx-with-supervisor-keep-changing-status-b-w-running-and-starting
virtualenv 环境下 Django + Nginx + Gunicorn+ Supervisor 搭建 Python Web:http://www.ituring.com.cn/article/201045?utm_source=tuicool
Dockerfile示例:https://hub.docker.com/r/samuelchen/base/~/dockerfile/
supervisor配置文件示例:https://git.tedomum.net/y0no/docker-shinken/tree/master/supervisor/conf.d
Docker官方示例:https://docs.docker.com/engine/admin/using_supervisord/
Ubuntu14.04+Nginx+Uwsgi+Supervisor部署Django Web App:https://elonbase.com//Archives/article/1
supervisor工具使用:http://blog.chinaunix.net/uid-1757778-id-3066399.html
supervisor安装配置与使用:http://www.2cto.com/os/201503/378878.html
[supervisor] 使用小记(入门教程),supervisor小记:http://www.bkjia.com/xtzh/984198.html
Linux下进程管理工具Supervisor的安装配置和基本使用:http://www.jb51.net/LINUXjishu/409428.html
Supervisor重新加载配置启动新的进程:http://www.codeweblog.com/supervisor%E9%87%8D%E6%96%B0%E5%8A%A0%E8%BD%BD%E9%85%8D%E7%BD%AE%E5%90%AF%E5%8A%A8%E6%96%B0%E7%9A%84%E8%BF%9B%E7%A8%8B/
Linux的NTP配置总结:http://www.cnblogs.com/kerrycode/archive/2015/08/20/4744804.html
ntpd使用:http://blog.csdn.net/feifei_14119/article/details/51003086
uwsgi配置参数详解:http://heipark.iteye.com/blog/1847421
MORE:
Supervisor 管理后台守护进程:http://blog.csdn.net/beerium/article/details/8721906
Supervisor的安装与使用入门:http://www.tuicool.com/articles/Ejm2u2
Configuration File:http://supervisord.org/configuration.html#program-x-section-settings
使用 supervisor 管理进程(配置文件解释):http://www.ttlsa.com/linux/using-supervisor-control-program/
【云计算】使用supervisor管理Docker多进程-ntpd+uwsgi+nginx示例最佳实践的更多相关文章
- Pipenv管理项目环境--Django项目的一些最佳实践
virtualenv --- 使用不方便 提升效率,管理更便捷--- pipenv 新建环境:: pip3 install pipenv 在项目下,用pipenv安装 Djagno pipenv in ...
- 【云计算】Docker 多进程管理方案
docker容器内多进程的管理方案 时间 2015-05-08 00:00:00 涯余 ...
- 【云计算】Docker多进程管理方案-cfengine && supervisord
docker容器内多进程的管理方案 时间 2015-05-08 00:00:00 涯余 原文 http://yayua.github.io/docker/container-process-moni ...
- 在Docker里使用(支持镜像继承的)supervisor管理进程(转)
这篇文章是受 dockboard 之托帮忙翻译的与 docker 有关的技术文章.译自 Using Supervisor with Docker to manage processes (suppor ...
- ubuntu supervisor管理uwsgi+nginx
一.概述 superviosr是一个Linux/Unix系统上的进程监控工具,他/她upervisor是一个Python开发的通用的进程管理程序,可以管理和监控Linux上面的进程,能将一个普通的命令 ...
- docker部署项目: centos+python+redis+mysql+uwsgi+nginx
一.Centos7安装docker 1.1 环境配置 先测试是否下载了docker:查看镜像:docker images没有下载,就依次执行以下环境的安装 ①curl http://mirrors.a ...
- 使用Mesos和Marathon管理Docker集群
分布式系统是难于理解.设计.构建 和管理的,他们将比单个机器成倍还要多的变量引入到设计中,使应用程序的根源问题更难发现.SLA(服务水平协议)是衡量停机和/或性能下降的标准,大多数现代应用程序有一个期 ...
- 使用supervisor管理后台进程
在linux中supervisor是用来管理后台进程的,是一个用python写的进程管理工具,可以让宕机的进程重启.这里我们大概讲一下用他来管理uWSGI. 一.安装supervisor 1.pyth ...
- uWSGI+nginx+django+virtualenv+supervisor部署项目
一.前言 在部署项目前,你已有一个能够在你本机测试过,能正常启动的Django项目(毕竟本文主要讲解部署Django项目),以及掌握了Linux系统的一些基本命令. 相关链接: Centos7安装py ...
随机推荐
- Openstack 网络服务 Neutron计算节点部署 (十一)
一) Neutron计算节点部署 1.安装软件包 # yum install -y openstack-neutron-linuxbridge ebtables ipset 2.配置文件neutron ...
- vue-music 关于playlist (底部播放列表组件)
建立playlist.vue 组件,在player.vue 组件中引用,点击迷你播放器的播放列表按钮由下至上弹出这个层,所以在player.vue 播放器组件中引用 在playlist.vue 组件中 ...
- apache 把404页面的url转发给php脚本处理
# .htaccess1 RewriteCond %{REQUEST_FILENAME} !-f 2 RewriteRule ^(.*)$ map.php?host=%{HTTP_HOST}& ...
- 17-7-20-electron中主进程和渲染进程区别与通信
老规矩,先吐槽,再记录. 今天被上司教育了将近一个小时.因为之前自动更新的模块,我认为已经完成了,但是还有一些细节没有完善好,就一直一直的被教育~ 事情全部做完,提交以后关闭issue! electr ...
- 关于std::ios::sync_with_stdio(false)
std::ios::sync_with_stdio(false); 很多C++的初学者可能会被这个问题困扰,经常出现程序无故超时,最终发现问题处在cin和cout上,(甚至有些老oier也会被这个问题 ...
- 洛谷——P1068 分数线划定
P1068 分数线划定 题目描述 世博会志愿者的选拔工作正在 A 市如火如荼的进行.为了选拔最合适的人才,A 市对 所有报名的选手进行了笔试,笔试分数达到面试分数线的选手方可进入面试.面试分数线根 据 ...
- BestCoder Round #65 (ZYB's Biology)
ZYB's Biology Accepts: 848 Submissions: 1199 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 13 ...
- lib_chan库学习
-module(lib_chan_cs). %% 实现服务器端结构和机制的模块 -export([start_raw_server/4, start_raw_client/3]). -export([ ...
- PHP stream 学习笔记一(同步阻塞 IO 模型)
原文http://blog.csdn.net/shagoo/article/details/6396089 [root@localhost php]# vi server_one.php <?p ...
- Educational Codeforces Round 9 A. Grandma Laura and Apples 水题
A. Grandma Laura and Apples 题目连接: http://www.codeforces.com/contest/632/problem/A Description Grandm ...