-
Notifications
You must be signed in to change notification settings - Fork 62
/
configuration.json
1932 lines (1932 loc) · 80.7 KB
/
configuration.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"params": {
"allow_sanitize_value_in_deletion" : {
"default" : "true",
"descr": "Let EPE delete/prepare/del_with_meta prune any invalid body in the payload instead of failing",
"dynamic" : true,
"type" : "bool"
},
"alog_block_size": {
"default": "4096",
"descr": "Logging block size.",
"dynamic": false,
"type": "size_t",
"requires": {
"bucket_type": "persistent"
}
},
"alog_path": {
"default": "",
"descr": "Path to the access log.",
"dynamic": true,
"type": "std::string",
"requires": {
"bucket_type": "persistent"
}
},
"access_scanner_enabled": {
"default": {
"on-prem": "true",
"serverless": "false"
},
"descr": "True if access scanner task is enabled",
"dynamic": true,
"type": "bool",
"requires": {
"bucket_type": "persistent"
}
},
"alog_sleep_time": {
"default": "1440",
"descr": "Number of minutes between each sweep for the access log",
"dynamic": true,
"type": "size_t",
"validator": {
"range": {
"max": 4320,
"min": 1
}
},
"requires": {
"bucket_type": "persistent"
}
},
"alog_task_time": {
"default": "2",
"descr": "Hour in GMT time when access scanner task is scheduled to run",
"dynamic": true,
"type": "size_t",
"validator": {
"range": {
"max": 23,
"min": 0
}
},
"requires": {
"bucket_type": "persistent"
}
},
"alog_resident_ratio_threshold": {
"default": "95",
"desr": "Resident ratio percentage above which we do not generate access log",
"dynamic": true,
"type": "size_t",
"validator": {
"range": {
"max": 100,
"min": 0
}
},
"requires": {
"bucket_type": "persistent"
}
},
"alog_max_stored_items": {
"default": "1024",
"desr": "The maximum number of items the Access Scanner will hold in memory before commiting them to disk",
"type": "size_t",
"dynamic": true,
"validator": {
"range": {
"min": 1
}
},
"requires": {
"bucket_type": "persistent"
}
},
"backend": {
"default": "couchdb",
"desr": "The storage backend to use. The \"nexus\" variant is a test only backend which will run two backends for a single bucket and compare the results of their operations.",
"dynamic": false,
"type": "std::string",
"validator": {
"enum": [
"couchdb",
"magma",
"nexus"
]
}
},
"backfill_mem_threshold": {
"default": "96",
"desr": "Memory usage threshold (percentage of bucket quota) after which backfill will be snoozed.",
"dynamic": true,
"type": "size_t",
"validator": {
"range": {
"max": 100,
"min": 0
}
}
},
"bfilter_enabled": {
"default": "true",
"desr": "Enable or disable the bloom filter",
"dynamic": true,
"type": "bool"
},
"bfilter_key_count": {
"default": "10000",
"desr": "Bloomfilter: Estimated key count per vbucket",
"dynamic": true,
"type": "size_t",
"validator": {
"range": {
"min": 1
}
}
},
"bfilter_fp_prob": {
"default": "0.01",
"desr": "Bloomfilter: Allowed probability for false positives",
"dynamic": true,
"type": "float"
},
"bfilter_residency_threshold": {
"default": "0.1",
"desr" : "If resident ratio (during full eviction) were found less than this threshold, compaction will include all items into bloomfilter",
"dynamic": true,
"type" : "float",
"validator": {
"range": {
"max": 1.0,
"min": 0.0
}
}
},
"bucket_type": {
"default": "persistent",
"descr": "Bucket type in the couchbase server",
"dynamic": false,
"type": "std::string",
"validator": {
"enum": [
"ephemeral",
"persistent"
]
}
},
"bucket_quota_change_task_poll_interval": {
"default": "30",
"descr": "Time in seconds between the BucketQuotaChangeTask polling memory usage to attempt to reduce the bucket quota",
"dynamic": true,
"type": "size_t"
},
"compaction_expire_from_start": {
"default": "true",
"descr": "Should compaction expire items that were logically deleted at the start of the compaction (true) or at the point in time at which they were visited (false)?",
"dynamic": true,
"type": "bool"
},
"chk_expel_enabled": {
"default" : "true",
"descr": "Enable the ability to expel (remove from memory) items from a checkpoint. An item can be expelled if all cursors in the checkpoint have iterated past the item.",
"dynamic" : true,
"type": "bool"
},
"checkpoint_destruction_tasks": {
"default": "2",
"descr": "Number of tasks responsible for destroying closed unreferenced checkpoints.",
"dynamic": true,
"type": "size_t",
"validator": {
"range": {
"min": 1
}
}
},
"checkpoint_memory_ratio": {
"default": "0.2",
"descr": "Max ratio of the bucket quota that can be allocated in checkpoints. The system enters a TempOOM phase if hit.",
"dynamic": true,
"type": "float",
"validator": {
"range": {
"min": 0.0,
"max": 1.0
}
}
},
"checkpoint_memory_recovery_upper_mark": {
"default": "0.9",
"descr": "Fraction of the checkpoint quota (as computed by checkpoint_memory_ratio) that triggers attempt of memory releasing from checkpoint.",
"dynamic": true,
"type": "float",
"validator": {
"range": {
"min": 0.0,
"max": 1.0
}
}
},
"checkpoint_memory_recovery_lower_mark": {
"default": "0.6",
"descr": "Fraction of the checkpoint quota (as computed by checkpoint_memory_ratio) that represents the target of checkpoint memory recovery. Memory recovery yields when reached.",
"dynamic": true,
"type": "float",
"validator": {
"range": {
"min": 0.0,
"max": 1.0
}
}
},
"checkpoint_remover_task_count": {
"default": "1",
"descr": "Number of concurrent tasks performing ItemExpel and CursorDrop/CheckpointRemoval",
"dynamic": false,
"type": "size_t",
"validator": {
"range": {
"min": 1
}
}
},
"checkpoint_max_size": {
"default": "0",
"descr": "Max size (in bytes) of a single checkpoint. '0' for EPEngine auto-setup.",
"dynamic": true,
"type": "size_t"
},
"collections_drop_compaction_delay" : {
"default": "5000",
"descr": "How many milliseconds before compaction runs following the drop of a collection",
"dynamic": false,
"type": "size_t"
},
"collections_enabled" : {
"default": "true",
"descr": "Enable the collections functionality, enabling the storage of collection metadata",
"dynamic": false,
"type": "bool"
},
"compaction_expiry_fetch_inline" : {
"default": "true",
"descr": "If compaction requires a bgfetch before attempting expiry to ensure it does not expire an older version of the document, true: fetch it in the compaction thread. false: queue a bgfetch for the bgfetcher task to complete",
"dynamic": true,
"type": "bool"
},
"compression_mode": {
"default": "off",
"descr": "Determines which compression mode the bucket operates in",
"dynamic": true,
"type": "std::string",
"validator": {
"enum": [
"off",
"passive",
"active"
]
}
},
"compaction_max_concurrent_ratio": {
"default": "0.5",
"desr" : "Maximum number of CompactVBucketTask tasks which can run concurrently, as a fraction of the possible Writer task concurrency. Note that a minimum of 1, and a maximum of N-1 CompactVBucketTasks will be run (where N is the possible Writer task concurrency), to ensure both forward progress for Compaction and Flushing.",
"dynamic": true,
"type" : "float",
"validator": {
"range": {
"min": 0.0,
"max": 1.0
}
}
},
"concurrent_pagers": {
"default": "2",
"descr": "Number of eviction pager tasks to create when memory usage is high",
"dynamic": false,
"type": "size_t",
"validator": {
"range": {
"min": 1
}
}
},
"expiry_pager_concurrency": {
"default": "2",
"descr": "Number of tasks which are created to scan for and delete expired items",
"dynamic": false,
"type": "size_t",
"validator": {
"range": {
"min": 1,
"max": 128
}
}
},
"conflict_resolution_type": {
"default": "seqno",
"desr": "Conflict resolution mode to use for this Bucket",
"dynamic": false,
"type": "std::string",
"validator": {
"enum": [
"seqno",
"lww",
"custom"
]
}
},
"couch_bucket": {
"default": "default",
"descr": "The name of this bucket",
"dynamic": false,
"type": "std::string"
},
"data_traffic_enabled": {
"default": "true",
"descr": "True if we want to enable data traffic after warmup is complete",
"dynamic": false,
"type": "bool"
},
"dbname": {
"default": "",
"descr": "Path to on-disk storage.",
"dynamic": false,
"type": "std::string"
},
"dcp_noop_mandatory_for_v5_features": {
"default": "true",
"descr": "Forces clients to enable noop for v5 features",
"dynamic": true,
"type": "bool"
},
"defragmenter_enabled": {
"default": "true",
"descr": "True if defragmenter task is enabled",
"dynamic": true,
"type": "bool"
},
"defragmenter_interval": {
"default": "10.0",
"descr": "How often defragmenter task should be run (in seconds).",
"dynamic": true,
"type": "float"
},
"defragmenter_age_threshold": {
"default": "1",
"descr": "How old (measured in number of DefragmenterVisitor passes) must a document be to be considered for defragmentation.",
"type": "size_t",
"dynamic" : true
},
"defragmenter_stored_value_age_threshold": {
"default": "1",
"descr": "How old (measured in number of DefragmenterVisitor passes) must a StoredValue be to be considered for defragmentation.",
"type": "size_t",
"dynamic" : true
},
"defragmenter_chunk_duration": {
"default": "20",
"descr": "Maximum time (in ms) defragmentation task will run for before being paused (and resumed at the next defragmenter_interval).",
"dynamic": true,
"type": "size_t",
"validator": {
"range": {
"min": 1
}
}
},
"defragmenter_mode" : {
"default": "auto_pid",
"descr": "Determines how the defragmenter controls its sleep interval. When static defragmenter_interval is used. When auto_linear, scale the sleep time using a scored defragmentation when it falls between defragmenter_auto_lower_trigger and defragmenter_auto_upper_trigger. When auto_pid use a PID controller to computer reductions in the sleep interval when scored fragmentation is above defragmenter_auto_lower_trigger.",
"dynamic": true,
"type": "std::string",
"validator": {
"enum": [
"static",
"auto_linear",
"auto_pid"
]
}
},
"defragmenter_auto_lower_threshold" : {
"default": "0.07",
"descr": "When mode is not static and scored fragmentation is above this value, a sleep time between defragmenter_auto_min_sleep and defragmenter_auto_max_sleep will be used",
"dynamic": true,
"type": "float"
},
"defragmenter_auto_upper_threshold" : {
"default": "0.25",
"descr": "When mode is auto_linear and scored fragmentation is above this value, the defragmenter will use defragmenter_auto_min_sleep",
"dynamic": true,
"type": "float"
},
"defragmenter_auto_max_sleep" : {
"default": "10.0",
"descr": "The maximum sleep that the auto controller can set",
"dynamic": true,
"type": "float"
},
"defragmenter_auto_min_sleep" : {
"default": "0.6",
"descr": "The minimum sleep that the auto controller can set",
"dynamic": true,
"type": "float"
},
"defragmenter_auto_pid_p" : {
"default": "52",
"descr": "The p term for the PID controller",
"dynamic": true,
"type": "float"
},
"defragmenter_auto_pid_i" : {
"default": "0.0000197",
"descr": "The i term for the PID controller",
"dynamic": true,
"type": "float"
},
"defragmenter_auto_pid_d" : {
"default": "0.0",
"descr": "The d term for the PID controller",
"dynamic": true,
"type": "float"
},
"defragmenter_auto_pid_dt" : {
"default": "30000",
"descr": "The dt (interval) term for the PID controller. Value represents milliseconds",
"dynamic": true,
"type": "size_t"
},
"durability_min_level": {
"default": "none",
"descr": "Bucket Minimum Durability Level. KVEngine upgrades any write request to this min-level, if the min-level is higher than the write-level. May upgrade a NormalWrite to SyncWrite.",
"dynamic": true,
"type": "std::string",
"validator": {
"enum": [
"none",
"majority",
"majority_and_persist_on_master",
"persist_to_majority"
]
}
},
"ephemeral_full_policy": {
"default": "auto_delete",
"descr": "How should an Ephemeral bucket becoming full be handled?",
"dynamic": true,
"type": "std::string",
"validator": {
"enum": [
"auto_delete",
"fail_new_data"
]
},
"requires": {
"bucket_type": "ephemeral"
}
},
"ephemeral_metadata_purge_age": {
"default": "60",
"descr": "Age in seconds after which Ephemeral metadata is purged entirely from memory. Purging disabled if set to -1.",
"dynamic": true,
"type": "ssize_t",
"requires": {
"bucket_type": "ephemeral"
}
},
"ephemeral_metadata_purge_interval": {
"default": "60",
"descr": "Time in seconds between automatic, periodic runs of the Ephemeral metadata purge task. Periodic purging disabled if set to 0.",
"dynamic": true,
"type": "size_t",
"requires": {
"bucket_type": "ephemeral"
}
},
"ephemeral_metadata_mark_stale_chunk_duration": {
"default": "20",
"descr": "Maximum time (in ms) ephemeral hash table cleaner task will run for before being paused (and resumed at the next ephemeral_metadata_purge_interval).",
"dynamic": true,
"type": "size_t",
"requires": {
"bucket_type": "ephemeral"
}
},
"ephemeral_metadata_purge_stale_chunk_duration": {
"default": "20",
"descr": "Maximum time (in ms) ephemeral stale metadata purge task will run for before being paused (and resumed at the next ephemeral_metadata_purge_interval).",
"dynamic": true,
"type": "size_t",
"requires": {
"bucket_type": "ephemeral"
}
},
"executor_pool_backend": {
"default": "folly",
"descr": "Executor Pool backend in use",
"dynamic": false,
"type": "std::string",
"validator": {
"enum": [
"cb3",
"folly"
]
}
},
"exp_pager_enabled": {
"default": "true",
"descr": "True if expiry pager task is enabled",
"dynamic": true,
"type": "bool"
},
"exp_pager_stime": {
"default": "600",
"descr": "Number of seconds between expiry pager runs.",
"dynamic": true,
"type": "size_t"
},
"exp_pager_initial_run_time": {
"default": "-1",
"descr": "Hour in GMT time when expiry pager can be scheduled for initial run",
"dynamic": true,
"type": "ssize_t",
"validator": {
"range": {
"max": 23,
"min": -1
}
}
},
"failpartialwarmup": {
"default": "true",
"descr": "If true then do not allow traffic to be enabled to the bucket if warmup didn't complete successfully",
"dynamic": false,
"type": "bool"
},
"flusher_total_batch_limit" : {
"default": "4000000",
"descr": "Number of items that all flushers can be currently flushing. Each flusher has flusher_total_batch_limit / num_writer_threads individual batch size. Individual batches may be larger than this value, as we cannot split Memory checkpoints across multiple commits.",
"dynamic": true,
"type": "size_t"
},
"flush_batch_max_bytes": {
"default": "2147483648",
"descr": "Max size (in bytes) of a single flush-batch passed to the KVStore for persistence.",
"dynamic": true,
"type": "size_t",
"validator": {
"range": {
"min": 1
}
}
},
"freq_counter_increment_factor": {
"default": "0.012",
"descr": "The increment factor of the ProbabilisticCounter being used for the frequency counter. The default value of 0.012 is set such that it allows an 8-bit ProbabilisticCounter to mimic a uint16 counter. See the comment on the ProbabilisticCounter class for more information.",
"dynamic": false,
"type": "float",
"validator": {
"range": {
"min": 0
}
}
},
"getl_default_timeout": {
"default": "15",
"descr": "The default timeout for a getl lock in (s)",
"dynamic": true,
"type": "size_t"
},
"getl_max_timeout": {
"default": "30",
"descr": "The maximum timeout for a getl lock in (s)",
"dynamic": true,
"type": "size_t"
},
"hlc_drift_ahead_threshold_us": {
"default": "5000000",
"descr": "The μs threshold of drift at which we will increment a vbucket's ahead counter.",
"dynamic": true,
"type": "size_t"
},
"hlc_drift_behind_threshold_us": {
"default": "5000000",
"descr": "The μs threshold of drift at which we will increment a vbucket's behind counter.",
"dynamic": true,
"type": "size_t"
},
"hlc_max_future_threshold_us": {
"default": "100000000",
"descr": "The acceptable μs threshold of drift at which we accept a new cas value.",
"dynamic": true,
"type": "size_t"
},
"hlc_invalid_strategy": {
"default": "ignore",
"descr": "Determines how the system handles operations with invalid CAS values. error: fails CAS values outside hlc_max_future_threshold. ignore: ignores CAS validation. replace: generates a new CAS for invalid values.",
"dynamic": true,
"type": "std::string",
"validator": {
"enum": [
"error",
"ignore",
"replace"
]
}
},
"dcp_hlc_invalid_strategy": {
"default": "ignore",
"descr": "Determines how DCP handles operations with invalid CAS values. error: fails CAS values outside hlc_max_future_threshold. ignore: ignores CAS validation. replace: generates a new CAS for invalid values.",
"dynamic": true,
"type": "std::string",
"validator": {
"enum": [
"error",
"ignore",
"replace"
]
}
},
"ht_locks": {
"default": {
"on-prem": "47",
"serverless": "47",
"tsan": "23"
},
"dynamic": false,
"type": "size_t"
},
"ht_resize_algo": {
"default": "incremental",
"descr": "The algorithm to use for resizing HashTable objects. `one_step` locks the entire HashTable and resizes in one step. `incremental` takes multiple steps to complete, allowing most operations to proceed concurrently.",
"dynamic": true,
"type": "std::string",
"validator": {
"enum": [
"one_step",
"incremental"
]
}
},
"ht_resize_interval": {
"default": "1",
"descr": "Interval in seconds to wait between HashtableResizerTask executions.",
"dynamic": true,
"type": "size_t"
},
"ht_size": {
"default": "47",
"descr": "The initial and minimum number of slots in HashTable objects.",
"dynamic": true,
"type": "size_t",
"validator": {
"range": {
"min": 1,
"max": 2147483647
}
}
},
"ht_size_decrease_delay" : {
"default": "60",
"descr": "Delay in seconds before decreasing the size of a HashTable following a previous resize.",
"dynamic": true,
"type": "size_t"
},
"ht_temp_items_allowed_percent" : {
"default": "10",
"description": "Number of temp items (as percentage of current hashtable size) to be kept in the hashtable. Used to determine if a temp item (for items not resident in memory or deleted items) should be delete immediately or can be left around until pager (expiry or item) cleans it up.",
"dynamic": true,
"type": "size_t",
"validator": {
"range": {
"min": 0,
"max": 100
}
}
},
"item_compressor_interval": {
"default": "250",
"descr": "How often the item compressor task should run (in milliseconds)",
"dynamic": true,
"type": "size_t"
},
"item_compressor_chunk_duration": {
"default": "20",
"descr": "Maximum time (in ms) item compression task will run for before being paused (and resumed at the next item_compressor_interval).",
"dynamic": true,
"type": "size_t",
"validator": {
"range": {
"min": 1
}
}
},
"item_eviction_policy": {
"default": "value_only",
"descr": "Item eviction policy on cache, which is used by the item pager",
"dynamic": false,
"type": "std::string",
"validator": {
"enum": [
"value_only",
"full_eviction"
]
},
"requires": {
"bucket_type": "persistent"
}
},
"item_eviction_age_percentage": {
"default": "30",
"descr": "The age percentage used when determining the age threshold in the learning_age_and_mfu eviction policy.",
"dynamic": true,
"type": "size_t",
"validator": {
"range": {
"min": 0,
"max": 100
}
}
},
"item_eviction_freq_counter_age_threshold": {
"default": "1",
"decr": "The threshold for determining at what execution frequency we consider age when selecting items for eviction.",
"dynamic": true,
"type": "size_t",
"validator": {
"range": {
"min": 0,
"max": 255
}
}
},
"item_eviction_strategy": {
"default": "upfront_mfu_only",
"descr": "Strategy used by eviction to select items to evict. May be based solely on item hotness (upfront_mfu_only) or may learn the distribution of age and hotness (learning_age_and_mfu). In the case of learning_age_and_mfu, the initial item hotness value is always fixed regardless of the initial_mfu_percentile setting.",
"dynamic": true,
"type": "std::string",
"validator": {
"enum": [
"upfront_mfu_only",
"learning_age_and_mfu"
]
}
},
"item_eviction_initial_mfu_percentile": {
"default": "25",
"descr": "Percentile of existing item MFU distribution to use to determine the MFU to give to new items (0 would insert new items with MFU equal to that of the coldest item present; 100 to that of hottest item present) for the upfront_mfu_only eviction strategy.",
"dynamic": true,
"type": "size_t",
"validator": {
"range": {
"min": 0,
"max": 100
}
}
},
"item_eviction_initial_mfu_update_interval": {
"default": "1",
"descr": "Time between updates of the initial MFU given to new items (seconds)",
"dynamic": true,
"type": "float",
"validator": {
"range": {
"min": 1
}
}
},
"item_freq_decayer_chunk_duration": {
"default": "20",
"descr": "Maximum time (in ms) itemFreqDecayer task will run for before being paused.",
"dynamic": true,
"type": "size_t",
"validator": {
"range": {
"min": 1
}
}
},
"item_freq_decayer_percent": {
"default": "50",
"descr": "The percent that the frequency counter of a document is decayed when visited by item_freq_decayer.",
"dynamic": true,
"type": "size_t",
"validator": {
"range": {
"min": 0,
"max": 100
}
}
},
"connection_manager_interval": {
"default": "0.1",
"descr": "How often connection manager task should be run (in seconds).",
"type": "float",
"dynamic": true,
"validator": {
"range": {
"min": 0.1
}
}
},
"connection_cleanup_interval": {
"default": "1",
"descr": "How often connection manager task should release dead connections (in seconds).",
"type": "float",
"dynamic": true,
"validator": {
"range": {
"min": 0.1
}
}
},
"max_checkpoints": {
"default": "10",
"descr": "The expected max number of checkpoints in each VBucket on a balanced system. Note: That is not a hard limit on the single vbucket. That is used (together with checkpoint_memory_ratio) for computing checkpoint_max_size, which triggers checkpoint creation.",
"dynamic": true,
"type": "size_t",
"validator": {
"range": {
"min": 2
}
}
},
"max_failover_entries": {
"default": "25",
"descr": "maximum number of failover log entries",
"dynamic": false,
"type": "size_t"
},
"max_item_privileged_bytes": {
"default": "(1024 * 1024)",
"descr": "Maximum number of bytes allowed for 'privileged' (system) data for an item in addition to the max_item_size bytes",
"dynamic": true,
"type": "size_t"
},
"max_item_size": {
"default": "(20 * 1024 * 1024)",
"descr": "Maximum number of bytes allowed for an item",
"dynamic": true,
"type": "size_t"
},
"max_size": {
"default": "(100 * 1024 * 1024)",
"dynamic": true,
"type": "size_t",
"descr": "Memory quota (in bytes) for this bucket.",
"aliases":["cache_size"]
},
"max_ttl":{
"default": "0",
"descr": "A maximum TTL (in seconds) that will apply to all new documents, documents set with no TTL will be given this value. A value of 0 means this is disabled",
"dynamic": true,
"type": "size_t",
"validator": {
"range": {
"min": 0,
"max": 2147483647
}
}
},
"max_vbuckets": {
"default": {
"on-prem": "1024",
"serverless": "48"
},
"descr": "Maximum number of vbuckets expected",
"dynamic": false,
"type": "size_t"
},
"max_threads": {
"default": "0",
"descr": "Maximum number of threads of any single class (0 = automatically select based on core count)",
"dynamic": false,
"type": "size_t"
},
"max_num_bgfetchers": {
"default": "0",
"descr": "Maximum number of bg fetcher objects (the number of concurrent bg fetch tasks we can run). 0 = auto-configure which means we use the same number as the number of reader threads (num_reader_threads).",
"dynamic": false,
"type": "size_t"
},
"max_num_flushers": {
"default": "0",
"descr": "Maximum number of flusher objects (the number of concurrent flusher tasks we can run). 0 = auto-configure which means we use the same number as the number of shards (max_num_shards - for historic reasons). See also num_writer_threads.",
"dynamic": false,
"type": "size_t"
},
"max_num_shards": {
"default": {
"on-prem": "0",
"serverless": "1"
},
"descr": "Maximum mumber of shards (0 = auto-configure)",
"dynamic": false,
"type": "size_t"
},
"max_num_workers": {
"default": "4",
"descr": "Bucket Priority relative to other buckets",
"dynamic": false,
"type": "size_t",
"validator": {
"range": {
"max": 8,
"min": 1
}
}
},
"mem_used_merge_threshold_percent" : {
"default": "0.5",
"descr": "What percent of max_data size should we allow the estimated total memory to lag by (EPStats::getEstimatedTotalMemoryUsed)",
"dynamic": true,
"type": "float",
"validator": {
"range": {
"max": 100.0,
"min": 0.0
}
}
},
"nexus_primary_backend": {
"default": "couchdb",
"descr": "If using the Nexus testing backend then this configuration parameter specifies which type of KVStore to create as the primary variant.",
"dynamic": false,
"type": "std::string",
"validator": {
"enum": [
"couchdb",
"magma"
]
},
"requires": {
"backend": "nexus"
}
},
"nexus_secondary_backend": {
"default": "magma",
"descr": "If using the Nexus testing backend then this configuration parameter specifies which type of KVStore to create as the secondary variant.",
"dynamic": false,
"type": "std::string",
"validator": {
"enum": [
"couchdb",
"magma"
]
},
"requires": {
"backend": "nexus"
}
},
"nexus_error_handling": {
"default": "throw",
"descr": "If using the Nexus testing backend then this config parameter specifies how errors (discrepancies) between the primary and secondary backends are handled.",
"dynamic": false,
"type": "std::string",
"validator": {
"enum": [
"abort",
"log",
"throw"
]
},
"requires": {
"backend": "nexus"
}
},
"nexus_implicit_compaction_enabled": {
"default": "true",
"descr": "Should NexusKVStore enable implicit compaction?",
"dynamic": false,
"type": "bool",
"requires": {
"backend": "nexus"
}
},
"nexus_concurrent_flush_compaction_enabled": {
"default": "true",
"descr": "Should NexusKVStore enable concurrent flushing and compaction?",