Giter Club home page Giter Club logo

Comments (4)

jleveque avatar jleveque commented on July 27, 2024

Fix for docker-database here: #442

For many of the remaining dockers, a problem rears its head: multiple processes need to be started. While we can start multiple processes in a docker using supervisord, some dockers require processes to start in a specific order, however, supervisord, while providing a priority mechanism, does not provide a dependency system, so there is no native way to ensure processes start serially. Many people are clamoring for this functionality to be added here: Supervisor/supervisor#122.

In the comments of the issue I linked, one person describes their workaround:

A workaround that I have used is to set autostart=false on the processes, then create a bootstrap script with autostart=true and autorestart=false (a one-shot). The bootstrap can be a shell script that calls supervisorctl start for each process. supervisorctl start will block until a process has started successfully.

While this will work, I don't believe this is an ideal solution. Also, it appears someone has created an alternative "ordered-startup-supervisord" here: https://pypi.python.org/pypi/ordered-startup-supervisord/. I'm not sure how stable this is, however. All thoughts are welcome!

from sonic-buildimage.

lguohan avatar lguohan commented on July 27, 2024

do you have a list of dockers that is not currently managed by supervisor?

from sonic-buildimage.

jleveque avatar jleveque commented on July 27, 2024
  • docker-basic_router
  • docker-dhcp-relay
  • docker-fpm
  • docker-fpm-gobgp (Uses supervisord, but it is not started as PID 1)
  • docker-lldp-sv2 (Uses supervisord, but it is not started as PID 1)
  • docker-mlnx-sswsyncd
  • docker-mlnx-sswsyncd-rpc
  • docker-orchagent
  • docker-orchagent-cavm
  • docker-orchagent-centec
  • docker-orchagent-mlnx
  • docker-platform-monitor
  • docker-saiserver-brcm
  • docker-saiserver-cavm
  • docker-saiserver-mlnx
  • docker-snmp-sv2 (Uses supervisord, but it is not started as PID 1)
  • docker-sswsyncd
  • docker-teamd
  • docker-vas

from sonic-buildimage.

jleveque avatar jleveque commented on July 27, 2024

Resolved with PR #573

from sonic-buildimage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.