we would normally use the aerospike admin function to set this across the cluster, as it needs to be set on all nodes in the cluster. The below should work fine for you:
So as per my understanding we have to use asadmin if we want to change in entire cluster.
If we want to change on single node we should specify node name.
@Srikanth_Reddy … The error that you are seeing in asinfo was a known bug in the tools package released earlier this year and was fixed in tools 3.11.1.
Can you try asinfo -v version
(–> that yields the Server version.)
Aerospike-tools package version can be found using:
dpkg -l aerospike-tools in Ubuntu
rpm -qi aerospike-tools in RHEL
Tools package release notes are at:
http://www.aerospike.com/download/tools/notes.html
I think AQL and asinfo don’t have separate version numbers though aql does support aql --version but yields the tools package version.
asadm does have its own version number. asadm --version
I would like to change the heartbeat.mesh-seed-address-port setting. I would like to remove an old server and add a new one. How do I do that, since heartbeat.mesh-seed-address-port is an array of values?
mesh-seed-address-port is one entry per node you want to discover address port pair. you can have multiple entries in the config file. if you want to remove an old server, take its entries out of the config file from rest of the servers while they are live. the config is only read when servers start. in the new server add entries for a few of the nodes in the remaining cluster. when it starts it will join the cluster. you need minimum one entry to join the cluster. you can also make a live individual node join the cluster using the asinfo tip command.
also look up tip-clear and asinfo -v ‘services-alumni-reset’ to clear unused nodes from live cluster
Adding a node works fine, it connect to the cluster without any issues. Also the dead node is gone from the amc.
I’ve removed the dead node from all the servers and ran asinfo -v ‘services-alumni-reset’ in adadm but the warnings are still there. I looks like as is still pinging the dead node.
I still have logs full of this warnings
Apr 22 2017 10:39:38 GMT: WARNING (cf:socket): (socket.c:764) Error while connecting FD 166: 111 (Connection refused)
Apr 22 2017 10:39:38 GMT: WARNING (cf:socket): (socket.c:823) Error while connecting socket to 192.168.201.104:3002
first do tip-clear then alumni reset
editing the config file is so that if you restart any good node in the future it does not look for the removed node.