Hi, I am using an aerospike single instance (Aerospike version aerospike-server-enterprise-6.2.0.2.) and now I want to add another instance in the mesh cluster. But unable to form the cluster, in the logs we are getting “WARNING (hb): (hb.c:8561) ignoring node: 2 - exceeding maximum supported cluster size 1” error. I am unable to increase the cluster size in the configuration when we set the max-cluster-size/cluster-size parameter we are getting an "unknown config parameter name ‘cluster-size’ " error.
Configuration files for both nodes are as below;
node-1:
# Aerospike database configuration file for use with systemd.
service {
proto-fd-max 15000
cluster-name test
node-id 1
}
logging {
# Log file must be an absolute path.
file /var/log/aerospike/aerospike.log {
context any info
}
}
network {
service {
address any
access-address node-1 IP
port 3000
}
heartbeat {
mode mesh
address node-1 IP
port 3002
mesh-seed-address-port node-1 IP 3002
mesh-seed-address-port node-2 IP 3002
# To use unicast-mesh heartbeats, remove the 3 lines above, and see
# aerospike_mesh.conf for alternative.
interval 150
timeout 10
}
fabric {
port 3001
}
info {
port 3003
}
}
namespace test {
replication-factor 2
memory-size 16G
storage-engine device {
file /opt/aerospike/data/bar.dat
filesize 16G
data-in-memory true # Store data in memory in addition to file.
}
}
namespace bar {
replication-factor 2
memory-size 1G
storage-engine memory
}
node-2:
#Aerospike database configuration file for use with systemd.
service {
proto-fd-max 15000
cluster-name test
node-id 2
}
logging {
# Log file must be an absolute path.
file /var/log/aerospike/aerospike.log {
context any info
}
}
network {
service {
address any
access-address node-2 IP
port 3000
}
heartbeat {
mode mesh
address node-2 IP
port 3002
mesh-seed-address-port node-2 IP 3002
mesh-seed-address-port node-1 IP3002
# To use unicast-mesh heartbeats, remove the 3 lines above, and see
# aerospike_mesh.conf for alternative.
interval 150
timeout 10
}
fabric {
port 3001
}
info {
port 3003
}
}
namespace test {
replication-factor 2
memory-size 16G
storage-engine device {
file /opt/aerospike/data/bar.dat
filesize 16G
data-in-memory true # Store data in memory in addition to file.
}
}
namespace bar {
replication-factor 2
memory-size 1G
storage-engine memory
}