incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars Gierth <lars.gie...@gmail.com>
Subject Re: Can CouchDB be Distributed in a Fail-safe Manner?
Date Wed, 06 Nov 2013 22:38:04 GMT
Another highly available solution would be a virtual IP address fronting a
primary and secondary HAProxy, that gets switched based on Keepalived and a
separate, direct network link between the two HAProxies, for heartbeat
purposes.


2013/11/6 Robert Newson <rnewson@apache.org>

> Then have several haproxy servers and have DNS level failover (like
> Cloudant does).
>
> B
>
> On 6 November 2013 19:05, Hank Knight <hknight555@gmail.com> wrote:
> > At the bottom of the page for Installing & Using BigCouch it says:
> > "Cloudant recommends HAProxy."
> > http://bigcouch.cloudant.com/use
> >
> > Sounds like a reverse proxy is the only way to accomplish this.
> > Unfortunately then becomes the vulnerable link.
> >
> > On Wed, Nov 6, 2013 at 2:41 PM, Matthieu Rakotojaona
> > <matthieu.rakotojaona@gmail.com> wrote:
> >> Excerpts from Hank Knight's message of 2013-11-06 19:27:56 +0100:
> >>> I would like to distribute a CouchDB database on a minimum of 3
> >>> servers for the purpose of redundancy.
> >>>
> >>> An attachment could be accessed like this:
> >>>
> >>> http://cdb1.example.com/abc/xyz/image.jpg
> >>> http://cdb2.example.com/abc/xyz/image.jpg
> >>> http://cdb3.example.com/abc/xyz/image.jpg
> >>>
> >>> Is it possible to access the database from a single domain name that
> >>> would automatically resolve to an instance that is running?
> >>>
> >>> For example if the server running on of the instances was experiencing
> >>> a power outage it should automatically resolve to an instance that
> >>> works.
> >>>
> >>> If so, where can I find documentation about how to do this?
> >>
> >> This really should be the role of SRV records [0], but you'd need to ask
> >> http clients to look out for a _http._tcp record. In the meanwhile, the
> >> standard solution is a frontend proxy like HAProxy.
> >>
> >> [0] https://en.wikipedia.org/wiki/SRV_record
> >>
> >> --
> >> Matthieu Rakotojaona
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message