2 Membases with 1 bucket (Replication enabled) slowness
We have a small Facebook game running, and we've noticed something very strange..
When we upgraded to 2 Membase servers running with 1 bucket (with replication enabled), our game suddenly started working incredibly slow - response times ran from as low as 100ms to as high as 8000ms!!
Once we've removed one of the servers from the cluster, the game "magically" fixed itself and all response times returned to a healthy 100-200ms response times.
What could be the issue here?
Obviously we want 2 servers to enable replication, but these slowness issues are out of the question.
The way we handled this from the code was in the configuration file, we added both hosts:
<add uri="http://SERVER_1_IP/pools/default" />
<add uri="http://SERVER_2_IP/pools/default" />
I've also ran a small performance test to further prove my point.
Running through 300,000 objects in Membase and saving them using 1 server took about 2 minutes.
Using 2 servers: took about 15 minutes!!!