Merge "Run Swift replicators in single replica mode"
This commit is contained in:
commit
5b23246412
deployment/swift
releasenotes/notes
@ -227,6 +227,12 @@ outputs:
|
||||
swift::storage::cron::recon::monthday: {get_param: SwiftReconCronMonthday}
|
||||
swift::storage::cron::recon::month: {get_param: SwiftReconCronMonth}
|
||||
swift::storage::cron::recon::weekday: {get_param: SwiftReconCronWeekday}
|
||||
-
|
||||
if:
|
||||
- single_replica_mode
|
||||
- swift::storage::server::replicator_interval: 86400
|
||||
- {}
|
||||
|
||||
service_config_settings: {}
|
||||
# BEGIN DOCKER SETTINGS
|
||||
# (bandini) - We can remove the xinetd noop lines once Centos8 is not supported anymore
|
||||
@ -399,24 +405,6 @@ outputs:
|
||||
- /var/log/containers/swift:/var/log/swift:z
|
||||
environment: &kolla_env
|
||||
KOLLA_CONFIG_STRATEGY: COPY_ALWAYS
|
||||
swift_account_replicator:
|
||||
image: *swift_account_image
|
||||
net: host
|
||||
user: swift
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: /openstack/healthcheck
|
||||
volumes:
|
||||
list_concat:
|
||||
- {get_attr: [ContainersCommon, volumes]}
|
||||
-
|
||||
- /var/lib/kolla/config_files/swift_account_replicator.json:/var/lib/kolla/config_files/config.json:ro
|
||||
- /var/lib/config-data/puppet-generated/swift:/var/lib/kolla/config_files/src:ro
|
||||
- /srv/node:/srv/node
|
||||
- /dev:/dev
|
||||
- /var/cache/swift:/var/cache/swift
|
||||
- /var/log/containers/swift:/var/log/swift:z
|
||||
environment: *kolla_env
|
||||
swift_container_auditor:
|
||||
image: &swift_container_image {get_param: ContainerSwiftContainerImage}
|
||||
net: host
|
||||
@ -433,25 +421,6 @@ outputs:
|
||||
- /var/cache/swift:/var/cache/swift
|
||||
- /var/log/containers/swift:/var/log/swift:z
|
||||
environment: *kolla_env
|
||||
swift_container_replicator:
|
||||
image: *swift_container_image
|
||||
net: host
|
||||
user: swift
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: /openstack/healthcheck
|
||||
volumes:
|
||||
list_concat:
|
||||
- {get_attr: [ContainersCommon, volumes]}
|
||||
-
|
||||
- /var/lib/kolla/config_files/swift_container_replicator.json:/var/lib/kolla/config_files/config.json:ro
|
||||
- /var/lib/config-data/puppet-generated/swift:/var/lib/kolla/config_files/src:ro
|
||||
- /srv/node:/srv/node
|
||||
- /dev:/dev
|
||||
- /var/cache/swift:/var/cache/swift
|
||||
- /var/log/containers/swift:/var/log/swift:z
|
||||
environment: *kolla_env
|
||||
|
||||
swift_object_auditor:
|
||||
image: &swift_object_image {get_param: ContainerSwiftObjectImage}
|
||||
net: host
|
||||
@ -468,24 +437,6 @@ outputs:
|
||||
- /var/cache/swift:/var/cache/swift
|
||||
- /var/log/containers/swift:/var/log/swift:z
|
||||
environment: *kolla_env
|
||||
swift_object_replicator:
|
||||
image: *swift_object_image
|
||||
net: host
|
||||
user: swift
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: /openstack/healthcheck
|
||||
volumes:
|
||||
list_concat:
|
||||
- {get_attr: [ContainersCommon, volumes]}
|
||||
-
|
||||
- /var/lib/kolla/config_files/swift_object_replicator.json:/var/lib/kolla/config_files/config.json:ro
|
||||
- /var/lib/config-data/puppet-generated/swift:/var/lib/kolla/config_files/src:ro
|
||||
- /srv/node:/srv/node
|
||||
- /dev:/dev
|
||||
- /var/cache/swift:/var/cache/swift
|
||||
- /var/log/containers/swift:/var/log/swift:z
|
||||
environment: *kolla_env
|
||||
swift_rsync:
|
||||
image: *swift_object_image
|
||||
net: host
|
||||
@ -524,6 +475,24 @@ outputs:
|
||||
- /var/cache/swift:/var/cache/swift:z
|
||||
- /var/log/containers/swift:/var/log/swift:z
|
||||
environment: *kolla_env
|
||||
swift_account_replicator:
|
||||
image: *swift_account_image
|
||||
net: host
|
||||
user: swift
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: /openstack/healthcheck
|
||||
volumes:
|
||||
list_concat:
|
||||
- {get_attr: [ContainersCommon, volumes]}
|
||||
-
|
||||
- /var/lib/kolla/config_files/swift_account_replicator.json:/var/lib/kolla/config_files/config.json:ro
|
||||
- /var/lib/config-data/puppet-generated/swift:/var/lib/kolla/config_files/src:ro
|
||||
- /srv/node:/srv/node
|
||||
- /dev:/dev
|
||||
- /var/cache/swift:/var/cache/swift
|
||||
- /var/log/containers/swift:/var/log/swift:z
|
||||
environment: *kolla_env
|
||||
swift_account_server:
|
||||
image: *swift_account_image
|
||||
net: host
|
||||
@ -558,6 +527,24 @@ outputs:
|
||||
- /var/cache/swift:/var/cache/swift
|
||||
- /var/log/containers/swift:/var/log/swift:z
|
||||
environment: *kolla_env
|
||||
swift_container_replicator:
|
||||
image: *swift_container_image
|
||||
net: host
|
||||
user: swift
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: /openstack/healthcheck
|
||||
volumes:
|
||||
list_concat:
|
||||
- {get_attr: [ContainersCommon, volumes]}
|
||||
-
|
||||
- /var/lib/kolla/config_files/swift_container_replicator.json:/var/lib/kolla/config_files/config.json:ro
|
||||
- /var/lib/config-data/puppet-generated/swift:/var/lib/kolla/config_files/src:ro
|
||||
- /srv/node:/srv/node
|
||||
- /dev:/dev
|
||||
- /var/cache/swift:/var/cache/swift
|
||||
- /var/log/containers/swift:/var/log/swift:z
|
||||
environment: *kolla_env
|
||||
swift_container_server:
|
||||
image: *swift_container_image
|
||||
net: host
|
||||
@ -608,6 +595,24 @@ outputs:
|
||||
- /var/cache/swift:/var/cache/swift
|
||||
- /var/log/containers/swift:/var/log/swift:z
|
||||
environment: *kolla_env
|
||||
swift_object_replicator:
|
||||
image: *swift_object_image
|
||||
net: host
|
||||
user: swift
|
||||
restart: always
|
||||
healthcheck:
|
||||
test: /openstack/healthcheck
|
||||
volumes:
|
||||
list_concat:
|
||||
- {get_attr: [ContainersCommon, volumes]}
|
||||
-
|
||||
- /var/lib/kolla/config_files/swift_object_replicator.json:/var/lib/kolla/config_files/config.json:ro
|
||||
- /var/lib/config-data/puppet-generated/swift:/var/lib/kolla/config_files/src:ro
|
||||
- /srv/node:/srv/node
|
||||
- /dev:/dev
|
||||
- /var/cache/swift:/var/cache/swift
|
||||
- /var/log/containers/swift:/var/log/swift:z
|
||||
environment: *kolla_env
|
||||
swift_object_server:
|
||||
image: *swift_object_image
|
||||
net: host
|
||||
|
@ -0,0 +1,6 @@
|
||||
---
|
||||
fixes:
|
||||
- |
|
||||
Enable Swift replicators in single replica mode to ensure cleanup of old
|
||||
tombstone (.ts) files. Sleep interval between replication runs is set to 24
|
||||
hours to prevent unneeded load on the systems if no replication is needed.
|
Loading…
x
Reference in New Issue
Block a user