Mesh heartbeat - "unable to parse heartbeat message" [Released] [Resolved]

by alyssa@nodeprime.com » Fri Aug 01, 2014 4:43 pm

Here’s the 192.168.0.147 configuration:

service {
user root
group root
paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
pidfile /var/run/aerospike/asd.pid
service-threads 4
transaction-queues 4
transaction-threads-per-queue 4
proto-fd-max 15000
}

logging {
# Log file must be an absolute path.
file /var/log/aerospike/aerospike.log {
context any info
}
}

network {
service {
address any
access-address 192.168.0.147
port 3000
}

heartbeat {
# mode multicast
# address 239.1.99.222
# port 9918

# To use unicast-mesh heartbeats, comment out the 3 lines above and
# use the following 4 lines instead.
mode mesh
address 192.168.0.147
port 3002
mesh-address 192.168.0.146
mesh-port 3002

interval 250
timeout 50
}

fabric {
port 3001
}

info {
port 3003
}
}

Here's the configuration for 192.168.0.146:

service {
user root
group root
paxos-single-replica-limit 1 # Number of nodes where the replica count is automatically reduced to 1.
pidfile /var/run/aerospike/asd.pid
service-threads 4
transaction-queues 4
transaction-threads-per-queue 4
proto-fd-max 15000
}

logging {
# Log file must be an absolute path.
file /var/log/aerospike/aerospike.log {
context any info
}
}

network {
service {
address any
access-address 192.168.0.146
port 3000
}

heartbeat {
# mode multicast
# address 239.1.99.222
# port 9918

# To use unicast-mesh heartbeats, comment out the 3 lines above and
# use the following 4 lines instead.
mode mesh
address 192.168.0.146
port 3002
mesh-address 192.168.0.147
mesh-port 3002

interval 250
timeout 50
}

fabric {
port 3001
}

info {
port 3003
}
}

Also, I’m testing on my laptop in 2 VirtualBoxes running Ubuntu. I’m running it through Vagrant. I have a bridge network between the VirtualBoxes where these IPs are assigned. The bridge is interface eth1 on both.

eth0 Link encap:Ethernet HWaddr 08:00:27:88:0c:a6 
inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0
inet6 addr: fe80::a00:27ff:fe88:ca6/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34485 errors:0 dropped:0 overruns:0 frame:0
TX packets:21907 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000 
RX bytes:27899653 (27.8 MB) TX bytes:1871583 (1.8 MB)

eth1 Link encap:Ethernet HWaddr 08:00:27:1e:21:fd 
inet addr:192.168.0.146 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:189513 errors:0 dropped:0 overruns:0 frame:0
TX packets:83717 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000 
RX bytes:29037468 (29.0 MB) TX bytes:19406316 (19.4 MB)