Basic Connectivity Test


#1

Synopsis:

Check that Aerospike is listening and responding on the necessary ports

If you have a problem forming your cluster or a node that is acting up running through a basic test to make sure Aerospike is listening and responding will be very benefical in order to narrow down the problem.

  1. Check that Aerospike is running

    [vagrant@localhost ~]$ ps aux | grep asd
    root      1311  1.4  5.4 2712340 104612 ?      Ssl  07:02   0:52 /usr/bin/asd --config-file /etc/aerospike/aerospike.conf
    
  2. Check that Aerospike is listening

    [vagrant@localhost ~]$ netstat -nl | grep "300[0-4]"
    tcp        0      0 0.0.0.0:3000                0.0.0.0:*                   LISTEN
    tcp        0      0 0.0.0.0:3001                0.0.0.0:*                   LISTEN
    tcp        0      0 0.0.0.0:3003                0.0.0.0:*                   LISTEN
    

    NOTE: If you are running XDR port 3004 will also be open.

  3. Can we connect using asinfo inside our node (Only showing partial output for demo purposes)

    [vagrant@localhost ~]$ asinfo -h 127.0.0.1
    1 :  node
        BB98FB4A9290C00
    2 :  statistics
    
  4. Can we connect using asinfo from outside the network card (Only showing partial output for demo purposes)

    [vagrant@localhost ~]$ asinfo -h [IP-ADDRESS]
    1 :  node
        BB98FB4A9290C00
    2 :  statistics
    
  5. Can we connect using asinfo from another node to this one (Only showing partial output for demo purposes)

    [vagrant2@localhost ~]$ asinfo -h [IP-ADDRESS]
    1 :  node
        BB98FB4A9290C00
    2 :  statistics