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

px "graceful" ? gentler restart? #14

Open
petersilva opened this issue Sep 2, 2021 · 2 comments
Open

px "graceful" ? gentler restart? #14

petersilva opened this issue Sep 2, 2021 · 2 comments

Comments

@petersilva
Copy link
Contributor

when reloading/restarting px, with hundreds of senders and dozens of receivers, each one reads the entire routing table into memory. the load on the system goes very high >100 for a minute or two. This can cause forwarding delays.

otoh, if the configurations are not initiallized, that also causes forwarding delays. anyways... ideal would be to have component restart in small batches over a few minutes to avoid the huge spike in load.

petersilva added a commit that referenced this issue Feb 10, 2022
@petersilva
Copy link
Contributor Author

@junhu3 @kurt2x @habilinour .... we've wanted something like this for ages, to stop cpu load spiking through the roof on px restart... this implementation just spreads it out, so it takes... something like 10 minutes to run, instead of launching them all in a few seconds.

Should I just put it in the release? then if you don't like how it works, just don't use 'graceful'...

@junhu3
Copy link

junhu3 commented Feb 10, 2022

It's worthy to try. To restart px, I usually do a for i in *conf,.... I think px graceful restart is more practical.

@petersilva petersilva changed the title pxReload "graceful" ? gentler restart? px "graceful" ? gentler restart? Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants