MCPcopy Index your code
hub / github.com/couchbase/couchbase-python-client / ClusterOptions

Class ClusterOptions

couchbase/options.py:325–453  ·  view source on GitHub ↗

Available options to set when creating a cluster. .. warning:: Importing options from ``couchbase.cluster`` is deprecated. All options should be imported from ``couchbase.options``. Cluster options enable the configuration of various global cluster settings. Some option

Source from the content-addressed store, hash-verified

323
324
325class ClusterOptions(ClusterOptionsBase):
326 """Available options to set when creating a cluster.
327
328 .. warning::
329 Importing options from ``couchbase.cluster`` is deprecated.
330 All options should be imported from ``couchbase.options``.
331
332 Cluster options enable the configuration of various global cluster settings.
333 Some options can be set globally for the cluster, but overridden for specific
334 operations (i.e. ClusterTimeoutOptions)
335
336 .. note::
337
338 The authenticator is mandatory, all the other cluster options are optional.
339
340 Args:
341 authenticator (Union[:class:`~.PasswordAuthenticator`, :class:`~.CertificateAuthenticator`]): An
342 authenticator instance
343 timeout_options (:class:`~.ClusterTimeoutOptions`): Timeout options for
344 various SDK operations. See :class:`~.options.ClusterTimeoutOptions` for details.
345 orphan_reporting_options (:class:`~.ClusterOrphanReportingOptions`): Options for SDK orphaned response reporting.
346 See :class:`~.ClusterOrphanReportingOptions` for details.
347 tracing_options (:class:`~.options.ClusterTimeoutOptions`): Tracing options for SDK tracing bevavior.
348 See :class:`~.options.ClusterTracingOptions` for details. These are ignored if an external tracer
349 is specified.
350 enable_tls (bool, optional): Set to True to enable tls. Defaults to False (disabled).
351 enable_mutation_tokens (bool, optional): Set to False to disable mutation tokens in mutation results.
352 Defaults to True (enabled).
353 enable_tcp_keep_alive (bool, optional): Set to False to disable tcp keep alive. Defaults to True (enabled).
354 ip_protocol (Union[str, :class:`.IpProtocol`): Set IP protocol. Defaults to IpProtocol.Any.
355 enable_dns_srv (bool, optional): Set to False to disable DNS SRV. Defaults to True (enabled).
356 show_queries (bool, optional): Set to True to enabled showing queries. Defaults to False (disabled).
357 enable_unordered_execution (bool, optional): Set to False to disable unordered query execution.
358 Defaults to True (enabled).
359 enable_clustermap_notification (bool, optional): Set to False to disable cluster map notification.
360 Defaults to True (enabled).
361 enable_compression (bool, optional): Set to False to disable compression. Defaults to True (enabled).
362 enable_tracing (bool, optional): Set to False to disable default threshold log tracing (enables no-op tracer).
363 Defaults to True (enabled).
364 enable_metrics (bool, optional): Set to False to disable default logging meter (enables no-op meter).
365 Defaults to True (enabled).
366 enable_orphan_reporting (bool, optional): Set to False to disable orphaned response reporting.
367 Defaults to True (enabled).
368 network (str, optional): Set network resolution method. Can be set to 'default' (if the client is running on the
369 same network as the server) or 'external' (if the client is running on a different network). Defaults to
370 'auto'.
371 tls_verify (Union[str, :class:`.TLSVerifyMode`], optional): Set tls verify mode. Defaults to
372 TLSVerifyMode.PEER.
373 disable_mozilla_ca_certificates (bool, optional): Set to True to disable loading Mozilla's list of CA
374 certificates for TLS verification. Defaults to False (enabled).
375 serializer (:class:`~.serializer.Serializer`, optional): Global serializer to translate JSON to Python objects.
376 Defaults to :class:`~.serializer.DefaultJsonSerializer`.
377 transcoder (:class:`~.transcoder.Transcoder`, optional): Global transcoder to use for kv-operations.
378 Defaults to :class:`~.transcoder.JsonTranscoder`.
379 tcp_keep_alive_interval (timedelta, optional): TCP keep-alive interval. Defaults to None.
380 config_poll_interval (timedelta, optional): Config polling floor interval.
381 Defaults to None.
382 config_poll_floor (timedelta, optional): Config polling floor interval.

Calls

no outgoing calls