meta的日志如下:
root@dggprunner00015:/usr/local/nebula/logs# cat nebula-metad.dggprunner00015.root.log.INFO.20210526-114113.12438
Log file created at: 2021/05/26 11:41:13
Running on machine: dggprunner00015
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
I0526 11:41:13.828116 12438 MetaDaemon.cpp:246] identify myself as “10.116.148.15”:9559
I0526 11:41:13.832821 12438 NebulaStore.cpp:47] Start the raft service…
I0526 11:41:13.833160 12438 RaftexService.cpp:65] Init thrift server for raft service, port: 9560
I0526 11:41:13.833230 12483 RaftexService.cpp:98] Starting the Raftex Service
I0526 11:41:13.869204 12483 RaftexService.cpp:86] Starting the Raftex Service on 9560
I0526 11:41:13.869232 12483 RaftexService.cpp:110] Start the Raftex Service successfully
I0526 11:41:13.869275 12438 NebulaStore.cpp:75] Scan the local path, and init the spaces_
I0526 11:41:13.869344 12438 NebulaStore.cpp:81] Scan path “/data/meta/nebula/0”
W0526 11:41:14.049207 12476 RaftexService.cpp:181] Cannot find the part 0 in the graph space 0
I0526 11:41:14.051648 12501 EventListner.h:18] Rocksdb start compaction column family: default because of LevelL0FilesNum, status: OK, compacted 5 files into 0, base level is 0, output level is 1
I0526 11:41:14.051774 12438 RocksEngine.cpp:119] open rocksdb on /data/meta/nebula/0/data
I0526 11:41:14.051787 12438 NebulaStore.cpp:111] Load space 0 from disk
I0526 11:41:14.051800 12438 NebulaStore.cpp:146] Need to open 1 parts of space 0
I0526 11:41:14.055378 12501 EventListner.h:30] Rocksdb compaction completed column family: default because of LevelL0FilesNum, status: OK, compacted 5 files into 1, base level is 0, output level is 1
I0526 11:41:14.260120 12479 FileBasedWal.cpp:65] [Port: 9560, Space: 0, Part: 0] lastLogId in wal is 963279, lastLogTerm is 149, path is /data/meta/nebula/0/wal/0/0000000000000804105.wal
I0526 11:41:14.260219 12479 RaftPart.cpp:295] [Port: 9560, Space: 0, Part: 0] There are 2 peer hosts, and total 3 copies. The quorum is 2, as learner 0, lastLogId 963279, lastLogTerm 149, committedLogId 963278, term 149
I0526 11:41:14.260226 12479 RaftPart.cpp:308] [Port: 9560, Space: 0, Part: 0] Add peer “10.116.148.22”:9560
I0526 11:41:14.260243 12479 RaftPart.cpp:308] [Port: 9560, Space: 0, Part: 0] Add peer “10.116.148.114”:9560
I0526 11:41:14.260335 12479 NebulaStore.cpp:177] Load part 0, 0 from disk
I0526 11:41:14.260370 12438 NebulaStore.cpp:192] Load space 0 complete
I0526 11:41:14.260396 12438 NebulaStore.cpp:201] Init data from partManager for “10.116.148.15”:9559
I0526 11:41:14.260406 12438 NebulaStore.cpp:291] Data space 0 has existed!
I0526 11:41:14.260408 12438 NebulaStore.cpp:330] [Space: 0, Part: 0] has existed!
I0526 11:41:14.260429 12438 NebulaStore.cpp:68] Register handler…
I0526 11:41:14.260433 12438 MetaDaemon.cpp:99] Waiting for the leader elected…
I0526 11:41:14.260437 12438 MetaDaemon.cpp:112] Leader has not been elected, sleep 1s
I0526 11:41:14.419728 12480 RaftPart.cpp:1043] [Port: 9560, Space: 0, Part: 0] Start leader election, reason: lastMsgDur 358, term 149
I0526 11:41:14.419766 12480 RaftPart.cpp:1193] [Port: 9560, Space: 0, Part: 0] Sending out an election request (space = 0, part = 0, term = 150, lastLogId = 963279, lastLogTerm = 149, candidateIP = 10.116.148.15, candidatePort = 9560)
I0526 11:41:14.421394 12480 RaftPart.cpp:1138] [Port: 9560, Space: 0, Part: 0] My last log id is less than “10.116.148.22”:9560, double my election interval.
I0526 11:41:14.421418 12480 RaftPart.cpp:1138] [Port: 9560, Space: 0, Part: 0] My last log id is less than “10.116.148.114”:9560, double my election interval.
I0526 11:41:14.421422 12480 RaftPart.cpp:1275] [Port: 9560, Space: 0, Part: 0] No one is elected, continue the election
I0526 11:41:15.260560 12438 MetaDaemon.cpp:112] Leader has not been elected, sleep 1s
I0526 11:41:16.260728 12438 MetaDaemon.cpp:112] Leader has not been elected, sleep 1s
I0526 11:41:16.812916 12476 RaftPart.cpp:1739] [Port: 9560, Space: 0, Part: 0] I dont know who is leader for current term 149, so accept the candidate “10.116.148.114”:9560
I0526 11:41:16.812948 12476 RaftPart.cpp:1761] [Port: 9560, Space: 0, Part: 0] The current role is Candidate. Will follow the new leader 10.116.148.114:9560 [Term: 149]
I0526 11:41:16.813099 12479 Part.cpp:191] [Port: 9560, Space: 0, Part: 0] Find the new leader “10.116.148.114”:9560
I0526 11:41:17.260926 12438 MetaDaemon.cpp:141] Get meta version is 2
I0526 11:41:17.261050 12438 MetaDaemon.cpp:168] Nebula store init succeeded, clusterId 7356165955248333383
I0526 11:41:17.261062 12438 MetaDaemon.cpp:259] Start http service
I0526 11:41:17.275574 12438 MetaDaemon.cpp:176] Starting Meta HTTP Service
I0526 11:41:17.277329 12525 WebService.cpp:131] Web service started on HTTP[19559], HTTP2[19560]
I0526 11:41:17.277454 12438 JobManager.cpp:52] JobManager initialized
I0526 11:41:17.277473 12531 JobManager.cpp:75] JobManager::runJobBackground() enter
I0526 11:41:17.277585 12438 MetaDaemon.cpp:316] The meta deamon start on “10.116.148.15”:9559
I0527 11:05:45.291472 12545 HBProcessor.cpp:47] Set clusterId for new host “10.116.148.15”:9779!
E0527 11:05:45.291528 12545 RaftPart.cpp:367] [Port: 9560, Space: 0, Part: 0] The partition is not a leader
E0527 11:05:45.291689 12545 RaftPart.cpp:687] [Port: 9560, Space: 0, Part: 0] Cannot append logs, clean the buffer
I0527 15:41:14.644043 12480 FileBasedWal.cpp:738] [Port: 9560, Space: 0, Part: 0] Clean wals number 1
I0529 22:31:15.338212 12480 FileBasedWal.cpp:738] [Port: 9560, Space: 0, Part: 0] Clean wals number 1
I0601 05:01:16.131122 12479 FileBasedWal.cpp:738] [Port: 9560, Space: 0, Part: 0] Clean wals number 1
I0603 07:41:16.806901 12480 FileBasedWal.cpp:738] [Port: 9560, Space: 0, Part: 0] Clean wals number 1