Skip to content

Commit f5360ff

Browse files
authored
Backported changes from PR 3840 (#3900)
1 parent 1d3a419 commit f5360ff

File tree

1 file changed

+84
-1
lines changed

1 file changed

+84
-1
lines changed

modules/rest-api/pages/rest-xdcr-adv-settings.adoc

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,27 @@ If successful, the call returns an object similar to the following:
9494

9595
----
9696
{
97-
"casDriftThresholdSecs": 100,
97+
"cLogConnPoolGCIntervalMs": 60000,
98+
"cLogConnPoolLimit": 30,
99+
"cLogConnPoolReapIntervalMs": 120000,
100+
"cLogErrorTimeWindowMs": 120000,
101+
"cLogMaxErrorCount": 10,
102+
"cLogNetworkRetryCount": 5,
103+
"cLogNetworkRetryIntervalMs": 2000,
104+
"cLogPoolGetTimeoutMs": 5000,
105+
"cLogQueueCapacity": 6000,
106+
"cLogReattemptDurationMs": 600000,
107+
"cLogSetTimeoutMs": 5000,
108+
"cLogWorkerCount": 20,
109+
"casDriftThresholdSecs": 3900,
98110
"checkpointInterval": 600,
99111
"ckptSvcCacheEnabled": true,
100112
"collectionsOSOMode": true,
101113
"compressionType": "Auto",
114+
"conflictLogging": {},
102115
"dcpEnablePurgeRollback": false,
103116
"desiredLatency": 50,
117+
"disableHlvBasedShortCircuit": false,
104118
"docBatchSizeKb": 2048,
105119
"failureRestartInterval": 10,
106120
"filterBinary": false,
@@ -128,6 +142,7 @@ If successful, the call returns an object similar to the following:
128142
"retryOnRemoteAuthErrMaxWaitSec": 360,
129143
"skipReplSpecAutoGc": false,
130144
"sourceNozzlePerNode": 2,
145+
"targetTopologyLogFrequency": 1800,
131146
"statsInterval": 1000,
132147
"targetNozzlePerNode": 2,
133148
"targetTopologyLogFrequency": 1800,
@@ -331,6 +346,60 @@ curl -X POST -u Administrator:password http://localhost:8091/<settings_URI> -d m
331346

332347
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].
333348

349+
===== Change Settings for XDCR Generic Services Log Levels
350+
351+
The following example modifies the log levels for XDCR Generic Services, for a specific replication.
352+
Usually, you modify the log levels only when requested by Couchbase Support.
353+
354+
----
355+
curl -X POST -u Administrator:password http://localhost:8091/settings/replications -d 'genericServicesLogLevel={"RemoteClusterService":"Debug","ReplicationSpecService":"Error","BucketTopologyService":"Debug","CheckpointService":"Error"}'
356+
----
357+
358+
If successful, the call returns an object containing all current Generic Services related log level settings for the replication, including what's changed:
359+
360+
----
361+
{
362+
...
363+
"genericServicesLogLevel": {
364+
"AdminPort": "Info",
365+
"AuditService": "Info",
366+
"BackfillManager": "Info",
367+
"BackfillReplicationService": "Info",
368+
"BucketTopologyService": "Debug",
369+
"CapiService": "Info",
370+
"CheckpointService": "Error",
371+
"CollectionsManifestService": "Info",
372+
"Default": "Info",
373+
"GenericSupervisor": "Info",
374+
"GlobalSettingsService": "Info",
375+
"HttpServer": "Info",
376+
"InternalSettingsService": "Info",
377+
"ManifestService": "Info",
378+
"MessageUtils": "Info",
379+
"MetaKVMetadataService": "Info",
380+
"MigrationService": "Info",
381+
"P2PManagerService": "Info",
382+
"PipelineManager": "Info",
383+
"RemoteClusterService": "Debug",
384+
"ReplicationSettingService": "Info",
385+
"ReplicationSpecService": "Error",
386+
"ResourceManager": "Info",
387+
"SecurityService": "Info",
388+
"ThroughputThrottlerService": "Info",
389+
"TopologyService": "Info",
390+
"UtilsService": "Info",
391+
"XDCRFactory": "Info"
392+
},
393+
...
394+
}
395+
----
396+
397+
To view the current log levels for XDCR Generic Services anytime, use the following command:
398+
399+
----
400+
curl -s -X GET -u Administrator:password http://localhost:8091/settings/replications | jq
401+
----
402+
334403
[#xdcr-advanced-settings-rest]
335404
== List of Advanced Settings
336405

@@ -445,6 +514,20 @@ For supported expressions, see xref:xdcr-reference:xdcr-filtering-reference-intr
445514

446515
This setting can only be established for and retrieved from an individual replication: it cannot be established or retrieved as part of global settings.
447516

517+
| `genericServicesLogLevel`
518+
| JSON Object
519+
| This is the Generic Services related log level settings for the replication.
520+
521+
The keys represent service names and the associated values represent log levels.
522+
523+
In the example, the log level for `RemoteClusterService` is set to `Debug`, and for `ReplicationSpecService`, it's set to `Error`.
524+
525+
By default, non-pipeline specific services use the `Info` log level.
526+
You can also set the log level to `Error`, `Debug`, or `Trace`.
527+
528+
The `Default` key sets the log level for shared utilities like connection pools and data pools, which are used by multiple services.
529+
All these utilities use the same default logger, so changing the log level in `Default` affects all logger dependent utilities.
530+
448531
| `goGC`
449532
| Integer (0 to 100) or String ("off")
450533
| Default: 100.

0 commit comments

Comments
 (0)