60ed2ee79c
Maintains full backward compatibility. Use swift_proxy_config ini provider to mange proxy-server.conf. Remove all erb templates. Move all template logic into proxy middleware classes. To purge proxy.conf of settings that are not specified set the new paramater "purge_config" to "true". Change-Id: I0a143cf812043ea0f9a008a6e5c60ec87f9a4e9a
46 lines
1.1 KiB
Puppet
46 lines
1.1 KiB
Puppet
#
|
|
# Configure swift dlo.
|
|
#
|
|
# == Examples
|
|
#
|
|
# include ::swift::proxy::dlo
|
|
#
|
|
# == Parameters
|
|
#
|
|
# [*rate_limit_after_segment*]
|
|
# Start rate-limiting DLO segment serving after the Nth segment of a segmented object.
|
|
# Default to 10.
|
|
#
|
|
# [*rate_limit_segments_per_sec*]
|
|
# Once segment rate-limiting kicks in for an object, limit segments served to N per second.
|
|
# 0 means no rate-limiting.
|
|
# Default to 1.
|
|
#
|
|
# [*max_get_time*]
|
|
# Time limit on GET requests (seconds).
|
|
# Default to 86400.
|
|
#
|
|
# == Authors
|
|
#
|
|
# Aleksandr Didenko adidenko@mirantis.com
|
|
#
|
|
# == Copyright
|
|
#
|
|
# Copyright 2015 Mirantis Inc, unless otherwise noted.
|
|
#
|
|
class swift::proxy::dlo (
|
|
$rate_limit_after_segment = '10',
|
|
$rate_limit_segments_per_sec = '1',
|
|
$max_get_time = '86400'
|
|
) {
|
|
|
|
include ::swift::deps
|
|
|
|
swift_proxy_config {
|
|
'filter:dlo/use': value => 'egg:swift#dlo';
|
|
'filter:dlo/rate_limit_after_segment': value => $rate_limit_after_segment;
|
|
'filter:dlo/rate_limit_segments_per_sec': value => $rate_limit_segments_per_sec;
|
|
'filter:dlo/max_get_time': value => $max_get_time;
|
|
}
|
|
}
|