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

feat(server/client): service quick reload #131

Closed
wants to merge 1 commit into from

Conversation

muink
Copy link
Collaborator

@muink muink commented Aug 1, 2024

Allow manual quick reload of hp service

@@ -340,6 +341,13 @@ return view.extend({
}
so.default = 'nil';
so.rmempty = false;

so = ss.option(form.Button, '_reload_client', _('Quick Reload'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any sense of this change.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

emmm... I can probably list a few points.

  1. Faster than Default outbound: proxy --> nil --> SAVE --> proxy --> APPLY
  2. This is faster when hp stops due to itself or other reasons

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. you have to edit uci configuration to stop the service if use reload method.
  2. procd should automatically restart the service

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. But stop_service does not check the value of outbound_node, it just terminates the service completely.
  2. procd sometimes fails to respawn, and I have set the watchdog to stop the hp service when the proxy node is offline for a long time

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. that will not stop the service anyway, it's just restart. manually restart can be done via system -> startup.
  2. then you should check logs, why it fails. procd will only stop respawn if the service crashed 5 times in one hour.

@muink muink closed this Aug 2, 2024
@muink muink deleted the dev/reload branch August 2, 2024 09:16
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 this pull request may close these issues.

2 participants