diff --git a/config/config.md b/config/config.md index 3574be2411f9..d50501b04097 100644 --- a/config/config.md +++ b/config/config.md @@ -151,7 +151,7 @@ | `region_engine.mito.inverted_index.intermediate_path` | String | `""` | Deprecated, use `region_engine.mito.index.aux_path` instead. | | `region_engine.mito.inverted_index.metadata_cache_size` | String | `64MiB` | Cache size for inverted index metadata. | | `region_engine.mito.inverted_index.content_cache_size` | String | `128MiB` | Cache size for inverted index content. | -| `region_engine.mito.inverted_index.content_cache_page_size` | String | `8MiB` | Page size for inverted index content cache. | +| `region_engine.mito.inverted_index.content_cache_page_size` | String | `64KiB` | Page size for inverted index content cache. | | `region_engine.mito.fulltext_index` | -- | -- | The options for full-text index in Mito engine. | | `region_engine.mito.fulltext_index.create_on_flush` | String | `auto` | Whether to create the index on flush.
- `auto`: automatically (default)
- `disable`: never | | `region_engine.mito.fulltext_index.create_on_compaction` | String | `auto` | Whether to create the index on compaction.
- `auto`: automatically (default)
- `disable`: never | @@ -485,7 +485,7 @@ | `region_engine.mito.inverted_index.intermediate_path` | String | `""` | Deprecated, use `region_engine.mito.index.aux_path` instead. | | `region_engine.mito.inverted_index.metadata_cache_size` | String | `64MiB` | Cache size for inverted index metadata. | | `region_engine.mito.inverted_index.content_cache_size` | String | `128MiB` | Cache size for inverted index content. | -| `region_engine.mito.inverted_index.content_cache_page_size` | String | `8MiB` | Page size for inverted index content cache. | +| `region_engine.mito.inverted_index.content_cache_page_size` | String | `64KiB` | Page size for inverted index content cache. | | `region_engine.mito.fulltext_index` | -- | -- | The options for full-text index in Mito engine. | | `region_engine.mito.fulltext_index.create_on_flush` | String | `auto` | Whether to create the index on flush.
- `auto`: automatically (default)
- `disable`: never | | `region_engine.mito.fulltext_index.create_on_compaction` | String | `auto` | Whether to create the index on compaction.
- `auto`: automatically (default)
- `disable`: never | diff --git a/config/datanode.example.toml b/config/datanode.example.toml index 05b55d6f7e35..c15f3b1c26f6 100644 --- a/config/datanode.example.toml +++ b/config/datanode.example.toml @@ -550,7 +550,7 @@ metadata_cache_size = "64MiB" content_cache_size = "128MiB" ## Page size for inverted index content cache. -content_cache_page_size = "8MiB" +content_cache_page_size = "64KiB" ## The options for full-text index in Mito engine. [region_engine.mito.fulltext_index] diff --git a/config/standalone.example.toml b/config/standalone.example.toml index 3e9cfc0694b8..ad89cea76d27 100644 --- a/config/standalone.example.toml +++ b/config/standalone.example.toml @@ -593,7 +593,7 @@ metadata_cache_size = "64MiB" content_cache_size = "128MiB" ## Page size for inverted index content cache. -content_cache_page_size = "8MiB" +content_cache_page_size = "64KiB" ## The options for full-text index in Mito engine. [region_engine.mito.fulltext_index] diff --git a/src/mito2/src/config.rs b/src/mito2/src/config.rs index 1c06fb3f1aa0..6c74efcc8a48 100644 --- a/src/mito2/src/config.rs +++ b/src/mito2/src/config.rs @@ -443,7 +443,7 @@ impl Default for InvertedIndexConfig { intermediate_path: String::new(), metadata_cache_size: ReadableSize::mb(64), content_cache_size: ReadableSize::mb(128), - content_cache_page_size: ReadableSize::mb(8), + content_cache_page_size: ReadableSize::kb(64), }; if let Some(sys_memory) = common_config::utils::get_sys_total_memory() { diff --git a/tests-integration/tests/http.rs b/tests-integration/tests/http.rs index 1e1de235a88b..f81cd7a4ad19 100644 --- a/tests-integration/tests/http.rs +++ b/tests-integration/tests/http.rs @@ -946,7 +946,7 @@ create_on_flush = "auto" create_on_compaction = "auto" apply_on_query = "auto" mem_threshold_on_create = "auto" -content_cache_page_size = "8MiB" +content_cache_page_size = "64KiB" [region_engine.mito.fulltext_index] create_on_flush = "auto"