gpt4 book ai didi

cassandra - 确定健康的 Cassandra 集群的方法?

转载 作者:太空宇宙 更新时间:2023-11-03 17:23:29 24 4
gpt4 key购买 nike

我的任务是重新编写一些低于标准的 Ansible 剧本,以便在 CentOS 中建立 Cassandra 集群。坦率地说,关于 Cassandra 的信息似乎并不多。

我已经设法让服务同时在所有三个节点上运行,使用以下配置文件,信息已清理。

HOSTIP=10.0.0.1
MSIP=10.10.10.10
ADMIN_EMAIL=my@email.com
LICENSE_FILE=/tmp/license.conf
USE_LDAP_REMOTE_HOST=n

ENABLE_AX=y
MP_POD=gateway

REGION=test-1

USE_ZK_CLUSTER=y
ZK_HOSTS="10.0.0.1 10.0.0.2 10.0.0.3"
ZK_CLIENT_HOSTS="10.0.0.1 10.0.0.2 10.0.0.3"

USE_CASS_CLUSTER=y
CASS_HOSTS="10.0.0.1:1,1 10.0.0.2:1,1 10.0.0.3:1,1"
CASS_USERNAME=test
CASS_PASSWORD=test

HOSTIP 根据配置文件所在的节点而变化。

问题是,当我运行 nodetool ring 时,每个节点都表示集群中只有两个节点:它自己和另一个节点,其他两个节点似乎是随机的。

确定“健康”的 Cassandra 集群有哪些基本的健全性检查?为什么 nodetool 说每个人都认为集群中缺少一个不同的节点?

最佳答案

nodetool status - 集群概览(负载、状态、所有权)

nodetool info - 节点级别的更详细信息

至于节点不匹配,我会检查以下内容:

cassandra-topology.properties - identical across the cluster (all 3 IPs listed)

cassandra.yaml - I typically keep this file the same across all nodes. The parameters that MUST stay the same across the cluster are: cluster_name, seeds, partitioner, snitch).

验证所有节点可以相互访问(ping、telnet 等)

DataStax(Cassandra 供应商)有一些很好的文档。请注意,某些功能仅适用于 DataStax Enterprise -

http://docs.datastax.com/en/landing_page/doc/landing_page/current.html

另请查看 Apache Cassandra 站点 -

http://cassandra.apache.org/community/

以及用户论坛 -

https://www.mail-archive.com/user@cassandra.apache.org/

关于cassandra - 确定健康的 Cassandra 集群的方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47396250/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com