puppet-swift/manifests/bench.pp
Yanis Guenane a72e27f83c Rely on autorequire for config resource ordering
Currently we specify the ordering of config resources wherever it is
necessary based on the presence of the file it will write to, or the
presence of the package in charge of providing the file it will write
to.

Those kind of ordering can be specified directly at the resource level
using the autorequire mechanism. With this patch, any config resource
will make sure the package in charge of providing the file will be
installed first.

Change-Id: Icb3464cc0a747d40326d610d38806d059c9a0fc3
2015-08-13 09:54:06 +02:00

106 lines
2.9 KiB
Puppet

# == Class: swift::bench
#
# Configure swift-bench.conf for swift performance bench
#
# === Parameters:
#
# [*auth_url*]
# Defaults to 'http://localhost:8080/auth/v1.0'
#
# [*swift_user*]
# Defaults to 'test:tester'
#
# [*swift_key*]
# Defaults to 'testing'
#
# [*auth_version*]
# Defaults to '1.0'
#
# [*log_level*]
# Defaults to 'INFO'
#
# [*test_timeout*]
# Defaults to '10'
#
# [*put_concurrency*]
# (optional) Configure PUT concurrency
# Defaults to '10'
#
# [*get_concurrency*]
# (optional) Configure GET concurrency
# Defaults to '10',
#
# [*del_concurrency*]
# (optional) Configure DELETE concurrency
# Defaults to '10',
#
# [*lower_object_size*]
# If object_sources is not set and lower_object_size != upper_object_size,
# each PUT will randomly select an object size between the two values. Units
# are bytes.
# Defaults to '10'
#
# [*upper_object_size*]
# If object_sources is not set and lower_object_size != upper_object_size,
# each PUT will randomly select an object size between the two values. Units
# are bytes.
# Defaults to '10'
#
# [*object_size*]
# If object_sources is not set and lower_object_size == upper_object_size,
# every object PUT will contain this many bytes.
# Defaults to '1'
#
# [*num_objects*]
# Defaults to '1000'
#
# [*num_gets*]
# Defaults to '10000'
#
# [*num_containers*]
# Defaults to '20'
#
# [*delete*]
# Should swift-bench benchmark DELETEing the created objects and then delete
# all created containers?
# Defaults to 'yes'
#
class swift::bench (
$auth_url = 'http://localhost:8080/auth/v1.0',
$swift_user = 'test:tester',
$swift_key = 'testing',
$auth_version = '1.0',
$log_level = 'INFO',
$test_timeout = '10',
$put_concurrency = '10',
$get_concurrency = '10',
$del_concurrency = '10',
$lower_object_size = '10',
$upper_object_size = '10',
$object_size = '1',
$num_objects = '1000',
$num_gets = '10000',
$num_containers = '20',
$delete = 'yes',
){
swift_bench_config {
'bench/auth': value => $auth_url;
'bench/user': value => $swift_user;
'bench/key': value => $swift_key;
'bench/auth_version': value => $auth_version;
'bench/log-level': value => $log_level;
'bench/timeout': value => $test_timeout;
'bench/put_concurrency': value => $put_concurrency;
'bench/get_concurrency': value => $get_concurrency;
'bench/del_concurrency': value => $del_concurrency;
'bench/lower_object_size': value => $lower_object_size;
'bench/upper_object_size': value => $upper_object_size;
'bench/object_size': value => $object_size;
'bench/num_objects': value => $num_objects;
'bench/num_gets': value => $num_gets;
'bench/num_containers': value => $num_containers;
'bench/delete': value => $delete;
}
}