I have installed aerospike on Ubuntu 14.04 virtual machine on different machines. Both virtualboxes have nat’d network enabled. With port forwarding of port Vbox TCP:3000-3003 → TCP:3000-3003
Node 1
IP: 192.168.1.10
Vbox NAT: 10.0.2.15
Configuration file:
service {
user root
group root
paxos-single-replica-limit 1
pidfile /var/run/aerospike/asd.pid
service-threads 4
transaction-queues 4
transaction-threads-per-queue 4
proto-fd-max 15000
}
logging {
file /var/log/aerospike/aerospike.log {
context any info
}
}
network {
service {
address any
port 3000
access-address 192.168.1.10 virtual
network-interface-name eth0
}
heartbeat {
mode mesh
address any
port 3002
interface-address 192.168.1.10
mesh-seed-address-port 192.168.1.11 3002
interval 150
timeout 10
}
fabric {
address 10.0.2.15
port 3001
}
info {
port 3003
}
}
namespace test {
replication-factor 2
memory-size 1G
default-ttl 0
storage-engine device {
file /opt/aerospike/data/test.dat
filesize 1G
data-in-memory true
}
}
Log file first 1000 line: node2 - Pastebin.com
Node 2
IP: 192.168.1.11
Vbox NAT: 10.0.2.15
Configuration file:
service {
user root
group root
paxos-single-replica-limit 1
pidfile /var/run/aerospike/asd.pid
service-threads 4
transaction-queues 4
transaction-threads-per-queue 4
proto-fd-max 15000
}
logging {
file /var/log/aerospike/aerospike.log {
context any info
}
}
network {
service {
address any
port 3000
access-address 192.168.1.11 virtual
network-interface-name eth0
}
heartbeat {
mode mesh
address any
port 3002
interface-address 192.168.1.11
mesh-seed-address-port 192.168.1.10 3002
interval 150
timeout 10
}
fabric {
address 10.0.2.15
port 3001
}
info {
port 3003
}
}
namespace test {
replication-factor 2
memory-size 1G
default-ttl 0
storage-engine device {
file /opt/aerospike/data/test.dat
filesize 1G
data-in-memory true
}
}
Log file first 1000 lines : node1 - Pastebin.com
Also i ran asinfo -v 'dun:nodes=bb9ca5f3a270008,bb97abaa1270008'
on both the nodes as it was suggested in logs.