Skip to content

Commit

Permalink
change some default config of ps v3 (#5398)
Browse files Browse the repository at this point in the history
ref #3594
  • Loading branch information
lidezhu authored Jul 19, 2022
1 parent 5d680c4 commit 75dbc1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dbms/src/Storages/Page/PageDefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ static_assert(PAGE_SIZE_STEP >= ((1 << 10) * 16), "PAGE_SIZE_STEP should be at l
static_assert((PAGE_SIZE_STEP & (PAGE_SIZE_STEP - 1)) == 0, "PAGE_SIZE_STEP should be power of 2");

// PageStorage V3 define
static constexpr UInt64 BLOBFILE_LIMIT_SIZE = 512 * MB;
static constexpr UInt64 BLOBFILE_LIMIT_SIZE = 256 * MB;
static constexpr UInt64 BLOBSTORE_CACHED_FD_SIZE = 100;
static constexpr UInt64 PAGE_META_ROLL_SIZE = 2 * MB;
static constexpr UInt64 MAX_PERSISTED_LOG_FILES = 4;
Expand Down
2 changes: 1 addition & 1 deletion dbms/src/Storages/Page/PageStorage.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class PageStorage : private boost::noncopyable
SettingUInt64 blob_file_limit_size = BLOBFILE_LIMIT_SIZE;
SettingUInt64 blob_spacemap_type = 2;
SettingUInt64 blob_cached_fd_size = BLOBSTORE_CACHED_FD_SIZE;
SettingDouble blob_heavy_gc_valid_rate = 0.2;
SettingDouble blob_heavy_gc_valid_rate = 0.5;
SettingUInt64 blob_block_alignment_bytes = 0;

SettingUInt64 wal_roll_size = PAGE_META_ROLL_SIZE;
Expand Down

0 comments on commit 75dbc1c

Please sign in to comment.