Skip to content

Commit 0ee369f

Browse files
author
vroyer
committed
Use 16 tokens
1 parent dc67cdc commit 0ee369f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ccmlib/cmds/cluster_cmds.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ class ClusterCreateCmd(Cmd):
8484
(['-b', "--binary-protocol"], {'action': "store_true", 'dest': "binary_protocol", 'help': "Enable the binary protocol (starting from C* 1.2.5 the binary protocol is started by default and this option is a no-op)", 'default': False}),
8585
(['-D', "--debug-log"], {'action': "store_true", 'dest': "debug_log", 'help': "With -n, sets debug logging on the new nodes", 'default': False}),
8686
(['-T', "--trace-log"], {'action': "store_true", 'dest': "trace_log", 'help': "With -n, sets trace logging on the new nodes", 'default': False}),
87-
(["--vnodes"], {'action': "store_true", 'dest': "vnodes", 'help': "Use vnodes (256 tokens). Must be paired with -n.", 'default': False}),
87+
(["--vnodes"], {'action': "store_true", 'dest': "vnodes", 'help': "Use vnodes (16 tokens). Must be paired with -n.", 'default': False}),
8888
(['--jvm_arg'], {'action': "append", 'dest': "jvm_args", 'help': "Specify a JVM argument", 'default': []}),
8989
(['--profile'], {'action': "store_true", 'dest': "profile", 'help': "Start the nodes with yourkit agent (only valid with -s)", 'default': False}),
9090
(['--profile-opts'], {'type': "string", 'action': "store", 'dest': "profile_options", 'help': "Yourkit options when profiling", 'default': None}),
@@ -147,7 +147,7 @@ def run(self):
147147
cluster.set_configuration_options({'start_native_transport': True})
148148

149149
if cluster.cassandra_version() >= "1.2" and self.options.vnodes:
150-
cluster.set_configuration_options({'num_tokens': 4})
150+
cluster.set_configuration_options({'num_tokens': 16})
151151

152152
if not self.options.no_switch:
153153
common.switch_cluster(self.path, self.name)

0 commit comments

Comments
 (0)