Discussion:
[Supervisor-users] config from database
Chris Withers
2015-11-19 12:32:54 UTC
Permalink
Hi All,

I wondered if there were standard ways or, failing that, if anyone had
any ways to get the process configuration used by supervisor to come
from a database rather than a static file on disk?

cheers,

Chris
Jonathan Stewmon
2015-11-19 16:06:51 UTC
Permalink
Have you checked out the supervisor_twiddler
<https://github.com/mnaberez/supervisor_twiddler> plugin? From its docs:

There are times when it is useful to be able to dynamically add and remove
process configurations on a supervisord instance. This is the functionality
that supervisor_twiddler provides. After restarting supervisord, the
changes made by supervisor_twiddler will not persist.
So, with the plugin installed, you could create a process that reads data
from an external source and updates the supervisor configuration through
the xmlrpclib API. Your config process could either run continuously, or
you could set it up as an event listener
<http://supervisord.org/events.html#configuring-an-event-listener> to have
supervisor run it periodically.
Hi All,
I wondered if there were standard ways or, failing that, if anyone had any
ways to get the process configuration used by supervisor to come from a
database rather than a static file on disk?
cheers,
Chris
_______________________________________________
Supervisor-users mailing list
https://lists.supervisord.org/mailman/listinfo/supervisor-users
--
This e-mail, including attachments, contains confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. The reader is hereby notified that any
dissemination, distribution or copying of this e-mail is prohibited. If you
have received this e-mail in error, please notify the sender by replying to
this message and delete this e-mail immediately.
Chris Withers
2015-11-20 07:05:08 UTC
Permalink
Post by Jonathan Stewmon
Have you checked out the supervisor_twiddler
There are times when it is useful to be able to dynamically add and
remove process configurations on a supervisord instance. This is the
functionality that supervisor_twiddler provides. After restarting
supervisord, the changes made by supervisor_twiddler will not persist.
Yep, this was my fallback, I was just wondering if there was anything
more complete.
Post by Jonathan Stewmon
So, with the plugin installed, you could create a process that reads
data from an external source and updates the supervisor configuration
through the xmlrpclib API. Your config process could either run
continuously, or you could set it up as an event listener
<http://supervisord.org/events.html#configuring-an-event-listener> to
have supervisor run it periodically.
What event would you recommend it listens to?

cheers,

Chris
Jonathan Stewmon
2015-11-21 06:39:26 UTC
Permalink
I was thinking you'd just listen for a tick to periodically check for
changed.
Post by Jonathan Stewmon
Have you checked out the supervisor_twiddler
There are times when it is useful to be able to dynamically add and
remove process configurations on a supervisord instance. This is the
functionality that supervisor_twiddler provides. After restarting
supervisord, the changes made by supervisor_twiddler will not persist.
Yep, this was my fallback, I was just wondering if there was anything more
complete.
So, with the plugin installed, you could create a process that reads
Post by Jonathan Stewmon
data from an external source and updates the supervisor configuration
through the xmlrpclib API. Your config process could either run
continuously, or you could set it up as an event listener
<http://supervisord.org/events.html#configuring-an-event-listener> to
have supervisor run it periodically.
What event would you recommend it listens to?
cheers,
Chris
--
This e-mail, including attachments, contains confidential and/or
proprietary information, and may be used only by the person or entity to
which it is addressed. The reader is hereby notified that any
dissemination, distribution or copying of this e-mail is prohibited. If you
have received this e-mail in error, please notify the sender by replying to
this message and delete this e-mail immediately.
Loading...