diff options
author | Thiago da Silva <thiago@redhat.com> | 2015-05-20 19:09:21 +0000 |
---|---|---|
committer | Thiago da Silva <thiago@redhat.com> | 2015-06-01 17:56:25 +0000 |
commit | d64b007deb99e3ac65034623993961f23351b78d (patch) | |
tree | 076bdb9510ce152de979b43816e83852c55fb6cd /bin | |
parent | ae51e6b26fcddc97e3787feccba69db29fa728aa (diff) | |
download | swift-bench-d64b007deb99e3ac65034623993961f23351b78d.tar.gz |
add storage policy option
provide ability for user to select which storage policy
to run benchmark against
Change-Id: I9973f964ec3989281f47f853be053498e7a6e51e
Signed-off-by: Thiago da Silva <thiago@redhat.com>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/swift-bench | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/swift-bench b/bin/swift-bench index a1d7a19..b516c24 100755 --- a/bin/swift-bench +++ b/bin/swift-bench @@ -74,6 +74,7 @@ if __name__ == '__main__': num_gets = 10000 delete = yes auth_version = 1.0 + policy_name = gold """ parser = OptionParser(usage=usage) parser.add_option('', '--saio', dest='saio', action='store_true', @@ -120,6 +121,9 @@ if __name__ == '__main__': help='Authentication version') parser.add_option('-d', '--delay', dest='delay', help='Delay before delete requests in seconds') + parser.add_option('-P', '--policy-name', dest='policy_name', + help='Specify which policy to use when creating ' + 'containers') if len(sys.argv) == 1: parser.print_help() |