# Aerospike cluster - node size is still 1

**URL:** <https://discuss.aerospike.com/t/aerospike-cluster-node-size-is-still-1/4011>\
**Category:** Configuration\
**Created:** [April 2, 2017, 3:03am UTC](https://discuss.aerospike.com/t/aerospike-cluster-node-size-is-still-1/4011 "2017-04-02T03:03:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![divyapaulraj92](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@divyapaulraj92](https://discuss.aerospike.com/u/divyapaulraj92)\
**Post date:** [April 2, 2017, 3:03am UTC](https://discuss.aerospike.com/t/aerospike-cluster-node-size-is-still-1/4011/1 "2017-04-02T03:03:09Z")

</div>

I am trying to setup aerospike cluster. Here are the below configs i made in aerospike.conf,

1. added multicast heartbeats Node 1:

```auto
 heartbeat {
                mode multicast
                multicast-group 239.1.99.222
                #address 10.0.0.38
                port 9918

                # To use unicast-mesh heartbeats, remove the 3 lines above, and see
                # aerospike_mesh.conf for alternative.

                interval 300
                timeout 10
        }
cluster {
        mode static
        self-group-id 100
        self-node-id 102
}
service {
paxos-protocol v4
}

```

Node 2:

```auto
 heartbeat {
                mode multicast
                multicast-group 239.1.99.222
                port 9918
                #address 10.0.0.37
                # To use unicast-mesh heartbeats, remove the 3 lines above, and see
                # aerospike_mesh.conf for alternative.

                interval 300
                timeout 10
        }
cluster {
        mode static
        self-group-id 100
        self-node-id 101
}
service {
paxos-protocol v4
}

```

In both the server logs,

```auto
Node 1 log
Apr 02 2017 03:01:31 GMT: INFO (info): (ticker.c:170) NODE-ID bb9006400000065 CLUSTER-SIZE 1
Node 2 log:
Apr 02 2017 03:01:51 GMT: INFO (info): (ticker.c:170) NODE-ID bb9006400000066 CLUSTER-SIZE 1

```

I don’t see my cluster having node size 2. Please help me debug this.

---

<div class="post-metadata">

**Author:** ![Albot](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/albot/32/2076_2.png) [@Albot](https://discuss.aerospike.com/u/Albot)\
**Post date:** [April 2, 2017, 4:37pm UTC](https://discuss.aerospike.com/t/aerospike-cluster-node-size-is-still-1/4011/2 "2017-04-02T16:37:03Z")

</div>

Have you tried mesh? Also I think you need address defined. If there is only 1 ip on the box you can use: address any

---

<div class="post-metadata">

**Author:** ![divyapaulraj92](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@divyapaulraj92](https://discuss.aerospike.com/u/divyapaulraj92)\
**Post date:** [April 2, 2017, 4:39pm UTC](https://discuss.aerospike.com/t/aerospike-cluster-node-size-is-still-1/4011/3 "2017-04-02T16:39:07Z")

</div>

it was recommended to use multicast across. so i did not try with mesh. Let me define the address.

---

<div class="post-metadata">

**Author:** ![divyapaulraj92](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@divyapaulraj92](https://discuss.aerospike.com/u/divyapaulraj92)\
**Post date:** [April 2, 2017, 4:42pm UTC](https://discuss.aerospike.com/t/aerospike-cluster-node-size-is-still-1/4011/4 "2017-04-02T16:42:03Z")

</div>

Still after defining address any, the cluster size is 1.

---

<div class="post-metadata">

**Author:** ![Albot](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/albot/32/2076_2.png) [@Albot](https://discuss.aerospike.com/u/Albot)\
**Post date:** [April 2, 2017, 4:44pm UTC](https://discuss.aerospike.com/t/aerospike-cluster-node-size-is-still-1/4011/5 "2017-04-02T16:44:50Z")

</div>

If mesh is failing there should be a distinct log entry indicating failures. Can you post a snippet

---

<div class="post-metadata">

**Author:** ![divyapaulraj92](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@divyapaulraj92](https://discuss.aerospike.com/u/divyapaulraj92)\
**Post date:** [April 2, 2017, 4:48pm UTC](https://discuss.aerospike.com/t/aerospike-cluster-node-size-is-still-1/4011/6 "2017-04-02T16:48:28Z")

</div>

Mesh is fine. Apr 02 2017 16:47:43 GMT: INFO (info): (ticker.c:170) NODE-ID bb9006400000065 CLUSTER-SIZE 2 Apr 02 2017 16:47:46 GMT: INFO (info): (ticker.c:170) NODE-ID bb9006400000066 CLUSTER-SIZE 2

Able to see that both the nodes are able to communicate

---

<div class="post-metadata">

**Author:** ![Albot](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/albot/32/2076_2.png) [@Albot](https://discuss.aerospike.com/u/Albot)\
**Post date:** [April 2, 2017, 5:00pm UTC](https://discuss.aerospike.com/t/aerospike-cluster-node-size-is-still-1/4011/7 "2017-04-02T17:00:37Z")

</div>

Mesh doesn’t really have any downsides. My guess is something in your network blocking or not configured for multicast. I’d suggest you just use mesh unless you have a strong need/use case for multicast

---

<div class="post-metadata">

**Author:** ![divyapaulraj92](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@divyapaulraj92](https://discuss.aerospike.com/u/divyapaulraj92)\
**Post date:** [April 2, 2017, 5:02pm UTC](https://discuss.aerospike.com/t/aerospike-cluster-node-size-is-still-1/4011/8 "2017-04-02T17:02:53Z")

</div>

okay cool. Then I will move on with the mesh setup. Thank you Albot.
