puppet-swift/templates/object-server.conf.erb
Thomas Goirand 3b4e562faf Add object_server_mb_per_sync
The default mb_per_sync value of Swift leads to adding a lot of
latencies when transfering to an object store. This patch adds
the possibility to override this value for object store (it is
less relevant for other backend which rarely will reach the
cache size anyway). According to our tests, a value of 16 MB
is very good in production.

Change-Id: Id379d4221bc7e2a0c16125b97140e39b7726fd02
2020-03-09 21:35:11 +01:00

55 lines
1.6 KiB
Plaintext

[DEFAULT]
devices = <%= @devices %>
bind_ip = <%= @storage_local_net_ip %>
bind_port = <%= @bind_port %>
mount_check = <%= @mount_check %>
servers_per_port = <%= @servers_per_port %>
user = <%= @user %>
log_name = <%= @log_name %>
log_facility = <%= @log_facility %>
log_level = <%= @log_level %>
log_address = <%= @log_address %>
<% if @log_udp_host -%>
# If set, log_udp_host will override log_address
log_udp_host = <%= @log_udp_host -%>
<% end %>
<% if @log_udp_host and @log_udp_port -%>
log_udp_port = <%= @log_udp_port -%>
<% end %>
workers = <%= @workers %>
<% if @statsd_enabled -%>
log_statsd_host = <%=@log_statsd_host%>
log_statsd_port = <%=@log_statsd_port%>
log_statsd_default_sample_rate = <%=@log_statsd_default_sample_rate%>
log_statsd_sample_rate_factor = <%=@log_statsd_sample_rate_factor%>
log_statsd_metric_prefix = <%=@log_statsd_metric_prefix%>
<% end -%>
network_chunk_size = <%= @network_chunk_size%>
disk_chunk_size = <%= @disk_chunk_size%>
[pipeline:main]
pipeline = <%= @pipeline.to_a.join(' ') %>
[app:object-server]
use = egg:swift#object
set log_name = <%= @log_name %>
set log_facility = <%= @log_facility %>
set log_level = <%= @log_level %>
set log_requests = <%= @log_requests %>
set log_address = <%= @log_address %>
splice = <%= @splice %>
mb_per_sync = <%= @object_server_mb_per_sync %>
[object-replicator]
concurrency = <%= @replicator_concurrency %>
[object-updater]
concurrency = <%= @updater_concurrency %>
[object-auditor]
<% if @auditor_disk_chunk_size -%>
disk_chunk_size = <%= @auditor_disk_chunk_size %>
<% end -%>
[object-reconstructor]