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

Myhoard allows too many streams #137

Open
aiven-amartin opened this issue Feb 7, 2023 · 0 comments
Open

Myhoard allows too many streams #137

aiven-amartin opened this issue Feb 7, 2023 · 0 comments

Comments

@aiven-amartin
Copy link
Contributor

What happened?

The server can accept requests for many backup streams. We have a few servers with 5+ open streams. It appears that https://github.com/aiven/myhoard/blob/f13a8750465a349bff6b68c63bf1a2533e04c7d1/myhoard/controller.py#L1778 might not be quite correct behaviour, as it appears to update streams, but not persist those updates back to controller state, then ask the controller to reload its state.

What did you expect to happen?

In https://github.com/aiven/myhoard/blob/f13a8750465a349bff6b68c63bf1a2533e04c7d1/myhoard/controller.py#L796, we prevent more than two streams from being open, so, that should not be the case. Rather than keep the extra streams that exist around, they should be discarded.

What else do we need to know?

This problem is exacerbated by the lack of an api to delete backups. Because these streams queue up, you can end up hitting your maximum backup count quite easily, which causes even more streams to queue up as they wait for room, snowballing the problem.

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

Successfully merging a pull request may close this issue.

1 participant