Manage processes using supervisor

Supervisor (http://supervisord.org ) is a process management tool written in Python that can be easily used to start, restart, and close processes (not just Python processes).In addition to controlling a single process, multiple processes can be started and shut down at the same time, such as when unfortunately the server is down and all applic ...

Posted by dineshthakur on Sat, 25 May 2019 10:12:36 -0700

Asynchronous proxy crawler and proxy pool implemented by Python

An asynchronous agent pool is implemented using python asyncio. The free agent on the agent website is crawled according to the rules and stored in redis after verifying its validity. The number of agents is regularly expanded and the validity of agents in the pool is checked to remove invalid agents. At the same time, a server is implemented w ...

Posted by pennythetuff on Sat, 20 Apr 2019 12:06:33 -0700

laravel queue instance

Introducer Before writing Event/listener For instance, the data is directly stored, and this step can be put into the queue to execute. The laravel queue has multiple drivers to choose from, and redis is used here. Create queue Using php artisan make:job BrowseLogQueue, you can create a queue file and eventually generate a Jobs/BrowseLogQueue. ...

Posted by richmlpdx on Fri, 12 Apr 2019 22:00:32 -0700

Supervisor's never-to-die process

brief introduction Supervisor is a C/S system. It can control the process on UNIX-like system. It is written by python. It provides a lot of functions to manage the process. install sudo pip install supervisor 1 To configure After installing the supervisor, you can use the "echo_supervisord_conf" command to generate the ...

Posted by backinblack on Tue, 26 Mar 2019 19:42:28 -0700

Dockerfile Building PHP Development Mirror: Alpine+Nginx+PHP7+Supervisor+Crontab+Laravel

Configuration directory structure 1.1 crontabs # do daily/weekly/monthly maintenance # min hour day month weekday command # * * * * * /usr/bin/php /usr/share/nginx/html/artisan schedule:run >> /dev/null 2>&1 Tips: In general, the production environment is load balancing. Timing t ...

Posted by sammon96 on Wed, 06 Mar 2019 17:21:23 -0800

SUSE12Sp3 installation configuration. net core production environment - install and use the Supervisor daemon. net core process

1. Install setuptools Place the setuptools-0.6c11.tar.gz installation package on the server tar zxvf setuptools-0.6c11.tar.gz cd setuptools-0.6c11 sudo python setup.py build sudo python setup.py install 2. Installing meld Place the meld3-1.0.2.tar.gz installation package on the server tar -zxvf meld3-1.0.2.tar.gz cd meld3-1.0.2 sudo python s ...

Posted by bhavik_thegame on Mon, 18 Feb 2019 18:45:19 -0800

supervisor boot script + redis+MySQL+tomcat+nginx process automatic restart configuration

supervisor boot-up automatic restart script #! /bin/sh PATH=/sbin:/bin:/usr/sbin:/usr/bin PROGNAME=supervisord DAEMON=/usr/bin/$PROGNAME CONFIG=/etc/$PROGNAME.conf PIDFILE=/tmp/$PROGNAME.pid DESC="supervisord daemon" SCRIPTNAME=/etc/init.d/$PROGNAME # Gracefully exit if the package has been removed. test -x $DAEMON || exit 0 start() { ...

Posted by clairian on Wed, 06 Feb 2019 20:27:17 -0800

Centos7+virtualenv+supervisor+python3+uwsgi+django+nginx environment deployment

Viralenv and supervisor are installed in centos 2.7.5, but my project uses Python 3.6, so I need to compile Python 3 myself. If you use virtualenv as Python 3, make sure that uwsgi also uses Python 3! Otherwise, there will be an ImportError: no module named site error, which is caused by the difference between the home ...

Posted by William on Wed, 06 Feb 2019 03:36:16 -0800

Talk about storm's Assignment Distribution Service

order This paper mainly studies Assignment Distribution Service of storm. AssignmentDistributionService storm-2.0.0/storm-server/src/main/java/org/apache/storm/nimbus/AssignmentDistributionService.java /** * A service for distributing master assignments to supervisors, this service makes the assignments notification * asynchronous. * * < ...

Posted by SirChick on Fri, 01 Feb 2019 22:21:17 -0800

storm drpc example

order This article mainly demonstrates an example of storm drpc To configure version: '2' services: supervisor: image: storm container_name: supervisor command: storm supervisor -c storm.local.hostname="192.168.99.100" -c drpc.servers='["192.168.99.100"]' -c drpc.port=3772 -c drpc.invocations.port=3773 -c drpc.http.p ...

Posted by temidayo on Sun, 27 Jan 2019 14:33:15 -0800