-
Notifications
You must be signed in to change notification settings - Fork 789
Expand file tree
/
Copy pathconfiguration.h
More file actions
947 lines (862 loc) · 45.4 KB
/
Copy pathconfiguration.h
File metadata and controls
947 lines (862 loc) · 45.4 KB
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
/*
* Copyright 2020 Redpanda Data, Inc.
*
* Use of this software is governed by the Business Source License
* included in the file licenses/BSL.md
*
* As of the Change Date specified in that file, in accordance with
* the Business Source License, use of this software will be governed
* by the Apache License, Version 2.0
*/
#pragma once
#include "cloud_io/admission_control_types.h"
#include "config/bounded_property.h"
#include "config/broker_endpoint.h"
#include "config/config_store.h"
#include "config/convert.h"
#include "config/data_directory_path.h"
#include "config/endpoint_tls_config.h"
#include "config/leaders_preference.h"
#include "config/property.h"
#include "config/sasl_mechanisms.h"
#include "config/throughput_control_group.h"
#include "config/tls_config.h"
#include "config/types.h"
#include "model/compression.h"
#include "model/fundamental.h"
#include "model/metadata.h"
#include "model/timestamp.h"
#include "pandaproxy/schema_registry/schema_id_validation.h"
#include "security/config.h"
#include "utils/unresolved_address.h"
#include <seastar/core/sstring.hh>
#include <seastar/net/inet_address.hh>
#include <seastar/net/ip.hh>
#include <seastar/net/socket_defs.hh>
#include <cctype>
#include <chrono>
#include <memory>
#include <vector>
class monitor_unsafe;
namespace config {
/// Redpanda configuration
///
/// All application modules depend on configuration. The configuration module
/// can not depend on any other module to prevent cyclic dependencies.
struct configuration;
/*
* A configuration property wrapper that fails validation unless experimental
* property support has already been enabled.
*
* Note that our configuration system does not understand dependencies between
* configuration options. So if experimental feature support were enabled within
* the same request that tried to modify an experimental feature property it may
* fail depending on which order updates were applied to the config store.
*
* The simplest way to circumvent this is to enable support in one request,
* and then proceed to interact with experiemntal feature properties.
*
* Development properties are hidden from the outside world until experimental
* property support is enabled, at which point the visibility of the property is
* identical to the wrapped property.
*/
template<typename T>
class development_feature_property : public property<T> {
public:
development_feature_property(
configuration& conf,
std::string_view name,
std::string_view desc,
base_property::metadata meta,
T def,
property<T>::validator validator = property<T>::noop_validator)
: property<T>(
conf,
name,
desc,
meta,
def,
[&conf, validator = std::move(validator)](
const auto& v) -> std::optional<ss::sstring> {
if (development_features_enabled(conf)) {
// delegate to the underlying property's validator
return validator(v);
}
return "Development feature support is not enabled.";
})
, _conf(conf)
{}
bool is_hidden() const override {
if (development_features_enabled(_conf)) {
return property<T>::is_hidden();
}
return true;
}
private:
static bool development_features_enabled(const configuration&);
configuration& _conf;
};
struct configuration final : public config_store {
using meta = base_property::metadata;
// WAL
bounded_property<uint64_t> log_segment_size;
property<std::optional<uint64_t>> log_segment_size_min;
property<std::optional<uint64_t>> log_segment_size_max;
bounded_property<uint16_t> log_segment_size_jitter_percent;
bounded_property<uint64_t> compacted_log_segment_size;
property<std::chrono::milliseconds> readers_cache_eviction_timeout_ms;
bounded_property<size_t> readers_cache_target_max_size;
bounded_property<std::optional<std::chrono::milliseconds>> log_segment_ms;
bounded_property<std::chrono::milliseconds> log_segment_ms_min;
bounded_property<std::chrono::milliseconds> log_segment_ms_max;
// Network
bounded_property<std::optional<int>> rpc_server_listen_backlog;
bounded_property<std::optional<int>> rpc_server_tcp_recv_buf;
bounded_property<std::optional<int>> rpc_server_tcp_send_buf;
bounded_property<int> rpc_client_connections_per_peer;
property<bool> rpc_server_compress_replies;
// Data Transforms
property<bool> data_transforms_enabled;
property<std::chrono::milliseconds> data_transforms_commit_interval_ms;
bounded_property<size_t> data_transforms_per_core_memory_reservation;
bounded_property<size_t> data_transforms_per_function_memory_limit;
property<std::chrono::milliseconds> data_transforms_runtime_limit_ms;
bounded_property<size_t> data_transforms_binary_max_size;
bounded_property<size_t> data_transforms_logging_buffer_capacity_bytes;
property<std::chrono::milliseconds>
data_transforms_logging_flush_interval_ms;
property<size_t> data_transforms_logging_line_max_bytes;
bounded_property<size_t> data_transforms_read_buffer_memory_percentage;
bounded_property<size_t> data_transforms_write_buffer_memory_percentage;
// Controller
bounded_property<std::optional<std::size_t>> topic_memory_per_partition;
bounded_property<std::optional<int32_t>> topic_fds_per_partition;
bounded_property<uint32_t> topic_partitions_per_shard;
bounded_property<uint32_t> topic_partitions_reserve_shard0;
bounded_property<uint32_t> topic_partitions_memory_allocation_percent;
property<std::chrono::milliseconds>
partition_manager_shutdown_watchdog_timeout;
property<std::optional<size_t>> topic_label_aggregation_limit;
bounded_property<uint32_t> controller_backend_reconciliation_concurrency;
// Admin API
property<bool> admin_api_require_auth;
// Raft
bounded_property<std::chrono::milliseconds> raft_heartbeat_interval_ms;
bounded_property<std::chrono::milliseconds> raft_heartbeat_timeout_ms;
property<size_t> raft_heartbeat_disconnect_failures;
bounded_property<std::optional<size_t>> raft_max_recovery_memory;
property<bool> raft_enable_lw_heartbeat;
bounded_property<size_t> raft_recovery_concurrency_per_shard;
property<std::optional<size_t>> raft_replica_max_pending_flush_bytes;
property<std::chrono::milliseconds> raft_flush_timer_interval_ms;
property<std::chrono::milliseconds> raft_replica_max_flush_delay_ms;
property<bool> raft_enable_longest_log_detection;
bounded_property<size_t>
raft_max_inflight_follower_append_entries_requests_per_shard;
bounded_property<size_t>
raft_max_buffered_follower_append_entries_bytes_per_shard;
// Kafka
property<bool> enable_usage;
bounded_property<size_t> usage_num_windows;
bounded_property<std::chrono::seconds> usage_window_width_interval_sec;
bounded_property<std::chrono::seconds> usage_disk_persistance_interval_sec;
bounded_property<int16_t> default_num_windows;
bounded_property<std::chrono::milliseconds> default_window_sec;
property<std::chrono::milliseconds> quota_manager_gc_sec;
property<std::optional<ss::sstring>> cluster_id;
property<bool> disable_metrics;
property<bool> disable_public_metrics;
property<bool> enable_development_metrics;
property<bool> aggregate_metrics;
property<std::vector<ss::sstring>> enable_consumer_group_metrics;
property<std::chrono::seconds> consumer_group_lag_collection_interval;
property<std::chrono::milliseconds> group_min_session_timeout_ms;
property<std::chrono::milliseconds> group_max_session_timeout_ms;
property<std::chrono::milliseconds> group_initial_rebalance_delay;
property<std::chrono::milliseconds> group_new_member_join_timeout;
property<std::optional<std::chrono::seconds>> group_offset_retention_sec;
property<std::chrono::milliseconds> group_offset_retention_check_ms;
property<bool> legacy_group_offset_retention_enabled;
property<std::chrono::milliseconds> metadata_dissemination_interval_ms;
property<std::chrono::milliseconds> metadata_dissemination_retry_delay_ms;
property<int16_t> metadata_dissemination_retries;
property<std::chrono::milliseconds> tx_timeout_delay_ms;
property<std::chrono::milliseconds> fetch_reads_debounce_timeout;
property<std::chrono::milliseconds> kafka_fetch_request_timeout_ms;
development_feature_property<bool>
enable_listoffsets_historical_leader_epoch;
enum_property<model::fetch_read_strategy> fetch_read_strategy;
bounded_property<size_t> fetch_max_read_concurrency;
bounded_property<double, numeric_bounds> fetch_pid_p_coeff;
bounded_property<double, numeric_bounds> fetch_pid_i_coeff;
bounded_property<double, numeric_bounds> fetch_pid_d_coeff;
bounded_property<double, numeric_bounds>
fetch_pid_target_utilization_fraction;
property<std::chrono::milliseconds> fetch_pid_max_debounce_ms;
property<model::cleanup_policy_bitflags> log_cleanup_policy;
enum_property<model::timestamp_type> log_message_timestamp_type;
bounded_property<std::chrono::milliseconds>
log_message_timestamp_before_max_ms;
bounded_property<std::chrono::milliseconds>
log_message_timestamp_after_max_ms;
enum_property<model::kafka_batch_validation_mode>
kafka_produce_batch_validation;
enum_property<model::compression> log_compression_type;
property<bool> kafka_produce_enable_batch_compression;
property<size_t> fetch_max_bytes;
property<bool> use_fetch_scheduler_group;
property<bool> kafka_fetch_read_coalescing_enabled;
property<bool> use_produce_scheduler_group;
property<bool> use_kafka_handler_scheduler_group;
property<bool> kafka_handler_latency_all;
property<std::chrono::seconds> kafka_tcp_keepalive_idle_timeout_seconds;
property<std::chrono::seconds> kafka_tcp_keepalive_probe_interval_seconds;
property<uint32_t> kafka_tcp_keepalive_probes;
bounded_property<std::optional<int64_t>> kafka_connection_rate_limit;
property<std::vector<ss::sstring>> kafka_connection_rate_limit_overrides;
// same as transactional.id.expiration.ms in kafka
property<std::chrono::milliseconds> transactional_id_expiration_ms;
bounded_property<uint64_t> max_concurrent_producer_ids;
bounded_property<uint64_t> max_transactions_per_coordinator;
property<bool> enable_idempotence;
property<bool> enable_transactions;
property<uint32_t> abort_index_segment_size;
// same as log.retention.ms in kafka
retention_duration_property log_retention_ms;
property<std::chrono::milliseconds> log_compaction_interval_ms;
property<std::chrono::milliseconds> log_compaction_max_priority_wait_ms;
// same as delete.retention.ms in kafka
property<std::optional<std::chrono::milliseconds>> tombstone_retention_ms;
bounded_property<std::optional<double>, numeric_bounds>
min_cleanable_dirty_ratio;
property<std::chrono::milliseconds> min_compaction_lag_ms;
property<std::chrono::milliseconds> max_compaction_lag_ms;
property<bool> log_disable_housekeeping_for_tests;
property<bool> log_compaction_use_sliding_window;
property<bool> log_compaction_pause_use_sliding_window;
property<std::optional<uint32_t>>
log_compaction_merge_max_segments_per_range;
property<std::optional<uint32_t>> log_compaction_merge_max_ranges;
property<bool> log_compaction_tx_batch_removal_enabled;
// same as retention.size in kafka - TODO: size not implemented
property<std::optional<size_t>> retention_bytes;
property<int32_t> group_topic_partitions;
bounded_property<int16_t> default_topic_replications;
bounded_property<int16_t> minimum_topic_replication;
property<int32_t> transaction_coordinator_partitions;
property<model::cleanup_policy_bitflags>
transaction_coordinator_cleanup_policy;
property<std::chrono::milliseconds>
transaction_coordinator_delete_retention_ms;
property<uint64_t> transaction_coordinator_log_segment_size;
property<std::chrono::milliseconds>
abort_timed_out_transactions_interval_ms;
// same as transaction.max.timeout.ms in Apache Kafka.
property<std::chrono::milliseconds> transaction_max_timeout_ms;
property<std::chrono::seconds> tx_log_stats_interval_s;
property<int32_t> default_topic_partitions;
property<bool> disable_batch_cache;
property<std::chrono::milliseconds> raft_election_timeout_ms;
property<std::chrono::milliseconds> kafka_group_recovery_timeout_ms;
property<std::chrono::milliseconds> replicate_append_timeout_ms;
property<size_t> raft_replicate_batch_window_size;
property<size_t> raft_learner_recovery_rate;
property<bool> raft_recovery_throttle_disable_dynamic_mode;
property<bool> controller_log_learner_recovery_rate_enabled;
property<std::optional<uint32_t>> raft_smp_max_non_local_requests;
enum_property<model::write_caching_mode> write_caching_default;
property<size_t> reclaim_min_size;
property<size_t> reclaim_max_size;
property<std::chrono::milliseconds> reclaim_growth_window;
property<std::chrono::milliseconds> reclaim_stable_window;
property<size_t> reclaim_batch_cache_min_free;
property<bool> auto_create_topics_enabled;
property<bool> enable_pid_file;
property<std::chrono::milliseconds> kvstore_flush_interval;
property<size_t> kvstore_max_segment_size;
property<std::chrono::milliseconds> max_kafka_throttle_delay_ms;
property<bool> kafka_per_entity_quota_metrics;
property<size_t> kafka_max_bytes_per_fetch;
property<std::chrono::milliseconds> raft_io_timeout_ms;
property<std::chrono::milliseconds> join_retry_timeout_ms;
property<std::chrono::milliseconds> raft_timeout_now_timeout_ms;
property<std::chrono::milliseconds>
raft_transfer_leader_recovery_timeout_ms;
property<bool> release_cache_on_segment_roll;
property<std::chrono::milliseconds> segment_appender_flush_timeout_ms;
property<std::chrono::milliseconds> fetch_session_eviction_timeout_ms;
bounded_property<size_t> append_chunk_size;
property<size_t> storage_read_buffer_size;
property<int16_t> storage_read_readahead_count;
property<size_t> segment_fallocation_step;
bounded_property<uint64_t> storage_target_replay_bytes;
bounded_property<uint64_t> storage_max_concurrent_replay;
bounded_property<uint64_t> storage_compaction_index_memory;
bounded_property<uint64_t> storage_compaction_key_map_memory;
bounded_property<double, numeric_bounds>
storage_compaction_key_map_memory_limit_percent;
property<size_t> max_compacted_log_segment_size;
property<std::optional<std::chrono::seconds>>
storage_ignore_timestamps_in_future_sec;
property<bool> storage_ignore_cstore_hints;
bounded_property<int16_t> storage_reserve_min_segments;
property<std::optional<uint32_t>> debug_load_slice_warning_depth;
property<int16_t> id_allocator_log_capacity;
property<int16_t> id_allocator_batch_size;
property<bool> enable_sasl;
enterprise<property<std::vector<ss::sstring>>> sasl_mechanisms;
enterprise<property<std::vector<config::sasl_mechanisms_override>>>
sasl_mechanisms_overrides;
property<ss::sstring> sasl_kerberos_config;
property<ss::sstring> sasl_kerberos_keytab;
property<ss::sstring> sasl_kerberos_principal;
property<std::vector<ss::sstring>> sasl_kerberos_principal_mapping;
bounded_property<std::optional<std::chrono::milliseconds>>
kafka_sasl_max_reauth_ms;
property<std::optional<bool>> kafka_enable_authorization;
enum_property<tls_name_format> tls_certificate_name_format;
property<std::optional<std::vector<ss::sstring>>>
kafka_mtls_principal_mapping_rules;
property<bool> kafka_enable_partition_reassignment;
property<std::chrono::milliseconds>
controller_backend_housekeeping_interval_ms;
property<uint32_t> kafka_request_max_bytes;
property<uint32_t> kafka_batch_max_bytes;
enterprise<property<bool>> delete_topic_enable;
property<std::vector<ss::sstring>> kafka_nodelete_topics;
property<std::vector<ss::sstring>> kafka_noproduce_topics;
property<std::optional<uint32_t>> kafka_topics_max;
bounded_property<std::optional<int32_t>>
kafka_max_message_size_upper_limit_bytes;
// Compaction controller
property<std::chrono::milliseconds> compaction_ctrl_update_interval_ms;
property<double> compaction_ctrl_p_coeff;
property<double> compaction_ctrl_i_coeff;
property<double> compaction_ctrl_d_coeff;
property<int16_t> compaction_ctrl_min_shares;
property<int16_t> compaction_ctrl_max_shares;
property<std::optional<size_t>> compaction_ctrl_backlog_size;
property<std::chrono::milliseconds> members_backend_retry_ms;
property<std::optional<uint32_t>> kafka_connections_max;
property<std::optional<uint32_t>> kafka_connections_max_per_ip;
property<std::vector<ss::sstring>> kafka_connections_max_overrides;
bounded_property<std::optional<int>> kafka_rpc_server_tcp_recv_buf;
bounded_property<std::optional<int>> kafka_rpc_server_tcp_send_buf;
bounded_property<std::optional<size_t>> kafka_rpc_server_stream_recv_buf;
property<bool> kafka_enable_describe_log_dirs_remote_storage;
// Audit logging
enterprise<property<bool>> audit_enabled;
property<int32_t> audit_log_num_partitions;
property<std::optional<int16_t>> audit_log_replication_factor;
property<size_t> audit_client_max_buffer_size;
property<std::chrono::milliseconds> audit_queue_drain_interval_ms;
property<size_t> audit_queue_max_buffer_size_per_shard;
property<std::vector<ss::sstring>> audit_enabled_event_types;
property<std::vector<ss::sstring>> audit_excluded_topics;
property<std::vector<ss::sstring>> audit_excluded_principals;
enum_property<audit_failure_policy> audit_failure_policy;
property<bool> audit_use_rpc;
property<bool> schema_registry_use_rpc;
// Archival storage
enterprise<property<bool>> cloud_storage_enabled;
property<bool> cloud_storage_enable_remote_read;
property<bool> cloud_storage_enable_remote_write;
enum_property<model::redpanda_storage_mode> default_redpanda_storage_mode;
enum_property<model::redpanda_storage_mode_tiered_impl>
default_redpanda_storage_mode_tiered_impl;
property<bool> cloud_storage_disable_archiver_manager;
property<std::optional<ss::sstring>> cloud_storage_access_key;
property<std::optional<ss::sstring>> cloud_storage_secret_key;
property<std::optional<ss::sstring>> cloud_storage_region;
property<std::optional<ss::sstring>> cloud_storage_bucket;
property<std::optional<ss::sstring>> cloud_storage_api_endpoint;
enum_property<std::optional<s3_url_style>> cloud_storage_url_style;
enum_property<model::cloud_credentials_source>
cloud_storage_credentials_source;
property<std::optional<ss::sstring>>
cloud_storage_azure_managed_identity_id;
property<std::chrono::milliseconds>
cloud_storage_roles_operation_timeout_ms;
property<std::chrono::milliseconds>
cloud_storage_upload_loop_initial_backoff_ms;
property<std::chrono::milliseconds>
cloud_storage_upload_loop_max_backoff_ms;
property<int16_t> cloud_storage_max_connections;
enum_property<cloud_io::policy_type> cloud_io_admission_control_policy;
property<std::vector<ss::sstring>> cloud_io_admission_control_reservation;
property<bool> cloud_storage_disable_tls;
property<int16_t> cloud_storage_api_endpoint_port;
property<std::optional<ss::sstring>> cloud_storage_trust_file;
property<std::optional<ss::sstring>> cloud_storage_crl_file;
property<std::chrono::milliseconds> cloud_storage_initial_backoff_ms;
property<std::chrono::milliseconds> cloud_storage_segment_upload_timeout_ms;
property<std::chrono::milliseconds>
cloud_storage_manifest_upload_timeout_ms;
property<std::chrono::milliseconds>
cloud_storage_garbage_collect_timeout_ms;
property<std::chrono::milliseconds>
cloud_storage_max_connection_idle_time_ms;
property<std::optional<std::chrono::seconds>>
cloud_storage_segment_max_upload_interval_sec;
property<std::optional<std::chrono::seconds>>
cloud_storage_manifest_max_upload_interval_sec;
property<std::chrono::milliseconds>
cloud_storage_readreplica_manifest_sync_timeout_ms;
property<std::chrono::milliseconds> cloud_storage_metadata_sync_timeout_ms;
property<std::chrono::milliseconds> cloud_storage_housekeeping_interval_ms;
property<std::chrono::milliseconds> cloud_storage_idle_timeout_ms;
property<std::chrono::milliseconds>
cloud_storage_cluster_metadata_upload_interval_ms;
property<std::chrono::milliseconds>
cloud_storage_cluster_metadata_upload_timeout_ms;
property<size_t>
cloud_storage_cluster_metadata_num_consumer_groups_per_upload;
property<int16_t> cloud_storage_cluster_metadata_retries;
property<bool> cloud_storage_attempt_cluster_restore_on_bootstrap;
property<double> cloud_storage_idle_threshold_rps;
property<int32_t> cloud_storage_background_jobs_quota;
property<bool> cloud_storage_enable_segment_merging;
property<bool> cloud_storage_enable_scrubbing;
property<std::chrono::milliseconds> cloud_storage_partial_scrub_interval_ms;
property<std::chrono::milliseconds> cloud_storage_full_scrub_interval_ms;
property<std::chrono::milliseconds>
cloud_storage_scrubbing_interval_jitter_ms;
property<bool> cloud_storage_disable_upload_loop_for_tests;
property<bool> cloud_storage_disable_read_replica_loop_for_tests;
property<bool> disable_cluster_recovery_loop_for_tests;
property<bool> cloud_topics_disable_metastore_flush_loop_for_tests;
property<bool> cloud_topics_disable_level_zero_gc_for_tests;
property<bool> enable_cluster_metadata_upload_loop;
property<std::optional<ss::sstring>> cloud_storage_cluster_name;
property<size_t> cloud_storage_max_segments_pending_deletion_per_partition;
bounded_property<size_t> cloud_storage_gc_max_segments_per_run;
property<bool> cloud_storage_enable_compacted_topic_reupload;
property<size_t> cloud_storage_recovery_temporary_retention_bytes_default;
// validation of topic manifest during recovery
enum_property<model::recovery_validation_mode>
cloud_storage_recovery_topic_validation_mode;
property<uint32_t> cloud_storage_recovery_topic_validation_depth;
property<std::chrono::milliseconds> cloud_storage_client_lease_timeout_ms;
property<std::optional<size_t>> cloud_storage_segment_size_target;
property<std::optional<size_t>> cloud_storage_segment_size_min;
property<std::optional<size_t>> cloud_storage_max_throughput_per_shard;
bounded_property<std::optional<size_t>>
cloud_storage_throughput_limit_percent;
property<std::optional<std::chrono::milliseconds>>
cloud_storage_graceful_transfer_timeout_ms;
enum_property<model::cloud_storage_backend> cloud_storage_backend;
property<std::optional<ss::sstring>> cloud_storage_credentials_host;
bounded_property<std::optional<size_t>>
cloud_storage_spillover_manifest_size;
property<std::optional<size_t>>
cloud_storage_spillover_manifest_max_segments;
bounded_property<size_t> cloud_storage_manifest_cache_size;
property<std::chrono::milliseconds> cloud_storage_manifest_cache_ttl_ms;
property<std::chrono::milliseconds>
cloud_storage_topic_purge_grace_period_ms;
property<bool> cloud_storage_disable_upload_consistency_checks;
property<bool> cloud_storage_disable_archival_stm_rw_fence;
property<std::chrono::milliseconds> cloud_storage_hydration_timeout_ms;
property<bool> cloud_storage_disable_remote_labels_for_tests;
// Safe pause/resume functionality
property<bool> cloud_storage_enable_segment_uploads;
property<bool> cloud_storage_enable_remote_allow_gaps;
// Azure Blob Storage
property<std::optional<ss::sstring>> cloud_storage_azure_storage_account;
property<std::optional<ss::sstring>> cloud_storage_azure_container;
property<std::optional<ss::sstring>> cloud_storage_azure_shared_key;
property<std::optional<ss::sstring>> cloud_storage_azure_adls_endpoint;
property<std::optional<uint16_t>> cloud_storage_azure_adls_port;
property<std::optional<bool>>
cloud_storage_azure_hierarchical_namespace_enabled;
// Archival upload controller
property<std::chrono::milliseconds>
cloud_storage_upload_ctrl_update_interval_ms;
property<double> cloud_storage_upload_ctrl_p_coeff;
property<double> cloud_storage_upload_ctrl_d_coeff;
property<int16_t> cloud_storage_upload_ctrl_min_shares;
property<int16_t> cloud_storage_upload_ctrl_max_shares;
// Defaults for local retention for partitions of topics with
// cloud storage read and write enabled
property<std::optional<size_t>> retention_local_target_bytes_default;
property<std::chrono::milliseconds> retention_local_target_ms_default;
property<bool> retention_local_strict;
property<bool> retention_local_strict_override;
property<std::optional<uint64_t>> retention_local_target_capacity_bytes;
bounded_property<std::optional<double>, numeric_bounds>
retention_local_target_capacity_percent;
property<std::chrono::milliseconds> retention_local_trim_interval;
property<double> retention_local_trim_overage_coeff;
property<bool> space_management_enable;
deprecated_property space_management_enable_override;
bounded_property<double, numeric_bounds> disk_reservation_percent;
bounded_property<uint16_t> space_management_max_log_concurrency;
bounded_property<uint16_t> space_management_max_segment_concurrency;
property<std::vector<ss::sstring>> log_eviction_exempt_topics;
property<std::optional<size_t>>
initial_retention_local_target_bytes_default;
property<std::optional<std::chrono::milliseconds>>
initial_retention_local_target_ms_default;
// Archival cache
property<uint64_t> cloud_storage_cache_size;
bounded_property<std::optional<double>, numeric_bounds>
cloud_storage_cache_size_percent;
property<uint32_t> cloud_storage_cache_max_objects;
property<uint32_t> cloud_storage_cache_trim_carryover_bytes;
property<std::chrono::milliseconds> cloud_storage_cache_check_interval_ms;
bounded_property<uint16_t> cloud_storage_cache_trim_walk_concurrency;
property<std::optional<uint32_t>>
cloud_storage_max_segment_readers_per_shard;
property<std::optional<uint32_t>>
cloud_storage_max_partition_readers_per_shard;
property<std::optional<uint32_t>>
cloud_storage_max_concurrent_hydrations_per_shard;
property<std::optional<uint32_t>>
cloud_storage_max_materialized_segments_per_shard;
property<uint64_t> cloud_storage_cache_chunk_size;
property<double> cloud_storage_hydrated_chunks_per_segment_ratio;
property<uint64_t> cloud_storage_min_chunks_per_segment_threshold;
property<bool> cloud_storage_disable_chunk_reads;
enum_property<model::cloud_storage_chunk_eviction_strategy>
cloud_storage_chunk_eviction_strategy;
property<uint16_t> cloud_storage_chunk_prefetch;
property<uint16_t> cloud_storage_prefetch_segments_max;
bounded_property<uint32_t> cloud_storage_cache_num_buckets;
bounded_property<std::optional<double>, numeric_bounds>
cloud_storage_cache_trim_threshold_percent_size;
bounded_property<std::optional<double>, numeric_bounds>
cloud_storage_cache_trim_threshold_percent_objects;
property<bool> cloud_storage_inventory_based_scrub_enabled;
property<ss::sstring> cloud_storage_inventory_id;
property<ss::sstring> cloud_storage_inventory_reports_prefix;
property<bool> cloud_storage_inventory_self_managed_report_config;
property<std::chrono::milliseconds>
cloud_storage_inventory_report_check_interval_ms;
property<uint64_t> cloud_storage_inventory_max_hash_size_during_parse;
one_or_many_property<ss::sstring> superusers;
// kakfa queue depth control: latency ewma
property<double> kafka_qdc_latency_alpha;
property<std::chrono::milliseconds> kafka_qdc_window_size_ms;
property<size_t> kafka_qdc_window_count;
// kakfa queue depth control: queue depth ewma and control
property<bool> kafka_qdc_enable;
property<double> kafka_qdc_depth_alpha;
property<std::chrono::milliseconds> kafka_qdc_max_latency_ms;
property<size_t> kafka_qdc_idle_depth;
property<size_t> kafka_qdc_min_depth;
property<size_t> kafka_qdc_max_depth;
property<std::chrono::milliseconds> kafka_qdc_depth_update_ms;
property<size_t> zstd_decompress_workspace_bytes;
property<bool> lz4_decompress_reusable_buffers_disabled;
property<bool> enable_auto_rebalance_on_node_add;
enterprise<enum_property<model::partition_autobalancing_mode>>
partition_autobalancing_mode;
property<std::chrono::seconds>
partition_autobalancing_node_availability_timeout_sec;
property<std::optional<std::chrono::seconds>>
partition_autobalancing_node_autodecommission_timeout_sec;
bounded_property<unsigned> partition_autobalancing_max_disk_usage_percent;
property<std::chrono::milliseconds>
partition_autobalancing_tick_interval_ms;
property<size_t> partition_autobalancing_movement_batch_size_bytes;
property<size_t> partition_autobalancing_concurrent_moves;
property<double> partition_autobalancing_tick_moves_drop_threshold;
property<std::optional<size_t>> partition_autobalancing_min_size_threshold;
property<bool> partition_autobalancing_topic_aware;
property<bool> enable_leader_balancer;
enum_property<model::leader_balancer_mode> leader_balancer_mode;
property<std::chrono::milliseconds> leader_balancer_idle_timeout;
property<std::chrono::milliseconds> leader_balancer_mute_timeout;
property<std::chrono::milliseconds> leader_balancer_node_mute_timeout;
bounded_property<size_t> leader_balancer_transfer_limit_per_shard;
enterprise<property<config::leaders_preference>> default_leaders_preference;
property<bool> core_balancing_on_core_count_change;
enterprise<property<bool>> core_balancing_continuous;
property<std::chrono::milliseconds> core_balancing_debounce_timeout;
property<int> internal_topic_replication_factor;
property<std::chrono::milliseconds> health_manager_tick_interval;
// health monitor
property<std::chrono::milliseconds> health_monitor_tick_interval;
property<std::chrono::milliseconds> health_monitor_max_metadata_age;
property<bool> health_monitor_metrics_enabled;
bounded_property<unsigned> storage_space_alert_free_threshold_percent;
bounded_property<size_t> storage_space_alert_free_threshold_bytes;
bounded_property<size_t> storage_min_free_bytes;
property<bool> storage_strict_data_init;
property<std::chrono::milliseconds> alive_timeout_ms;
// memory related settings
property<bool> memory_abort_on_alloc_failure;
property<bool> sampled_memory_profile;
// metrics reporter
property<bool> enable_metrics_reporter;
property<std::chrono::milliseconds> metrics_reporter_tick_interval;
property<std::chrono::milliseconds> metrics_reporter_report_interval;
property<ss::sstring> metrics_reporter_url;
property<bool> features_auto_enable;
enterprise<property<bool>> features_auto_finalization;
// enables rack aware replica assignment
property<bool> enable_rack_awareness;
property<std::chrono::milliseconds> node_status_interval;
property<std::chrono::milliseconds> node_status_reconnect_max_backoff_ms;
// controller log limitng
property<bool> enable_controller_log_rate_limiting;
property<size_t> rps_limit_topic_operations;
property<std::optional<size_t>>
controller_log_accummulation_rps_capacity_topic_operations;
property<size_t> rps_limit_acls_and_users_operations;
property<std::optional<size_t>>
controller_log_accummulation_rps_capacity_acls_and_users_operations;
property<size_t> rps_limit_node_management_operations;
property<std::optional<size_t>>
controller_log_accummulation_rps_capacity_node_management_operations;
property<size_t> rps_limit_move_operations;
property<std::optional<size_t>>
controller_log_accummulation_rps_capacity_move_operations;
property<size_t> rps_limit_configuration_operations;
property<std::optional<size_t>>
controller_log_accummulation_rps_capacity_configuration_operations;
// node and cluster throughput limiting
bounded_property<std::optional<int64_t>> kafka_throughput_limit_node_in_bps;
bounded_property<std::optional<int64_t>>
kafka_throughput_limit_node_out_bps;
bounded_property<std::optional<int64_t>>
kafka_throughput_replenish_threshold;
property<std::vector<ss::sstring>> kafka_throughput_controlled_api_keys;
property<std::vector<throughput_control_group>> kafka_throughput_control;
bounded_property<int64_t> node_isolation_heartbeat_timeout;
property<std::chrono::seconds> controller_snapshot_max_age_sec;
// security controls
property<bool> legacy_permit_unsafe_log_operation;
property<std::chrono::seconds> legacy_unsafe_log_warning_interval_sec;
// schema id validation
enterprise<
enum_property<pandaproxy::schema_registry::schema_id_validation_mode>>
enable_schema_id_validation;
config::property<size_t> kafka_schema_id_validation_cache_capacity;
enterprise<property<bool>> schema_registry_enable_authorization;
property<bool> schema_registry_always_normalize;
property<bool> schema_registry_deferred_recovery;
property<bool> schema_registry_replay_on_startup;
deprecated_property schema_registry_avro_use_named_references;
property<bool> schema_registry_enable_qualified_subjects;
bounded_property<size_t> schema_registry_sync_memory_bytes;
bounded_property<size_t> schema_registry_sync_parallelism;
property<std::optional<uint32_t>> pp_sr_smp_max_non_local_requests;
bounded_property<size_t> max_in_flight_schema_registry_requests_per_shard;
bounded_property<size_t> max_in_flight_pandaproxy_requests_per_shard;
bounded_property<double, numeric_bounds> kafka_memory_share_for_fetch;
// debug controls
property<bool> cpu_profiler_enabled;
bounded_property<std::chrono::milliseconds> cpu_profiler_sample_period_ms;
property<std::filesystem::path> rpk_path;
property<std::optional<std::filesystem::path>> debug_bundle_storage_dir;
property<std::optional<std::chrono::seconds>>
debug_bundle_auto_removal_seconds;
// oidc authentication
property<ss::sstring> oidc_discovery_url;
property<std::optional<ss::sstring>> oidc_http_proxy_url;
property<std::optional<ss::sstring>> oidc_http_proxy_username;
property<std::optional<ss::sstring>> oidc_http_proxy_password;
property<ss::sstring> oidc_token_audience;
property<std::chrono::seconds> oidc_clock_skew_tolerance;
property<ss::sstring> oidc_principal_mapping;
property<std::chrono::seconds> oidc_keys_refresh_interval;
property<ss::sstring> oidc_group_claim_path;
enum_property<security::oidc::nested_group_behavior> nested_group_behavior;
// HTTP Authentication
enterprise<property<std::vector<ss::sstring>>> http_authentication;
property<bool> scram_credential_cache_enabled;
// MPX
property<bool> enable_mpx_extensions;
bounded_property<uint64_t> virtual_cluster_min_producer_ids;
// temporary - to be deprecated
property<bool> unsafe_enable_consumer_offsets_delete_retention;
enum_property<tls_version> tls_min_version;
property<bool> tls_enable_renegotiation;
property<ss::sstring> tls_v1_2_cipher_suites;
property<ss::sstring> tls_v1_3_cipher_suites;
// datalake configurations
enterprise<property<bool>> iceberg_enabled;
bounded_property<std::chrono::milliseconds>
iceberg_catalog_commit_interval_ms;
bounded_property<std::chrono::milliseconds>
iceberg_latest_schema_cache_ttl_ms;
property<ss::sstring> iceberg_catalog_base_location;
property<std::optional<ss::sstring>> iceberg_rest_catalog_base_location;
bounded_property<std::chrono::seconds>
datalake_coordinator_snapshot_max_delay_secs;
// datalake catalog configuration
enum_property<datalake_catalog_type> iceberg_catalog_type;
property<std::optional<ss::sstring>> iceberg_rest_catalog_endpoint;
property<std::optional<ss::sstring>> iceberg_rest_catalog_client_id;
property<std::optional<ss::sstring>> iceberg_rest_catalog_client_secret;
property<std::optional<ss::sstring>> iceberg_rest_catalog_token;
property<std::chrono::milliseconds> iceberg_rest_catalog_request_timeout_ms;
property<std::optional<ss::sstring>> iceberg_rest_catalog_trust_file;
property<std::optional<ss::sstring>> iceberg_rest_catalog_trust;
property<std::optional<ss::sstring>> iceberg_rest_catalog_crl_file;
property<std::optional<ss::sstring>> iceberg_rest_catalog_crl;
property<std::optional<ss::sstring>> iceberg_rest_catalog_warehouse;
property<std::optional<ss::sstring>> iceberg_rest_catalog_oauth2_server_uri;
property<ss::sstring> iceberg_rest_catalog_oauth2_scope;
enum_property<datalake_catalog_auth_mode>
iceberg_rest_catalog_authentication_mode;
property<ss::sstring> iceberg_rest_catalog_aws_service_name;
property<std::optional<ss::sstring>> iceberg_rest_catalog_aws_access_key;
property<std::optional<ss::sstring>> iceberg_rest_catalog_aws_secret_key;
property<std::optional<ss::sstring>> iceberg_rest_catalog_aws_region;
enum_property<std::optional<model::cloud_credentials_source>>
iceberg_rest_catalog_aws_credentials_source;
property<std::optional<ss::sstring>> iceberg_rest_catalog_gcp_user_project;
property<std::optional<ss::sstring>> iceberg_rest_catalog_credentials_host;
property<double> iceberg_backlog_controller_p_coeff;
property<double> iceberg_backlog_controller_i_coeff;
bounded_property<uint32_t> iceberg_target_backlog_size;
property<std::optional<double>> iceberg_throttle_backlog_size_ratio;
property<bool> iceberg_delete;
property<ss::sstring> iceberg_default_partition_spec;
enum_property<model::iceberg_invalid_record_action>
iceberg_invalid_record_action;
enum_property<model::iceberg_schema_case_insensitive>
iceberg_schema_case_insensitive;
bounded_property<std::chrono::milliseconds> iceberg_target_lag_ms;
property<bool> iceberg_disable_snapshot_tagging;
bounded_property<size_t> datalake_coordinator_max_files_per_commit;
bounded_property<size_t> datalake_coordinator_max_bytes_per_commit;
bounded_property<size_t> datalake_coordinator_max_pending_files;
bounded_property<size_t> datalake_coordinator_max_pending_bytes;
property<bool> iceberg_disable_automatic_snapshot_expiry;
property<std::optional<ss::sstring>> iceberg_topic_name_dot_replacement;
property<ss::sstring> iceberg_dlq_table_suffix;
property<std::vector<ss::sstring>> iceberg_default_catalog_namespace;
property<bool> enable_host_metrics;
// datalake scheduler configs
bounded_property<size_t> datalake_scheduler_block_size_bytes;
bounded_property<size_t> datalake_scheduler_max_concurrent_translations;
bounded_property<std::chrono::milliseconds>
datalake_scheduler_time_slice_ms;
bounded_property<size_t> datalake_translator_flush_bytes;
property<bool> datalake_disk_space_monitor_enable;
property<size_t> datalake_scratch_space_size_bytes;
bounded_property<double, numeric_bounds>
datalake_scratch_space_soft_limit_size_percent;
property<double> datalake_disk_usage_overage_coeff;
bounded_property<size_t> datalake_scheduler_disk_reservation_block_size;
property<bool> consumer_offsets_topic_batch_cache_enabled;
enterprise<property<bool>> enable_shadow_linking;
bounded_property<uint32_t> shadow_link_failover_batch_size;
property<std::chrono::milliseconds> internal_rpc_request_timeout_ms;
class ctor_key {
ctor_key() = default;
friend std::unique_ptr<configuration> make_config();
};
explicit configuration(ctor_key);
configuration(const configuration&) = delete;
configuration& operator=(const configuration&) = delete;
configuration(configuration&&) = delete;
configuration& operator=(configuration&&) = delete;
error_map_t load(const YAML::Node& root_node);
public:
deprecated_property cloud_topics_enabled;
property<size_t> cloud_topics_produce_batching_size_threshold;
property<std::chrono::milliseconds> cloud_topics_produce_upload_interval;
property<size_t> cloud_topics_produce_cardinality_threshold;
property<bool> cloud_topics_disable_reconciliation_loop;
property<std::chrono::milliseconds>
cloud_topics_reconciliation_min_interval;
property<std::chrono::milliseconds>
cloud_topics_reconciliation_max_interval;
property<double> cloud_topics_reconciliation_target_fill_ratio;
property<double> cloud_topics_reconciliation_speedup_blend;
property<double> cloud_topics_reconciliation_slowdown_blend;
property<size_t> cloud_topics_reconciliation_max_object_size;
bounded_property<size_t> cloud_topics_upload_part_size;
bounded_property<size_t> cloud_topics_reconciliation_parallelism;
property<bool> cloud_topics_allow_materialization_failure;
property<size_t> cloud_topics_compaction_max_object_size;
property<size_t> cloud_topics_l1_indexing_interval;
property<std::chrono::milliseconds> cloud_topics_compaction_interval_ms;
property<std::chrono::milliseconds> cloud_topics_leveling_interval_ms;
bounded_property<size_t>
cloud_topics_max_concurrent_leveling_jobs_per_shard;
bounded_property<double, numeric_bounds>
cloud_topics_leveling_min_extent_size_ratio;
property<size_t> cloud_topics_leveling_max_range_bytes;
property<size_t> cloud_topics_leveling_max_ranges_per_partition;
property<size_t> cloud_topics_compaction_commit_interval_bytes;
property<size_t> cloud_topics_leveling_commit_interval_bytes;
property<bool> cloud_topics_compaction_disabled;
property<bool> cloud_topics_leveling_disabled;
bounded_property<uint64_t> cloud_topics_compaction_key_map_memory;
bounded_property<size_t> cloud_topics_l1_streaming_read_chunk_size;
property<std::chrono::milliseconds>
cloud_topics_long_term_garbage_collection_interval;
property<std::chrono::milliseconds> cloud_topics_long_term_flush_interval;
property<std::chrono::milliseconds>
cloud_topics_epoch_service_epoch_increment_interval;
property<std::chrono::milliseconds>
cloud_topics_epoch_service_local_epoch_cache_duration;
property<std::chrono::milliseconds>
cloud_topics_epoch_service_max_same_epoch_duration;
property<std::chrono::milliseconds>
cloud_topics_short_term_gc_minimum_object_age;
property<std::chrono::milliseconds> cloud_topics_short_term_gc_interval;
property<std::chrono::milliseconds>
cloud_topics_short_term_gc_backoff_interval;
property<std::chrono::milliseconds> cloud_topics_gc_health_check_interval;
property<std::chrono::milliseconds>
cloud_topics_metastore_replication_timeout_ms;
property<std::chrono::milliseconds>
cloud_topics_metastore_lsm_apply_timeout_ms;
property<std::chrono::milliseconds> cloud_topics_metastore_rpc_timeout_ms;
property<std::chrono::milliseconds> cloud_topics_metastore_retry_timeout_ms;
bounded_property<size_t> cloud_topics_metastore_block_cache_size;
bounded_property<size_t> cloud_topics_metastore_write_buffer_size;
bounded_property<uint32_t> cloud_topics_metastore_max_pre_open_fibers;
property<bool> cloud_topics_parallel_fetch_enabled;
property<bool> cloud_topics_fetch_debounce_enabled;
property<std::chrono::milliseconds> cloud_topics_preregistered_object_ttl;
property<std::chrono::milliseconds>
cloud_topics_long_term_file_deletion_delay;
bounded_property<int32_t> cloud_topics_num_metastore_partitions;
bounded_property<size_t> cloud_topics_metastore_sst_chunk_size;
bounded_property<size_t> cloud_topics_produce_write_inflight_limit;
bounded_property<size_t> cloud_topics_produce_no_pid_concurrency;
property<std::chrono::milliseconds>
cloud_topics_l1_reader_cache_eviction_timeout_ms;
bounded_property<size_t> cloud_topics_l1_reader_cache_max_size;
property<bool> code_hugepages_enabled;
development_feature_property<int> development_feature_property_testing_only;
private:
// to query if experimental features are enabled in order to log a nag. it
// does not use the query to control any experimental feature.
friend class ::monitor_unsafe;
template<typename T>
friend class development_feature_property;
/*
* This configuration property shouldn't be queried directly. Rather, it is
* used to enable the use of other feature-specific experimental properties.
*
* This property is hidden when its value is the same as its default, which
* corresponds to the case in which experimental features are not enabled.
*
* In addition to this property thus being hidden in production scenarios,
* it also fixes several tests like rpk-import-export that expect to be able
* to set values for all properties that it discovers.
*/
hidden_when_default_property<ss::sstring>
enable_developmental_unrecoverable_data_corrupting_features;
bool development_features_enabled() const {
return !enable_developmental_unrecoverable_data_corrupting_features()
.empty();
}
ss::sstring store_name() const override { return "cluster"; }
};
template<typename T>
bool development_feature_property<T>::development_features_enabled(
const configuration& conf) {
return conf.development_features_enabled();
}
std::unique_ptr<configuration> make_config();
configuration& shard_local_cfg();
} // namespace config