# Unexpected behavior on EC2

**URL:** <https://discuss.aerospike.com/t/unexpected-behavior-on-ec2/312>\
**Category:** Installation\
**Created:** [August 18, 2014, 5:13pm UTC](https://discuss.aerospike.com/t/unexpected-behavior-on-ec2/312 "2014-08-18T17:13:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oldforum](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@oldforum](https://discuss.aerospike.com/u/oldforum)\
**Post date:** [August 18, 2014, 5:13pm UTC](https://discuss.aerospike.com/t/unexpected-behavior-on-ec2/312/1 "2014-08-18T17:13:54Z")

</div>

by amdalal » Thu Oct 10, 2013 8:51 pm

Hello all,

In my test setup on EC2 I have done following:

1. One Aerospike server is running in ZoneA (say Aerospike-A).

2. Another node of the same cluster is running in ZoneB (say Aerospike-B).

3. The application using above cluster is running in ZoneA again.

4. I am initializing AerospikeClinet like this:

With above setup I am getting below behavior:

1. Writes are happening on both Aerospike-A and Aerospike-B.

2. Reads are only happening on Aerospike-A (data is around 1million records, occupying 900MB of memory and 1.3 GB of disk)

3. If I take Aerospike-B down, everything works perfectly. There is no outage.

4. If I take Aerospike-A down, all the writes and reads start failing. I’ve waited for 5 mins for other node to take traffic but it didn’t work.

---

<div class="post-metadata">

**Author:** ![oldforum](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@oldforum](https://discuss.aerospike.com/u/oldforum)\
**Post date:** [August 18, 2014, 5:14pm UTC](https://discuss.aerospike.com/t/unexpected-behavior-on-ec2/312/2 "2014-08-18T17:14:14Z")

</div>

by devops01 » Thu Jul 31, 2014 3:26 pm

Could share your full code for testing. Also is the client running on same machine as Node A?

In a normal case an Aerospike 2 node Mesh configured cluster would form and handle both read and writes. Running auto-dun may have also been a factor.

best, Lucien
