Odd question around config

Scott van Kalken scottvankalken at gmail.com
Mon Dec 20 03:09:58 UTC 2021

Hey all,

I'm wondering if anyone knows whether or not unit will generate any sort of
event on a configuration change.

The reason I ask is that it would seem to be handy to have an event
generated when a config is updated.

I've been playing around with a peer to peer configuration sync between

Think of it this way:

- Nodes boot up and join a mesh network
- Nodes join a peer to peer pub sub message system (no central broker here
as it's peer to peer)
- I have a REST API endpoint that allows me to consume a message that is
then sent to all nodes that are subscribed to the topic

Presently, I can send a message saying "there is a config update" and all
nodes that are subscribed to config updates will come and get the config
from the node that published the message.

It would be cool if there were an event generated that I could listen for

It's a work in progress, and frankly at the moment is a bit experimental
:), remember that it's peer to peer so at any point in time, any node can
say "I have new config" and all other nodes will pull from the one that
published the message.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/unit/attachments/20211220/b6c6d93b/attachment.htm>

More information about the unit mailing list