@@ -48,7 +48,78 @@ The following options control workload generation:
4848
4949The following options control how ` cbc-n1qlback ` connects to the cluster
5050
51- @@common-options .markdown@@
51+ * ` -U ` , ` --spec ` =_ SPEC_ :
52+ A string describing the cluster to connect to. The string is in a URI-like syntax,
53+ and may also contain other options. See the [ EXAMPLES] ( #examples ) section for information.
54+ Typically such a URI will look like ` couchbase://host1,host2,host3/bucket ` .
55+
56+ The default for this option is ` couchbase://localhost/default `
57+
58+ * ` -u ` , ` --username ` =_ USERNAME_ :
59+ Specify the _ username_ for the bucket. Since Couchbase 5.x this is mandatory
60+ switch, and it must specify the name of the user exisiting on cluster (read
61+ more at "Security/Authorization" section of the server manual). For older servers
62+ this field should be either left empty or set to the name of the bucket itself.
63+
64+ * ` -P ` , ` --password ` =_ PASSWORD_ :
65+ * ` -P - ` , ` --password=- ` :
66+ Specify the password for the bucket. As for servers before 5.x this was only
67+ needed if the bucket is protected with a password. For cluster version after 5.x,
68+ the password is mandatory, and should match the selected account (read more at
69+ "Security/Authorization" section of the server manual).
70+
71+ Specifying the ` - ` as the password indicates that the program should prompt for the
72+ password. You may also specify the password on the commandline, directly,
73+ but is insecure as command line arguments are visible via commands such as ` ps ` .
74+
75+ * ` -T ` , ` --timings ` :
76+ Dump command timings at the end of execution. This will display a histogram
77+ showing the latencies for the commands executed.
78+
79+ * ` -v ` , ` --verbose ` :
80+ Specify more information to standard error about what the client is doing. You may
81+ specify this option multiple times for increased output detail.
82+
83+ * ` -D ` , ` --cparam ` =OPTION=VALUE:
84+ Provide additional client options. Acceptable options can also be placed
85+ in the connection string, however this option is provided as a convenience.
86+ This option may be specified multiple times, each time specifying a key=value
87+ pair (for example, ` -Doperation_timeout=10 -Dconfig_cache=/foo/bar/baz ` ).
88+ See [ ADDITIONAL OPTIONS] ( #additional-options ) for more information
89+
90+ * ` -y ` , ` --compress ` :
91+ Enable compressing of documents. When the library is compiled with compression
92+ support, this option will enable Snappy compression for outgoing data.
93+ Incoming compressed data is handled automatically regardless of this option.
94+ Note, that because the compression support have to be negotiated with the
95+ server, first packets might be sent uncompressed even when this switch
96+ was specified. This is because the library might queue data commands before
97+ socket connection has been established, and the library will negotiate
98+ compression feature. If it is known that all server support compression
99+ repeating the switch (like ` -yy ` ) will force compression for all outgoing
100+ mutations, even scheduled before establishing connection.
101+
102+ * ` --truststorepath ` =_ PATH_ :
103+ The path to the server's SSL certificate. This is typically required for SSL
104+ connectivity unless the certificate has already been added to the OpenSSL
105+ installation on the system (only applicable with ` couchbases:// ` scheme)
106+
107+ * ` --certpath ` =_ PATH_ :
108+ The path to the server's SSL certificate. This is typically required for SSL
109+ connectivity unless the certificate has already been added to the OpenSSL
110+ installation on the system (only applicable with ` couchbases:// ` scheme).
111+ This also should contain client certificate when certificate authentication
112+ used, and in this case other public certificates could be extracted into
113+ ` truststorepath ` chain.
114+
115+ * ` --keypath ` =_ PATH_ :
116+ The path to the client SSL private key. This is typically required for SSL
117+ client certificate authentication. The certificate itself have to go first
118+ in chain specified by ` certpath ` (only applicable with ` couchbases:// ` scheme)
119+
120+ * ` --dump ` :
121+ Dump verbose internal state after operations are done.
122+
52123
53124* ` -e ` , ` --error-log ` =_ PATH_ :
54125 Path to a file, where the command will write failed queries along with error details.
@@ -66,7 +137,91 @@ key=value pairs passed to the `-D` switch (e.g. `-Doption1=value1
66137and is provided as a convenience for options to be easily passed on the
67138command-line
68139
69- @@common-additional-options .markdown@@
140+ * ` operation_timeout=SECONDS ` :
141+ Specify the operation timeout in seconds. This is the time the client will
142+ wait for an operation to complete before timing it out. The default is ` 2.5 `
143+ * ` config_cache=PATH ` :
144+ Enables the client to make use of a file based configuration cache rather
145+ than connecting for the bootstrap operation. If the file does not exist, the
146+ client will first connect to the cluster and then cache the bootstrap information
147+ in the file.
148+ * ` truststorepath=PATH ` :
149+ The path to the server's SSL certificate. This is typically required for SSL
150+ connectivity unless the certificate has already been added to the OpenSSL
151+ installation on the system (only applicable with ` couchbases:// ` scheme)
152+ * ` certpath=PATH ` :
153+ The path to the server's SSL certificate. This is typically required for SSL
154+ connectivity unless the certificate has already been added to the OpenSSL
155+ installation on the system (only applicable with ` couchbases:// ` scheme).
156+ This also should contain client certificate when certificate authentication
157+ used, and in this case other public certificates could be extracted into
158+ ` truststorepath ` chain.
159+ * ` keypath=PATH ` :
160+ The path to the client SSL private key. This is typically required for SSL
161+ client certificate authentication. The certificate itself have to go first
162+ in chain specified by ` certpath ` (only applicable with ` couchbases:// ` scheme)
163+ * ` ipv6=allow ` :
164+ Enable IPv6.
165+ * ` ssl=no_verify ` :
166+ Temporarily disable certificate verification for SSL (only applicable with
167+ ` couchbases:// ` scheme). This should only be used for quickly debugging SSL
168+ functionality.
169+ * ` sasl_mech_force=MECHANISM ` :
170+ Force a specific _ SASL_ mechanism to be used when performing the initial
171+ connection. This should only need to be modified for debugging purposes.
172+ The currently supported mechanisms are ` PLAIN ` and ` CRAM-MD5 `
173+ * ` bootstrap_on=<both,http,cccp> ` :
174+ Specify the bootstrap protocol the client should use when attempting to connect
175+ to the cluster. Options are: ` cccp ` : Bootstrap using the Memcached protocol
176+ (supported on clusters 2.5 and greater); ` http ` : Bootstrap using the HTTP REST
177+ protocol (supported on any cluster version); and ` both ` : First attempt bootstrap
178+ over the Memcached protocol, and use the HTTP protocol if Memcached bootstrap fails.
179+ The default is ` both `
180+
181+ * ` enable_tracing=true/false ` : Activate/deactivate end-to-end tracing.
182+
183+ * ` tracing_orphaned_queue_flush_interval=SECONDS ` : Flush interval for orphaned
184+ spans queue in default tracer. This is the time the tracer will wait between
185+ repeated attempts to flush most recent orphaned spans.
186+ Default value is 10 seconds.
187+
188+ * ` tracing_orphaned_queue_size=NUMBER ` : Size of orphaned spans queue in default
189+ tracer. Queues in default tracer has fixed size, and it will remove
190+ information about older spans, when the limit will be reached before flushing
191+ time.
192+ Default value is 128.
193+
194+ * ` tracing_threshold_queue_flush_interval=SECONDS ` : Flush interval for spans
195+ with total time over threshold in default tracer. This is the time the tracer
196+ will wait between repeated attempts to flush threshold queue.
197+ Default value is 10 seconds.
198+
199+ * ` tracing_threshold_queue_size=NUMBER ` : Size of threshold queue in default
200+ tracer. Queues in default tracer has fixed size, and it will remove
201+ information about older spans, when the limit will be reached before flushing
202+ time.
203+ Default value is 128.
204+
205+ * ` tracing_threshold_kv=SECONDS ` : Minimum time for the tracing span of KV
206+ service to be considered by threshold tracer.
207+ Default value is 0.5 seconds.
208+
209+ * ` tracing_threshold_query=SECONDS ` : Minimum time for the tracing span of QUERY
210+ service to be considered by threshold tracer.
211+ Default value is 1 second.
212+
213+ * ` tracing_threshold_view=SECONDS ` : Minimum time for the tracing span of VIEW
214+ service to be considered by threshold tracer.
215+ Default value is 1 second.
216+
217+ * ` tracing_threshold_search=SECONDS ` : Minimum time for the tracing span of SEARCH
218+ service to be considered by threshold tracer.
219+ Default value is 1 second.
220+
221+ * ` tracing_threshold_analytics=SECONDS ` : Minimum time for the tracing span of
222+ ANALYTICS service to be considered by threshold tracer.
223+ Default value is 1 second.
224+
70225
71226## EXAMPLES
72227
0 commit comments