Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Attila Babo <babo.online <at> gmail.com>
Subject: Re: Coordinator node
Newsgroups: gmane.comp.db.cassandra.user
Date: Tuesday 15th February 2011 22:41:09 UTC (over 5 years ago)
We are using haproxy in TCP mode for round-robin with great succes.
It's bit unorthodox but has same real added values like logging.

Here is the relavant config for haproxy:

#####

global
    log 127.0.0.1 local0
    log 127.0.0.1 local1 notice
    maxconn 4096
    user haproxy
    group haproxy
    daemon

defaults
    log global
    mode tcp
    maxconn 2000
    contimeout 5000
    clitimeout 50000
    srvtimeout 50000

listen cassandra 0.0.0.0:9160
    balance roundrobin
    server db1 ec2-XXX.compute-1.amazonaws.com:9160 check observe layer4
    server db2 ec2-YYY.compute-1.amazonaws.com:9160 check observe layer4
    server db3 ec2-ZZZ.compute-1.amazonaws.com:9160 check observe layer4
 
CD: 3ms