gcs.fc_single_primary

Overview

In 11.4 ES, 10.6 ES, 10.6 CS, 10.5 ES, 10.5 CS, 10.4 ES, 10.4 CS:

Defines whether there is more than one source of replication

In 10.3 ES, 10.3 CS, 10.2 ES, 10.2 CS:

Not present

The wsrep_provider_options system variable applies to MariaDB Enterprise Cluster, powered by Galera and to Galera Cluster available with MariaDB Community Server. This page relates specifically to the gcs.fc_single_primary wsrep_provider_options.

See also: wsrep Provider Options for MariaDB Enterprise Server 11.4, in 10.6 ES, in 10.5 ES, in 10.4 ES, in 10.3 ES, in 10.2 ES, in 10.6 CS, in 10.5 CS, in 10.4 CS, in 10.3 CS, and in 10.2 CS

USAGE

DETAILS

As the number of nodes in the cluster grows, the larger the calculated gcs.fc_limit gets. The number of writes from the nodes also increases.

When the gcs.fc_single_primary option value is set to NO (multi-primary), the gcs.fc_limit parameter is dynamically modified to give more margin for each node to be a bit further behind applying writes.

The gcs.fc_limit option is modified by the square root of the cluster size. For example, in a four-node cluster the gcs.fc_limit is two times higher than the base value. This is done to compensate for the increasing replication rate noise.

Attribute

Value

Option Name

gcs.fc_single_primary

Default Value

NO

Dynamic

NO

Debug

NO

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

Display Current Value

wsrep_provider_options define optional settings the node passes to the wsrep provider.

To display current wsrep_provider_options values:

SHOW GLOBAL VARIABLES LIKE 'wsrep_provider_options';

The expected output will display the option and the value. Options with no default value, for example SSL options, will not be displayed in the output.

Set in Configuration File

When changing a setting for a wsrep_provider_options in the config file, you must list EVERY option that is to have a value other than the default value. Options that are not explicitly listed are reset to the default value.

Options are set in the my.cnf configuration file. Use the ; delimiter to set multiple options.

The configuration file must be updated on each node. A restart to each node is needed for changes to take effect.

Use a quoted string that includes every option where you want to override the default value. Options that are not in the list will reset to their default value.

To set the option in the configuration file:

wsrep_provider_options='gcs.fc_single_primary=YES;gcache.debug=YES;gcs.fc_limit=NO;socket.send_buf_size=NO;evs.keepalive_period=PT3S'

Set Dynamically

The gcs.fc_single_primary option cannot be set dynamically. It can only be set in the configuration file.

Trying to change a non-dynamic option with SET results in an error:

ERROR 1210 (HY000): Incorrect arguments to SET

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

11.4 Enterprise

  • Not present.

10.6 Enterprise

  • Added in MariaDB Enterprise Server 10.6.5-2.

10.6 Community

  • Added in MariaDB Community Server 10.6.6.

10.5 Enterprise

  • Added in MariaDB Enterprise Server 10.5.13-9.

10.5 Community

  • Added in MariaDB Community Server 10.5.14.

10.4 Enterprise

  • Added in MariaDB Enterprise Server 10.4.22-14.

10.4 Community

  • Added in MariaDB Community Server 10.4.23.

10.3 Enterprise

  • Not present.

10.3 Community

  • Not present.

10.2 Enterprise

  • Not present.

10.2 Community

  • Not present.

EXTERNAL REFERENCES