gpt4 book ai didi

aerospike - 如何使用单个节点设置 aerospike 集群?

转载 作者:行者123 更新时间:2023-12-05 03:09:29 31 4
gpt4 key购买 nike

我目前有一个包含两个节点的工作集群。以下是 /etc/aerospike/aerospike.conf 的内容 -

network {
service {
address any
port 3000
}
heartbeat {
mode mesh
port 3002 # Heartbeat port for this node.
# List one or more other nodes, one ip-address & port per line:

mesh-seed-address-port <existing server's ip> 3002

mesh-seed-address-port <other server's ip> 3002


interval 250
timeout 10
}
fabric {
port 3001
}
info {
port 3003
}
}

我尝试通过删除其他节点的地址端口来更改心跳设置 -

heartbeat {
mode mesh
port 3002 # Heartbeat port for this node.
# List one or more other nodes, one ip-address & port per line:

mesh-seed-address-port <existing server's ip> 3002

interval 250
timeout 10
}

然后我重新启动了 aerospike 和 amc 服务 -

service aerospike restart
service amc restart

但是,/var/log/aerospike/aerospike.log 文件仍然显示存在两个节点 -

Mar 07 2017 13:16:28 GMT: INFO (info): (ticker.c:249)    system-memory: free-kbytes 125756260 free-pct 99 heap-kbytes (2343074,2344032,2417664) heap-efficiency-pct 96.9
Mar 07 2017 13:16:28 GMT: INFO (info): (ticker.c:263) in-progress: tsvc-q 0 info-q 0 nsup-delete-q 0 rw-hash 0 proxy-hash 0 tree-gc-q 0
Mar 07 2017 13:16:28 GMT: INFO (info): (ticker.c:285) fds: proto (20,23,3) heartbeat (1,1,0) fabric (19,19,0)
Mar 07 2017 13:16:28 GMT: INFO (info): (ticker.c:294) heartbeat-received: self 0 foreign 1488
Mar 07 2017 13:16:28 GMT: INFO (info): (ticker.c:348) {FC} objects: all 0 master 0 prole 0
Mar 07 2017 13:16:28 GMT: INFO (info): (ticker.c:409) {FC} migrations: complete
Mar 07 2017 13:16:28 GMT: INFO (info): (ticker.c:428) {FC} memory-usage: total-bytes 0 index-bytes 0 sindex-bytes 0 data-bytes 0 used-pct 0.00
Mar 07 2017 13:16:28 GMT: INFO (info): (ticker.c:348) {TARGETPARAMS} objects: all 0 master 0 prole 0
Mar 07 2017 13:16:28 GMT: INFO (info): (ticker.c:409) {TARGETPARAMS} migrations: complete
Mar 07 2017 13:16:28 GMT: INFO (info): (ticker.c:428) {TARGETPARAMS} memory-usage: total-bytes 0 index-bytes 0 sindex-bytes 0 data-bytes 0 used-pct 0.00
Mar 07 2017 13:16:38 GMT: INFO (info): (ticker.c:169) NODE-ID bb93c00b70b0022 CLUSTER-SIZE 2
Mar 07 2017 13:16:38 GMT: INFO (info): (ticker.c:249) system-memory: free-kbytes 125756196 free-pct 99 heap-kbytes (2343073,2344032,2417664) heap-efficiency-pct 96.9

AMC 控制台也是如此。

最佳答案

这应该有所帮助:http://www.aerospike.com/docs/operations/manage/cluster_mng/removing_node

一旦节点被正确删除,您可以使用不同的心跳配置重新启动它,这样它就不会加入另一个节点。

对于版本,只需执行asd --version。您还可以使用 asinfo -v build

该版本也打印在 asadm/AMC 和启动时的日志中。

关于aerospike - 如何使用单个节点设置 aerospike 集群?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42649367/

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