Skip to content

Commit

Permalink
fix: add serde default to MitoConfig (#2650)
Browse files Browse the repository at this point in the history
* fix: add serde default to MitoConfig

* docs: update config toml
  • Loading branch information
evenyag authored Oct 24, 2023
1 parent 01fdbf3 commit 16a3257
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/datanode.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ auto_flush_interval = "1h"
global_write_buffer_size = "1GB"
# Global write buffer size threshold to reject write requests (default 2G).
global_write_buffer_reject_size = "2GB"
# Cache size for SST metadata (default 128MB). Setting it to 0 to disable the cache.
sst_meta_cache_size = "128MB"
# Cache size for vectors and arrow arrays (default 512MB). Setting it to 0 to disable the cache.
vector_cache_size = "512MB"

# Log options
# [logging]
Expand Down
1 change: 1 addition & 0 deletions src/mito2/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const DEFAULT_MAX_BG_JOB: usize = 4;

/// Configuration for [MitoEngine](crate::engine::MitoEngine).
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq)]
#[serde(default)]
pub struct MitoConfig {
// Worker configs:
/// Number of region workers (default 1).
Expand Down

0 comments on commit 16a3257

Please sign in to comment.