service-mango-health: add config for snapshot interval (reduce memory pressure)
(cherry picked from commit 78ea5e220cc032d6a280b0f3c66cb94051da3267)
This commit is contained in:
parent
bf6d2a11ec
commit
abeb14c17f
|
@ -1,6 +1,7 @@
|
|||
rpc_ws_url = "wss://mango.rpcpool.com/<TOKEN>"
|
||||
rpc_http_url = "http://mango.rpcpool.com/<TOKEN>"
|
||||
mango_group = "78b8f4cGCwmZ9ysPFMWLaLTkkaYnUjwMJYStWe5RTSSX"
|
||||
snapshot_interval_secs = 900
|
||||
|
||||
# [postgres]
|
||||
# connection_string = "$PG_CONNECTION_STRING"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
rpc_http_url = "$RPC_HTTP_URL"
|
||||
rpc_ws_url = "$RPC_WS_URL"
|
||||
mango_group = "78b8f4cGCwmZ9ysPFMWLaLTkkaYnUjwMJYStWe5RTSSX"
|
||||
snapshot_interval_secs = 900
|
||||
|
||||
[postgres]
|
||||
connection_string = "$PG_CONNECTION_STRING"
|
||||
|
|
|
@ -15,6 +15,8 @@ pub struct Configuration {
|
|||
pub computing_configuration: ComputingConfiguration,
|
||||
pub logging_configuration: LoggingConfiguration,
|
||||
pub persistence_configuration: PersistenceConfiguration,
|
||||
|
||||
pub snapshot_interval_secs: u64,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, Deserialize)]
|
||||
|
|
|
@ -200,7 +200,7 @@ impl DataProcessor {
|
|||
mango_group,
|
||||
get_multiple_accounts_count: 100,
|
||||
parallel_rpc_requests: 10,
|
||||
snapshot_interval: Duration::from_secs(5 * 60),
|
||||
snapshot_interval: Duration::from_secs(configuration.snapshot_interval_secs),
|
||||
min_slot: first_websocket_slot + 10,
|
||||
},
|
||||
mango_oracles,
|
||||
|
|
Loading…
Reference in New Issue