From c7eecd5d7cf0d05cde8493c69f2dce3f208574e8 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Sat, 25 May 2024 13:26:26 +0200 Subject: [PATCH] Define unique hostname for QManager Due to the shortcoming of QManager implementation [1], in case of uWSGI usage on metal hosts, the flow ends up with having the same hostname/processname set, making services to fight over same file under SHM. In order to avoid this, we prepend the hostname with a service_name. We can not change processname instead, since it will lead to the fight between different processes of the same service. [1] https://bugs.launchpad.net/oslo.messaging/+bug/2065922 Change-Id: I997c9692060b75f520cb94eacb69520b22a2f87a --- templates/designate.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/designate.conf.j2 b/templates/designate.conf.j2 index 9001c6c..2851d6e 100644 --- a/templates/designate.conf.j2 +++ b/templates/designate.conf.j2 @@ -35,6 +35,9 @@ rabbit_quorum_queue = {{ designate_oslomsg_rabbit_quorum_queues }} rabbit_transient_quorum_queue = {{ designate_oslomsg_rabbit_transient_quorum_queues }} rabbit_qos_prefetch_count = {{ designate_oslomsg_rabbit_qos_prefetch_count }} use_queue_manager = {{ designate_oslomsg_rabbit_queue_manager }} +{% if designate_oslomsg_rabbit_queue_manager %} +hostname = {{ [ansible_facts['hostname'], designate_service_name] | join('-') }} +{% endif %} rabbit_stream_fanout = {{ designate_oslomsg_rabbit_stream_fanout }} rabbit_quorum_delivery_limit = {{ designate_oslomsg_rabbit_quorum_delivery_limit }} rabbit_quorum_max_memory_bytes = {{ designate_oslomsg_rabbit_quorum_max_memory_bytes }}