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

Improve Pathfinder server responsiveness during massive client disconnect #31

Open
m-ronnblom opened this issue Sep 27, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@m-ronnblom
Copy link
Collaborator

m-ronnblom commented Sep 27, 2021

In a situation where a large number of clients are connected to a pafd instance, and they all disconnect at the same time, the Pathfinder server becomes unresponsive until it has finished processing the disconnecting clients. Besides simply cleaning up resources used (memory, file descriptors etc), the server also need to mark services as orphans, unpublish services and process subscriptions matching those newly-unpublished services as well.

For example, with 10k clients, it will take on the order of 10 s for pafd to process them.

If possible, pafd should prefer processing of still-connected clients over disconnected ones.

@m-ronnblom m-ronnblom added the enhancement New feature or request label Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant