openstack-ansible-os_swift/templates/account-server.conf.j2
Andy McCrae 81aecda55f Expose and set a default fallocate_reserve value
When swift disks fill up completely it becomes difficult to perform
operations since delete operations require a write.

By setting this value we can ensure that PUT requests won't happen when
the disk space is below the threshold set (in bytes). This will not
govern rsyncs, which can still happen to fill up the disks, but assuming
a reasonably uniform distribution of data this should help prevent disks
from filling up.

Change-Id: I753de5e5ed09a21571575ef51c38752edc0730cb
Closes-Bug: #1545018
2016-04-14 13:56:00 +01:00

51 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]
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) }}
log_facility = LOG_LOCAL2
{% include "statsd.j2" %}
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
log_facility = LOG_LOCAL2
[filter:healthcheck]
use = egg:swift#healthcheck
[filter:recon]
use = egg:swift#recon
log_facility = LOG_LOCAL2
recon_cache_path = /var/cache/swift
recon_lock_path = /var/lock
{% if swift.replication_network is not defined or swift.replication_network == swift.storage_network %}
[account-replicator]
log_facility = LOG_LOCAL2
per_diff = 10000
reclaim_age = {{ reclaim_age | default(604800) }}
{% endif %}
[account-auditor]
log_facility = LOG_LOCAL2
[account-reaper]
log_facility = LOG_LOCAL2
delay_reaping = 604800
[filter:xprofile]
use = egg:swift#xprofile