From 2f0e0e00c6796e90ed1f02aa33fecc200f54816e Mon Sep 17 00:00:00 2001 From: Shwetha Rao Date: Wed, 24 Sep 2025 15:41:42 +0530 Subject: [PATCH] Backported changes from PR 3840 --- .../pages/rest-xdcr-adv-settings.adoc | 85 ++++++++++++++++++- 1 file changed, 84 insertions(+), 1 deletion(-) diff --git a/modules/rest-api/pages/rest-xdcr-adv-settings.adoc b/modules/rest-api/pages/rest-xdcr-adv-settings.adoc index 18f73c2bab..e6e5b7103e 100644 --- a/modules/rest-api/pages/rest-xdcr-adv-settings.adoc +++ b/modules/rest-api/pages/rest-xdcr-adv-settings.adoc @@ -94,13 +94,27 @@ If successful, the call returns an object similar to the following: ---- { - "casDriftThresholdSecs": 100, + "cLogConnPoolGCIntervalMs": 60000, + "cLogConnPoolLimit": 30, + "cLogConnPoolReapIntervalMs": 120000, + "cLogErrorTimeWindowMs": 120000, + "cLogMaxErrorCount": 10, + "cLogNetworkRetryCount": 5, + "cLogNetworkRetryIntervalMs": 2000, + "cLogPoolGetTimeoutMs": 5000, + "cLogQueueCapacity": 6000, + "cLogReattemptDurationMs": 600000, + "cLogSetTimeoutMs": 5000, + "cLogWorkerCount": 20, + "casDriftThresholdSecs": 3900, "checkpointInterval": 600, "ckptSvcCacheEnabled": true, "collectionsOSOMode": true, "compressionType": "Auto", + "conflictLogging": {}, "dcpEnablePurgeRollback": false, "desiredLatency": 50, + "disableHlvBasedShortCircuit": false, "docBatchSizeKb": 2048, "failureRestartInterval": 10, "filterBinary": false, @@ -128,6 +142,7 @@ If successful, the call returns an object similar to the following: "retryOnRemoteAuthErrMaxWaitSec": 360, "skipReplSpecAutoGc": false, "sourceNozzlePerNode": 2, + "targetTopologyLogFrequency": 1800, "statsInterval": 1000, "targetNozzlePerNode": 2, "targetTopologyLogFrequency": 1800, @@ -331,6 +346,60 @@ curl -X POST -u Administrator:password http://localhost:8091/ -d m For information about _XDCR with Sync Gateway mobile clusters in a bi-directional, active-active replication_, see xref:learn:clusters-and-availability/xdcr-active-active-sgw.adoc[XDCR Active-Active with Sync Gateway]. +===== Change Settings for XDCR Generic Services Log Levels + +The following example modifies the log levels for XDCR Generic Services, for a specific replication. +Usually, you modify the log levels only when requested by Couchbase Support. + +---- +curl -X POST -u Administrator:password http://localhost:8091/settings/replications -d 'genericServicesLogLevel={"RemoteClusterService":"Debug","ReplicationSpecService":"Error","BucketTopologyService":"Debug","CheckpointService":"Error"}' +---- + +If successful, the call returns an object containing all current Generic Services related log level settings for the replication, including what's changed: + +---- +{ +... +"genericServicesLogLevel": { + "AdminPort": "Info", + "AuditService": "Info", + "BackfillManager": "Info", + "BackfillReplicationService": "Info", + "BucketTopologyService": "Debug", + "CapiService": "Info", + "CheckpointService": "Error", + "CollectionsManifestService": "Info", + "Default": "Info", + "GenericSupervisor": "Info", + "GlobalSettingsService": "Info", + "HttpServer": "Info", + "InternalSettingsService": "Info", + "ManifestService": "Info", + "MessageUtils": "Info", + "MetaKVMetadataService": "Info", + "MigrationService": "Info", + "P2PManagerService": "Info", + "PipelineManager": "Info", + "RemoteClusterService": "Debug", + "ReplicationSettingService": "Info", + "ReplicationSpecService": "Error", + "ResourceManager": "Info", + "SecurityService": "Info", + "ThroughputThrottlerService": "Info", + "TopologyService": "Info", + "UtilsService": "Info", + "XDCRFactory": "Info" + }, +... +} +---- + +To view the current log levels for XDCR Generic Services anytime, use the following command: + +---- +curl -s -X GET -u Administrator:password http://localhost:8091/settings/replications | jq +---- + [#xdcr-advanced-settings-rest] == List of Advanced Settings @@ -445,6 +514,20 @@ For supported expressions, see xref:xdcr-reference:xdcr-filtering-reference-intr This setting can only be established for and retrieved from an individual replication: it cannot be established or retrieved as part of global settings. +| `genericServicesLogLevel` +| JSON Object +| This is the Generic Services related log level settings for the replication. + +The keys represent service names and the associated values represent log levels. + +In the example, the log level for `RemoteClusterService` is set to `Debug`, and for `ReplicationSpecService`, it's set to `Error`. + +By default, non-pipeline specific services use the `Info` log level. +You can also set the log level to `Error`, `Debug`, or `Trace`. + +The `Default` key sets the log level for shared utilities like connection pools and data pools, which are used by multiple services. +All these utilities use the same default logger, so changing the log level in `Default` affects all logger dependent utilities. + | `goGC` | Integer (0 to 100) or String ("off") | Default: 100.