diff options
| author | Michael Klishin <mklishin@pivotal.io> | 2016-04-20 09:03:52 +0300 |
|---|---|---|
| committer | Michael Klishin <mklishin@pivotal.io> | 2016-04-20 09:03:52 +0300 |
| commit | eb1f6e5cdd8e53164135c10dc79f9a9496d53755 (patch) | |
| tree | e0e429f8adbd81e378c776547c462669eee14fcc /docs | |
| parent | 628d803b95a6aa93e82e6b6e53dce70a7513a522 (diff) | |
| parent | 57c4a7af72268b8cf88efd2ec774616dd14aa31f (diff) | |
| download | rabbitmq-server-git-eb1f6e5cdd8e53164135c10dc79f9a9496d53755.tar.gz | |
Merge branch 'stable' into rabbitmq-server-343bis
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/README-for-packages | 4 | ||||
| -rw-r--r-- | docs/rabbitmq-server.service.example | 17 | ||||
| -rw-r--r-- | docs/set_rabbitmq_policy.sh.example | 4 |
3 files changed, 25 insertions, 0 deletions
diff --git a/docs/README-for-packages b/docs/README-for-packages index 35a1523ac3..f26889b640 100644 --- a/docs/README-for-packages +++ b/docs/README-for-packages @@ -18,3 +18,7 @@ An example configuration file is provided in the same directory as this README. Copy it to /etc/rabbitmq/rabbitmq.config to use it. The RabbitMQ server must be restarted after changing the configuration file. + +An example policy file for HA queues is provided in the same directory +as this README. Copy and chmod +x it to +/usr/local/sbin/set_rabbitmq_policy to use it with the Pacemaker OCF RA. diff --git a/docs/rabbitmq-server.service.example b/docs/rabbitmq-server.service.example new file mode 100644 index 0000000000..5a8f1cd73e --- /dev/null +++ b/docs/rabbitmq-server.service.example @@ -0,0 +1,17 @@ +# systemd unit example +[Unit] +Description=RabbitMQ broker +After=syslog.target network.target + +[Service] +Type=notify +User=rabbitmq +Group=rabbitmq +NotifyAccess=all +TimeoutStartSec=3600 +WorkingDirectory=/var/lib/rabbitmq +ExecStart=/usr/lib/rabbitmq/bin/rabbitmq-server +ExecStop=/usr/lib/rabbitmq/bin/rabbitmqctl stop + +[Install] +WantedBy=multi-user.target diff --git a/docs/set_rabbitmq_policy.sh.example b/docs/set_rabbitmq_policy.sh.example new file mode 100644 index 0000000000..f46e901ad5 --- /dev/null +++ b/docs/set_rabbitmq_policy.sh.example @@ -0,0 +1,4 @@ +# This script is called by rabbitmq-server-ha.ocf during RabbitMQ +# cluster start up. It is a convenient place to set your cluster +# policy here, for example: +# ${OCF_RESKEY_ctl} set_policy ha-all "." '{"ha-mode":"all", "ha-sync-mode":"automatic"}' --apply-to all --priority 0 |
