
Swift Erasure Coding requires the object-reconstructor to be running, this PR adds the object-reconstructor configuration and systemd/upstart file. Additionally, this PR adds testing for an erasure-coding policy as well as for multiple policies in 1 deployment. Change-Id: I71fe3d77e93112b9d27c93b37b59e6242cb3e00e Closes-Bug: #1634859
38 lines
962 B
Django/Jinja
38 lines
962 B
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]
|
|
# Disable stderr logging
|
|
use_stderr = False
|
|
bind_ip = {{ swift_replication_address }}
|
|
bind_port = {{ swift_object_port }}
|
|
devices = {{ swift_vars.mount_point | default(swift.mount_point) }}
|
|
workers = {{ swift_object_replicator_workers | default(api_threads) }}
|
|
log_facility = LOG_LOCAL4
|
|
{% include "statsd.j2" %}
|
|
|
|
[pipeline:main]
|
|
pipeline = object-server
|
|
|
|
[app:object-server]
|
|
use = egg:swift#object
|
|
replication_server = True
|
|
|
|
[object-replicator]
|
|
log_facility = LOG_LOCAL4
|
|
concurrency = 6
|
|
reclaim_age = {{ reclaim_age | default(604800) }}
|
|
{% if swift_rsync_module_per_drive %}
|
|
rsync_module = {replication_ip}::object_{device}
|
|
{% endif %}
|
|
|
|
[object-auditor]
|
|
log_facility = LOG_LOCAL4
|
|
|
|
[object-reconstructor]
|
|
log_facility = LOG_LOCAL4
|
|
concurrency = 6
|
|
reclaim_age = {{ reclaim_age | default(604800) }}
|