Re: cluster configuration hot update
Justin Azoff <[email protected]>
| Newsgroups | gmane.comp.security.detection.bro |
|---|---|
| Message-ID | <CAPfnCugb0HwaDNQ8bJB3Bpw7oRB6JfVriOU8j6g+7JBaAa4Hzg@mail.gmail.com> |
The main issue with adding new workers on demand is here: https://github.com/zeek/zeek/blob/c640dd70cc4229b07192a9739ece5f90d02151da/scripts/base/frameworks/cluster/main.zeek#L305:L311 the cluster layout expects to know about all workers before hand. However, if you changed the code to assume that when an unknown node connects and is calling itself worker-44, to just add a worker with that ID to the nodes table as a worker... basically just trust the name. However there are other issues. If you're using something like AF_packet and add a worker the number of workers will change causing connections to hash differently causing connections to move move between different workers which is almost as bad as restarting things. If you were talking about physically adding new nodes then you have a similar problem if you are using a packet broker because the hashing will change on that side as well. This is not it bad idea though, I had wanted to build a cluster on top of k8s or nomad and integrate it with arista to be able to dynamically provision and resize clusters. On Fri, May 3, 2019 at 4:01 AM Palumbo Mauro <[email protected]> wrote: > > Hi all, > > I am trying to figure out if it is possible to update the number of nodes running Zeek on a cluster configuration without restarting it. This could be a possible way to cope with increasing network traffic occuring in certain periods during a day or certain days when trafficic is expected to peak. However, restarting Zeek would cause a possible loss of data and I would rather avoid it. > > > > As far as I understand, I can update the node.cfg file, for example with new workers, and run the deploy command in broctl to update the configuration. But this will stop and restart the workers for a short time. Is there a way to avoid it? I had a look into the cluster framework and other parts of zeek’s code, but it doesn’t seem so easy to me. > > > > Thanks in advance, > > Mauro > > > > _______________________________________________ > Zeek mailing list > [email protected] > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/zeek -- Justin _______________________________________________ Zeek mailing list [email protected] http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/zeek