Brian Houser created CASSANDRA-16573:
----------------------------------------
Summary: CQLSH copy defaults appear to be incorrect on website
Key: CASSANDRA-16573
URL: https://issues.apache.org/jira/browse/CASSANDRA-16573
Project: Cassandra
Issue Type: Bug
Components: Documentation/Website
Reporter: Brian Houser
The documentation on the website for the defaults of CQLSH appear to be
incorrect and contain numerous errors (at least for the latest and greatest)
For this page:
[https://cassandra.apache.org/doc/latest/tools/cqlsh.html]
{{MINBATCHSIZE}} is listed as defaulting to 2. Code says this is 10.
https://github.com/apache/cassandra/blob/trunk/pylib/cqlshlib/copyutil.py#L355
Chunksize says 1000, actually set to 5000.
https://github.com/apache/cassandra/blob/trunk/pylib/cqlshlib/copyutil.py#L352
NumProcessis is also off...
"NUMPROCESSES
The number of child worker processes to create for COPY tasks. Defaults to a
max of 4 for COPY FROM and 16 for COPY TO. However, at most (num_cores - 1)
processes will be created."
Default is the number of cores -1 or 16 which ever is smaller, and you can set
this value to anything. See the following code
https://github.com/apache/cassandra/blob/trunk/pylib/cqlshlib/copyutil.py#L361
https://github.com/apache/cassandra/blob/trunk/pylib/cqlshlib/copyutil.py#L407
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]