Week 12: ZooKeeper Stats
Pre-releaseNew for This Week
- Store some basic NF stats in ZooKeeper
Research
I did some reading into how to fork NFs. If we just call fork
from inside an NF, we won't be able to runt the new copy on a different core (since only the master process can run rte_eal_remote_launch
). Or, we could have the manager start the new NF: could we load the code into shared memory somehow so the manager can access a function pointer somehow, or could we store the command line arguments and have the manager do a fork
/exec
kind of thing.
Also, I'm thinking I'm going to have to make a distributed queue using ZooKeeper to track who should start these new NF copies. If an instance is running a service that "needs help", it should be able to atomically "claim" it and fork the existing copy somehow. This shouldn't be all that hard to write, the forking problem is the more difficult one.