Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Driver hb.disk

Minimal configlet:

[hb#1]
type = disk
dev = /dev/mapper/36589cfc000000e03957c51dabab8373a

Minimal setup command:

om node set \
	--kw="type=disk" \
	--kw="dev=/dev/mapper/36589cfc000000e03957c51dabab8373a"

Supported keywords:

  • dev
  • interval
  • max_peers
  • max_slots
  • timeout
  • type

Keyword dev

required:    true
scopable:    true

Example:

dev=/dev/mapper/36589cfc000000e03957c51dabab8373a

Description:

The device to write the heartbeats to and read from.

It must be,

  • Dedicated to the daemon use.
  • Sized 1MB for metadata + 1MB/node.

Keyword interval

required:    false
scopable:    true
default:     5s
convert:     duration

Description:

The maximum interval between 2 heartbeat payload sends.

The actual interval is not fixed, because the daemon tries to send the message as soon as it has something to notify. A minimum interval protects the node from saturating the network and cpu with the daemon synchronization workload.

Keyword max_peers

required:    false
scopable:    false
convert:     int

Example:

max_peers=8

Description:

Keyword max_slots

required:    false
scopable:    false
default:     1024
convert:     int

Example:

max_slots=1024

Description:

The maximum number of slots that can be written to the HB disk device.

It should be set to at least twice the number of cluster nodes using the HB disk device.

Do not modify this value after first activation. Do not modify default value if the hb disk is used by multiple clusters.

Keyword timeout

required:    false
scopable:    true
default:     15s
convert:     duration

Description:

The delay since the last received heartbeat from a node before considering this node is gone.

Keyword type

required:    true
scopable:    false
candidates:  unicast, multicast, disk, relay

Description:

The heartbeat driver name.