Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ revm-primitives = { version = "21.0.2", default-features = false }
revm-interpreter = { version = "29.0.1", default-features = false }

# rbuilder
rbuilder-primitives = { git = "https://github.com/flashbots/rbuilder", rev = "95323c0c6b1ac742a5716aba1942f3e06b8b5241" }
rbuilder-utils = { git = "https://github.com/flashbots/rbuilder", rev = "95323c0c6b1ac742a5716aba1942f3e06b8b5241" , features = [
rbuilder-primitives = { git = "https://github.com/flashbots/rbuilder", rev = "e3b49692d5b4353c62abe828245a44c390f7bec2" }
rbuilder-utils = { git = "https://github.com/flashbots/rbuilder", rev = "e3b49692d5b4353c62abe828245a44c390f7bec2", features = [
"test-utils"
] }

Expand All @@ -34,6 +34,7 @@ tokio = { version = "1", default-features = false, features = [
"macros"
] }
futures = { version = "0.3" }
tokio-util = "0.7.12"

# allocator
tikv-jemallocator = { version = "0.6", optional = true }
Expand Down
29 changes: 29 additions & 0 deletions src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,24 @@ pub struct ClickhouseArgs {
default_value_t = MAX_DISK_BACKUP_SIZE_BYTES
)]
pub backup_disk_max_size_bytes: u64,

/// Send timeout in milliseconds for ClickHouse HTTP requests. Defaults to 2_000.
#[arg(
long = "indexer.clickhouse.send-timeout-ms",
env = "CLICKHOUSE_SEND_TIMEOUT_MS",
id = "CLICKHOUSE_SEND_TIMEOUT_MS",
default_value_t = 2_000
)]
pub send_timeout_ms: u64,

/// End-to-end timeout in milliseconds for ClickHouse HTTP requests. Defaults to 3_000.
#[arg(
long = "indexer.clickhouse.end-timeout-ms",
env = "CLICKHOUSE_END_TIMEOUT_MS",
id = "CLICKHOUSE_END_TIMEOUT_MS",
default_value_t = 3_000
)]
pub end_timeout_ms: u64,
}

/// Arguments required to setup file-based parquet indexing.
Expand Down Expand Up @@ -248,6 +266,16 @@ pub struct OrderflowIngressArgs {
#[clap(long = "http.enable-gzip", default_value_t = false)]
pub gzip_enabled: bool,

/// Maximum local ClickHouse backup disk size in MB above which user RPC (e.g. eth_sendBundle)
/// is rejected with disk full. Defaults to 1024 MB (1 GiB).
#[clap(
long = "disk-max-size-to-accept-user-rpc-mb",
default_value_t = 1024,
env = "DISK_MAX_SIZE_TO_ACCEPT_USER_RPC",
id = "DISK_MAX_SIZE_TO_ACCEPT_USER_RPC"
)]
pub disk_max_size_to_accept_user_rpc_mb: u64,

/// The interval in seconds to update the peer list from BuilderHub.
#[clap(
long = "peer.update-interval-s",
Expand Down Expand Up @@ -316,6 +344,7 @@ impl Default for OrderflowIngressArgs {
score_bucket_s: 4,
log_json: false,
gzip_enabled: false,
disk_max_size_to_accept_user_rpc_mb: 1024,
tcp_small_clients: NonZero::new(4).expect("non-zero"),
tcp_big_clients: 0,
io_threads: 4,
Expand Down
Loading
Loading