lp://staging/~hopem/charms/trusty/swift-proxy/fix-sync-race
- Get this branch:
- bzr branch lp://staging/~hopem/charms/trusty/swift-proxy/fix-sync-race
Branch merges
- Billy Olsen: Approve
- OpenStack Charmers: Pending requested
-
Diff: 45 lines (+14/-8)1 file modifiedhooks/swift_utils.py (+14/-8)
Branch information
- Owner:
- Edward Hope-Morley
- Status:
- Development
Recent revisions
- 72. By Edward Hope-Morley
-
[hopem,r=gnuoy]
Adds better protection against leader switches.
Reduces sync noise. - 70. By Liam Young
-
[hopem, r=gnuoy]
* code refactor/cleanup
- hopefully consistent style across hooks codebase
- non hook-specific functions moved to swift_utils.py
- added unit tests for hooks/*.py* updated config.yaml description for min-hours option and set default to
0 so that by default, we can add as many storage units to the cluster
and it will always rebalance/sync.* added ability to set/update min_part_hours on existing ring
(config-changed) and proxy peers only get synced since only builder
affected.* added new disable-
ring-balance to allow user to postpone ring balancing
when adding storage nodes.* disable proxy api prior to ring change and sync with peer/leader handshake
* mark rings deleted in www dir if not leader to avoid storage units syncing
stale rings. - 66. By Edward Hope-Morley
-
[jjo,r=hopem]
If a hash is not provided when deploying swift-proxy,
each unit will create it's own. This patch builds default
swift_hash from $JUJU_ENV_UUID and service_name (unless
one is provided in config)Closes-Bug: 1337765
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)