8.2.4 Starting and Stopping MySQL Fabric Nodes

To start or stop MySQL Fabric nodes, use the mysqlfabric command (see Section 8.4, “The mysqlfabric Utility”). This command requires that MySQL Fabric and Connector/Python be installed, and assumes that you have set up the backing store.

The following command starts a MySQL Fabric node and should be run on one of the servers listed in the [protocol.xmlrpc] section in the configuration file.

shell> mysqlfabric manage start

This command starts a MySQL Fabric node on the machine where it is executed and prints the log to standard output. Thus, this is the machine where you installed the MySQL Fabric and Connector/Python software and is also the machine listed in the configuration file [protocol.xmlrpc] section. To follow the examples in the quick-start section, you must use localhost for the host name.

To put the MySQL Fabric node in the background, add the --daemonize option. However, this will divert the log to the syslog file. While experimenting with MySQL Fabric, you may find it more convenient not to use --daemonize so that the log is written to your terminal.

Use this command to stop a MySQL Fabric node:

shell> mysqlfabric manage stop

This command contacts the MySQL Fabric server running at the address mentioned in the [protocol.xmlrpc] section and instructs it to stop.