Skip to content

Stabilize Sentinel tests - refine failover-timeout & tilt-period#10518

Merged
yossigo merged 2 commits intoredis:unstablefrom
moticless:stabilize-sentinel-tests
Apr 5, 2022
Merged

Stabilize Sentinel tests - refine failover-timeout & tilt-period#10518
yossigo merged 2 commits intoredis:unstablefrom
moticless:stabilize-sentinel-tests

Conversation

@moticless
Copy link
Copy Markdown
Collaborator

@moticless moticless commented Apr 4, 2022

Sentinel once in a while experience Sentinel TILT period or leader election
failure cycle. The problem is that those default timeout are too big and once
it happens, it breaks our tests. Suggesting:

  • Reducing failover-timeout from 20 to 10sec (actually it is multiplied by 2
    and reach 40sec of timeout)
  • Modify tilt-period from default of 30sec to 5sec. When TILT period happens
    it might lead to failover in our tests, and might cause also to failover cycle
    cycle failure.

Sentinel tests should wait_for_condition up to 50seconds, where needed,
to be stable in case having single TILT period or failover failure cycle.

In addition relax timing configuration for "manual failover" Sentinel test
(was modified several months ago as part of an effort to reduce tests runtime)

@moticless moticless requested review from hwware and yossigo April 4, 2022 07:41
@yossigo yossigo merged commit e342bed into redis:unstable Apr 5, 2022
enjoy-binbin pushed a commit to enjoy-binbin/redis that referenced this pull request Jul 31, 2023
…is#10518)

Sentinel once in a while experience Sentinel TILT period or leader election 
failure cycle. The problem is that those default timeout are too big and once 
it happens, it breaks our tests.  Suggesting:
- Reducing failover-timeout from 20 to 10sec (actually it is multiplied by 2 
  and reach 40sec of timeout) 
- Modify tilt-period from default of 30sec to 5sec. When TILT period happens 
  it might lead to failover in our tests, and might cause also to failover cycle
  cycle failure.

Sentinel tests should `wait_for_condition` up to 50seconds, where needed, 
to be stable in case having single TILT period or failover failure cycle.

In addition relax timing configuration for "manual failover" Sentinel test 
(was modified several months ago as part of an effort to reduce tests runtime)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants