1OCF_HEARTBEAT_MYSQL() OCF_HEARTBEAT_MYSQL()
2
3
4
6 ocf_heartbeat_mysql-proxy - Manages a MySQL Proxy daemon
7
9 mysql-proxy [start | stop | monitor | meta-data | validate-all]
10
12 This script manages MySQL Proxy as an OCF resource in a
13 high-availability setup. Tested with MySQL Proxy 0.7.0 on Debian 5.0.
14
16 binary
17 Full path to the MySQL Proxy binary. For example,
18 "/usr/sbin/mysql-proxy". (optional, string, default
19 /usr/sbin/mysql-proxy)
20
21 defaults_file
22 Full path to a MySQL Proxy configuration file. For example,
23 "/etc/mysql-proxy.conf". (unique, optional, string, no default)
24
25 proxy_backend_addresses
26 Address:port of the remote backend-servers (default:
27 127.0.0.1:3306). (optional, string, default 127.0.0.1:3306)
28
29 proxy_read_only_backend_addresses
30 Address:port of the remote (read only) slave-server (default: ).
31 (optional, string, default 127.0.0.1:3306)
32
33 proxy_address
34 Listening address:port of the proxy-server (default: :4040). You
35 can also specify a socket like "/tmp/mysql-proxy.sock". (optional,
36 string, default :4040)
37
38 log_level
39 Log all messages of level (error|warning|info|message|debug|) or
40 higher. An empty value disables logging. (optional, string, no
41 default)
42
43 keepalive
44 Try to restart the proxy if it crashed (default: ). Valid values:
45 true or false. An empty value equals "false". (optional, string,
46 no default)
47
48 admin_address
49 Listening address:port of the admin-server (default:
50 127.0.0.1:4041). (optional, string, default 127.0.0.1:4041)
51
52 admin_username
53 Username to allow to log in (default: ). (optional, string, no
54 default)
55
56 admin_password
57 Password to allow to log in (default: ). (optional, string, no
58 default)
59
60 admin_lua_script
61 Script to execute by the admin plugin. (optional, string, no
62 default)
63
64 parameters
65 The MySQL Proxy daemon may be called with additional parameters.
66 Specify any of them here. (optional, string, no default)
67
68 pidfile
69 PID file (unique, optional, string, default
70 /var/run/heartbeat/rsctmp/mysql-proxy-default.pid)
71
73 This resource agent supports the following actions (operations):
74
75 start
76 Starts the resource. Suggested minimum timeout: 30s.
77
78 stop
79 Stops the resource. Suggested minimum timeout: 30s.
80
81 reload
82 Suggested minimum timeout: 30s.
83
84 monitor
85 Performs a detailed status check. Suggested minimum timeout: 20s.
86 Suggested interval: 60s.
87
88 validate-all
89 Performs a validation of the resource configuration. Suggested
90 minimum timeout: 30s.
91
92 meta-data
93 Retrieves resource agent metadata (internal use only). Suggested
94 minimum timeout: 5s.
95
97 The following is an example configuration for a mysql-proxy resource
98 using the crm(8) shell:
99
100 primitive p_mysql-proxy ocf:heartbeat:mysql-proxy \
101 op monitor depth="0" timeout="20s" interval="60s"
102
104 http://www.linux-ha.org/wiki/mysql-proxy_(resource_agent)
105
107 Linux-HA contributors (see the resource agent source for information
108 about individual authors)
109
110
111
112 OCF_HEARTBEAT_MYSQL()