ClusterOptions
The tuning of partition ownership and the cluster channel on one node.
leaseTtl, renewed every renewInterval: how long a partition stays with a node that stopped renewing. A renewal round renews the held leases with one call, and a lease group's acquisitions and the releases its hand-offs end with run at most leaseParallelism at a time, one bound for both: a round must stay well inside
leaseTtl − renewInterval. A lease left unrenewed that long is taken as lost, so renewInterval is less than half of leaseTtl: otherwise every lease would be lost between two rounds.memberTtl, refreshed every heartbeatInterval: how long a node stays a member after its last heartbeat. heartbeatInterval is less than half of memberTtl, so a heartbeat late by up to another interval keeps the node a member.
reconcileInterval: how often a node compares the partitions it holds with its HRW target; a change of the members it notices reconciles at once.
routeRefreshInterval: how often the route table is read from the leases and members; a failed forward refreshes it at once.
forwardTimeout: how long a forward waits for the owner's reply, capped by the command's own deadline; a forward sent and not answered by then is reported unknown, not run locally. Only a forward the owner surely did not receive runs locally. Since a timeout no longer runs the command elsewhere, waiting less than the command would only fail it sooner: the default is the default wait (WaitPlan.DEFAULT_TIMEOUT, 10 seconds), not the 1 second of earlier releases, which covered the owner's tail before falling back.
maxInFlightPerNode: the forwards this node may have outstanding to one peer; one more is refused busy, not run locally.
drainTimeout: how long a hand-off waits for the partition's commands in flight before it moves on.
reconcileTimeout: how long one reconcile may go without finishing a step for one partition (an acquisition, a hand-off) before the node takes itself as stuck: it fences the group, leaving the members until the reconcile moves again and giving up its leases, so the others take the partitions it cannot run. Well above what one step takes: a hand-off's drain, then the stop of each runtime; longer than drainTimeout, and longer than leaseTtl, so a fence never comes before the node would take an unrenewed lease as lost.
Fields may be added: Wow builds it from the host's configuration, so the constructor is internal to Wow.