Aerospike on Azure


#1

Hi,

In order to do some testing I created an Azure VM containing Aerospike. I use the C# client to connect but I always get the following error:

2015-08-10 12:50:00 1 ERROR Exception occurred while testing Aerospike. [Exception: Aerospike.Client.AerospikeException+Connection: Error Code 11: Failed to connect to host(s): 40.113.125.60:3000 Error Code 11: No connection could be made because the target machine actively refused it 40.113.125.60:3000 at Aerospike.Client.Cluster.SeedNodes(Boolean failIfNotConnected) at Aerospike.Client.Cluster.Tend(Boolean failIfNotConnected) at Aerospike.Client.Cluster.WaitTillStabilized(Boolean failIfNotConnected) at Aerospike.Client.Cluster.InitTendThread(Boolean failIfNotConnected) at BTTester.Program.TestAerospike()]

I use the following command to connect:

AerospikeClient client = new AerospikeClient(new ClientPolicy() { user = “USERNAME”, password = “PASSWORD”, timeout = 5000 }, “AZURE-IP”, 3000)

Can anyone provide any help with this setup?

Regards,

Erwin


#2

This looks like a firewall/network issue. Do you have port 3000 open? Check the endpoints on the VM:


#3

Hi,

The problem has been solved. I assumed that the Aerospike service was automatically started if the VM was launched. It appears that it was not so I had to start Aerospike manually. After that, the connection was working perfectly.

Regards,

Erwin


#4

Hi Erwin, how did you started the service? I’m totally newbie with Aerospike


#5

Hi Warnov,

I connected to the Virtual Machine using Putty. Once logged in, use the following command:

sudo /etc/init.d/aerospike start

To check whether the service is running correct you can use the following command:

sudo /etc/init.d/aerospike status

The output should be:

 * asd is running

Regards,

Erwin