Commit graph

16 commits

Author SHA1 Message Date
Kevin Fenzi
d14d971351 rabbitmq/server: fix template to cluster to the right nodes
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-05-20 14:31:19 -07:00
Kevin Fenzi
93cfa0134d rabbitmq: adjust things to avoid messy partitions
We have been having the cluster fall over for still unknown reasons,
but this patch should at least help prevent them:

first we increase the net_ticktime parameter from it's default of 60 to 120.
rabbitmq sends 4 'ticks' to other cluster members over this time and if 25%
of them are lost it assumes that cluster member is down. All these vm's are
on the same net and in the same datacenter, but perhaps heavy load
from other vm's causes them to sometimes not get a tick in time?
http://www.rabbitmq.com/nettick.html

Also, set our partitioning strategy to autoheal. Currently if some cluster
member gets booted out, it gets paused, and stops processing at all.
With autoheal it will try and figure out a 'winning' partition and restart
all the nodes that are not in that partition.
https://www.rabbitmq.com/partitions.html

Hopefully the first thing will make partitions less likely and the second
will make them repair without causing massive pain to the cluster.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:26 +02:00
Aurélien Bompard
01da7c30b6 Restart rabbitmq when a config file changes
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2020-04-24 21:34:20 +02:00
Aurélien Bompard
eebab27357 RabbitMQ: handle partitions automatically
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
2020-04-24 21:34:20 +02:00
Aurélien Bompard
9a108064c7 Oh crap Erlang does not use # for comments 2018-10-05 09:50:40 +00:00
Aurélien Bompard
e90ec28ebe The RabbitMQ ansible modules can't use https yet.
Disable SSL on the management api, and mitigate the security risk by
only listening on localhost.
2018-10-05 09:42:04 +00:00
Patrick Uiterwijk
29c479c291 Use just the common name from client certs
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-08-17 14:19:33 +00:00
Patrick Uiterwijk
4458ed8d21 We configure long (FQDN) names
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-08-02 21:08:24 +00:00
Patrick Uiterwijk
86ff0d1a7f Can't end with a comma here. Rabbitmq grumpy
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-08-02 20:59:24 +00:00
Patrick Uiterwijk
8d0b10e81b Set a node name
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-08-02 20:57:40 +00:00
Patrick Uiterwijk
9a4edf5f64 Add missing comma
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-08-02 20:53:09 +00:00
Patrick Uiterwijk
34d54c4be7 Fix paths to certs
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-08-02 20:44:40 +00:00
Patrick Uiterwijk
c6a33bd8fb Build combined config
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-08-02 20:43:17 +00:00
Patrick Uiterwijk
37131d4ef5 We will need custom env
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-08-02 20:38:39 +00:00
Patrick Uiterwijk
35b4080a58 Import some more rabbitmq cluster config
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-08-02 20:23:16 +00:00
Patrick Uiterwijk
5d8e972157 Start initial rabbitmq_Cluster role
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2018-08-02 20:04:06 +00:00