
The container-reconciler and object-expirer were missing from the os-swift role. The reconciler makes sure incorrectly placed objets live in the correct storage policy. The expirer is the service that deletes expired objects. This change also adds the abilty to optionally specify a reclaim_age in the swift section of the configuration, which is now set in all the locations required, still with the default of 604800 seconds (7 days). Change-Id: Ic56a714c3fb3c84b9bb5ed8e2ae3c86dad474161 Closes-Bug: #1516877
50 lines
1.2 KiB
Django/Jinja
50 lines
1.2 KiB
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
{% set _api_threads = ansible_processor_vcpus|default(2) // 2 %}
|
|
{% set api_threads = _api_threads if _api_threads > 0 else 1 %}
|
|
|
|
[DEFAULT]
|
|
bind_ip = {{ swift_storage_address }}
|
|
bind_port = {{ swift_container_port }}
|
|
workers = {{ swift_container_server_workers | default(api_threads) }}
|
|
|
|
user = {{ swift_system_user_name }}
|
|
devices = {{ swift_vars.mount_point | default(swift.mount_point) }}
|
|
log_facility = LOG_LOCAL3
|
|
|
|
[pipeline:main]
|
|
pipeline = healthcheck recon container-server
|
|
|
|
[app:container-server]
|
|
use = egg:swift#container
|
|
log_facility = LOG_LOCAL3
|
|
allow_versions = {{ swift_allow_versions }}
|
|
|
|
[filter:healthcheck]
|
|
use = egg:swift#healthcheck
|
|
|
|
[filter:recon]
|
|
use = egg:swift#recon
|
|
log_facility = LOG_LOCAL3
|
|
recon_cache_path = /var/cache/swift
|
|
recon_lock_path = /var/lock
|
|
|
|
{% if swift.replication_network is not defined or swift.replication_network == swift.storage_network %}
|
|
[container-replicator]
|
|
log_facility = LOG_LOCAL3
|
|
reclaim_age = {{ reclaim_age | default(604800) }}
|
|
{% endif %}
|
|
|
|
[container-updater]
|
|
log_facility = LOG_LOCAL3
|
|
node_timeout = 15
|
|
conn_timeout = 5
|
|
|
|
[container-auditor]
|
|
log_facility = LOG_LOCAL3
|
|
|
|
[container-sync]
|
|
|
|
[filter:xprofile]
|
|
use = egg:swift#xprofile
|