fuel-library/deployment/puppet/osnailyfacter/modular/swift/tasks.yaml
Aleksandr Didenko 8b9e7ece48 Setup swift rings rebalance and repush cronjobs
We should try to make sure the balance is 0, because only 0 balance
means that all the devices got exact amount of partitions they
wanted to and our ring is balanced.

In order to reduce network load we setup cronjobs in a separate
deployment task. Those cronjobs will rebalance rings periodically
and rsync them from primary controller to secondaries.

DocImpact

Change-Id: I141c7cb581da2da0ef1b47cefaf5b9c485509ecd
Closes-bug: #1409783
2015-03-27 11:43:40 +02:00

28 lines
973 B
YAML

- id: swift
type: puppet
groups: [primary-controller, controller]
required_for: [deploy_end, controller_remaining_tasks]
requires: [openstack-controller]
parameters:
puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/swift/swift.pp
puppet_modules: /etc/puppet/modules
timeout: 3600
test_pre:
cmd: ruby /etc/puppet/modules/osnailyfacter/modular/swift/swift_pre.rb
test_post:
cmd: ruby /etc/puppet/modules/osnailyfacter/modular/swift/swift_post.rb
- id: swift-rebalance-cron
type: puppet
groups: [primary-controller, controller]
required_for: [deploy_end]
requires: [swift]
parameters:
puppet_manifest: /etc/puppet/modules/osnailyfacter/modular/swift/rebalance_cronjob.pp
puppet_modules: /etc/puppet/modules
timeout: 300
test_pre:
cmd: ruby /etc/puppet/modules/osnailyfacter/modular/swift/swift_post.rb
test_post:
cmd: ruby /etc/puppet/modules/osnailyfacter/modular/swift/rebalance_cronjob_post.rb