wsrep_provider_options
The following options can be set as part of the Galera wsrep_provider_options variable. Dynamic options can be changed while the server is running.
Options need to be provided as a semicolon (;) separated list on a single line. Options that are not explicitly set are set to their default value.
Note that before Galera 3, the repl tag was named replicator.
Description: Specifies the data directory
Description: For internal use. Should not be manually set.
Default: 127.0.0.1 (detected network address)
Description: For internal use. Should not be manually set.
cert.log_conflicts
Description: Certification failure log details.
cert.optimistic_pa
Description: Controls parallel application of actions on the replica. If set, the full range of parallelization as determined by the certification algorithm is permitted. If not set, the parallel applying window will not exceed that seen on the primary, and applying will start no sooner than after all actions it has seen on the master are committed.
Description: Enable debugging.
Description: Number of entries the node permits for a given delayed node before triggering the Auto Eviction protocol. An entry is added to a delayed list for each delayed response from a node. If set to 0, the default, the Auto Eviction protocol is disabled for this node. See for more.
evs.causal_keepalive_period
Description: Used by the developers only, and not manually serviceable.
evs.debug_log_mask
Description: Controls EVS debug logging. Only effective when is on.
evs.delay_margin
Description: Time that response times can be delayed before this node adds an entry to the delayed list. See . Must be set to a higher value than the round-trip delay time between nodes.
evs.delayed_keep_period
Description: Time that this node requires a previously delayed node to remain responsive before being removed from the delayed list. See .
Description: When set to the gcomm UUID of a node, that node is evicted from the cluster. When set to an empty string, the eviction list is cleared on the node where it is set. See .
evs.inactive_check_period
Description: Frequency of checks for peer inactivity (looking for nodes with delayed responses), after which nodes may be added to the delayed list, and later evicted.
evs.inactive_timeout
Description: Time limit that a node can be inactive before being pronounced as dead.
evs.info_log_mask
Description: Controls extra EVS info logging. Bits:
0x1 – extra view change information
0x2 – extra state change information
evs.install_timeout
Description: Timeout on waits for install message acknowledgments. Replaces evs.consensus_timeout.
evs.join_retrans_period
Description: Time period for how often retransmission of EVS join messages when forming cluster membership should occur.
evs.keepalive_period
Description: How often keepalive signals should be transmitted when there's no other traffic.
evs.max_install_timeouts
Description: Number of membership install rounds to attempt before timing out. The total rounds will be this value plus two.
evs.send_window
Description: Maximum number of packets that can be replicated at a time, Must be more than , which applies to data packets only (double is recommended). In WAN environments can be set much higher than the default, for example 512.
evs.stats_report_period
Description: Reporting period for EVS statistics.
evs.suspect_timeout
Description: A node will be suspected to be dead after this period of inactivity. If all nodes agree, the node is dropped from the cluster before is reached.
evs.use_aggregate
Description: If set to true (the default), small packets will be aggregated into one where possible.
evs.user_send_window
Description: Maximum number of data packets that can be replicated at a time. Must be smaller than (half is recommended). In WAN environments can be set much higher than the default, for example 512.
Description: EVS protocol version. Defaults to 0 for backward compatibility. Certain EVS features (e.g. auto eviction) require more recent versions.
evs.view_forget_timeout
Description: Time after which past views will be dropped from the view history.
Description: Directory where GCache files are placed.
Default: The working directory
gcache.keep_pages_size
Description: Total size of the page storage pages for caching. One page is always present if only page storage is enabled.
gcache.mem_size
Description: Maximum size of size of the malloc() store for setups that have spare RAM.
Description: Gcache ring buffer storage file name. By default placed in the working directory, changing to another location or partition can reduce disk IO.
gcache.page_size
Description: Size of the page storage page files. These are prefixed by gcache.page. Can be set to as large as the disk can handle.
Description: Whether or not gcache recovery takes place when the node starts up. If it is possible to recover gcache, the node can then provide IST to other joining nodes, which assists when the whole cluster is restarted.
Description: Gcache ring buffer storage size (the space the node uses for caching write sets), preallocated on startup.
gcomm.thread_prio
Description: Gcomm thread policy and priority (in the format policy:priority. Priority is an integer, while policy can be one of:
fifo: First-in, first-out scheduling. Always preempt other, batch or idle threads and can only be preempted by other fifo threads of a higher priority or blocked by an I/O request.
Description: If set to a value greater than zero (the default), debug statistics about SST flow control will be posted each timegcs.fc_master_slave after the specified number of writesets.
Description:Fraction below which if the recv queue drops below, replication resumes.
Description: If the recv queue exceeds this many writesets, replication is paused. Can increase greatly in master-slave setups. Replication will resume again according to the setting.
gcs.fc_master_slave
Description: Whether to assume that the cluster only contains one master. Deprecated since Galera 4.10 (, , , , ) - see
gcs.fc_single_primary
Description: Defines whether there is more than one source of replication.
As the number of nodes in the cluster grows, the larger the calculated gcs.fc_limit gets. At the same time, the number of writes from the nodes increases.
When this parameter 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 parameter is modified by the square root of the cluster size, that is, in a four-node cluster it is two times higher than the base value. This is done to compensate for the increasing replication rate noise.
gcs.max_packet_size
Description: Maximum packet size, after which writesets become fragmented.
gcs.max_throttle
Description: How much we can throttle replication rate during state transfer (to avoid running out of memory). Set it to 0.0 if stopping replication is acceptable for the sake of completing state transfer.
gcs.recv_q_hard_limit
Description: Maximum size of the recv queue. If exceeded, the server aborts. Half of available RAM plus swap is a recommended size.
gcs.recv_q_soft_limit
Description: Fraction of after which replication rate is throttled. The rate of throttling increases linearly from zero (the regular, varying rate of replication) at and below csrecv_q_soft_limit to one (full throttling) at
Description: Whether or not the rest of the cluster should stay in sync with the donor. If set to YES (NO is default), if the donor is blocked by state transfer, the whole cluster is also blocked.
gmcast.listen_addr
Description: Address Galera listens for connections from other nodes. Can be used to override the default port to listen, which is obtained from the connection address.
Specifying a hostname isn't supported. Use an IP number instead.
Note that supports TCP, SSL, and hostnames.
gmcast.mcast_addr
Description: Not set by default, but if set, UDP multicast will be used for replication. Must be identical on all nodes.For example, gmcast.mcast_addr=239.192.0.11
gmcast.mcast_ttl
Description: Multicast packet TTL (time to live) value.
gmcast.peer_timeout
Description: Connection timeout for initiating message relaying.
Description: Defines the segment to which the node belongs. By default, all nodes are placed in the same segment (0). Usually, you would place all nodes in the same datacenter in the same segment. Galera protocol traffic is only redirected to one node in each segment, and then relayed to other nodes in that same segment, which saves cross-datacenter network traffic at the expense of some extra latency. State transfers are also, preferably but not exclusively, taken from the same segment. If there are no nodes available in the same segment, state transfer will be taken from a node in another segment.
gmcast.time_wait
Description: Waiting time before allowing a peer that was declared outside of the stable view to reconnect.
Description: Deprecated option. Gmcast version.
Description: Address for listening for Incremental State Transfer.
pc.announce_timeout
Description: Period of time for which cluster joining announcements are sent every 1/2 second.
Description: For debug purposes, by default false (true in earlier releases), indicates whether to checksum replicated messages on PC level. Safe to turn off.
pc.ignore_quorum
Description: Whether to ignore quorum calculations, for example when a master splits from several slaves, it will remain in operation if set to true (false is default). Use with care however, as in master-slave setups, slaves will not automatically reconnect to the master if set.
Description: Whether to permit updates to be processed even in the case of split brain (when a node is disconnected from its remaining peers). Safe in master-slave setups, but could lead to data inconsistency in a multi-master setup.
Description: Time that the PC protocol waits for EVS termination.
Description: If set to true (false is default), when there are primary component conficts, the most recent component will override the older.
Description: If set to true (the default), the Primary Component state is stored on disk and in the case of a full cluster crash (e.g power outages), automatic recovery is then possible. Subsequent graceful full cluster restarts will require explicit bootstrapping for a new Primary Component.
Description: Deprecated option. PC protocol version.
Description: When set to true, the default, the node will wait for a primary component for the period of time specified by . Used to bring up non-primary components and make them primary using .
pc.wait_prim_timeout
Description: Ttime to wait for a primary component. See .
Description: Node weight, used for quorum calculation. See the Codership article .
protonet.backend
Description: Deprecated option. Transport backend to use. Only ASIO is supported currently.
protonet.version
Description: Deprecated option. Protonet version.
repl.causal_read_timeout
Description: Timeout period for causal reads.
repl.commit_order
Description: Whether or not out-of-order committing is permitted, and under what conditions. By default it is not permitted, but setting this can improve parallel performance.
0 BYPASS: No commit order monitoring is done (useful for measuring the performance penalty).
1 OOOC: Out-of-order committing is permitted for all transactions.
repl.key_format
Description: Format for key replication. Can be one of:
FLAT8 - shorter key with a higher probability of false positives when matching
FLAT16 - longer key with a lower probability of false positives when matching
repl.max_ws_size
socket.checksum
Description: Method used for generating checksum. Note: If Galera 25.2.x and 25.3.x are both being used in the cluster, MariaDB with Galera 25.3.x must be started with wsrep_provider_options='socket.checksum=1' in order to make it backward compatible with Galera v2. Galera wsrep providers other than 25.3.x or 25.2.x are not supported.
Description: Allow both encrypted and unencrypted connections between nodes. Typically this should be set to false (the default), when set to true encrypted connections will still be preferred, but will fall back to unencrypted connections when encryption is not possible, e.g. not enabled on all nodes yet. Needs to be true on all nodes when wanting to enable or disable encryption via a rolling restart. As this can't be changed at runtime a rolling restart to enable or disable encryption may need three restarts per node in total: one to enable socket.dynamic on each node, one to change the actual encryption settings on each node, and a final round to change socket.dynamic back to false.
socket.recv_buf_size
Description: Size in bytes of the receive buffer used on the network sockets between nodes, passed on to the kernel via the SO_RCVBUF socket option.
socket.send_buf_size
Description: Size in bytes of the send buffer used on the network sockets between nodes, passed on to the kernel via the SO_SNDBUF socket option.
Description: Explicitly enables TLS usage by the wsrep Provider.
Description: Path to Certificate Authority (CA) file. Implicitly enables the option.
socket.ssl_cert
Description: Path to TLS certificate. Implicitly enables the option.
socket.ssl_cipher
Description: TLS cipher to use. Implicitly enables the option. Since defaults to the value of the system variable.
Default: system default, before defaults to AES128-SHA.
socket.ssl_compression
Description: Compression to use on TLS connections. Implicitly enables the option.
Description: Path to TLS key file. Implicitly enables the option.
socket.ssl_password_file
Description: Path to password file to use in TLS connections. Implicitly enables the option.
This page is licensed: CC BY-SA / Gnu FDL