You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/rest-api/pages/rest-xdcr-adv-settings.adoc
+84-1Lines changed: 84 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -94,13 +94,27 @@ If successful, the call returns an object similar to the following:
94
94
95
95
----
96
96
{
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,
98
110
"checkpointInterval": 600,
99
111
"ckptSvcCacheEnabled": true,
100
112
"collectionsOSOMode": true,
101
113
"compressionType": "Auto",
114
+
"conflictLogging": {},
102
115
"dcpEnablePurgeRollback": false,
103
116
"desiredLatency": 50,
117
+
"disableHlvBasedShortCircuit": false,
104
118
"docBatchSizeKb": 2048,
105
119
"failureRestartInterval": 10,
106
120
"filterBinary": false,
@@ -128,6 +142,7 @@ If successful, the call returns an object similar to the following:
128
142
"retryOnRemoteAuthErrMaxWaitSec": 360,
129
143
"skipReplSpecAutoGc": false,
130
144
"sourceNozzlePerNode": 2,
145
+
"targetTopologyLogFrequency": 1800,
131
146
"statsInterval": 1000,
132
147
"targetNozzlePerNode": 2,
133
148
"targetTopologyLogFrequency": 1800,
@@ -331,6 +346,60 @@ curl -X POST -u Administrator:password http://localhost:8091/<settings_URI> -d m
331
346
332
347
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].
333
348
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
+
334
403
[#xdcr-advanced-settings-rest]
335
404
== List of Advanced Settings
336
405
@@ -445,6 +514,20 @@ For supported expressions, see xref:xdcr-reference:xdcr-filtering-reference-intr
445
514
446
515
This setting can only be established for and retrieved from an individual replication: it cannot be established or retrieved as part of global settings.
447
516
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.
0 commit comments