mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
fix vagent imbalance problem (#1292)
/path/to/vmagent -promscrape.cluster.membersCount=3 -promscrape.cluster.replicationFactor=2 -promscrape.cluster.memberNum=0 -promscrape.config=/path/to/config.yml ... /path/to/vmagent -promscrape.cluster.membersCount=3 -promscrape.cluster.replicationFactor=2 -promscrape.cluster.memberNum=1 -promscrape.config=/path/to/config.yml ... /path/to/vmagent -promscrape.cluster.membersCount=3 -promscrape.cluster.replicationFactor=2 -promscrape.cluster.memberNum=2 -promscrape.config=/path/to/config.yml ... Co-authored-by: lirenzuo <lirenzuo@shein.com>
This commit is contained in:
parent
f13585dc5d
commit
d5285ecaf0
1 changed files with 1 additions and 1 deletions
|
@ -768,7 +768,7 @@ func needSkipScrapeWork(key string, membersCount, replicasCount, memberNum int)
|
|||
return false
|
||||
}
|
||||
idx++
|
||||
if idx >= replicasCount {
|
||||
if idx >= membersCount {
|
||||
idx = 0
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue