mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-01-09 12:58:06 +00:00
nikugogoi
6622d0874e
* Use separate subgraph entities list * Implement changes in graph-test-watcher * Reset latest entity tables and use cache directives in schema GQL
73 lines
1.6 KiB
TOML
73 lines
1.6 KiB
TOML
[server]
|
|
host = "127.0.0.1"
|
|
port = 3008
|
|
kind = "active"
|
|
|
|
# Checkpointing state.
|
|
checkpointing = true
|
|
|
|
# Checkpoint interval in number of blocks.
|
|
checkpointInterval = 2000
|
|
|
|
# Enable state creation
|
|
enableState = true
|
|
|
|
subgraphPath = "../graph-node/test/subgraph/example1/build"
|
|
wasmRestartBlocksInterval = 20
|
|
|
|
# Boolean to filter logs by contract.
|
|
filterLogs = false
|
|
|
|
# Max block range for which to return events in eventsInRange GQL query.
|
|
# Use -1 for skipping check on block range.
|
|
maxEventsBlockRange = 1000
|
|
|
|
# Interval in number of blocks at which to clear entities cache.
|
|
clearEntitiesCacheInterval = 1000
|
|
|
|
# GQL cache settings
|
|
[server.gqlCache]
|
|
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]
|
|
host = "127.0.0.1"
|
|
port = 9000
|
|
[metrics.gql]
|
|
port = 9001
|
|
|
|
[database]
|
|
type = "postgres"
|
|
host = "localhost"
|
|
port = 5432
|
|
database = "graph-test-watcher"
|
|
username = "postgres"
|
|
password = "postgres"
|
|
synchronize = true
|
|
logging = false
|
|
|
|
[upstream]
|
|
[upstream.ethServer]
|
|
gqlApiEndpoint = "http://127.0.0.1:8082/graphql"
|
|
rpcProviderEndpoint = "http://127.0.0.1:8081"
|
|
|
|
[upstream.cache]
|
|
name = "requests"
|
|
enabled = false
|
|
deleteOnStart = false
|
|
|
|
[jobQueue]
|
|
dbConnectionString = "postgres://postgres:postgres@localhost/graph-test-watcher-job-queue"
|
|
maxCompletionLagInSecs = 300
|
|
jobDelayInMilliSecs = 100
|
|
eventsInBatch = 50
|
|
blockDelayInMilliSecs = 2000
|
|
prefetchBlocksInMem = true
|
|
prefetchBlockCount = 10
|