Skip to content

Commit

Permalink
fix : Loading line protocol data indicates insufficient memory
Browse files Browse the repository at this point in the history
  • Loading branch information
Subsegment committed Jul 7, 2023
1 parent 6a0e5f4 commit 553024e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion main/src/main.rs
Expand Up @@ -191,7 +191,7 @@ fn main() -> Result<(), std::io::Error> {
init_tskv_metrics_recorder();

let runtime = Arc::new(init_runtime(Some(config.deployment.cpu))?);
let mem_bytes = run_args.cpu.unwrap_or(config.deployment.memory) * 1024 * 1024 * 1024;
let mem_bytes = run_args.memory.unwrap_or(config.deployment.memory) * 1024 * 1024 * 1024;
let memory_pool = Arc::new(GreedyMemoryPool::new(mem_bytes));
runtime.clone().block_on(async move {
let builder = server::ServiceBuilder {
Expand Down
4 changes: 2 additions & 2 deletions tskv/Cargo.toml
Expand Up @@ -58,11 +58,11 @@ walkdir = { workspace = true }
zstd = { workspace = true }
tonic = { workspace = true }

[target.'cfg(linux)'.dependencies]
[target.'cfg(target_os = "linux")'.dependencies]
rio = { version = "0.9", optional = true }
tokio-uring = { version = "0.4", optional = true }

[target.'cfg(windows)'.dependencies]
[target.'cfg(target_os = "windows")'.dependencies]
winapi = { workspace = true }


Expand Down

0 comments on commit 553024e

Please sign in to comment.