Disable compression for random-small-cache type.
Increase auth_chain persistent index block size. Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -169,6 +169,7 @@ pub(crate) static RANDOM_CACHE: Descriptor = Descriptor {
|
|||||||
pub(crate) static RANDOM_SMALL_CACHE: Descriptor = Descriptor {
|
pub(crate) static RANDOM_SMALL_CACHE: Descriptor = Descriptor {
|
||||||
compaction: CompactionStyle::Fifo,
|
compaction: CompactionStyle::Fifo,
|
||||||
cache_disp: CacheDisp::Unique,
|
cache_disp: CacheDisp::Unique,
|
||||||
|
compression: CompressionType::None,
|
||||||
limit_size: 1024 * 1024 * 64,
|
limit_size: 1024 * 1024 * 64,
|
||||||
ttl: 60 * 60 * 24 * 14,
|
ttl: 60 * 60 * 24 * 14,
|
||||||
file_shape: 2,
|
file_shape: 2,
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
use std::{collections::BTreeMap, sync::Arc};
|
use std::{collections::BTreeMap, sync::Arc};
|
||||||
|
|
||||||
|
use rocksdb::DBCompressionType as CompressionType;
|
||||||
use tuwunel_core::Result;
|
use tuwunel_core::Result;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
@@ -37,7 +38,8 @@ pub(super) static MAPS: &[Descriptor] = &[
|
|||||||
Descriptor {
|
Descriptor {
|
||||||
name: "authchainkey_authchain",
|
name: "authchainkey_authchain",
|
||||||
cache_disp: CacheDisp::SharedWith("shorteventid_authchain"),
|
cache_disp: CacheDisp::SharedWith("shorteventid_authchain"),
|
||||||
index_size: 512,
|
compression: CompressionType::None,
|
||||||
|
index_size: 1024,
|
||||||
block_size: 4096,
|
block_size: 4096,
|
||||||
key_size_hint: Some(8), // intentionally match shorteventid_authchain
|
key_size_hint: Some(8), // intentionally match shorteventid_authchain
|
||||||
val_size_hint: Some(256),
|
val_size_hint: Some(256),
|
||||||
|
|||||||
Reference in New Issue
Block a user