From 82b7f0e2cc7de1599f460fb72c61571a4f35b771 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E6=8B=93=E4=B9=89?= Date: Fri, 16 Aug 2024 09:41:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../use-ansible-playbook-to-install-rabbitmq-cluster.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/service_config/use-ansible-playbook-to-install-rabbitmq-cluster.md b/service_config/use-ansible-playbook-to-install-rabbitmq-cluster.md index 43d7b53..f7677e1 100644 --- a/service_config/use-ansible-playbook-to-install-rabbitmq-cluster.md +++ b/service_config/use-ansible-playbook-to-install-rabbitmq-cluster.md @@ -313,7 +313,13 @@ virtual host选自建的,下面name名字随意起的,pattern 为 ^ 表示 ha-sync-mode 选automatic,默认新加入的镜像不会同步消息,即默认的选项是manual,如果不加此选项,rabbitmq node节点重启后,会提示unsynchronised mirrors +### 设置rabbitmq的内存水位线high watermark +vm_memory_high_watermark 默认值为0.4,就是说2G的内存,可以使用的是2G * 0.4 = 800M,超过800M,就会限制生产者,[rabbitmq 内存告警阈值](https://rabbitmq.org.cn/docs/memory) + +``` +rabbitmqctl set_vm_memory_high_watermark 0.8 +``` 2016年04月29日 于 [linux工匠](https://bbotte.github.io/) 发表