From 7d3a7532ab8288aa3f91f0f4fb6cb4910d0a98d9 Mon Sep 17 00:00:00 2001 From: Nabarun Date: Thu, 4 Jul 2024 14:24:17 +0530 Subject: [PATCH] Upgrade ajna-watcher and set getLogsClientSwitchThresholdInSecs --- .../data/config/watcher-ajna/watcher-config-template.toml | 7 +++++-- stack_orchestrator/data/stacks/ajna/stack.yml | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/stack_orchestrator/data/config/watcher-ajna/watcher-config-template.toml b/stack_orchestrator/data/config/watcher-ajna/watcher-config-template.toml index daa5238d..4b825bc9 100644 --- a/stack_orchestrator/data/config/watcher-ajna/watcher-config-template.toml +++ b/stack_orchestrator/data/config/watcher-ajna/watcher-config-template.toml @@ -10,7 +10,6 @@ checkpointInterval = 2000 # Enable state creation - # CAUTION: Disable only if state creation is not desired or can be filled subsequently enableState = false subgraphPath = "./subgraph-build" @@ -77,6 +76,10 @@ # Boolean flag to filter event logs by topics filterLogsByTopics = true + # Switch clients if eth_getLogs call takes more than threshold (in secs) + # Set to 0 for disabling switching + getLogsClientSwitchThresholdInSecs = 30 + [upstream.cache] name = "requests" enabled = false @@ -92,7 +95,7 @@ blockDelayInMilliSecs = 30000 # Number of blocks by which block processing lags behind head - blockProcessingOffset = 0 + blockProcessingOffset = 3 # Boolean to switch between modes of processing events when starting the server. # Setting to true will fetch filtered events and required blocks in a range of blocks and then process them. diff --git a/stack_orchestrator/data/stacks/ajna/stack.yml b/stack_orchestrator/data/stacks/ajna/stack.yml index c6ba0c04..3b88a4c7 100644 --- a/stack_orchestrator/data/stacks/ajna/stack.yml +++ b/stack_orchestrator/data/stacks/ajna/stack.yml @@ -2,7 +2,7 @@ version: "1.0" name: ajna description: "Ajna watcher stack" repos: - - git.vdb.to/cerc-io/ajna-watcher-ts@v0.1.13 + - git.vdb.to/cerc-io/ajna-watcher-ts@v0.1.14 containers: - cerc/watcher-ajna pods: