Describe the bug
Invalid tcp-check for Sentinel during the check_if_redis_is_master. At the last steps, it send the QUIT commend which is invalid for the sentinel container it connects to based on https://redis.io/docs/manual/sentinel/, then it returns at step 7 of tcp-check (expect string '+OK')".
[WARNING] (8) : Server check_if_redis_is_master_0/R0 is DOWN, reason: Layer7 timeout, info: " at step 5 of tcp-check (expect string '172.20.221.218')", check duration: 2001ms. 2 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[WARNING] (8) : Server check_if_redis_is_master_0/R1 is DOWN, reason: Layer7 timeout, info: " at step 5 of tcp-check (expect string '172.20.221.218')", check duration: 2001ms. 1 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[WARNING] (8) : Server check_if_redis_is_master_0/R2 is DOWN, reason: Layer7 timeout, info: " at step 5 of tcp-check (expect string '172.20.221.218')", check duration: 2001ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[ALERT] (8) : backend 'check_if_redis_is_master_0' has no server available!
[WARNING] (8) : Server check_if_redis_is_master_1/R0 is DOWN, reason: Layer7 timeout, info: " at step 5 of tcp-check (expect string '172.20.62.109')", check duration: 2001ms. 2 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[WARNING] (8) : Server check_if_redis_is_master_1/R1 is DOWN, reason: Layer7 timeout, info: " at step 5 of tcp-check (expect string '172.20.62.109')", check duration: 2001ms. 1 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[WARNING] (8) : Server check_if_redis_is_master_1/R2 is DOWN, reason: Layer7 timeout, info: " at step 5 of tcp-check (expect string '172.20.62.109')", check duration: 2001ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[ALERT] (8) : backend 'check_if_redis_is_master_1' has no server available!
[WARNING] (8) : Server check_if_redis_is_master_2/R0 is DOWN, reason: Layer7 timeout, info: " at step 7 of tcp-check (expect string '+OK')", check duration: 2001ms. 2 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[WARNING] (8) : Server check_if_redis_is_master_2/R1 is DOWN, reason: Layer7 timeout, info: " at step 7 of tcp-check (expect string '+OK')", check duration: 2001ms. 1 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[WARNING] (8) : Server check_if_redis_is_master_2/R2 is DOWN, reason: Layer7 timeout, info: " at step 7 of tcp-check (expect string '+OK')", check duration: 2037ms. 0 active and 0 backup servers left. 0 sessions active, 0 requeued, 0 remaining in queue.
[ALERT] (8) : backend 'check_if_redis_is_master_2' has no server available!
Describe the bug Invalid tcp-check for Sentinel during the check_if_redis_is_master. At the last steps, it send the
QUIT
commend which is invalid for the sentinel container it connects to based on https://redis.io/docs/manual/sentinel/, then it returnsat step 7 of tcp-check (expect string '+OK')"
.https://github.com/DandyDeveloper/charts/blob/6f523013a32beafe370e2fd55403067a6a5647b9/charts/redis-ha/templates/_configs.tpl#L511-L512
HaProxy version: 2.4.17 Redis version: 7.0.2
Expected behavior One of the checks should have 3 servers available and
bk_redis_master
should use the master instanceAdditional context We use the chart as part of an ArgoCD deployment