From 29b6796c2485f5f3cd2fb692450ebe6cb3c7ec06 Mon Sep 17 00:00:00 2001 From: Christian Schwede Date: Thu, 13 Oct 2016 11:08:11 +0200 Subject: [PATCH] Disable Swift auditors and replicators on the undercloud Swift is using only a single replica on the undercloud. Therefore recovering from a corrupted or lost object is not possible, and running replicators and auditors only wastes resources. Closes-Bug: 1632885 Change-Id: Ic93082282e9ea481c13832f8ce1265a47f0ef3d5 (cherry picked from commit 312f42a8c0cc5975e1338225d6b7ca6c9c30e6a8) --- .../puppet-stack-config/puppet-stack-config.pp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/elements/puppet-stack-config/puppet-stack-config.pp b/elements/puppet-stack-config/puppet-stack-config.pp index ce74d5f96..5de2e496a 100644 --- a/elements/puppet-stack-config/puppet-stack-config.pp +++ b/elements/puppet-stack-config/puppet-stack-config.pp @@ -540,3 +540,19 @@ service { 'sshd': ensure => running, enable => true, } + +# Swift is using only a single replica on the undercloud. Therefore recovering +# from a corrupted or lost object is not possible, and running replicators and +# auditors only wastes resources. +$needless_services = [ + 'swift-account-auditor', + 'swift-account-replicator', + 'swift-container-auditor', + 'swift-container-replicator', + 'swift-object-auditor', + 'swift-object-replicator'] + +Service[$needless_services] { + enable => false, + ensure => stopped, +}