-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfig-grpc2redis.example.yml
71 lines (67 loc) · 2 KB
/
config-grpc2redis.example.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# This file is used to configure the grpc2redis service.
# prometheus metrics are pushed to this endpoint
prometheus: 0.0.0.0:8873
# gRPC server configuration (change x_token and endpoint to the correct ones)
geyser:
# endpoint of the dragonmouth stream
endpoint: http://127.0.0.1:10000
# x-token of the dragonmouth stream
x_token: null
# transaction commitment level: finalized, confirmed, processed
commitment: finalized
# connection timeout in seconds
connection_timeout: 10
# request timeout in seconds
timeout: 10
# gRPC subscription configuration (each representing a separate stream processed concurrently)
# check account and transaction filters here (https://github.com/rpcpool/yellowstone-grpc/blob/master/README.md)
subscriptions:
metadata:
stream:
# stream name
name: ACCOUNTS
# maximum length of the stream.
max_len: 100_000_000
# maximum concurrency for processing the stream.
max_concurrency: 2
# filter accounts by owner
filter:
accounts:
owner:
- metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s
token:
stream:
name: ACCOUNTS
max_len: 100_000_000
max_concurrency: 5
filter:
accounts:
owner:
- TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
core:
stream:
name: ACCOUNTS
max_len: 100_000_000
max_concurrency: 2
filter:
accounts:
owner:
- CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d
bubblegum:
stream:
name: TRANSACTIONS
max_len: 100_000_000
max_concurrency: 2
# filter transactions by accounts_included
filter:
transactions:
account_include:
- BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY
# Redis configuration
redis:
# redis connection url
url: redis://localhost:6379
# maximum size (in bytes) of the Redis pipeline before it is flushed.
pipeline_max_size: 1_000
# maximum idle time (in milliseconds) before the redis pipeline is flushed
pipeline_max_idle_ms: 100_000