Rename rand_readwrite to readwrite.

Simpler, and all the benchmarks are pretty much as pseudorandom,
in the end; that's not a relevant characteristic. The mix of read
and write operations is.

Re-run ./bootstrap to get the s3tests-test-readwrite script
regenerated to refer to the new module name.
This commit is contained in:
Tommi Virtanen 2011-07-26 09:51:06 -07:00
parent e17c56a714
commit 7a98a496e4
3 changed files with 7 additions and 7 deletions

View file

@ -17,7 +17,7 @@ file_generation:
## single bucket for a set duration.
## Note: the readwrite tool does not need the s3.alt connection info.
## only s3.main is used.
rand_readwrite:
readwrite:
## The number of reader and writer worker threads. This sets how many
## files will be read and written concurrently.
readers: 2

View file

@ -134,15 +134,15 @@ def main():
common.setup()
# verify all required config items are present
if 'rand_readwrite' not in common.config:
raise RuntimeError('rand_readwrite section not found in config')
config = common.config.rand_readwrite
if 'readwrite' not in common.config:
raise RuntimeError('readwrite section not found in config')
config = common.config.readwrite
for item in ['readers', 'writers', 'duration', 'files']:
if item not in config:
raise RuntimeError("Missing rand_readwrite config item: {item}".format(item=item))
raise RuntimeError("Missing readwrite config item: {item}".format(item=item))
for item in ['num', 'size', 'stddev']:
if item not in config.files:
raise RuntimeError("Missing rand_readwrite config item: files.{item}".format(item=item))
raise RuntimeError("Missing readwrite config item: files.{item}".format(item=item))
# setup bucket and other objects
bucket = common.get_new_bucket()

View file

@ -22,7 +22,7 @@ setup(
entry_points={
'console_scripts': [
's3tests-generate-objects = s3tests.generate_objects:main',
's3tests-test-readwrite = s3tests.rand_readwrite:main',
's3tests-test-readwrite = s3tests.readwrite:main',
's3tests-test-roundtrip = s3tests.roundtrip:main',
],
},