roxy icon indicating copy to clipboard operation
roxy copied to clipboard

Support for failover hosts

Open grtjn opened this issue 9 years ago • 5 comments

Roxy doesn't support adding failover hosts to forests. For databases that are not spread across a group automatically, one could do:

    <assignment>
      <forest-name>@ml.modules-db</forest-name>
      <host-name>host1</host-name>
      <failover-hosts>
        <failover-host>host2</failover-hosts>
        <failover-host>host3</failover-hosts>
      </failover-hosts>
    </assignment>

For databases with forests-per-host enabled:

    <assignment>
      <forest-name>@ml.content-db</forest-name>
      <failover-hosts count="2"/>
    </assignment>

grtjn avatar Jun 19 '15 13:06 grtjn

Tip: would be nice if not all forests of host1 would failover to host2, but would spread among all other hosts. Perhaps something like failovernr=(hostnr + forestnr + failovercount) mod nrhosts

grtjn avatar Jun 19 '15 13:06 grtjn

Nice to have, pushing away for now..

grtjn avatar Sep 17 '15 21:09 grtjn

We should review #689 and see if that fulfills the ask in here

RobertSzkutak avatar Jan 30 '17 19:01 RobertSzkutak

Failover hosts is distinct from forest-replicas. Failover hosts are used for forest data on shared disks (clustered filesystems and such). It was the old approach to provide high availability. Local forest replication was added in later versions of MarkLogic. It has some performance benefits over shared disk approaches, though it comes with a higher disk space footprint.

grtjn avatar Jun 14 '17 09:06 grtjn

It is not used a lot from what I hear, so low prio. I can't recall having heard anyone else ask about it. Would be fun to have it though, even if it were just to enable people to more easily try it out, and compare the options (failover hosts, forest replicas, db replication, flex replication)

grtjn avatar Jun 14 '17 09:06 grtjn