openstack-ansible-os_swift/templates/container-server.conf.j2
Jimmy McCrory 98cb749139 Store dedicated replication conditions in var
Create a new default var, swift_dedicated_replication, for storing
conditions used to determine if a replication network is being used for
swift. This allows for removing redundant tasks, reducing role run
times.

Change-Id: Ieb4263035527ff069017d40b95787f934fbd308c
2016-09-21 06:32:35 -07:00

56 lines
1.3 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]
# Disable stderr logging
use_stderr = False
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
{% include "statsd.j2" %}
disable_fallocate = {{ swift_container_disable_fallocate }}
fallocate_reserve = {{ swift_container_fallocate_reserve }}
[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 not swift_dedicated_replication %}
[container-replicator]
log_facility = LOG_LOCAL3
reclaim_age = {{ reclaim_age | default(604800) }}
[container-auditor]
log_facility = LOG_LOCAL3
{% endif %}
[container-updater]
log_facility = LOG_LOCAL3
node_timeout = 15
conn_timeout = 5
[container-sync]
[filter:xprofile]
use = egg:swift#xprofile