From 3fd234da07165401d339c59ce15577a2f0465951 Mon Sep 17 00:00:00 2001 From: Arseny Sher Date: Tue, 26 Apr 2022 13:48:42 +0400 Subject: [PATCH] Enable etcd for safekeepers in deploy. --- .circleci/ansible/production.hosts | 1 + .circleci/ansible/staging.hosts | 1 + .circleci/ansible/systemd/safekeeper.service | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.circleci/ansible/production.hosts b/.circleci/ansible/production.hosts index 13224b7cf5..f32b57154c 100644 --- a/.circleci/ansible/production.hosts +++ b/.circleci/ansible/production.hosts @@ -14,3 +14,4 @@ safekeepers console_mgmt_base_url = http://console-release.local bucket_name = zenith-storage-oregon bucket_region = us-west-2 +etcd_endpoints = etcd-release.local:2379 diff --git a/.circleci/ansible/staging.hosts b/.circleci/ansible/staging.hosts index 69f058c2b9..71166c531e 100644 --- a/.circleci/ansible/staging.hosts +++ b/.circleci/ansible/staging.hosts @@ -15,3 +15,4 @@ safekeepers console_mgmt_base_url = http://console-staging.local bucket_name = zenith-staging-storage-us-east-1 bucket_region = us-east-1 +etcd_endpoints = etcd-staging.local:2379 diff --git a/.circleci/ansible/systemd/safekeeper.service b/.circleci/ansible/systemd/safekeeper.service index e75602b609..cac38d8756 100644 --- a/.circleci/ansible/systemd/safekeeper.service +++ b/.circleci/ansible/systemd/safekeeper.service @@ -6,7 +6,7 @@ After=network.target auditd.service Type=simple User=safekeeper Environment=RUST_BACKTRACE=1 ZENITH_REPO_DIR=/storage/safekeeper/data LD_LIBRARY_PATH=/usr/local/lib -ExecStart=/usr/local/bin/safekeeper -l {{ inventory_hostname }}.local:6500 --listen-http {{ inventory_hostname }}.local:7676 -p {{ first_pageserver }}:6400 -D /storage/safekeeper/data +ExecStart=/usr/local/bin/safekeeper -l {{ inventory_hostname }}.local:6500 --listen-http {{ inventory_hostname }}.local:7676 -p {{ first_pageserver }}:6400 -D /storage/safekeeper/data --broker-endpoints={{ etcd_endpoints }} ExecReload=/bin/kill -HUP $MAINPID KillMode=mixed KillSignal=SIGINT