From b1f707d76f0e76fe839e350efc120ebf9211a0bb Mon Sep 17 00:00:00 2001 From: pengdake <19921207pq@gmail.com> Date: Sun, 14 Jan 2018 07:32:51 +0800 Subject: [PATCH] Add zun configuration about oslo.concurrency Zun use oslo.concurrency to achieve safely running multi-thread, multi-process applications. The lock_path is directory to use for lock files. If external locks are used, lock path must be set. Change-Id: I4f667d9699ec2231722bcfd7c5f84ba47fc8465c --- ansible/roles/zun/templates/zun.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ansible/roles/zun/templates/zun.conf.j2 b/ansible/roles/zun/templates/zun.conf.j2 index 60f3aa0462..a2508770b3 100644 --- a/ansible/roles/zun/templates/zun.conf.j2 +++ b/ansible/roles/zun/templates/zun.conf.j2 @@ -98,3 +98,6 @@ hmac_keys = {{ osprofiler_secret }} connection_string = elasticsearch://{{ elasticsearch_address }}:{{ elasticsearch_port }} {% endif %} {% endif %} + +[oslo_concurrency] +lock_path = /var/lib/zun/tmp