[GH-ISSUE #399] 负载均衡的上游服务-P最多支持多少个输入呀 #308

Closed
opened 2026-02-27 23:16:25 +03:00 by kerem · 4 comments
Owner

Originally created by @crisismaple on GitHub (Sep 12, 2020).
Original GitHub issue: https://github.com/snail007/goproxy/issues/399

RT,如果用commandline 以LB HA模式运行proxy的话,用-P指定上游代理最多指定多少个呢,可以有文件配置的方式指定多个么

Originally created by @crisismaple on GitHub (Sep 12, 2020). Original GitHub issue: https://github.com/snail007/goproxy/issues/399 RT,如果用commandline 以LB HA模式运行proxy的话,用-P指定上游代理最多指定多少个呢,可以有文件配置的方式指定多个么
kerem closed this issue 2026-02-27 23:16:26 +03:00
Author
Owner

@crisismaple commented on GitHub (Sep 14, 2020):

还有一个问题,如果使用fast模式上报流量的话,单个连接每次上报的流量是增量的还是全量的?就是每一次上报之后本地计数器清零还是上报的是到当前为止这个连接的流量呀?还有,上报的API能不能支持自定义header或者query param?

<!-- gh-comment-id:692042489 --> @crisismaple commented on GitHub (Sep 14, 2020): 还有一个问题,如果使用fast模式上报流量的话,单个连接每次上报的流量是增量的还是全量的?就是每一次上报之后本地计数器清零还是上报的是到当前为止这个连接的流量呀?还有,上报的API能不能支持自定义header或者query param?
Author
Owner

@snail007 commented on GitHub (Sep 15, 2020):

https://snail.gitee.io/proxy/manual/zh/#/

<!-- gh-comment-id:692399915 --> @snail007 commented on GitHub (Sep 15, 2020): https://snail.gitee.io/proxy/manual/zh/#/
Author
Owner

@crisismaple commented on GitHub (Sep 15, 2020):

https://snail.gitee.io/proxy/manual/zh/#/

我看了mannal,但是我的问题是:
1、负载均衡情况下多个-P参数是不是支持以文件形式载入多条上级,如果不支持的话在命令参数里有无个数上限(我们的场景会有数百上千个上游);
2、fast模式上报流量的时候针对单个连接,如果T1时刻上报是1KB,T2时刻上报是3KB,是意味着[0,T1]时间内这个连接产生了1KB流量、[0,T2]内产生了3KB流量(累计),还是[0,T1]时间内产生了1KB流量、[T1,T2]时间内产生了2KB流量(增量);

这些好像在文档里没有描述的特别清楚

<!-- gh-comment-id:692419112 --> @crisismaple commented on GitHub (Sep 15, 2020): > https://snail.gitee.io/proxy/manual/zh/#/ 我看了mannal,但是我的问题是: 1、负载均衡情况下多个-P参数是不是支持以文件形式载入多条上级,如果不支持的话在命令参数里有无个数上限(我们的场景会有数百上千个上游); 2、fast模式上报流量的时候针对单个连接,如果T1时刻上报是1KB,T2时刻上报是3KB,是意味着[0,T1]时间内这个连接产生了1KB流量、[0,T2]内产生了3KB流量(累计),还是[0,T1]时间内产生了1KB流量、[T1,T2]时间内产生了2KB流量(增量); 这些好像在文档里没有描述的特别清楚
Author
Owner

@snail007 commented on GitHub (Sep 15, 2020):

https://snail.gitee.io/proxy/manual/zh/#/ >>>配置文件
流量没有累加

<!-- gh-comment-id:692458201 --> @snail007 commented on GitHub (Sep 15, 2020): https://snail.gitee.io/proxy/manual/zh/#/ >>>配置文件 流量没有累加
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/goproxy#308
No description provided.