You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2022/10/31 09:59:28 UTC

[GitHub] [incubator-brpc] yyhclimacool opened a new issue, #1978: brpc如何在service mesh环境下实现一致性哈希的负载均衡策略

yyhclimacool opened a new issue, #1978:
URL: https://github.com/apache/incubator-brpc/issues/1978

   我们的生产环境是基于istio的service mesh,我需要实现一致性hash的负载均衡策略,传输协议我们使用http,这样service mesh可以基于http里的header做一致性hash(比如http的header requestid,每次请求让requestid赋值为本次请求的logid);
   这样我的client端protocol需要为http,我如何能定制这样的requestid的header呢?
   
   我试过了调用cntl.SetHeader("requestid", logid),从服务端日志看一致性hash的负载均衡策略没有生效。


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] serverglen commented on issue #1978: brpc如何在service mesh环境下实现一致性哈希的负载均衡策略

Posted by GitBox <gi...@apache.org>.
serverglen commented on issue #1978:
URL: https://github.com/apache/incubator-brpc/issues/1978#issuecomment-1299540031

   确认下service mesh http请求header中是包含requestid


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] yyhclimacool closed issue #1978: brpc如何在service mesh环境下实现一致性哈希的负载均衡策略

Posted by GitBox <gi...@apache.org>.
yyhclimacool closed issue #1978: brpc如何在service mesh环境下实现一致性哈希的负载均衡策略
URL: https://github.com/apache/incubator-brpc/issues/1978


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org


[GitHub] [incubator-brpc] yyhclimacool commented on issue #1978: brpc如何在service mesh环境下实现一致性哈希的负载均衡策略

Posted by GitBox <gi...@apache.org>.
yyhclimacool commented on issue #1978:
URL: https://github.com/apache/incubator-brpc/issues/1978#issuecomment-1302086107

   测试通过了,SetHeader是起作用的,需要mesh下发配置生效才行!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org