Skip to content

Commit

Permalink
Merge pull request #16513 from andijcr/feat/config_millis_lowerbound
Browse files Browse the repository at this point in the history
config/configuration: bounded_property log_segment_ms_min/max
  • Loading branch information
piyushredpanda authored Feb 24, 2024
2 parents 7a3b3d5 + 69d1a67 commit 6c059e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/v/config/configuration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ configuration::configuration()
{.needs_restart = needs_restart::no,
.example = "600000",
.visibility = visibility::tunable},
10min)
10min,
{.min = 0ms})
, log_segment_ms_max(
*this,
"log_segment_ms_max",
Expand All @@ -113,7 +114,8 @@ configuration::configuration()
{.needs_restart = needs_restart::no,
.example = "31536000000",
.visibility = visibility::tunable},
24h * 365)
24h * 365,
{.min = 0ms})
, rpc_server_listen_backlog(
*this,
"rpc_server_listen_backlog",
Expand Down
4 changes: 2 additions & 2 deletions src/v/config/configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ struct configuration final : public config_store {
bounded_property<uint64_t> compacted_log_segment_size;
property<std::chrono::milliseconds> readers_cache_eviction_timeout_ms;
bounded_property<std::optional<std::chrono::milliseconds>> log_segment_ms;
property<std::chrono::milliseconds> log_segment_ms_min;
property<std::chrono::milliseconds> log_segment_ms_max;
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;
Expand Down

0 comments on commit 6c059e4

Please sign in to comment.