c79547cb91
This adds the optional configuration options: - statsd_host - statsd_port - statsd_metric_prefix (defaults to inventory_hostname) - statsd_default_sample_rate - statsd_sample_rate_factor Which can be defined under swift globally or on the server level. The configuration will only be added if statsd_host is defined. Change-Id: I793b189e0a1f5ca4fc1fe17b1d89f2a83af8c796
25 lines
774 B
Django/Jinja
25 lines
774 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]
|
|
{% set repl_bridge = 'ansible_' + swift.replication_network|replace('-', '_') %}
|
|
bind_ip = {{ hostvars[inventory_hostname][repl_bridge]['ipv4']['address'] }}
|
|
bind_port = {{ swift_container_port }}
|
|
devices = {{ swift_vars.mount_point | default(swift.mount_point) }}
|
|
workers = {{ swift_server_replicator_workers | default(api_threads) }}
|
|
log_facility = LOG_LOCAL3
|
|
{% include "statsd.j2" %}
|
|
|
|
[pipeline:main]
|
|
pipeline = container-server
|
|
|
|
[app:container-server]
|
|
use = egg:swift#container
|
|
replication_server = True
|
|
|
|
[container-replicator]
|
|
log_facility = LOG_LOCAL3
|
|
reclaim_age = {{ reclaim_age | default(604800) }}
|