# Cluster not formed

**URL:** https://discuss.aerospike.com/t/cluster-not-formed/1109
**Category:** General Discussion
**Tags:** container, lxc
**Created:** [March 27, 2015, 5:13pm UTC](https://discuss.aerospike.com/t/cluster-not-formed/1109 "2015-03-27T17:13:04Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![klauss42](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/klauss42/32/192_2.png) [@klauss42](https://discuss.aerospike.com/u/klauss42)
#### Post date: [March 27, 2015, 5:13pm UTC](https://discuss.aerospike.com/t/cluster-not-formed/1109/1 "2015-03-27T17:13:04Z")

</div>

Hello

I just stated evaluating Aerospike (Community Edition build 3.5.4) and have setup 2 servers (as-01 + as-02) on Ubuntu 14.04 in a LXC containers.

Installation was easy, the servers are starting up fine. But they do not form a cluster. Multicast is working in our VLAN (is used already by jgroups), IPTables is not used on these VMs.

Multicast config was the default:

```
mode multicast
address 239.1.99.222
port 9918
interface-address <ip as-01/02>

```

I also tried a mesh configuration for the 2 hosts like this:

```
as-01 config:

mode mesh  
address <ip as-01>                
port 30002        
mesh-seed-address-port <ip as-02> 30002

as-02 config:

mode mesh  
address <ip as-02>                
port 30002        
mesh-seed-address-port <ip as-01> 30002

```

But the nodes still do not form a cluster (at least the logs say CLUSTER SIZE = 1).

I also tried this multicast testing tool mtools to check the multicast network and it works fine.

What can be the problem? Something else to check? Are there any known issues with running AeroSpike in Linux LXC with a network setup with bonds and bridges?

Any help is appreciated

Klaus

---

<div class="post-metadata">

### Author: ![lucien](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/lucien/32/2065_2.png) [@lucien](https://discuss.aerospike.com/u/lucien)
#### Post date: [March 27, 2015, 6:58pm UTC](https://discuss.aerospike.com/t/cluster-not-formed/1109/2 "2015-03-27T18:58:41Z")

</div>

Hi Klaus,

Could you elaborate on your setup. Are you running each LXC containers on two seperate vms within the same Host? It would be great to see aerospike.log entries showing heatbeat connections to ip as-01/02 Can you confirm that each container is able to connect to one another over the port 30002? Also are the containers running multiple virtual interfaces.

You may need to set the access-address and network-interface-name similar to following settings:

```
network {
	service {
		address any
		port 3000
                access-address <ip as-01/02>
                network-interface-name <Interface name ie. eth1>
	}

```

We have tested aerospike on Docker containers.

> **[GitHub - aerospike/aerospike-server.docker: Dockerfile for Aerospike Server...](https://github.com/aerospike/aerospike-server.docker)**
>
> Dockerfile for Aerospike Server Community Edition. Contribute to aerospike/aerospike-server.docker development by creating an account on GitHub.

Hope this helps.

---

<div class="post-metadata">

### Author: ![klauss42](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/klauss42/32/192_2.png) [@klauss42](https://discuss.aerospike.com/u/klauss42)
#### Post date: [March 30, 2015, 7:43pm UTC](https://discuss.aerospike.com/t/cluster-not-formed/1109/3 "2015-03-30T19:43:35Z")

</div>

Hi Lucien thanks for the help.

The “network-interface-name” property did the job. I did not find it in the install or config docs, seems that it’s only documented in the reference guide.

Anyway, if I specify the network-interface-name to be used, I also get the cluster connected using multicast, which is my preference.

Here is my config (the interface name is “v402” in my case):

host as-02:

```
    service {
            address any
            port 3000
            access-address <ip as-01>
            network-interface-name v402
    }

    heartbeat {
            mode multicast
            address 239.1.99.222
            port 9918
            interface-address <ip as-01>
            ...
    }

```

host as-02:

```
    service {
            address any
            port 3000
            access-address <ip as-02>
            network-interface-name v402
    }

    heartbeat {
            mode multicast
            address 239.1.99.222
            port 9918
            interface-address <ip as-02>
            ...
    }        

```

Thanks for the help

Regards

Klaus
