Skip to content
Hellblazer edited this page Apr 24, 2013 · 7 revisions

This page describes how to configure the gossip instance using YAML.

Configuration

The configuration elements of the gossip instance consist of:

  • The gossip parameters
  • The list of seeds
  • The failure detection factory

Gossip Parameters

All of the parameters controlling the gossip are optional and default to sensible defaults.

  • cleanupCycles - the number of gossip cycles to wait until cleaning up a member marked as failed.
  • commThreads: - the number of dispatch threads used to notify listeners of gossip events
  • endpoint - the host and port (host:port) the gossip instance will listen on. Defaults to "*:0", which means it will bind to all interfaces and randomly choose a port to bind to.
  • gossipInterval - the time between gossip cycles
  • gossipUnit - the time unit of the gossip cycle
  • heartbeatCycle - the number of gossip cycles before a heartbeat is sent
  • hmac - the JCE algorithm name for the hmac used to authenticate and validate the gossip messages
  • hmacKey - the key used for the hmac algorithm
  • quarantineDelay - the number of milliseconds to delay before quarantining a failed member
  • receiveBufferMultiplier - the number of buffers to allocate for receiving messages
  • sendBufferMultiplier - the number of buffers to allocate for sending messages
  • unreachableDelay - the number of milliseconds to delay before declaring a member unreachable

Clone this wiki locally