[2023-06-08T15:50:11,924][INFO ][o.e.c.s.ClusterService ] [XGOiEYi] new_master {XGOiEYi}{XGOiEYirROWx8RIiBRKPOw}{tWa_VkFYQTGK0Mu1csepNg}{127.0.0.1}{127.0.0.1:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
时间: 2023-12-19 12:04:08 浏览: 35
这是 Elasticsearch 节点成为新的主节点时的日志信息,其中 `XGOiEYi` 是新的主节点的名称。在 Elasticsearch 集群中,每个节点都可以成为主节点,但是只有一个节点可以被选举为主节点,负责管理集群中的各种操作,例如索引和搜索等。当一个节点成为新的主节点时,Elasticsearch 会记录这个事件,并将相关的信息写入日志文件中。在这个日志信息中,`zen-disco-elected-as-master` 表示节点被选举为主节点的原因,`[0] nodes joined` 表示在选举过程中没有其他节点参与。
相关问题
[2023-06-08T15:50:11,948][INFO ][o.e.g.GatewayService ] [XGOiEYi] recovered [0] indices into cluster_state
这是 Elasticsearch 节点启动时恢复索引相关的日志信息,其中 `XGOiEYi` 是节点的名称。在 Elasticsearch 集群中,每个节点都可以存储一部分的索引数据,当一个节点启动时,Elasticsearch 会从其他节点上获取已经存在的索引数据,并进行恢复。在这个日志信息中,`recovered [0] indices` 表示节点恢复的索引数量为 0,也就是节点没有恢复任何索引数据。
如果你在启动 Elasticsearch 节点时看到这个日志信息,可能有以下几种原因:
1. 节点没有存储任何索引数据:如果节点没有存储任何索引数据,就不会有任何索引需要恢复。这种情况下,这个日志信息是正常的。
2. 索引数据已经被删除:如果节点之前存储了一些索引数据,但是这些数据已经被删除,就不会有任何索引需要恢复。
3. 索引数据已经被复制到其他节点:如果节点存储的索引数据已经被另外的节点复制,那么在这个节点启动时就不需要从其他节点上恢复数据了。
以上是一些可能导致节点恢复索引数据数量为 0 的原因,你可以根据具体情况进行排查和解决。
2023-06-08T02:25:37.583259Z 1 [Note] WSREP: GCache history reset: 00000000-0000-0000-0000-000000000000:0 -> c443b2d8-05a0-11ee-86b8-2e0fddf21737:0 2023-06-08T02:25:39.261528Z WSREP_SST: [INFO] Streaming with xbstream 2023-06-08T02:25:39.273174Z WSREP_SST: [INFO] WARNING: Stale temporary SST directory: /data/mysql//.sst from previous state transfer. Removing 2023-06-08T02:25:39.279749Z WSREP_SST: [INFO] Proceeding with SST......... 2023-06-08T02:25:39.519583Z 0 [Note] WSREP: (c05c7a4e, 'tcp://0.0.0.0:4567') turning message relay requesting off 2023-06-08T02:25:39.553817Z WSREP_SST: [INFO] ............Waiting for SST streaming to complete! 2023-06-08T02:25:49.257301Z WSREP_SST: [ERROR] ******************* FATAL ERROR ********************** 2023-06-08T02:25:49.260159Z WSREP_SST: [ERROR] xtrabackup_checkpoints missing. xtrabackup/SST failed on DONOR. Check DONOR log 2023-06-08T02:25:49.262811Z WSREP_SST: [ERROR] ****************************************************** 2023-06-08T02:25:49.266472Z WSREP_SST: [ERROR] Cleanup after exit with status:2 2023-06-08T02:25:49.289335Z 0 [Warning] WSREP: 1.0 (host78): State transfer to 0.0 (host79) failed: -22 (Invalid argument) 2023-06-08T02:25:49.289400Z 0 [ERROR] WSREP: gcs/src/gcs_group.cpp:gcs_group_handle_join_msg():811: Will never receive state. Need to abort. 2023-06-08T02:25:49.289465Z 0 [Note] WSREP: gcomm: terminating thread 2023-06-08T02:25:49.289494Z 0 [Note] WSREP: gcomm: joining thread 2023-06-08T02:25:49.289662Z 0 [Note] WSREP: gcomm: closing backend 2023-06-08T02:25:49.593055Z 0 [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup-v2 --role 'joiner' --address '10.106.113.79' --datadir '/data/mysql/' --defaults-file '/etc/my.cnf' --defaults-group-suffix '' --parent '9996' --mysqld-version '5.7.41-44-57' '' : 2 (No such file or directory) 2023-06-08T02:25:49.593124Z 0 [ERROR] WSREP: Failed to read uuid:seqno from joiner script. 2023-06-08T02:25:49.593137Z 0 [ERROR] WSREP: SST script aborted with error 2 (No such file or directory) 2023-06-08T02:25:49.593186Z 0 [ERROR] WSREP: SST failed: 2 (No such file or directory) 2023-06-08T02:25:49.593234Z 0 [ERROR] Aborting 2023-06-08T02:25:49.593269Z 0 [Note] WSREP: Signalling cancellation of the SST request. 2023-06-08T02:25:49.593306Z 0 [Note] WSREP: SST request was cancelled 2023-06-08T02:25:49.593337Z 0 [Note] Giving 2 client threads a chance to die gracefully 2023-06-08T02:25:49.593357Z 1 [Note] WSREP: Closing send monitor... 2023-06-08T02:25:49.593370Z 1 [Note] WSREP: Closed send monitor. 2023-06-08T02:25:50.292465Z 0 [Note] WSREP: Current view of cluster as seen by this node
这段日志是一个 MySQL 集群中的一台机器(DONOR)在进行 SST(State Snapshot Transfer)时出现了错误。从日志中可以看到,xtrabackup_checkpoints 文件缺失导致 SST 失败,需要检查 DONOR 日志文件,以找到原因。因为 SST 失败,其他节点(joiner)无法接收状态,集群需要终止。最后,WSREP 进程由于遇到错误而退出。
相关推荐
![2022-05-23t18-45-11z](https://img-home.csdnimg.cn/images/20210720083646.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)