Update watcher stack for latest watcher changes #1

Merged
nabarun merged 1 commits from pm-update-stack into main 2024-06-14 08:33:41 +00:00
4 changed files with 30 additions and 14 deletions
Showing only changes of commit 25987b581e - Show all commits

View File

@ -60,6 +60,7 @@ services:
volumes: volumes:
- ../config/watcher-secured-finance/watcher-config-template.toml:/app/environments/watcher-config-template.toml - ../config/watcher-secured-finance/watcher-config-template.toml:/app/environments/watcher-config-template.toml
- ../config/watcher-secured-finance/start-server.sh:/app/start-server.sh - ../config/watcher-secured-finance/start-server.sh:/app/start-server.sh
- secured_finance_watcher_gql_logs_data:/app/gql-logs
ports: ports:
- "3008" - "3008"
- "9001" - "9001"
@ -74,3 +75,4 @@ services:
volumes: volumes:
secured_finance_watcher_db_data: secured_finance_watcher_db_data:
secured_finance_watcher_gql_logs_data:

View File

@ -2,7 +2,6 @@
host = "0.0.0.0" host = "0.0.0.0"
port = 3008 port = 3008
kind = "active" kind = "active"
gqlPath = "/"
# Checkpointing state. # Checkpointing state.
checkpointing = true checkpointing = true
@ -22,23 +21,30 @@
# Interval in number of blocks at which to clear entities cache. # Interval in number of blocks at which to clear entities cache.
clearEntitiesCacheInterval = 1000 clearEntitiesCacheInterval = 1000
# Max block range for which to return events in eventsInRange GQL query.
# Use -1 for skipping check on block range.
maxEventsBlockRange = 1000
# Flag to specify whether RPC endpoint supports block hash as block tag parameter # Flag to specify whether RPC endpoint supports block hash as block tag parameter
rpcSupportsBlockHashParam = false rpcSupportsBlockHashParam = false
# GQL cache settings # Server GQL config
[server.gqlCache] [server.gql]
enabled = true path = "/"
# Max in-memory cache size (in bytes) (default 8 MB) # Max block range for which to return events in eventsInRange GQL query.
# maxCacheSize # Use -1 for skipping check on block range.
maxEventsBlockRange = 1000
# GQL cache-control max-age settings (in seconds) # Log directory for GQL requests
maxAge = 15 logDir = "./gql-logs"
timeTravelMaxAge = 86400 # 1 day
# GQL cache settings
[server.gql.cache]
enabled = true
# Max in-memory cache size (in bytes) (default 8 MB)
# maxCacheSize
# GQL cache-control max-age settings (in seconds)
maxAge = 15
timeTravelMaxAge = 86400 # 1 day
[metrics] [metrics]
host = "0.0.0.0" host = "0.0.0.0"
@ -85,6 +91,9 @@
# Filecoin block time: https://docs.filecoin.io/basics/the-blockchain/blocks-and-tipsets#blocktime # Filecoin block time: https://docs.filecoin.io/basics/the-blockchain/blocks-and-tipsets#blocktime
blockDelayInMilliSecs = 30000 blockDelayInMilliSecs = 30000
# Number of blocks by which block processing lags behind head
blockProcessingOffset = 0
# Boolean to switch between modes of processing events when starting the server. # 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. # Setting to true will fetch filtered events and required blocks in a range of blocks and then process them.
# Setting to false will fetch blocks consecutively with its events and then process them (Behaviour is followed in realtime processing near head). # Setting to false will fetch blocks consecutively with its events and then process them (Behaviour is followed in realtime processing near head).

View File

@ -6,5 +6,10 @@ WORKDIR /app
COPY . . COPY . .
# Get the latest Git commit hash and set in package.json
RUN COMMIT_HASH=$(git rev-parse HEAD) && \
jq --arg commitHash "$COMMIT_HASH" '.commitHash = $commitHash' package.json > tmp.json && \
mv tmp.json package.json
RUN echo "Installing dependencies and building secured-finance-watcher-ts" && \ RUN echo "Installing dependencies and building secured-finance-watcher-ts" && \
yarn && yarn build yarn && yarn build

View File

@ -2,7 +2,7 @@ version: "1.0"
name: secured-finance name: secured-finance
description: "Secured finance watcher stack" description: "Secured finance watcher stack"
repos: repos:
- git.vdb.to/cerc-io/secured-finance-watcher-ts@v0.1.0 - git.vdb.to/cerc-io/secured-finance-watcher-ts@v0.1.1
containers: containers:
- cerc/watcher-secured-finance - cerc/watcher-secured-finance
pods: pods: