Skip to content

Commit

Permalink
hide more
Browse files Browse the repository at this point in the history
  • Loading branch information
fuyufjh committed Mar 11, 2024
1 parent 280ae6f commit 2bec439
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/cmd_all/src/single_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ pub fn map_single_node_opts_to_standalone_opts(opts: &SingleNodeOpts) -> ParsedS
meta_opts.sql_endpoint = Some(meta_store_endpoint);
}

// Set listen addresses (override)
// Set listen addresses (force to override)
meta_opts.listen_addr = "0.0.0.0:5690".to_string();
compute_opts.listen_addr = "0.0.0.0:5688".to_string();
compactor_opts.listen_addr = "0.0.0.0:6660".to_string();
if let Some(frontend_addr) = &opts.node_opts.listen_addr {
frontend_opts.listen_addr = frontend_addr.clone();
}

// Set Meta addresses for all nodes (override)
// Set Meta addresses for all nodes (force to override)
let meta_addr = "127.0.0.1:5690".to_string();
meta_opts.advertise_addr = meta_addr.clone();
compute_opts.meta_address = meta_addr.parse().unwrap();
Expand Down
10 changes: 5 additions & 5 deletions src/compute/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,29 +106,29 @@ pub struct ComputeNodeOpts {
/// Used for control the metrics level, similar to log level.
/// 0 = disable metrics
/// >0 = enable metrics
#[clap(long, env = "RW_METRICS_LEVEL")]
#[clap(long, hide = true, env = "RW_METRICS_LEVEL")]
#[override_opts(path = server.metrics_level)]
pub metrics_level: Option<MetricLevel>,

/// Path to data file cache data directory.
/// Left empty to disable file cache.
#[clap(long, env = "RW_DATA_FILE_CACHE_DIR")]
#[clap(long, hide = true, env = "RW_DATA_FILE_CACHE_DIR")]
#[override_opts(path = storage.data_file_cache.dir)]
pub data_file_cache_dir: Option<String>,

/// Path to meta file cache data directory.
/// Left empty to disable file cache.
#[clap(long, env = "RW_META_FILE_CACHE_DIR")]
#[clap(long, hide = true, env = "RW_META_FILE_CACHE_DIR")]
#[override_opts(path = storage.meta_file_cache.dir)]
pub meta_file_cache_dir: Option<String>,

/// Enable async stack tracing through `await-tree` for risectl.
#[clap(long, env = "RW_ASYNC_STACK_TRACE", value_enum)]
#[clap(long, hide = true, env = "RW_ASYNC_STACK_TRACE", value_enum)]
#[override_opts(path = streaming.async_stack_trace)]
pub async_stack_trace: Option<AsyncStackTraceOption>,

/// Enable heap profile dump when memory usage is high.
#[clap(long, env = "RW_HEAP_PROFILING_DIR")]
#[clap(long, hide = true, env = "RW_HEAP_PROFILING_DIR")]
#[override_opts(path = server.heap_profiling.dir)]
pub heap_profiling_dir: Option<String>,
}
Expand Down
2 changes: 1 addition & 1 deletion src/storage/compactor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ pub struct CompactorOpts {
#[clap(long, env = "RW_COMPACTOR_MODE", value_enum)]
pub compactor_mode: Option<CompactorMode>,

#[clap(long, env = "RW_PROXY_RPC_ENDPOINT", default_value = "")]
#[clap(long, hide = true, env = "RW_PROXY_RPC_ENDPOINT", default_value = "")]
pub proxy_rpc_endpoint: String,
}

Expand Down

0 comments on commit 2bec439

Please sign in to comment.