Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically adding TEE receiver list #159

Closed
ashvanth48 opened this issue Sep 14, 2017 · 1 comment
Closed

Dynamically adding TEE receiver list #159

ashvanth48 opened this issue Sep 14, 2017 · 1 comment
Assignees
Labels

Comments

@ashvanth48
Copy link

I'm trying to figure out if there is a way to dynamically add receivers/filters to the TEE plugin, without having to restart the nfacctd daemon.

If I start a new nfacctd daemon with the new receiver, then I see a new Core and TEE plugin process instantiated. I would like to know how costly this is when compared to having multiple receivers in a single tee plugin.

@paololucente
Copy link
Member

Hi @ashvanth48 , yes. tee_receivers content can be reloaded at runtime.

Please see the relevant section from the QUICKSTART document on how to fill tee_receivers: https://github.com/pmacct/pmacct/blob/master/QUICKSTART#L1378-L1435

Then, once you make changes to tee_receivers, you can reload the map at runtime sending a SIGUSR2 to the process, ie. "killall -USR2 nfacctd". In the logs you will get confirmation that the map is reloaded.

I reckon there may be a case of lack of documentation on the reloading at runtime part, i will add some later today.

Paolo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants