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

Suggestion: Reload config for High Availability #16

Closed
Alex1607 opened this issue Jan 4, 2023 · 4 comments
Closed

Suggestion: Reload config for High Availability #16

Alex1607 opened this issue Jan 4, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@Alex1607
Copy link

Alex1607 commented Jan 4, 2023

Maybe it would be possible to add a reload mechanism into hopper to allow for easy changes without having to disconnect all users.
Like for example, if I want to add a new route, hopper would kick all users because I have to restart it.
Furthermore, this is something which might be important for me but not for others.
But I would love the ability to change the IP of the backend server, reload hopper, and then have only new users connect to this new IP while users that are currently connected keep their current connection.

@BRA1L0R
Copy link
Owner

BRA1L0R commented Jan 4, 2023

It could be done with a SIGHUP process signal, just like nginx. Did you think specifically of a way to do such thing without process signals?

@Alex1607
Copy link
Author

Alex1607 commented Jan 4, 2023

My first Idea was to just add a command that can be run in the application itself. Like a reload or help command.
But I suppose it doesn't matter how exactly something like this is implemented, the advantage of a command system, of course, would be that it would allow for other features via commands in the future.

@BRA1L0R
Copy link
Owner

BRA1L0R commented Jan 4, 2023

Hm, adding a whole command system would be both a challenge and kind of out of scope of the project.

Adding reload via SIGHUB would allow systemd users to just run systemctl reload hopper for example, and there sure gotta be an equivalent for docker.

@BRA1L0R BRA1L0R added the enhancement New feature or request label Jan 4, 2023
@Alex1607
Copy link
Author

Alex1607 commented Jan 5, 2023

Sure that also sound like a good way

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

2 participants