Failover cluster Couchbase with Lighttpd Failed on machine2 -


here scenario have.

i created 1 bucket in couchbase called, "mybucket" , have mach1 , mach2 configured failover each other bucket.

machine1:

**mach1.myserver.com** couchbase , lighttpd. webapps installed on machine pointing couchbase bucket called "mybucket" @ mach1.myserver.com 

machine2:

**mach2.myserver.com** couchbase , lighttpd webapps installed on machine pointing couchbase bucket called "mybucket" @ mach2.myserver.com 

enter image description here

when go url mach1.myserver.com, webapps connection succesful.

however when go url mach2.myserver.com. webapps connection failed. both connected same bucket called "mybucket"

am missing in configuration. first of all, make sense @ i'm facing here? please advise?

i think have been misled question architecting webserver (nginx/lighttpd/apache) couchbase , it's answer. because you've asked couchbase , answer loadbalancer.

so first of if want build scalable application never use same server database , application. virtual machines on 1 hardware, don't place webserver , database on 1 physical/virtual server. if you're planning use couchbase. couchbase likes eat iops, web server have insufficient iops.

in situation you've described choise have separate servers webapp , couchbase. server pairs webapp-couchbase should placed near each other (i.e. @ least in 1 datacenter) minimize latency. should configure couchbase servers standalone clusters xdcr replication (also check ports needed open couchbase). configure webapp connect nearest server. in case should care "high availability" yourself: check this question see advices. if connect couchbase servers in 1 cluster, destribute documents around servers in cluster , if connect web app nearest server, data collected couchbase servers in cluster.

if you'll have more questions or should explain better - ask in comments , i'll update answer.

upd: if you're using couchbase >= 2.1.1 can configure hostnames.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -