10b0fc196d
OSLO logging currently defaults the 'use_stderr' option to True which results duplicate logs in service daemon logs for both upstart and systemd. To correct this issue the use_stderr option has been set to false. Change-Id: I76adb408232808b7a5c953ad384ab611725bdd66 Closes-Bug: 1588051 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
28 lines
833 B
Django/Jinja
28 lines
833 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
|
|
{% set repl_bridge = 'ansible_' + swift.replication_network|replace('-', '_') %}
|
|
bind_ip = {{ hostvars[inventory_hostname][repl_bridge]['ipv4']['address'] }}
|
|
bind_port = {{ swift_account_port }}
|
|
devices = {{ swift_vars.mount_point | default(swift.mount_point) }}
|
|
workers = {{ swift_account_server_replicator_workers | default(api_threads) }}
|
|
log_facility = LOG_LOCAL2
|
|
{% include "statsd.j2" %}
|
|
|
|
[pipeline:main]
|
|
pipeline = account-server
|
|
|
|
[app:account-server]
|
|
use = egg:swift#account
|
|
replication_server = True
|
|
|
|
[account-replicator]
|
|
log_facility = LOG_LOCAL2
|
|
per_diff = 10000
|
|
reclaim_age = {{ reclaim_age | default(604800) }}
|