Configuring Cluster network

If you configure a cluster network, OSDs will route heartbeat, object replication and recovery traffic over the cluster network. This may improve performance compared to using a single network.

The MicroCeph cluster configuration CLI supports setting, getting, resetting and listing supported config keys mentioned below.

Supported Config Keys

Key

Description

cluster_network

Set this key to desired CIDR to configure cluster network

  1. Supported config keys can be configured using the ‘set’ command:

$ sudo microceph cluster config set cluster_network 10.5.0.0/16
  1. Config value for a particular key could be queried using the ‘get’ command:

$ sudo microceph cluster config get cluster_network
+---+-----------------+-------------+
| # |       KEY       |     VALUE   |
+---+-----------------+-------------+
| 0 | cluster_network | 10.5.0.0/16 |
+---+-----------------+-------------+
  1. A list of all the configured keys can be fetched using the ‘list’ command:

$ sudo microceph cluster config list
+---+-----------------+-------------+
| # |       KEY       |     VALUE   |
+---+-----------------+-------------+
| 0 | cluster_network | 10.5.0.0/16 |
+---+-----------------+-------------+
  1. Resetting a config key (i.e. setting the key to its default value) can performed using the ‘reset’ command:

$ sudo microceph cluster config reset cluster_network
$ sudo microceph cluster config list
+---+-----+-------+
| # | KEY | VALUE |
+---+-----+-------+

For more explanations and implementation details refer to explanation