Slackbot
07/24/2023, 4:18 PMJason Bosco
07/24/2023, 6:47 PMJason Bosco
07/24/2023, 6:48 PMif I restart typesense-1, would I experience cluster downtime?Yes, a 3-node cluster can only handle a failure of 1 node. If 2 nodes fail, then the 3rd node goes into an error state. The way to recover in this case is described here: https://typesense.org/docs/guide/high-availability.html#recovering-a-cluster-that-has-lost-quorum The steps described there would also be a good way to recover a cluster that has generally lost quorum for a variety reasons.
Charlie Getzen
07/24/2023, 6:52 PM192.168.147.30:8107:8108,192.168.131.48:8107:8108,192.168.146.44:8107:8108Charlie Getzen
07/24/2023, 6:53 PMJason Bosco
07/24/2023, 6:53 PM192.168.146.30:8107 in typesense-2 but it’s not in the nodes fileJason Bosco
07/24/2023, 6:54 PMJason Bosco
07/24/2023, 6:55 PMJason Bosco
07/24/2023, 6:56 PMJason Bosco
07/24/2023, 6:56 PMJason Bosco
07/24/2023, 6:56 PMCharlie Getzen
07/24/2023, 6:57 PMJason Bosco
07/24/2023, 6:59 PMCharlie Getzen
07/25/2023, 4:24 PM--reset-peers-on-error when this issue occurred.Adrian Kager
07/28/2023, 3:24 AMW20230728 03:23:58.060972 262 raft_server.cpp:586] Node with no leader. Resetting peers of size: 3
W20230728 03:23:58.060983 262 node.cpp:898] node default_group:192.168.147.231:8107:8108 is in state ERROR, can't reset_peerAdrian Kager
07/28/2023, 3:28 AMAdrian Kager
07/28/2023, 3:29 AMJason Bosco
07/28/2023, 3:33 AMstate ERROR, then it requires a process restart even if you add more resources to it while it’s still runningAdrian Kager
07/28/2023, 3:34 AMdisrupted 1 prevote responses to it without it becoming a leader. What does this prevote response mean and why could that node not become a follow from what you know?Adrian Kager
07/28/2023, 3:34 AMOnce there’s an OOM or out of disk and a node goes intogood to know!, then it requires a process restart even if you add more resources to it while it’s still runningstate ERROR
Jason Bosco
07/28/2023, 3:36 AMKishore Nallan
07/28/2023, 12:02 PMAdrian Kager
07/28/2023, 2:02 PMguarantee that 2/3 nodes are always up and rotations happen only in a rolling fashionFor all voluntary rotations this is upheld but we cannot guarantee random failures don't occur ofc Could the force reset of peers be done in more situations? Instead of just during during an error during startup? In our cluster we never change the number of nodes and really no nodes enter or leave, they just restart (with a different IP but same persisted state). I would need to think about it more but I don't think a force reset should ever cause a problem.
Adrian Kager
07/28/2023, 2:02 PMKishore Nallan
07/28/2023, 2:04 PMAdrian Kager
07/28/2023, 2:08 PMW20230728 14:06:25.658550 262 node.cpp:843] [default_group:192.168.146.211:8107:8108 ] Refusing concurrent configuration changing
E20230728 14:06:25.658622 337 raft_server.h:62] Peer refresh failed, error: Doing another configuration changeKishore Nallan
07/28/2023, 2:11 PMAdrian Kager
07/28/2023, 2:36 PMAdrian Kager
07/31/2023, 2:12 PMI20230731 14:04:47.230753 261 node.cpp:943] node default_group:192.168.131.161:8107:8108 starts to do snapshot
E20230731 14:04:47.235330 337 raft_server.cpp:989] Timed snapshot failed, error: Is saving another snapshot, code: 16
E20230731 14:04:50.235631 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:04:50.235687 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:04:57.236423 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
E20230731 14:04:59.236770 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:04:59.236827 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:05:07.237604 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
E20230731 14:05:08.237756 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:05:08.237812 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:05:17.238811 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
E20230731 14:05:17.238858 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:05:17.238868 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
E20230731 14:05:26.240017 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:05:26.240113 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:05:27.240295 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
I20230731 14:05:27.674870 262 batched_indexer.cpp:284] Running GC for aborted requests, req map size: 15634
E20230731 14:05:35.241026 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:05:35.241086 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:05:37.241359 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
E20230731 14:05:44.242317 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:05:44.242376 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:05:47.242801 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
E20230731 14:05:53.243332 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:05:53.243386 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:05:57.243854 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
E20230731 14:06:02.244403 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:06:02.244460 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:06:07.244976 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
E20230731 14:06:11.245385 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:06:11.245450 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:06:17.247084 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
E20230731 14:06:20.247385 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:06:20.247442 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:06:27.248173 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
I20230731 14:06:28.688766 262 batched_indexer.cpp:284] Running GC for aborted requests, req map size: 15634
E20230731 14:06:29.248378 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:06:29.248430 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:06:37.249398 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
E20230731 14:06:38.249603 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:06:38.249656 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:06:47.250573 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
E20230731 14:06:47.250609 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:06:47.250617 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
E20230731 14:06:56.251624 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:06:56.251673 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:06:57.251860 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
E20230731 14:07:05.252596 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:07:05.252655 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:07:07.252905 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
E20230731 14:07:14.253587 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:07:14.253648 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:07:17.253998 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
E20230731 14:07:23.254606 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:07:23.254665 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:07:27.255800 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
I20230731 14:07:29.695968 262 batched_indexer.cpp:284] Running GC for aborted requests, req map size: 15634
E20230731 14:07:32.257431 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:07:32.257488 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:07:37.258703 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
E20230731 14:07:41.259912 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:07:41.259964 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:07:47.260658 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
E20230731 14:07:50.260986 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:07:50.261049 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:07:57.261734 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
E20230731 14:07:59.261977 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:07:59.262039 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:08:07.262941 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
E20230731 14:08:08.263092 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:08:08.263175 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:08:17.264170 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
E20230731 14:08:17.264204 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:08:17.264210 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
E20230731 14:08:26.265041 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:08:26.265100 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:08:27.266731 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027, applying_index: 0, queued_writes: 25166, pending_queue_size: 0, local_sequence: 72315653
I20230731 14:08:30.702734 262 batched_indexer.cpp:284] Running GC for aborted requests, req map size: 15634
E20230731 14:08:35.267469 261 raft_server.cpp:640] 25166 queued writes > healthy read lag of 1000
E20230731 14:08:35.267518 261 raft_server.cpp:652] 25166 queued writes > healthy write lag of 500
I20230731 14:08:37.267751 261 raft_server.cpp:562] Term: 501, last_index index: 9001043, committed_index: 9001043, known_applied_index: 9001027,Adrian Kager
07/31/2023, 2:13 PMcurl -H "x-typesense-api-key: $TYPESENSE_API_KEY" localhost:8108/debug
{"state":4,"version":"0.25.0.rc34"}%Kishore Nallan
07/31/2023, 2:13 PMKishore Nallan
07/31/2023, 2:14 PMAdrian Kager
07/31/2023, 2:14 PMAdrian Kager
07/31/2023, 2:15 PMKishore Nallan
07/31/2023, 2:15 PMstate: 4 is follower, not leader.Adrian Kager
07/31/2023, 2:15 PMKishore Nallan
07/31/2023, 2:15 PMstate: 1Adrian Kager
07/31/2023, 2:16 PMAdrian Kager
07/31/2023, 2:16 PMI have now done so for one node to make its node list length 1 consisting only of the pods own IP address, but it does not seem to be becoming the leader.
Kishore Nallan
07/31/2023, 2:17 PMnodes file to a single IP, it should autoamtically reset the peers in 60 seconds. However here the state I think is fully corrupted somehow.Kishore Nallan
07/31/2023, 2:17 PMAdrian Kager
07/31/2023, 2:18 PMI20230731 14:04:47.230753 261 node.cpp:943] node default_group:192.168.131.161:8107:8108 starts to do snapshotAdrian Kager
07/31/2023, 2:19 PMAdrian Kager
07/31/2023, 2:19 PMAdrian Kager
07/31/2023, 2:22 PME20230731 142147.378849 337 raft_server.h:62] Peer refresh failed, error: Doing another configuration changeso I guess it is stuck doing a config change? Do you know why that could be?
Kishore Nallan
07/31/2023, 2:29 PMKishore Nallan
07/31/2023, 2:30 PMAdrian Kager
07/31/2023, 4:21 PMAdrian Kager
07/31/2023, 4:21 PMUpdate to disk failed. Will restore old document
Adrian Kager
07/31/2023, 10:38 PMAdrian Kager
07/31/2023, 10:39 PMKishore Nallan
08/01/2023, 12:42 AM