Skip to content

Commit 818c0d3

Browse files
apollo_infra: add config for max connection attempt duration
1 parent d9d2d0c commit 818c0d3

29 files changed

+134
-0
lines changed

crates/apollo_deployments/resources/services/distributed/batcher.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"components.class_manager.port": 55001,
2323
"components.class_manager.remote_client_config.#is_none": false,
2424
"components.class_manager.remote_client_config.attempts_per_log": 10,
25+
"components.class_manager.remote_client_config.connection_timeout_ms": 500,
2526
"components.class_manager.remote_client_config.idle_connections": 10,
2627
"components.class_manager.remote_client_config.idle_timeout_ms": 30000,
2728
"components.class_manager.remote_client_config.initial_retry_delay_ms": 1,
@@ -71,6 +72,7 @@
7172
"components.l1_provider.port": 55004,
7273
"components.l1_provider.remote_client_config.#is_none": false,
7374
"components.l1_provider.remote_client_config.attempts_per_log": 10,
75+
"components.l1_provider.remote_client_config.connection_timeout_ms": 500,
7476
"components.l1_provider.remote_client_config.idle_connections": 10,
7577
"components.l1_provider.remote_client_config.idle_timeout_ms": 30000,
7678
"components.l1_provider.remote_client_config.initial_retry_delay_ms": 1,
@@ -86,6 +88,7 @@
8688
"components.mempool.port": 55006,
8789
"components.mempool.remote_client_config.#is_none": false,
8890
"components.mempool.remote_client_config.attempts_per_log": 10,
91+
"components.mempool.remote_client_config.connection_timeout_ms": 500,
8992
"components.mempool.remote_client_config.idle_connections": 10,
9093
"components.mempool.remote_client_config.idle_timeout_ms": 30000,
9194
"components.mempool.remote_client_config.initial_retry_delay_ms": 1,

crates/apollo_deployments/resources/services/distributed/class_manager.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"components.sierra_compiler.port": 55007,
8888
"components.sierra_compiler.remote_client_config.#is_none": false,
8989
"components.sierra_compiler.remote_client_config.attempts_per_log": 10,
90+
"components.sierra_compiler.remote_client_config.connection_timeout_ms": 500,
9091
"components.sierra_compiler.remote_client_config.idle_connections": 0,
9192
"components.sierra_compiler.remote_client_config.idle_timeout_ms": 30000,
9293
"components.sierra_compiler.remote_client_config.initial_retry_delay_ms": 1,

crates/apollo_deployments/resources/services/distributed/consensus_manager.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"components.batcher.port": 55000,
99
"components.batcher.remote_client_config.#is_none": false,
1010
"components.batcher.remote_client_config.attempts_per_log": 10,
11+
"components.batcher.remote_client_config.connection_timeout_ms": 500,
1112
"components.batcher.remote_client_config.idle_connections": 10,
1213
"components.batcher.remote_client_config.idle_timeout_ms": 30000,
1314
"components.batcher.remote_client_config.initial_retry_delay_ms": 1,
@@ -22,6 +23,7 @@
2223
"components.class_manager.port": 55001,
2324
"components.class_manager.remote_client_config.#is_none": false,
2425
"components.class_manager.remote_client_config.attempts_per_log": 10,
26+
"components.class_manager.remote_client_config.connection_timeout_ms": 500,
2527
"components.class_manager.remote_client_config.idle_connections": 10,
2628
"components.class_manager.remote_client_config.idle_timeout_ms": 30000,
2729
"components.class_manager.remote_client_config.initial_retry_delay_ms": 1,
@@ -63,6 +65,7 @@
6365
"components.l1_gas_price_provider.port": 55003,
6466
"components.l1_gas_price_provider.remote_client_config.#is_none": false,
6567
"components.l1_gas_price_provider.remote_client_config.attempts_per_log": 10,
68+
"components.l1_gas_price_provider.remote_client_config.connection_timeout_ms": 500,
6669
"components.l1_gas_price_provider.remote_client_config.idle_connections": 10,
6770
"components.l1_gas_price_provider.remote_client_config.idle_timeout_ms": 30000,
6871
"components.l1_gas_price_provider.remote_client_config.initial_retry_delay_ms": 1,
@@ -108,6 +111,7 @@
108111
"components.signature_manager.port": 55008,
109112
"components.signature_manager.remote_client_config.#is_none": false,
110113
"components.signature_manager.remote_client_config.attempts_per_log": 10,
114+
"components.signature_manager.remote_client_config.connection_timeout_ms": 500,
111115
"components.signature_manager.remote_client_config.idle_connections": 10,
112116
"components.signature_manager.remote_client_config.idle_timeout_ms": 30000,
113117
"components.signature_manager.remote_client_config.initial_retry_delay_ms": 1,
@@ -122,6 +126,7 @@
122126
"components.state_sync.port": 55009,
123127
"components.state_sync.remote_client_config.#is_none": false,
124128
"components.state_sync.remote_client_config.attempts_per_log": 10,
129+
"components.state_sync.remote_client_config.connection_timeout_ms": 500,
125130
"components.state_sync.remote_client_config.idle_connections": 10,
126131
"components.state_sync.remote_client_config.idle_timeout_ms": 30000,
127132
"components.state_sync.remote_client_config.initial_retry_delay_ms": 1,

crates/apollo_deployments/resources/services/distributed/gateway.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"components.class_manager.port": 55001,
1616
"components.class_manager.remote_client_config.#is_none": false,
1717
"components.class_manager.remote_client_config.attempts_per_log": 10,
18+
"components.class_manager.remote_client_config.connection_timeout_ms": 500,
1819
"components.class_manager.remote_client_config.idle_connections": 10,
1920
"components.class_manager.remote_client_config.idle_timeout_ms": 30000,
2021
"components.class_manager.remote_client_config.initial_retry_delay_ms": 1,
@@ -79,6 +80,7 @@
7980
"components.mempool.port": 55006,
8081
"components.mempool.remote_client_config.#is_none": false,
8182
"components.mempool.remote_client_config.attempts_per_log": 10,
83+
"components.mempool.remote_client_config.connection_timeout_ms": 500,
8284
"components.mempool.remote_client_config.idle_connections": 10,
8385
"components.mempool.remote_client_config.idle_timeout_ms": 30000,
8486
"components.mempool.remote_client_config.initial_retry_delay_ms": 1,
@@ -115,6 +117,7 @@
115117
"components.state_sync.port": 55009,
116118
"components.state_sync.remote_client_config.#is_none": false,
117119
"components.state_sync.remote_client_config.attempts_per_log": 10,
120+
"components.state_sync.remote_client_config.connection_timeout_ms": 500,
118121
"components.state_sync.remote_client_config.idle_connections": 10,
119122
"components.state_sync.remote_client_config.idle_timeout_ms": 30000,
120123
"components.state_sync.remote_client_config.initial_retry_delay_ms": 1,

crates/apollo_deployments/resources/services/distributed/http_server.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
"components.gateway.port": 55002,
3535
"components.gateway.remote_client_config.#is_none": false,
3636
"components.gateway.remote_client_config.attempts_per_log": 10,
37+
"components.gateway.remote_client_config.connection_timeout_ms": 500,
3738
"components.gateway.remote_client_config.idle_connections": 0,
3839
"components.gateway.remote_client_config.idle_timeout_ms": 30000,
3940
"components.gateway.remote_client_config.initial_retry_delay_ms": 1,

