-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: impl parallel get_byte_ranges for ObjectStoreReader (#450)
* feat: impl parallel get_byte_ranges for ObjectStoreReader * chore: add sst_get_range_length_histogram in ObjectStoreReader * fix ci * refactor by CR
- Loading branch information
1 parent
be10d88
commit 380a327
Showing
3 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// Copyright 2022 CeresDB Project Authors. Licensed under Apache-2.0. | ||
|
||
use lazy_static::lazy_static; | ||
use prometheus::{exponential_buckets, register_histogram, Histogram}; | ||
|
||
lazy_static! { | ||
// Histogram: | ||
// Buckets: 100B,200B,400B,...,2KB | ||
pub static ref SST_GET_RANGE_HISTOGRAM: Histogram = register_histogram!( | ||
"sst_get_range_length", | ||
"Histogram for sst get range length", | ||
exponential_buckets(100.0, 2.0, 5).unwrap() | ||
).unwrap(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters