Permalink
Browse files

Change default parameter values

.Set the default node as local node
.Set the default set/get as 77%

Change-Id: Ie9fa24b1c63732267c72b5ac7f9e9cec2152bfe2
Reviewed-on: http://review.couchbase.org/11712
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>
  • Loading branch information...
bcui6611 committed Dec 17, 2011
1 parent 8d4762d commit 50cd5d2b86829b12322bc569478241327061e1d8
Showing with 3 additions and 3 deletions.
  1. +3 −3 workload-generator
View
@@ -146,7 +146,7 @@ class SmartLoader(object):
if __name__ == "__main__":
parser = OptionParser()
parser.add_option("-n", "--node", dest="node",
- help="node's ns_server ip:port", metavar="192.168.1.1:8091")
+ help="node's ns_server ip:port", metavar="127.0.0.1:8091")
parser.add_option("-b", "--bucket", dest="bucket", help="which bucket to insert data",
default="default", metavar="default")
parser.add_option("-p", "--password", dest="password",
@@ -160,7 +160,7 @@ if __name__ == "__main__":
default=100, metavar="100")
parser.add_option("-r", "--ratio", dest="ratio", help="set get operation ratio",
- default=33, metavar="33")
+ default=77, metavar="77")
parser.add_option("--size", dest="value_size", help="value size,default is 256 byte",
default=512, metavar="100")
@@ -178,7 +178,7 @@ if __name__ == "__main__":
if not node:
parser.print_help()
- exit()
+ sys.exit()
#if port is not given use :8091
if node.find(":") == -1:
hostname = node

0 comments on commit 50cd5d2

Please sign in to comment.