wsrep_notify_cmd

Command to execute upon changes in node state or cluster membership.

See also: System Variables for MariaDB Enterprise Server 10.6, in 10.5 ES, and in 10.4 ES

DETAILS

Cluster Nodes track changes in cluster membership and their own states. Whenever changes occur, such as when nodes become synchronized with the cluster, join, send or receive State Snapshot Transfers (SST), the node calls a notification script. The node passes to the notification script information regarding its current state and the change.

This system variable specifies the path to the script the node executes.

PARAMETERS

Dynamic

No

Scope

Global

Data Type

VARCHAR

Default Value

"" (an empty string)

SKYSQL

Cloud

SkySQL Topology

ES Ver

Default

AWS

HA (Primary/Replica)

10.4

"" (an empty string)

AWS

HA (Primary/Replica)

10.5

"" (an empty string)

AWS

Transactional Standalone

10.4

"" (an empty string)

AWS

Transactional Standalone

10.5

"" (an empty string)

AWS

Distributed Transactions

10.5

Not present

GCP

ColumnStore

10.5

"" (an empty string)

GCP

ColumnStore Multi

10.5

"" (an empty string)

GCP

Galera

10.4

"" (an empty string)

GCP

Galera

10.5

"" (an empty string)

GCP

HA (Primary/Replica)

10.4

"" (an empty string)

GCP

HA (Primary/Replica)

10.5

"" (an empty string)

GCP

HTAP

10.5

"" (an empty string)

GCP

Transactional Standalone

10.4

"" (an empty string)

GCP

Transactional Standalone

10.5

"" (an empty string)

GCP

Distributed Transactions

10.5

Not present

EXAMPLES

Configuration

Set the notification script using the options file:

[mariadb]
wsrep_notify_cmd=/usr/bin/example_cluster_notification.sh

Show Configuration

To view the current configuration, use the SHOW VARIABLES statement:

SHOW VARIABLES LIKE "wsrep_notify_cmd";
+------------------+------------------------------------------+
| Variable_name    | Value                                    |
+------------------+------------------------------------------+
| wsrep_notify_cmd | /usr/bin/example_cluster_notification.sh |
+------------------+------------------------------------------+

CHANGE HISTORY

Release Series

History

10.6 Enterprise

  • Present starting in MariaDB Enterprise Server 10.6.4-1.

10.5 Enterprise

  • Present starting in MariaDB Enterprise Server 10.5.3-1.

  • Dynamic changed in MariaDB Enterprise Server 10.5.9-6 from Yes to No

10.4 Enterprise

  • Present starting in MariaDB Enterprise Server 10.4.6-1.

  • Dynamic changed in MariaDB Community Server 10.4.18-11 from Yes to No

EXTERNAL REFERENCES