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

请问如果并发很大情况下,需要分多个gost进程吗 #601

Open
skier789 opened this issue Oct 23, 2024 · 3 comments
Open

请问如果并发很大情况下,需要分多个gost进程吗 #601

skier789 opened this issue Oct 23, 2024 · 3 comments

Comments

@skier789
Copy link

因为在我实际生产环境中使用发现,请求并发量大的话gost进程可能会崩溃

是不是分多个进程会好点

但我不是固定的配置文件启动的,使用 api模式启动,然后动态的增删规则

不知道api模式怎么结合多进程,是不是只能每个进程用不同的api端口

@skier789
Copy link
Author

然后想问下 用api模式运行的话,能不能每次增删规则 都能保存最新的配置到本地,这样下次重启就先用最新的配置来启动,同时也能开启api服务

@cnwhy
Copy link

cnwhy commented Oct 24, 2024

https://api.gost.run/swagger-ui/?url=/docs/swagger.yaml#/Config/saveConfigRequest
这个接口可以用来保存当前配置

@ginuerzh
Copy link
Member

ginuerzh commented Nov 1, 2024

因为在我实际生产环境中使用发现,请求并发量大的话gost进程可能会崩溃

有具体的崩溃日志吗?

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

No branches or pull requests

3 participants