Additional services to support multiple swift storage nodes

Activate the following services
swift-account-auditor
swift-account-reaper
swift-account-replicator
swift-container-auditor
swift-container-replicator
swift-container-sync
swift-container-updater
swift-object-auditor
swift-object-replicator
swift-object-updater

Change-Id: Ie85da1bb5fe7c4224e8e8c79b806fdb336bf5fa4
This commit is contained in:
Richard Su 2014-02-25 23:59:38 -08:00
parent 1105e565a0
commit 74495cb922
6 changed files with 68 additions and 1 deletions

View File

@ -2,4 +2,4 @@
set -eux
install -d -o swift -g swift /srv/node /var/cache/swift
install -d -o swift -g swift /srv/node

View File

@ -3,5 +3,17 @@
set -eux
os-svc-daemon swift-account swift swift-account-server /etc/swift/account-server.conf
os-svc-daemon swift-account-auditor swift swift-account-auditor /etc/swift/account-server.conf
os-svc-daemon swift-account-reaper swift swift-account-reaper /etc/swift/account-server.conf
os-svc-daemon swift-account-replicator swift swift-account-replicator /etc/swift/account-server.conf
os-svc-daemon swift-container swift swift-container-server /etc/swift/container-server.conf
os-svc-daemon swift-container-auditor swift swift-container-auditor /etc/swift/container-server.conf
os-svc-daemon swift-container-replicator swift swift-container-replicator /etc/swift/container-server.conf
os-svc-daemon swift-container-sync swift swift-container-sync /etc/swift/container-server.conf
os-svc-daemon swift-container-updater swift swift-container-updater /etc/swift/container-server.conf
os-svc-daemon swift-object swift swift-object-server /etc/swift/object-server.conf
os-svc-daemon swift-object-auditor swift swift-object-auditor /etc/swift/object-server.conf
os-svc-daemon swift-object-replicator swift swift-object-replicator /etc/swift/object-server.conf
os-svc-daemon swift-object-updater swift swift-object-updater /etc/swift/object-server.conf

View File

@ -10,6 +10,15 @@ use = egg:swift#healthcheck
[filter:recon]
use = egg:swift#recon
recon_cache_path = /mnt/state/var/cache/swift
[app:account-server]
use = egg:swift#account
[account-auditor]
recon_cache_path = /mnt/state/var/cache/swift
[account-reaper]
[account-replicator]
recon_cache_path = /mnt/state/var/cache/swift

View File

@ -10,7 +10,19 @@ use = egg:swift#healthcheck
[filter:recon]
use = egg:swift#recon
recon_cache_path = /mnt/state/var/cache/swift
[app:container-server]
use = egg:swift#container
allow_versions = true
[container-auditor]
recon_cache_path = /mnt/state/var/cache/swift
[container-replicator]
recon_cache_path = /mnt/state/var/cache/swift
[container-sync]
[container-updater]
recon_cache_path = /mnt/state/var/cache/swift

View File

@ -10,6 +10,16 @@ use = egg:swift#healthcheck
[filter:recon]
use = egg:swift#recon
recon_cache_path = /mnt/state/var/cache/swift
[app:object-server]
use = egg:swift#object
[object-auditor]
recon_cache_path = /mnt/state/var/cache/swift
[object-replicator]
recon_cache_path = /mnt/state/var/cache/swift
[object-updater]
recon_cache_path = /mnt/state/var/cache/swift

View File

@ -1,10 +1,34 @@
#!/bin/bash
set -eu
[ -d /mnt/state/var/cache/swift ] || install -d -o swift -g swift /mnt/state/var/cache/swift
os-svc-enable -n swift-account
os-svc-enable -n swift-account-auditor
os-svc-enable -n swift-account-reaper
os-svc-enable -n swift-account-replicator
os-svc-enable -n swift-container
os-svc-enable -n swift-container-auditor
os-svc-enable -n swift-container-replicator
os-svc-enable -n swift-container-sync
os-svc-enable -n swift-container-updater
os-svc-enable -n swift-object
os-svc-enable -n swift-object-auditor
os-svc-enable -n swift-object-replicator
os-svc-enable -n swift-object-updater
os-svc-enable -n rsync
os-svc-restart -n swift-account
os-svc-restart -n swift-account-auditor
os-svc-restart -n swift-account-reaper
os-svc-restart -n swift-account-replicator
os-svc-restart -n swift-container
os-svc-restart -n swift-container-auditor
os-svc-restart -n swift-container-replicator
os-svc-restart -n swift-container-sync
os-svc-restart -n swift-container-updater
os-svc-restart -n swift-object
os-svc-restart -n swift-object-auditor
os-svc-restart -n swift-object-replicator
os-svc-restart -n swift-object-updater
os-svc-restart -n rsync