Binbin
211b250aad
Do election in order based on failed primary rank to avoid voting conflicts ( #1018 )
...
When multiple primary nodes fail simultaneously, the cluster can not recover
within the default effective time (data_age limit). The main reason is that
the vote is without ranking among multiple replica nodes, which case too many
epoch conflicts.
Therefore, we introduced into ranking based on the failed primary shard-id.
Introduced a new failed_primary_rank var, this var means the rank of this
myself instance in the context of all failed primary list. This var will be
used in failover and we will do the failover election packets in order based
on the rank, this can effectively avoid the voting conflicts.
If a single primary is down, the behavior is the same as before. If multiple
primaries are down, their replica election initiation time will be delayed
by 500ms according to the ranking.
Signed-off-by: Binbin <binloveplay1314@qq.com>
2025-01-11 10:43:18 +08:00
..
2025-01-08 10:04:58 +08:00
2024-12-05 20:01:38 +01:00
2025-01-09 11:52:45 +08:00
2024-09-25 01:22:54 +02:00
2024-05-22 23:24:12 -07:00
2024-04-10 08:59:45 +02:00
2025-01-08 10:28:54 +02:00
2024-12-17 17:48:53 -08:00
2024-12-17 17:48:53 -08:00
2024-08-14 09:20:36 -07:00
2024-05-22 23:24:12 -07:00
2024-06-16 21:18:20 -07:00
2024-08-14 09:20:36 -07:00
2024-12-03 08:42:29 -08:00
2024-09-27 12:20:47 -07:00
2024-12-17 19:07:55 +02:00
2024-12-17 19:07:55 +02:00
2024-11-21 18:22:16 +02:00
2024-11-21 18:22:16 +02:00
2025-01-08 18:34:02 +01:00
2024-09-25 01:22:54 +02:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-12-10 21:30:56 +01:00
2025-01-08 10:28:54 +02:00
2024-12-17 17:48:53 -08:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-09-25 01:22:54 +02:00
2024-05-22 23:24:12 -07:00
2024-08-14 09:20:36 -07:00
2024-05-22 23:24:12 -07:00
2025-01-11 10:43:18 +08:00
2025-01-11 10:43:18 +08:00
2024-10-23 17:11:42 +08:00
2024-07-29 21:50:46 -07:00
2025-01-08 10:28:54 +02:00
2024-12-02 15:55:24 +08:00
2024-12-17 19:07:55 +02:00
2024-09-25 01:22:54 +02:00
2025-01-08 10:04:58 +08:00
2024-05-22 23:24:12 -07:00
2025-01-02 18:35:10 +01:00
2024-12-02 19:40:38 +01:00
2024-11-29 11:13:34 +01:00
2024-12-18 09:03:30 +02:00
2024-08-14 09:20:36 -07:00
2024-04-09 10:24:03 +02:00
2024-08-14 09:20:36 -07:00
2024-05-02 20:00:04 -07:00
2024-05-02 20:00:04 -07:00
2024-05-08 12:17:32 -07:00
2024-04-30 19:32:01 -07:00
2024-04-30 19:32:01 -07:00
2024-04-30 19:32:01 -07:00
2025-01-08 18:34:02 +01:00
2025-01-08 18:34:02 +01:00
2024-09-25 01:22:54 +02:00
2025-01-08 18:34:02 +01:00
2024-12-03 08:42:29 -08:00
2024-12-03 08:42:29 -08:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2025-01-09 14:35:48 +08:00
2025-01-08 18:34:02 +01:00
2024-12-10 21:30:56 +01:00
2024-08-14 09:20:36 -07:00
2024-08-26 21:10:44 -07:00
2024-12-21 23:09:35 +01:00
2024-12-21 23:09:35 +01:00
2025-01-02 18:35:10 +01:00
2025-01-08 18:34:02 +01:00
2024-12-17 17:45:43 -08:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2025-01-08 23:18:55 +01:00
2024-12-14 20:53:48 +01:00
2024-12-14 19:13:04 +01:00
2024-08-27 20:44:32 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2025-01-02 10:42:39 +01:00
2024-12-18 09:03:30 +02:00
2024-12-10 21:30:56 +01:00
2024-12-10 21:30:56 +01:00
2024-12-10 21:30:56 +01:00
2024-09-25 01:22:54 +02:00
2025-01-02 18:35:10 +01:00
2024-08-14 09:20:36 -07:00
2024-12-17 17:48:53 -08:00
2024-12-17 17:48:53 -08:00
2024-08-14 09:20:36 -07:00
2024-06-30 11:33:10 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-12-17 19:07:55 +02:00
2024-12-10 21:30:56 +01:00
2024-08-26 21:10:44 -07:00
2024-09-25 01:22:54 +02:00
2024-04-05 21:15:57 -07:00
2025-01-11 10:32:58 +08:00
2025-01-08 10:28:54 +02:00
2024-05-22 23:24:12 -07:00
2023-05-02 17:31:32 -07:00
2025-01-08 10:28:54 +02:00
2025-01-08 10:28:54 +02:00
2025-01-02 18:35:10 +01:00
2025-01-08 18:34:02 +01:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2025-01-08 10:28:54 +02:00
2024-11-14 10:37:44 +08:00
2024-11-14 10:37:44 +08:00
2024-09-25 01:22:54 +02:00
2024-10-04 12:58:42 -07:00
2024-10-02 19:28:55 +02:00
2024-10-02 19:28:55 +02:00
2024-10-02 19:28:55 +02:00
2025-01-08 18:34:02 +01:00
2024-12-24 08:14:32 +02:00
2024-12-05 18:26:56 +01:00
2024-05-22 23:24:12 -07:00
2024-08-14 09:20:36 -07:00
2025-01-08 10:28:54 +02:00
2024-11-25 10:01:43 +01:00
2024-08-14 09:20:36 -07:00
2024-09-25 01:22:54 +02:00
2024-12-24 08:14:32 +02:00
2024-12-21 23:09:35 +01:00
2024-12-21 23:09:35 +01:00
2025-01-08 10:28:54 +02:00
2024-12-21 23:09:35 +01:00
2024-12-10 21:30:56 +01:00
2024-12-10 21:30:56 +01:00
2024-08-14 09:20:36 -07:00
2024-11-14 09:45:47 +01:00
2025-01-08 18:34:02 +01:00
2025-01-08 18:34:02 +01:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-05-09 19:44:40 -07:00
2024-05-09 19:44:40 -07:00
2024-08-14 09:20:36 -07:00
2024-09-25 01:22:54 +02:00
2024-08-14 09:20:36 -07:00
2025-01-02 10:01:55 +02:00
2024-09-25 01:22:54 +02:00
2025-01-08 18:34:02 +01:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-06-07 14:21:33 -07:00
2024-05-06 00:09:01 -07:00
2024-08-14 09:20:36 -07:00
2024-08-14 09:20:36 -07:00
2024-12-10 21:30:56 +01:00
2024-12-10 21:30:56 +01:00
2024-12-14 20:53:48 +01:00
2024-12-17 17:48:53 -08:00
2024-12-10 21:30:56 +01:00
2025-01-08 18:34:02 +01:00
2024-09-25 01:22:54 +02:00
2024-05-28 09:27:51 -07:00
2024-05-22 23:24:12 -07:00
2025-01-08 10:28:54 +02:00
2024-12-18 09:03:30 +02:00
2025-01-08 10:28:54 +02:00
2024-11-29 11:13:34 +01:00
2024-12-21 23:09:35 +01:00
2024-12-21 23:09:35 +01:00
2024-11-25 10:01:43 +01:00
2024-12-19 18:32:31 +02:00
2024-09-25 01:22:54 +02:00
2025-01-02 18:35:10 +01:00
2025-01-08 21:03:06 +01:00
2024-12-21 23:09:35 +01:00
2024-04-17 14:38:21 +02:00
2024-10-23 14:30:42 -07:00
2024-08-14 09:20:36 -07:00
2024-08-31 15:42:44 +02:00
2024-08-31 15:42:44 +02:00
2024-12-17 17:45:43 -08:00
2024-12-14 20:53:48 +01:00