crates/apollo_deployments/resources/services/distributed/l1.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"components.batcher.port": 55000,
99
"components.batcher.remote_client_config.#is_none": false,
1010
"components.batcher.remote_client_config.attempts_per_log": 10,
11+
"components.batcher.remote_client_config.connection_timeout_ms": 500,
1112
"components.batcher.remote_client_config.idle_connections": 10,
1213
"components.batcher.remote_client_config.idle_timeout_ms": 30000,
1314
"components.batcher.remote_client_config.initial_retry_delay_ms": 1,
@@ -122,6 +123,7 @@
122123
"components.state_sync.port": 55009,
123124
"components.state_sync.remote_client_config.#is_none": false,
124125
"components.state_sync.remote_client_config.attempts_per_log": 10,
126+
"components.state_sync.remote_client_config.connection_timeout_ms": 500,
125127
"components.state_sync.remote_client_config.idle_connections": 10,
126128
"components.state_sync.remote_client_config.idle_timeout_ms": 30000,
127129
"components.state_sync.remote_client_config.initial_retry_delay_ms": 1,

crates/apollo_deployments/resources/services/distributed/mempool.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"components.class_manager.port": 55001,
1616
"components.class_manager.remote_client_config.#is_none": false,
1717
"components.class_manager.remote_client_config.attempts_per_log": 10,
18+
"components.class_manager.remote_client_config.connection_timeout_ms": 500,
1819
"components.class_manager.remote_client_config.idle_connections": 10,
1920
"components.class_manager.remote_client_config.idle_timeout_ms": 30000,
2021
"components.class_manager.remote_client_config.initial_retry_delay_ms": 1,
@@ -41,6 +42,7 @@
4142
"components.gateway.port": 55002,
4243
"components.gateway.remote_client_config.#is_none": false,
4344
"components.gateway.remote_client_config.attempts_per_log": 10,
45+
"components.gateway.remote_client_config.connection_timeout_ms": 500,
4446
"components.gateway.remote_client_config.idle_connections": 0,
4547
"components.gateway.remote_client_config.idle_timeout_ms": 30000,
4648
"components.gateway.remote_client_config.initial_retry_delay_ms": 1,

crates/apollo_deployments/resources/services/distributed/replacer_batcher.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"components.class_manager.port": "$$$_COMPONENTS-CLASS_MANAGER-PORT_$$$",
2323
"components.class_manager.remote_client_config.#is_none": false,
2424
"components.class_manager.remote_client_config.attempts_per_log": 10,
25+
"components.class_manager.remote_client_config.connection_timeout_ms": 500,
2526
"components.class_manager.remote_client_config.idle_connections": 10,
2627
"components.class_manager.remote_client_config.idle_timeout_ms": 30000,
2728
"components.class_manager.remote_client_config.initial_retry_delay_ms": 1,
@@ -71,6 +72,7 @@
7172
"components.l1_provider.port": "$$$_COMPONENTS-L1_PROVIDER-PORT_$$$",
7273
"components.l1_provider.remote_client_config.#is_none": false,
7374
"components.l1_provider.remote_client_config.attempts_per_log": 10,
75+
"components.l1_provider.remote_client_config.connection_timeout_ms": 500,
7476
"components.l1_provider.remote_client_config.idle_connections": 10,
7577
"components.l1_provider.remote_client_config.idle_timeout_ms": 30000,
7678
"components.l1_provider.remote_client_config.initial_retry_delay_ms": 1,
@@ -86,6 +88,7 @@
8688
"components.mempool.port": "$$$_COMPONENTS-MEMPOOL-PORT_$$$",
8789
"components.mempool.remote_client_config.#is_none": false,
8890
"components.mempool.remote_client_config.attempts_per_log": 10,
91+
"components.mempool.remote_client_config.connection_timeout_ms": 500,
8992
"components.mempool.remote_client_config.idle_connections": 10,
9093
"components.mempool.remote_client_config.idle_timeout_ms": 30000,
9194
"components.mempool.remote_client_config.initial_retry_delay_ms": 1,

crates/apollo_deployments/resources/services/distributed/replacer_class_manager.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@
8787
"components.sierra_compiler.port": "$$$_COMPONENTS-SIERRA_COMPILER-PORT_$$$",
8888
"components.sierra_compiler.remote_client_config.#is_none": false,
8989
"components.sierra_compiler.remote_client_config.attempts_per_log": 10,
90+
"components.sierra_compiler.remote_client_config.connection_timeout_ms": 500,
9091
"components.sierra_compiler.remote_client_config.idle_connections": 0,
9192
"components.sierra_compiler.remote_client_config.idle_timeout_ms": 30000,
9293
"components.sierra_compiler.remote_client_config.initial_retry_delay_ms": 1,

crates/apollo_deployments/resources/services/distributed/replacer_consensus_manager.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"components.batcher.port": "$$$_COMPONENTS-BATCHER-PORT_$$$",
99
"components.batcher.remote_client_config.#is_none": false,
1010
"components.batcher.remote_client_config.attempts_per_log": 10,
11+
"components.batcher.remote_client_config.connection_timeout_ms": 500,
1112
"components.batcher.remote_client_config.idle_connections": 10,
1213
"components.batcher.remote_client_config.idle_timeout_ms": 30000,
1314
"components.batcher.remote_client_config.initial_retry_delay_ms": 1,
@@ -22,6 +23,7 @@
2223
"components.class_manager.port": "$$$_COMPONENTS-CLASS_MANAGER-PORT_$$$",
2324
"components.class_manager.remote_client_config.#is_none": false,
2425
"components.class_manager.remote_client_config.attempts_per_log": 10,
26+
"components.class_manager.remote_client_config.connection_timeout_ms": 500,
2527
"components.class_manager.remote_client_config.idle_connections": 10,
2628
"components.class_manager.remote_client_config.idle_timeout_ms": 30000,
2729
"components.class_manager.remote_client_config.initial_retry_delay_ms": 1,
@@ -63,6 +65,7 @@
6365
"components.l1_gas_price_provider.port": "$$$_COMPONENTS-L1_GAS_PRICE_PROVIDER-PORT_$$$",
6466
"components.l1_gas_price_provider.remote_client_config.#is_none": false,
6567
"components.l1_gas_price_provider.remote_client_config.attempts_per_log": 10,
68+
"components.l1_gas_price_provider.remote_client_config.connection_timeout_ms": 500,
6669
"components.l1_gas_price_provider.remote_client_config.idle_connections": 10,
6770
"components.l1_gas_price_provider.remote_client_config.idle_timeout_ms": 30000,
6871
"components.l1_gas_price_provider.remote_client_config.initial_retry_delay_ms": 1,
@@ -108,6 +111,7 @@
108111
"components.signature_manager.port": "$$$_COMPONENTS-SIGNATURE_MANAGER-PORT_$$$",
109112
"components.signature_manager.remote_client_config.#is_none": false,
110113
"components.signature_manager.remote_client_config.attempts_per_log": 10,
114+
"components.signature_manager.remote_client_config.connection_timeout_ms": 500,
111115
"components.signature_manager.remote_client_config.idle_connections": 10,
112116
"components.signature_manager.remote_client_config.idle_timeout_ms": 30000,
113117
"components.signature_manager.remote_client_config.initial_retry_delay_ms": 1,
@@ -122,6 +126,7 @@
122126
"components.state_sync.port": "$$$_COMPONENTS-STATE_SYNC-PORT_$$$",
123127
"components.state_sync.remote_client_config.#is_none": false,
124128
"components.state_sync.remote_client_config.attempts_per_log": 10,
129+
"components.state_sync.remote_client_config.connection_timeout_ms": 500,
125130
"components.state_sync.remote_client_config.idle_connections": 10,
126131
"components.state_sync.remote_client_config.idle_timeout_ms": 30000,
127132
"components.state_sync.remote_client_config.initial_retry_delay_ms": 1,

0 commit comments

Comments
 (0)