You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2019/03/11 09:42:52 UTC
[GitHub] [incubator-skywalking] ywf4026 opened a new issue #2346: load
balance between agent and backend?
ywf4026 opened a new issue #2346: load balance between agent and backend?
URL: https://github.com/apache/incubator-skywalking/issues/2346
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [√ ] Question or discussion
- [ ] Bug
- [ ] Requirement
- [ ] Feature or performance improvement
___
### Question
- What do you want to know?
I want to put a load balance between agent and backend. I use nginx as load balance(roundrobin), but I found 100% requests were received by only one backend server.
Here is my nginx config
`
stream {
upstream backend {
#hash $remote_addr consistent;
server 127.0.0.1:11803 max_fails=0 fail_timeout=0s;
server 127.0.0.1:11805 max_fails=0 fail_timeout=0s;
}
server {
listen 11808;
proxy_connect_timeout 1s;
proxy_timeout 3s;
proxy_pass backend;
}
}
`
Here is Agent config:
collector.backend_service=${SW_AGENT_COLLECTOR_BACKEND_SERVICES:10.85.125.2:11808}
Is there any problem with my config?
I guess (may be wrong)
the connection between agent and collector will not be changed util the network is error.
anyway, the connetion between agent and collector is only one, if so, which config param is used to set the connection value?
ps: is there any suggestion to put a load balance between agent and backend, thanks!
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services