Skip to content

Commit

Permalink
chore(storage): remove unused config (#17175)
Browse files Browse the repository at this point in the history
Signed-off-by: MrCroxx <[email protected]>
  • Loading branch information
MrCroxx authored Jun 11, 2024
1 parent 6cd0f28 commit 402212f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 38 deletions.
14 changes: 0 additions & 14 deletions src/common/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -827,12 +827,6 @@ pub struct FileCacheConfig {
#[serde(default = "default::file_cache::recover_concurrency")]
pub recover_concurrency: usize,

#[serde(default = "default::file_cache::lfu_window_to_cache_size_ratio")]
pub lfu_window_to_cache_size_ratio: usize,

#[serde(default = "default::file_cache::lfu_tiny_lru_capacity_ratio")]
pub lfu_tiny_lru_capacity_ratio: f64,

#[serde(default = "default::file_cache::insert_rate_limit_mb")]
pub insert_rate_limit_mb: usize,

Expand Down Expand Up @@ -1564,14 +1558,6 @@ pub mod default {
8
}

pub fn lfu_window_to_cache_size_ratio() -> usize {
1
}

pub fn lfu_tiny_lru_capacity_ratio() -> f64 {
0.01
}

pub fn insert_rate_limit_mb() -> usize {
0
}
Expand Down
4 changes: 0 additions & 4 deletions src/config/example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,6 @@ file_capacity_mb = 64
flushers = 4
reclaimers = 4
recover_concurrency = 8
lfu_window_to_cache_size_ratio = 1
lfu_tiny_lru_capacity_ratio = 0.01
insert_rate_limit_mb = 0
indexer_shards = 64
compression = "none"
Expand All @@ -178,8 +176,6 @@ file_capacity_mb = 64
flushers = 4
reclaimers = 4
recover_concurrency = 8
lfu_window_to_cache_size_ratio = 1
lfu_tiny_lru_capacity_ratio = 0.01
insert_rate_limit_mb = 0
indexer_shards = 64
compression = "none"
Expand Down
20 changes: 0 additions & 20 deletions src/storage/src/opts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,6 @@ pub struct StorageOpts {
pub data_file_cache_flushers: usize,
pub data_file_cache_reclaimers: usize,
pub data_file_cache_recover_concurrency: usize,
pub data_file_cache_lfu_window_to_cache_size_ratio: usize,
pub data_file_cache_lfu_tiny_lru_capacity_ratio: f64,
pub data_file_cache_insert_rate_limit_mb: usize,
pub data_file_cache_indexer_shards: usize,
pub data_file_cache_compression: String,
Expand All @@ -107,8 +105,6 @@ pub struct StorageOpts {
pub meta_file_cache_flushers: usize,
pub meta_file_cache_reclaimers: usize,
pub meta_file_cache_recover_concurrency: usize,
pub meta_file_cache_lfu_window_to_cache_size_ratio: usize,
pub meta_file_cache_lfu_tiny_lru_capacity_ratio: f64,
pub meta_file_cache_insert_rate_limit_mb: usize,
pub meta_file_cache_indexer_shards: usize,
pub meta_file_cache_compression: String,
Expand Down Expand Up @@ -182,14 +178,6 @@ impl From<(&RwConfig, &SystemParamsReader, &StorageMemoryConfig)> for StorageOpt
data_file_cache_flushers: c.storage.data_file_cache.flushers,
data_file_cache_reclaimers: c.storage.data_file_cache.reclaimers,
data_file_cache_recover_concurrency: c.storage.data_file_cache.recover_concurrency,
data_file_cache_lfu_window_to_cache_size_ratio: c
.storage
.data_file_cache
.lfu_window_to_cache_size_ratio,
data_file_cache_lfu_tiny_lru_capacity_ratio: c
.storage
.data_file_cache
.lfu_tiny_lru_capacity_ratio,
data_file_cache_insert_rate_limit_mb: c.storage.data_file_cache.insert_rate_limit_mb,
data_file_cache_indexer_shards: c.storage.data_file_cache.indexer_shards,
data_file_cache_compression: c.storage.data_file_cache.compression.clone(),
Expand All @@ -199,14 +187,6 @@ impl From<(&RwConfig, &SystemParamsReader, &StorageMemoryConfig)> for StorageOpt
meta_file_cache_flushers: c.storage.meta_file_cache.flushers,
meta_file_cache_reclaimers: c.storage.meta_file_cache.reclaimers,
meta_file_cache_recover_concurrency: c.storage.meta_file_cache.recover_concurrency,
meta_file_cache_lfu_window_to_cache_size_ratio: c
.storage
.meta_file_cache
.lfu_window_to_cache_size_ratio,
meta_file_cache_lfu_tiny_lru_capacity_ratio: c
.storage
.meta_file_cache
.lfu_tiny_lru_capacity_ratio,
meta_file_cache_insert_rate_limit_mb: c.storage.meta_file_cache.insert_rate_limit_mb,
meta_file_cache_indexer_shards: c.storage.meta_file_cache.indexer_shards,
meta_file_cache_compression: c.storage.meta_file_cache.compression.clone(),
Expand Down

0 comments on commit 402212f

Please sign in to comment.