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

feature request: hot reload config or HTTP API #91

Open
uoox opened this issue Nov 22, 2022 · 3 comments
Open

feature request: hot reload config or HTTP API #91

uoox opened this issue Nov 22, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@uoox
Copy link

uoox commented Nov 22, 2022

每次新增转发都需要重启一次realm service,有没有办法新增转发而不重启呢,大概会有3-10秒的卡顿时间(已经很优秀了)不过对于稳定性要求高的场景,希望可以新增转发而不用重启服务。

@LIULIWANJIA
Copy link

3-10秒主要来自于DNS解析的时间
建议使用速度更快的DNS服务器

@zephyrchien
Copy link
Collaborator

如果规则特别多的话, 重新加载确实会花不少时间。 如果只是新增转发, 你可以尝试自行修改代码,从外部得到endpoint配置后调用tcp或者udp relay就行。 如果要增删查该的话,需要花时间重构一部分core的代码,届时会开放API,顺便支持热重载(有API以后也未必需要配置文件了)

@zephyrchien zephyrchien added the enhancement New feature or request label Nov 23, 2022
@Uhtred009
Copy link

如果提供api 真的是太棒了 期待中 。。。

@zephyrchien zephyrchien changed the title feature request feature request: hot reload confiig or HTTP API Sep 22, 2024
@zephyrchien zephyrchien changed the title feature request: hot reload confiig or HTTP API feature request: hot reload config or HTTP API Sep 22, 2024
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

4 participants