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.
Key |
Description |
---|---|
cluster_network |
Set this key to desired CIDR to configure cluster network |
Supported config keys can be configured using the ‘set’ command:
$ sudo microceph cluster config set cluster_network 10.5.0.0/16
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 | +---+-----------------+-------------+
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 | +---+-----------------+-------------+
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