ask about restart Galaxy(uwsgi) with supervisor
Dear Galaxy Developers, I am adding load balancing to Galaxy, as suggested in the documentation, I use supervisor to start or restart the uwsgi Galaxy processes, I find a problem that while restarting Galaxy supervisor doesn't wait all the uesgi processes are killed and start Galaxy again, this causes the following error: probably another instance of uWSGI is running on the same address ( 127.0.0.1:8080). bind(): Address already in use [core/socket.c line 769] My configuration: galaxy.ini: [uwsgi] processes = 8 stats = 127.0.0.1:9191 socket = 127.0.0.1:8080 pythonpath = lib threads = 4 logto = /var/log/galaxy.log master = True ======================= supervisor.conf: [program:galaxy_web] command = /usr/local/bin/uwsgi --master --ini-paste config/galaxy.ini --logto /var/log/galaxy.log directory = /opt/galaxy umask = 022 autostart = true autorestart = true startsecs = 20 user = galaxy environment = PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin,GALAXY_HOME=/opt/galaxy,PYTHON_EGG_CACHE=/home/galaxy/.python-eggs,PYTHONPATH=/opt/galaxy/eggs/PasteDeploy-1.5.0-py2.7.egg numprocs = 1 stopsignal = INT startretries = 15 stopwaitsecs = 20 [group:galaxy] programs = galaxy_web ======================= Command to restart: supervisorctrl restart galaxy: Have you had similar experience, do you have an idea to fix this? Thanks in advance! Mark
participants (1)
-
Mark Xiao