Skip to content

Commit

Permalink
[Opt](cloud) Using file cache disks number to determine the size of t…
Browse files Browse the repository at this point in the history
…he flush memtable thread pool
  • Loading branch information
liaoxin01 committed Aug 2, 2024
1 parent 004c5a3 commit 7559736
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions be/src/cloud/cloud_storage_engine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
#include "cloud/cloud_warm_up_manager.h"
#include "cloud/config.h"
#include "io/cache/block_file_cache_downloader.h"
#include "io/cache/block_file_cache_factory.h"
#include "io/cache/file_cache_common.h"
#include "io/fs/file_system.h"
#include "io/fs/hdfs_file_system.h"
Expand Down Expand Up @@ -180,8 +181,8 @@ Status CloudStorageEngine::open() {
// TODO(plat1ko): DeleteBitmapTxnManager

_memtable_flush_executor = std::make_unique<MemTableFlushExecutor>();
// TODO(plat1ko): Use file cache disks number?
_memtable_flush_executor->init(1);
// Use file cache disks number
_memtable_flush_executor->init(io::FileCacheFactory::instance()->get_cache_instance_size());

_calc_delete_bitmap_executor = std::make_unique<CalcDeleteBitmapExecutor>();
_calc_delete_bitmap_executor->init();
Expand Down

0 comments on commit 7559736

Please sign in to comment.