Add self node in first cluster node response #107
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Recently we faced an issue on production where predixy was throwing "MOVED" error just after the process started. After debugging found that
"Info" command output - Just after predixy got healthy (health check using ping command)
Server:prod-adserver.xoptuc.clustercfg.apse1.cache.amazonaws.com:6379
Role:master
Group:abbff3be959032ba777a295f9d4210a281841d51
DC:
CurrentIsFail:0
Connections:5
Connect:5
Requests:249
Responses:249
SendBytes:25169
RecvBytes:4109
Server:192.168.5.176:6379
Role:slave
Group:abbff3be959032ba777a295f9d4210a281841d51
DC:
CurrentIsFail:0
Connections:5
Connect:5
Requests:47
Responses:47
SendBytes:2072
And after 10-30 seconds (refresh interval is 30) after predixy got healthy
Server:prod-adserver.xoptuc.clustercfg.apse1.cache.amazonaws.com:6379
Role:master
Group:abbff3be959032ba777a295f9d4210a281841d51
DC:
CurrentIsFail:0
Connections:5
Connect:5
Requests:249
Responses:249
SendBytes:25169
RecvBytes:4109
Server:192.168.5.176:6379
Role:slave
Group:abbff3be959032ba777a295f9d4210a281841d51
DC:
CurrentIsFail:0
Connections:5
Connect:5
Requests:47
Responses:47
SendBytes:2072
RecvBytes:962
Server:192.168.5.46:6379
Role:master
Group:abbff3be959032ba777a295f9d4210a281841d51
DC:
CurrentIsFail:0
Connections:5
Connect:5
Requests:190
Responses:125
SendBytes:10775
RecvBytes:1409
After checking the code and debug logs found that "self" replica is not getting added in the pool in the first attempt. It gets added in the second call of "cluster nodes".