adding configuration files for eclipse

This commit is contained in:
Godmode Galactus 2024-11-05 17:11:20 +01:00
parent 571cf411c0
commit dc3c94244f
No known key found for this signature in database
GPG Key ID: A6B75566742EA987
5 changed files with 147 additions and 2 deletions

View File

@ -0,0 +1,25 @@
FROM rust:1.76.0 as base
RUN cargo install cargo-chef@0.1.62 --locked
RUN rustup component add rustfmt
RUN apt-get update && apt-get install -y clang cmake ssh
WORKDIR /app
FROM base AS plan
COPY . .
WORKDIR /app
RUN cargo chef prepare --recipe-path recipe.json
FROM base as build
COPY --from=plan /app/recipe.json recipe.json
RUN cargo chef cook --release --recipe-path recipe.json
COPY . .
RUN cargo build --release --bin autobahn-router
FROM debian:bookworm-slim as run
RUN apt-get update && apt-get -y install ca-certificates libc6 libssl3 libssl-dev openssl
COPY --from=build /app/target/release/autobahn-router /usr/local/bin/
COPY --from=build /app/bin/autobahn-router/template-config-eclipse.toml /usr/local/bin/template-config.toml
RUN adduser --system --group --no-create-home mangouser
USER mangouser

View File

@ -0,0 +1,98 @@
snapshot_timeout_in_seconds = 900
[infinity]
enabled = false
[orca]
enabled = true
mints = []
take_all_mints = true
add_mango_tokens = false
[cropper]
enabled = false
mints = []
take_all_mints = true
add_mango_tokens = false
[openbook_v2]
enabled = false
mints = []
take_all_mints = true
add_mango_tokens = false
[raydium]
enabled = false
mints = []
take_all_mints = true
add_mango_tokens = false
[raydium_cp]
enabled = false
mints = []
take_all_mints = true
add_mango_tokens = false
[saber]
enabled = false
mints = []
take_all_mints = true
add_mango_tokens = false
[routing]
path_cache_validity_ms = 30000
path_warming_mode = "ConfiguredMints"
#path_warming_mode = "HotMints"
path_warming_amounts = [100, 1000, 10_000]
path_warming_for_mints = [
"So11111111111111111111111111111111111111112", # SOL
]
path_warming_interval_secs = 5
path_warming_max_accounts = [20, 30, 40, 64]
lookup_tables = []
cooldown_duration_multihop_secs = 30
cooldown_duration_singlehop_secs = 60
max_path_length = 3
retain_path_count = 5
max_edge_per_pair = 5
max_edge_per_cold_pair = 2
[server]
address = "[::]:8888"
[metrics]
output_http = true
prometheus_address = "[::]:9091"
output_stdout = false
[[sources]]
dedup_queue_size = 50000
rpc_http_url = "$RPC_HTTP_URL"
rpc_support_compression = false
re_snapshot_interval_secs = 1200
request_timeout_in_seconds = 300
[[sources.grpc_sources]]
name = "router-eclipse"
connection_string = "$RPC_HTTP_URL_WITHOUT_TOKEN"
token = "$AMS_RPC_TOKEN"
retry_connection_sleep_secs = 30
[price_feed]
birdeye_token = "$BIRDEYE_TOKEN"
refresh_interval_secs = 1200 # every 20 min
[safety_checks]
check_quote_out_amount_deviation = true
min_quote_out_to_in_amount_ratio = 0.65
[hot_mints]
always_hot_mints = [
"So11111111111111111111111111111111111111112", # SOL
]
keep_latest_count = 50
[debug_config]
reprice_using_live_rpc = true
reprice_probability = 0.05

View File

@ -52,7 +52,7 @@ path_warming_for_mints = [
# "27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4" # JLP
]
path_warming_interval_secs = 5
path_warming_max_accounts = [20, 25, 30, 35, 40, 64]
path_warming_max_accounts = [20, 30, 40, 64]
lookup_tables = ["87TgskchTNEv1uXkGQk1U4zt65tjqbfGAZWNMGAcRRPx",
"AgCBUZ6UMWqPLftTxeAqpQxtrfiCyL2HgRfmmM6QTfCj",
"A1v3qxN7HbUvtyPnnaoCrKonXjkFLaDHXk3S6R2QfEaw",

22
fly-eclipse.toml Normal file
View File

@ -0,0 +1,22 @@
app = "router-eclipse"
primary_region = "fra"
kill_signal = "SIGTERM"
kill_timeout = "30s"
[build]
dockerfile = 'bin/autobahn-router/eclipse/Dockerfile'
[experimental]
cmd = ["autobahn-router", "/usr/local/bin/template-config-eclipse.toml"]
[[vm]]
size = "shared-4x"
memory = "8gb"
[[restart]]
policy = "always"
retries = 10
[metrics]
port = 9091
path = "/metrics"

View File

@ -1,5 +1,5 @@
app = "router-2"
primary_region = "dfw"
primary_region = "ams"
kill_signal = "SIGTERM"
kill_timeout = "30s"