mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::db: Update defaults.
ircd:Ⓜ️:dbs: Add custom sizes for _event_json.
This commit is contained in:
parent
6cebec8a8f
commit
9f95c3233b
2 changed files with 31 additions and 7 deletions
|
@ -94,7 +94,7 @@ struct ircd::db::descriptor
|
|||
struct
|
||||
{
|
||||
size_t base {64_MiB}; // rocksdb default
|
||||
size_t multiplier {1}; // rocksdb default
|
||||
size_t multiplier {2}; // rocksdb default
|
||||
}
|
||||
target_file_size;
|
||||
|
||||
|
@ -106,13 +106,13 @@ struct ircd::db::descriptor
|
|||
}
|
||||
max_bytes_for_level[8]
|
||||
{
|
||||
{ 256_MiB, 10L }, // max_bytes_for_level_base
|
||||
{ 0L, 1L }, // max_bytes_for_level[0]
|
||||
{ 32_MiB, 1L }, // max_bytes_for_level_base
|
||||
{ 0L, 0L }, // max_bytes_for_level[0]
|
||||
{ 0L, 1L }, // max_bytes_for_level[1]
|
||||
{ 0L, 1L }, // max_bytes_for_level[2]
|
||||
{ 0L, 1L }, // max_bytes_for_level[3]
|
||||
{ 0L, 1L }, // max_bytes_for_level[4]
|
||||
{ 0L, 1L }, // max_bytes_for_level[5]
|
||||
{ 0L, 1L }, // max_bytes_for_level[6]
|
||||
{ 0L, 3L }, // max_bytes_for_level[3]
|
||||
{ 0L, 7L }, // max_bytes_for_level[4]
|
||||
{ 0L, 15L }, // max_bytes_for_level[5]
|
||||
{ 0L, 31L }, // max_bytes_for_level[6]
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1718,6 +1718,30 @@ ircd::m::dbs::desc::events__event_json
|
|||
|
||||
// meta_block size
|
||||
size_t(events__event_json__meta_block__size),
|
||||
|
||||
// compression
|
||||
"kLZ4Compression;kSnappyCompression"s,
|
||||
|
||||
// compactor
|
||||
{},
|
||||
|
||||
// target_file_size
|
||||
{
|
||||
2_GiB, // base
|
||||
1L, // multiplier
|
||||
},
|
||||
|
||||
// max_bytes_for_level[8]
|
||||
{
|
||||
{ 128_MiB, 1L }, // max_bytes_for_level_base
|
||||
{ 0L, 0L }, // max_bytes_for_level[0]
|
||||
{ 0L, 1L }, // max_bytes_for_level[1]
|
||||
{ 0L, 1L }, // max_bytes_for_level[2]
|
||||
{ 0L, 3L }, // max_bytes_for_level[3]
|
||||
{ 0L, 7L }, // max_bytes_for_level[4]
|
||||
{ 0L, 15L }, // max_bytes_for_level[5]
|
||||
{ 0L, 31L }, // max_bytes_for_level[6]
|
||||
},
|
||||
};
|
||||
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue