Skip to content

Commit 08a5261

Browse files
authored
chore(coprocessor): improve poller charts and update pool interval (#1480)
1 parent 5b52c75 commit 08a5261

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

charts/coprocessor/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: coprocessor
22
description: A helm chart to distribute and deploy Zama fhevm Co-Processor services
3-
version: 0.7.6
3+
version: 0.7.7
44
apiVersion: v2
55
keywords:
66
- fhevm

charts/coprocessor/values.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,28 @@ hostListenerPoller:
243243

244244
# Command line arguments for the host listener poller
245245
args:
246+
### Required parameters
246247
- --database-url=$(DATABASE_URL)
247248
- --coprocessor-api-key=$(TENANT_API_KEY)
248249
- --url=$(ETHEREUM_RPC_HTTP_URL)
249250
- --acl-contract-address=$(ACL_CONTRACT_ADDRESS)
250251
- --tfhe-contract-address=$(FHEVM_EXECUTOR_CONTRACT_ADDRESS)
252+
253+
### Polling and block processing parameters
254+
- --finality-lag=3
255+
- --batch-size=100 # Maximum number of blocks to process per iteration
256+
- --poll-interval-ms=6000 # Sleep duration between iterations in milliseconds (half block time ~6s for Ethereum)
257+
- --retry-interval-ms=1000 # Backoff between retry attempts for RPC/DB failures in milliseconds
258+
- --max-http-retries=45 # Maximum number of HTTP/RPC retry attempts before failing an operation
259+
- --rpc-compute-units-per-second=1000 # Rate limiting budget for RPC calls during block catchup (compute units per second)
260+
261+
### Observability parameters
251262
- --log-level=INFO
252263
- --health-port=8080
264+
- --service-name=host-listener-poller
265+
266+
### Prometheus metrics
267+
- --metrics-addr=0.0.0.0:9100 # Address for Prometheus metrics HTTP server
253268

254269
# Service ports configuration
255270
ports:

coprocessor/fhevm-engine/host-listener/src/bin/poller.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ struct Args {
4949

5050
#[arg(
5151
long,
52-
default_value_t = 1000,
52+
default_value_t = 6000, // half block time ~6s for Ethereum
5353
help = "Sleep duration between iterations in milliseconds"
5454
)]
5555
poll_interval_ms: u64,

0 commit comments

Comments
 (0)