Name

ocf:mysql-proxy — Manages a MySQL Proxy instance

Synopsis

[OCF_RESKEY_binary=string] [OCF_RESKEY_client_binary=string] [OCF_RESKEY_defaults_file=string] [OCF_RESKEY_proxy_backend_addresses=string] [OCF_RESKEY_proxy_read_only_backend_addresses=string] [OCF_RESKEY_proxy_address=string] [OCF_RESKEY_log_level=string] [OCF_RESKEY_keepalive=string] [OCF_RESKEY_plugins=string] [OCF_RESKEY_admin_address=string] [OCF_RESKEY_admin_username=string] [OCF_RESKEY_admin_password=string] [OCF_RESKEY_admin_lua_script=string] [OCF_RESKEY_test_table=string] [OCF_RESKEY_test_user=string] [OCF_RESKEY_test_passwd=string] [OCF_RESKEY_parameters=string] OCF_RESKEY_pidfile=string mysql-proxy [start | stop | reload | monitor | validate-all | meta-data]

Description

This script manages MySQL Proxy as an OCF resource in a high-availability setup. The default monitor operation will verify that mysql-proxy is running. The level 10 monitor operation is left out intentionally for possible future enhancements in conjunction with the admin plugin. The level 20 monitor operation will perform a SELECT on a given table to verify that the connection to a backend-server is actually working. Tested with MySQL Proxy 0.8.1 and 0.8.3 on Debian 6.0.

Supported Parameters

OCF_RESKEY_binary=Full path to MySQL Proxy binary

Full path to the MySQL Proxy binary. For example, "/usr/sbin/mysql-proxy".

OCF_RESKEY_client_binary=MySQL client binary

Location of the MySQL client binary

OCF_RESKEY_defaults_file=Full path to configuration file

Full path to a MySQL Proxy configuration file. For example, "/etc/mysql-proxy.conf".

OCF_RESKEY_proxy_backend_addresses=MySQL Proxy backend-servers

Address:port of the remote backend-servers (default: 127.0.0.1:3306).

OCF_RESKEY_proxy_read_only_backend_addresses=MySql Proxy read only backend-servers

Address:port of the remote (read only) slave-server (default: ).

OCF_RESKEY_proxy_address=MySQL Proxy listening address

Listening address:port of the proxy-server (default: :4040). You can also specify a socket like "/tmp/mysql-proxy.sock".

OCF_RESKEY_log_level=MySQL Proxy log level.

Log all messages of level (error|warning|info|message|debug|) or higher. An empty value disables logging.

OCF_RESKEY_keepalive=Use keepalive option

Try to restart the proxy if it crashed (default: ). Valid values: true or false. An empty value equals "false".

OCF_RESKEY_plugins=MySQL Proxy plugins

Whitespace separated list of plugins to load (default: ). Note: The admin plugin will be auto-loaded in case you specify an admin_* parameter.

OCF_RESKEY_admin_address=MySQL Proxy admin plugin listening address

Listening address:port of the admin plugin (default: 127.0.0.1:4041). Note: The admin plugin will be auto-loaded in case you specify an admin_* parameter.

OCF_RESKEY_admin_username=MySQL Proxy admin plugin username

Username for the admin plugin (default: ). Required since MySQL Proxy 0.8.1, if the admin plugin is loaded. Note: The admin plugin will be auto-loaded in case you specify an admin_* parameter.

OCF_RESKEY_admin_password=MySQL Proxy admin plugin password

Password for the admin plugin (default: ). Required since MySQL Proxy 0.8.1, if the admin plugin is loaded. Note: The admin plugin will be auto-loaded in case you specify an admin_* parameter.

OCF_RESKEY_admin_lua_script=MySQL Proxy admin plugin lua script

Script to execute by the admin plugin. Required since MySQL Proxy 0.8.1, if the admin plugin is loaded. Note: The admin plugin will be auto-loaded in case you specify an admin_* parameter.

OCF_RESKEY_test_table=MySQL test table

Table to be tested in monitor statement (in database.table notation)

OCF_RESKEY_test_user=MySQL test user

MySQL test user

OCF_RESKEY_test_passwd=MySQL test user password

MySQL test user password

OCF_RESKEY_parameters=MySQL Proxy additional parameters

The MySQL Proxy daemon may be called with additional parameters. Specify any of them here.

OCF_RESKEY_pidfile=PID file

PID file


SUSE Linux Enterprise High Availability Extension High Availability Guide 11 SP3