Files
openstack-ansible-os_swift/templates/account-server.conf.j2
Ivan Anfimov 1ecfa8a90d Removed config section no longer required for service to start
Change-Id: I5be334b37d91a3a4c650b35d736b31ce82202414
Signed-off-by: Ivan Anfimov <lazekteam@gmail.com>
2025-07-19 23:40:56 +00:00

53 lines
1.8 KiB
Django/Jinja

# {{ ansible_managed }}
{% set _api_threads = ansible_facts['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_account_port }}
workers = {{ swift_account_server_workers | default(api_threads) }}
user = {{ swift_system_user_name }}
devices = {{ swift_vars.mount_point | default(swift.mount_point) }}
{% set _statsd_host = swift_vars.statsd_host | default(swift.statsd_host | default(statsd_host | default(False))) %}
{% if _statsd_host | bool %}
log_statsd_host = {{ _statsd_host }}
log_statsd_port = {{ swift_vars.statsd_port | default(swift.statsd_port | default(statsd_port)) }}
log_statsd_default_sample_rate = {{ swift_vars.statsd_default_sample_rate | default(swift.statsd_default_sample_rate | default(statsd_default_sample_rate)) }}
log_statsd_sample_rate_factor = {{ swift_vars.statsd_sample_rate_factor | default(swift.statsd_sample_rate_factor | default(statsd_sample_rate_factor))}}
log_statsd_metric_prefix = {{ swift_vars.statsd_metric_prefix | default(swift.statsd_metric_prefix | default(inventory_hostname)) }}
{% endif %}
disable_fallocate = {{ swift_account_disable_fallocate }}
fallocate_reserve = {{ swift_account_fallocate_reserve }}
[pipeline:main]
pipeline = healthcheck recon account-server
[app:account-server]
use = egg:swift#account
[filter:healthcheck]
use = egg:swift#healthcheck
[filter:recon]
use = egg:swift#recon
recon_cache_path = {{ swift_cache_path }}
recon_lock_path = {{ swift_lock_dir }}
{% if not swift_dedicated_replication %}
[account-replicator]
per_diff = 10000
reclaim_age = {{ reclaim_age | default(604800) }}
{% endif %}
[account-reaper]
delay_reaping = 604800
[filter:xprofile]
use = egg:swift#xprofile