@@ -102,14 +102,14 @@ const (
102
102
DefaultLogRotationConfig = `{"maxsize": 100, "maxage": 0, "maxbackups": 0, "localtime": false, "compress": false}`
103
103
104
104
// ExperimentalDistributedTracingAddress is the default collector address.
105
- // Deprecated in v3.6 and will be decommissioned in v3.7. Use DefaultDistributedTracingAddress instead.
106
105
// TODO: delete in v3.7
106
+ // Deprecated: Use DefaultDistributedTracingAddress instead. Will be decommissioned in v3.7.
107
107
ExperimentalDistributedTracingAddress = "localhost:4317"
108
108
// DefaultDistributedTracingAddress is the default collector address.
109
109
DefaultDistributedTracingAddress = "localhost:4317"
110
110
// ExperimentalDistributedTracingServiceName is the default etcd service name.
111
- // Deprecated in v3.6 and will be decommissioned in v3.7. Use DefaultDistributedTracingServiceName instead.
112
111
// TODO: delete in v3.7
112
+ // Deprecated: Use DefaultDistributedTracingServiceName instead. Will be decommissioned in v3.7.
113
113
ExperimentalDistributedTracingServiceName = "etcd"
114
114
// DefaultDistributedTracingServiceName is the default etcd service name.
115
115
DefaultDistributedTracingServiceName = "etcd"
@@ -196,19 +196,20 @@ type Config struct {
196
196
//revive:disable-next-line:var-naming
197
197
WalDir string `json:"wal-dir"`
198
198
199
- // SnapshotCount is deprecated in v3.6 and will be decommissioned in v3.7 .
199
+ // SnapshotCount is the number of committed transactions that trigger a snapshot to disk .
200
200
// TODO: remove it in 3.7.
201
+ // Deprecated: Will be decommissioned in v3.7.
201
202
SnapshotCount uint64 `json:"snapshot-count"`
202
203
203
204
// ExperimentalSnapshotCatchUpEntries is the number of entries for a slow follower
204
205
// to catch-up after compacting the raft storage entries.
205
206
// We expect the follower has a millisecond level latency with the leader.
206
207
// The max throughput is around 10K. Keep a 5K entries is enough for helping
207
208
// follower to catch up.
208
- // Deprecated in v3.6 and will be removed in v3.7.
209
209
// TODO: remove in v3.7.
210
210
// Note we made a mistake in https://github.com/etcd-io/etcd/pull/15033. The json tag
211
211
// `*-catch-up-*` isn't consistent with the command line flag `*-catchup-*`.
212
+ // Deprecated: Use SnapshotCatchUpEntries instead. Will be removed in v3.7.
212
213
ExperimentalSnapshotCatchUpEntries uint64 `json:"experimental-snapshot-catch-up-entries"`
213
214
214
215
// SnapshotCatchUpEntries is the number of entires for a slow follower
@@ -218,8 +219,9 @@ type Config struct {
218
219
// follower to catch up.
219
220
SnapshotCatchUpEntries uint64 `json:"snapshot-catchup-entries"`
220
221
221
- // MaxSnapFiles is deprecated in v3.6 and will be decommissioned in v3.7 .
222
+ // MaxSnapFiles is the maximum number of snapshot files .
222
223
// TODO: remove it in 3.7.
224
+ // Deprecated: Will be removed in v3.7.
223
225
MaxSnapFiles uint `json:"max-snapshots"`
224
226
//revive:disable-next-line:var-naming
225
227
MaxWalFiles uint `json:"max-wals"`
@@ -407,65 +409,74 @@ type Config struct {
407
409
408
410
ExperimentalInitialCorruptCheck bool `json:"experimental-initial-corrupt-check"`
409
411
// ExperimentalCorruptCheckTime is the duration of time between cluster corruption check passes.
410
- // Deprecated in v3.6 and will be decommissioned in v3.7.
411
412
// TODO: delete in v3.7
413
+ // Deprecated: Use CorruptCheckTime instead. Will be decommissioned in v3.7.
412
414
ExperimentalCorruptCheckTime time.Duration `json:"experimental-corrupt-check-time"`
413
- CorruptCheckTime time.Duration `json:"corrupt-check-time"`
415
+ // CorruptCheckTime is the duration of time between cluster corruption check passes.
416
+ CorruptCheckTime time.Duration `json:"corrupt-check-time"`
414
417
// ExperimentalCompactHashCheckEnabled enables leader to periodically check followers compaction hashes.
415
- // Deprecated in v3.6 and will be decommissioned in v3.7.
416
418
// TODO: delete in v3.7
419
+ // Deprecated: Use CompactHashCheck Feature Gate. Will be decommissioned in v3.7.
417
420
ExperimentalCompactHashCheckEnabled bool `json:"experimental-compact-hash-check-enabled"`
418
421
// ExperimentalCompactHashCheckTime is the duration of time between leader checks followers compaction hashes.
419
- // Deprecated in v3.6 and will be decommissioned in v3.7.
420
422
// TODO: delete in v3.7
423
+ // Deprecated: Use CompactHashCheckTime instead. Will be decommissioned in v3.7.
421
424
ExperimentalCompactHashCheckTime time.Duration `json:"experimental-compact-hash-check-time"`
422
- CompactHashCheckTime time.Duration `json:"compact-hash-check-time"`
425
+ // CompactHashCheckTime is the duration of time between leader checks followers compaction hashes.
426
+ CompactHashCheckTime time.Duration `json:"compact-hash-check-time"`
423
427
424
428
// ExperimentalEnableLeaseCheckpoint enables leader to send regular checkpoints to other members to prevent reset of remaining TTL on leader change.
425
429
ExperimentalEnableLeaseCheckpoint bool `json:"experimental-enable-lease-checkpoint"`
426
430
// ExperimentalEnableLeaseCheckpointPersist enables persisting remainingTTL to prevent indefinite auto-renewal of long lived leases. Always enabled in v3.6. Should be used to ensure smooth upgrade from v3.5 clusters with this feature enabled.
427
431
// Requires experimental-enable-lease-checkpoint to be enabled.
428
- // Deprecated in v3.6.
429
432
// TODO: Delete in v3.7
433
+ // Deprecated: To be decommissioned in v3.7.
430
434
ExperimentalEnableLeaseCheckpointPersist bool `json:"experimental-enable-lease-checkpoint-persist"`
431
435
// ExperimentalCompactionBatchLimit Sets the maximum revisions deleted in each compaction batch.
432
- // Deprecated in v3.6 and will be decommissioned in v3.7.
433
436
// TODO: Delete in v3.7
437
+ // Deprecated: Use CompactionBatchLimit instead. Will be decommissioned in v3.7.
434
438
ExperimentalCompactionBatchLimit int `json:"experimental-compaction-batch-limit"`
435
- CompactionBatchLimit int `json:"compaction-batch-limit"`
439
+ // CompactionBatchLimit Sets the maximum revisions deleted in each compaction batch.
440
+ CompactionBatchLimit int `json:"compaction-batch-limit"`
436
441
// ExperimentalCompactionSleepInterval is the sleep interval between every etcd compaction loop.
437
- // Deprecated in v3.6 and will be decommissioned in v3.7.
438
442
// TODO: Delete in v3.7
443
+ // Deprecated: Use CompactionSleepInterval instead. Will be decommissioned in v3.7.
439
444
ExperimentalCompactionSleepInterval time.Duration `json:"experimental-compaction-sleep-interval"`
440
445
// CompactionSleepInterval is the sleep interval between every etcd compaction loop.
441
446
CompactionSleepInterval time.Duration `json:"compaction-sleep-interval"`
442
447
// ExperimentalWatchProgressNotifyInterval is the time duration of periodic watch progress notifications.
443
- // Deprecated in v3.6 and will be decommissioned in v3.7.
444
448
// TODO: Delete in v3.7
449
+ // Deprecated: Use WatchProgressNotifyInterval instead. Will be decommissioned in v3.7.
445
450
ExperimentalWatchProgressNotifyInterval time.Duration `json:"experimental-watch-progress-notify-interval"`
446
- WatchProgressNotifyInterval time.Duration `json:"watch-progress-notify-interval"`
451
+ // WatchProgressNotifyInterval is the time duration of periodic watch progress notifications.
452
+ WatchProgressNotifyInterval time.Duration `json:"watch-progress-notify-interval"`
447
453
// ExperimentalWarningApplyDuration is the time duration after which a warning is generated if applying request
448
454
// takes more time than this value.
449
- // Deprecated in v3.6 and will be decommissioned in v3.7.
450
455
// TODO: Delete in v3.7
456
+ // Deprecated: Use WarningApplyDuration instead. Will be decommissioned in v3.7.
451
457
ExperimentalWarningApplyDuration time.Duration `json:"experimental-warning-apply-duration"`
452
- WarningApplyDuration time.Duration `json:"warning-apply-duration"`
458
+ // WarningApplyDuration is the time duration after which a warning is generated if applying request
459
+ WarningApplyDuration time.Duration `json:"warning-apply-duration"`
453
460
// ExperimentalBootstrapDefragThresholdMegabytes is the minimum number of megabytes needed to be freed for etcd server to
454
461
// consider running defrag during bootstrap. Needs to be set to non-zero value to take effect.
455
- // Deprecated in v3.6 and will be decommissioned in v3.7.
456
462
// TODO: Delete in v3.7
463
+ // Deprecated: Use BootstrapDefragThresholdMegabytes instead. Will be decommissioned in v3.7.
457
464
ExperimentalBootstrapDefragThresholdMegabytes uint `json:"experimental-bootstrap-defrag-threshold-megabytes"`
458
- BootstrapDefragThresholdMegabytes uint `json:"bootstrap-defrag-threshold-megabytes"`
465
+ // BootstrapDefragThresholdMegabytes is the minimum number of megabytes needed to be freed for etcd server to
466
+ BootstrapDefragThresholdMegabytes uint `json:"bootstrap-defrag-threshold-megabytes"`
459
467
// WarningUnaryRequestDuration is the time duration after which a warning is generated if applying
460
468
// unary request takes more time than this value.
461
469
WarningUnaryRequestDuration time.Duration `json:"warning-unary-request-duration"`
462
- // ExperimentalWarningUnaryRequestDuration is deprecated, please use WarningUnaryRequestDuration instead.
470
+ // ExperimentalWarningUnaryRequestDuration is the time duration after which a warning is generated if applying
471
+ // TODO: Delete in v3.7
472
+ // Deprecated: Use WarningUnaryRequestDuration. Will be decommissioned in v3.7.
463
473
ExperimentalWarningUnaryRequestDuration time.Duration `json:"experimental-warning-unary-request-duration"`
464
474
// ExperimentalMaxLearners sets a limit to the number of learner members that can exist in the cluster membership.
465
- // Deprecated in v3.6 and will be decommissioned in v3.7.
466
475
// TODO: Delete in v3.7
476
+ // Deprecated: Use MaxLearners instead. Will be decommissioned in v3.7.
467
477
ExperimentalMaxLearners int `json:"experimental-max-learners"`
468
- MaxLearners int `json:"max-learners"`
478
+ // MaxLearners sets a limit to the number of learner members that can exist in the cluster membership.
479
+ MaxLearners int `json:"max-learners"`
469
480
470
481
// ForceNewCluster starts a new cluster even if previously started; unsafe.
471
482
ForceNewCluster bool `json:"force-new-cluster"`
@@ -476,23 +487,23 @@ type Config struct {
476
487
ListenMetricsUrlsJSON string `json:"listen-metrics-urls"`
477
488
478
489
// ExperimentalEnableDistributedTracing indicates if experimental tracing using OpenTelemetry is enabled.
479
- // Deprecated in v3.6 and will be decommissioned in v3.7. Use EnableDistributedTracing instead.
480
490
// TODO: delete in v3.7
491
+ // Deprecated: Use EnableDistributedTracing instead. Will be decommissioned in v3.7.
481
492
ExperimentalEnableDistributedTracing bool `json:"experimental-enable-distributed-tracing"`
482
493
// EnableDistributedTracing indicates if tracing using OpenTelemetry is enabled.
483
494
EnableDistributedTracing bool `json:"enable-distributed-tracing"`
484
495
// ExperimentalDistributedTracingAddress is the address of the OpenTelemetry Collector.
485
496
// Can only be set if ExperimentalEnableDistributedTracing is true.
486
- // Deprecated in v3.6 and will be decommissioned in v3.7. Use DistributedTracingAddress instead.
487
497
// TODO: delete in v3.7
498
+ // Deprecated: Use DistributedTracingAddress instead. Will be decommissioned in v3.7.
488
499
ExperimentalDistributedTracingAddress string `json:"experimental-distributed-tracing-address"`
489
500
// DistributedTracingAddress is the address of the OpenTelemetry Collector.
490
501
// Can only be set if EnableDistributedTracing is true.
491
502
DistributedTracingAddress string `json:"distributed-tracing-address"`
492
503
// ExperimentalDistributedTracingServiceName is the name of the service.
493
504
// Can only be used if ExperimentalEnableDistributedTracing is true.
494
- // Deprecated in v3.6 and will be decommissioned in v3.7. Use DistributedTracingServiceName instead.
495
505
// TODO: delete in v3.7
506
+ // Deprecated: Use DistributedTracingServiceName instead. Will be decommissioned in v3.7.
496
507
ExperimentalDistributedTracingServiceName string `json:"experimental-distributed-tracing-service-name"`
497
508
// DistributedTracingServiceName is the name of the service.
498
509
// Can only be used if EnableDistributedTracing is true.
@@ -501,8 +512,8 @@ type Config struct {
501
512
// This ID must be unique, as helps to distinguish instances of the same service
502
513
// that exist at the same time.
503
514
// Can only be used if ExperimentalEnableDistributedTracing is true.
504
- // Deprecated in v3.6 and will be decommissioned in v3.7. Use DistributedTracingServiceInstanceID instead.
505
515
// TODO: delete in v3.7
516
+ // Deprecated: Use DistributedTracingServiceInstanceID instead. Will be decommissioned in v3.7.
506
517
ExperimentalDistributedTracingServiceInstanceID string `json:"experimental-distributed-tracing-instance-id"`
507
518
// DistributedTracingServiceInstanceID is the ID key of the service.
508
519
// This ID must be unique, as helps to distinguish instances of the same service
@@ -511,17 +522,17 @@ type Config struct {
511
522
DistributedTracingServiceInstanceID string `json:"distributed-tracing-instance-id"`
512
523
// ExperimentalDistributedTracingSamplingRatePerMillion is the number of samples to collect per million spans.
513
524
// Defaults to 0.
514
- // Deprecated in v3.6 and will be decommissioned in v3.7. Use DistributedTracingSamplingRatePerMillion instead.
515
525
// TODO: delete in v3.7
526
+ // Deprecated: Use DistributedTracingSamplingRatePerMillion instead. Will be decommissioned in v3.7.
516
527
ExperimentalDistributedTracingSamplingRatePerMillion int `json:"experimental-distributed-tracing-sampling-rate"`
517
528
// DistributedTracingSamplingRatePerMillion is the number of samples to collect per million spans.
518
529
// Defaults to 0.
519
530
DistributedTracingSamplingRatePerMillion int `json:"distributed-tracing-sampling-rate"`
520
531
521
532
// ExperimentalPeerSkipClientSanVerification determines whether to skip verification of SAN field
522
533
// in client certificate for peer connections.
523
- // Deprecated in v3.6 and will be decommissioned in v3.7.
524
534
// TODO: Delete in v3.7
535
+ // Deprecated: Use `peer-skip-client-san-verification` instead. Will be decommissioned in v3.7.
525
536
ExperimentalPeerSkipClientSanVerification bool `json:"experimental-peer-skip-client-san-verification"`
526
537
527
538
// Logger is logger options: currently only supports "zap".
@@ -559,8 +570,8 @@ type Config struct {
559
570
UnsafeNoFsync bool `json:"unsafe-no-fsync"`
560
571
561
572
// ExperimentalDowngradeCheckTime is the duration between two downgrade status checks (in seconds).
562
- // Deprecated in v3.6 and scheduled to be removed in v3.7.
563
573
// TODO: Delete `ExperimentalDowngradeCheckTime` in v3.7.
574
+ // Deprecated: Use DowngradeCheckTime instead. Will be decommissioned in v3.7.
564
575
ExperimentalDowngradeCheckTime time.Duration `json:"experimental-downgrade-check-time"`
565
576
// DowngradeCheckTime is the duration between two downgrade status checks (in seconds).
566
577
DowngradeCheckTime time.Duration `json:"downgrade-check-time"`
@@ -574,8 +585,8 @@ type Config struct {
574
585
MemoryMlock bool `json:"memory-mlock"`
575
586
576
587
// ExperimentalMemoryMlock enables mlocking of etcd owned memory pages.
577
- // Deprecated in v3.6 and will be decommissioned in v3.7. Use MemoryMlock instead.
578
588
// TODO: Delete in v3.7
589
+ // Deprecated: Use MemoryMlock instad. To be decommissioned in v3.7.
579
590
ExperimentalMemoryMlock bool `json:"experimental-memory-mlock"`
580
591
581
592
// ExperimentalTxnModeWriteWithSharedBuffer enables write transaction to use a shared buffer in its readonly check operations.
@@ -585,8 +596,9 @@ type Config struct {
585
596
ExperimentalStopGRPCServiceOnDefrag bool `json:"experimental-stop-grpc-service-on-defrag"`
586
597
587
598
// V2Deprecation describes phase of API & Storage V2 support.
588
- // Deprecated and scheduled for removal in v3.8.
589
599
// Do not set this field for embedded use cases, as it has no effect. However, setting it will not cause any harm.
600
+ // TODO: Delete in v3.8
601
+ // Deprecated: The default value is enforced, to be removed in v3.8.
590
602
V2Deprecation config.V2DeprecationEnum `json:"v2-deprecation"`
591
603
592
604
// ServerFeatureGate is a server level feature gate
0 commit comments