-
Notifications
You must be signed in to change notification settings - Fork 5
/
.env.example
122 lines (89 loc) · 4.32 KB
/
.env.example
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
# Required by Postgre container
POSTGRE_DB_PATH="postgre/db/path"
RUST_BACKTRACE=1
# Ingester instance config
INGESTER_LOG_LEVEL=info
INGESTER_DATABASE_CONFIG='{max_postgres_connections=10, url="postgres://user:[email protected]:5432/database"}'
INGESTER_TCP_CONFIG='{receiver_addr="localhost:2000", receiver_reconnect_interval=5, snapshot_receiver_addr="localhost:5000"}'
INGESTER_REDIS_MESSENGER_CONFIG='{messenger_type="Redis", connection_config={redis_connection_str="redis://:pass@localhost:6379"}}'
INGESTER_MESSAGE_SOURCE=Redis #TCP or Redis
INGESTER_ACCOUNTS_BUFFER_SIZE=250
INGESTER_ACCOUNTS_PARSING_WORKERS=20
INGESTER_TRANSACTIONS_PARSING_WORKERS=20
INGESTER_SNAPSHOT_PARSING_WORKERS=1
INGESTER_SNAPSHOT_PARSING_BATCH_SIZE=250
INGESTER_GAPFILLER_PEER_ADDR="0.0.0.0"
INGESTER_METRICS_PORT=9091
INGESTER_SERVER_PORT=9092
INGESTER_PEER_GRPC_PORT=9099
INGESTER_ROCKS_DB_PATH_CONTAINER="/usr/src/rocksdb-data"
INGESTER_ROCKS_DB_PATH="path/to/rocks/on/disk"
INGESTER_ARCHIVES_DIR="path/to/rocks/backup/archives"
INGESTER_ROCKS_BACKUP_ARCHIVES_DIR="path/to/rocks/backup/archives"
INGESTER_ROCKS_BACKUP_DIR="path/to/rocks/backup/"
INGESTER_BACKFILL_RPC_ADDRESS='https://rpc:port'
INGESTER_RPC_HOST='https://rpc:port'
INGESTER_BACKFILLER_SOURCE_MODE=RPC #RPC or Bigtable
INGESTER_BIG_TABLE_CONFIG='{creds="/usr/src/app/creds.json", timeout=1000}'
INGESTER_DISABLE_SYNCHRONIZER=true
INGESTER_RUN_SEQUENCE_CONSISTENT_CHECKER=true
# Optional, required only if it needs to run fork cleaner, default is false. Unstable as it removes forked items, but also removes some valid leafs. Recommended to use only! for testing purposes.
INGESTER_RUN_FORK_CLEANER=false
INGESTER_RUN_DUMP_SYNCHRONIZE_ON_START=false
INGESTER_RUN_BUBBLEGUM_BACKFILLER=true
INGESTER_BACKFILLER_MODE=PersistAndIngest
INGESTER_SLOT_UNTIL=0
INGESTER_SLOT_START_FROM=0
INGESTER_WORKERS_COUNT=100
INGESTER_CHUNK_SIZE=20
INGESTER_PERMITTED_TASKS=1
INGESTER_WAIT_PERIOD_SEC=30
INGESTER_SHOULD_REINGEST=false
INGESTER_PEER_GRPC_MAX_GAP_SLOTS=1000000
INGESTER_RUN_PROFILING=false
INGESTER_PROFILING_FILE_PATH_CONTAINER="/usr/src/profiling"
INGESTER_PROFILING_FILE_PATH="/path/to/profiling"
INGESTER_FILE_STORAGE_PATH_CONTAINER="/usr/src/app/file_storage"
INGESTER_FILE_STORAGE_PATH="path/to/file/storage"
INGESTER_MIGRATION_STORAGE_PATH=/path/to/migration_storage
INGESTER_ROCKS_FLUSH_BEFORE_BACKUP=false
INGESTER_ROCKS_INTERVAL_IN_SECONDS=3600
INGESTER_ROCKS_SYNC_INTERVAL_SECONDS=2
INGESTER_SYNCHRONIZER_DUMP_PATH="/path/to/dump"
# API instance config
API_LOG_LEVEL=info
API_DATABASE_CONFIG='{max_postgres_connections=250, url="postgres://user:[email protected]:5432/database"}'
API_ROCKS_DB_PATH_CONTAINER="/usr/src/rocksdb-data"
API_ROCKS_DB_SECONDARY_PATH_CONTAINER="path/to/rocks/secondary/db"
API_ARCHIVES_DIR="path/to/rocks/backup/archives"
API_PEER_GRPC_PORT=8991
API_METRICS_PORT=8985
API_SERVER_PORT=8990
API_RPC_HOST='https://rpc:port'
API_ROCKS_SYNC_INTERVAL_SECONDS=2
API_FILE_STORAGE_PATH_CONTAINER="/usr/src/app/file_storage"
API_FILE_STORAGE_PATH="path/to/file/storage"
API_PEER_GRPC_MAX_GAP_SLOTS=1000000
API_JSON_MIDDLEWARE_CONFIG='{is_enabled=true, max_urls_to_parse=10}'
API_CONSISTENCE_SYNCHRONIZATION_API_THRESHOLD=1000000
API_CONSISTENCE_BACKFILLING_SLOTS_THRESHOLD=500
# if set to true API will not check if tree where user requests assets from has any gaps
API_SKIP_CHECK_TREE_GAPS=false
# Synchronizer instance config
SYNCHRONIZER_LOG_LEVEL=info
SYNCHRONIZER_DATABASE_CONFIG='{max_postgres_connections=100, url="postgres://user:[email protected]:5432/database"}'
SYNCHRONIZER_ROCKS_DB_PATH_CONTAINER="/usr/src/rocksdb-data"
SYNCHRONIZER_ROCKS_DB_SECONDARY_PATH_CONTAINER="path/to/rocks/secondary/db"
SYNCHRONIZER_METRICS_PORT=6091
SYNCHRONIZER_DUMP_PATH="/path/to/migration_data"
SYNCHRONIZER_DUMP_SYNCHRONIZER_BATCH_SIZE=10000
SYNCHRONIZER_DUMP_SYNC_THRESHOLD=50000000
SYNCHRONIZER_PARALLEL_TASKS=30
# Profiling config
# Optional, required only if it needs to run memory profiling
MALLOC_CONF="prof:true,prof_leak:true,prof_final:true,prof_active:true,prof_prefix:/usr/src/app/heaps/,lg_prof_interval:32,lg_prof_sample:19"
# Integrity verification
INTEGRITY_VERIFICATION_TEST_FILE_PATH="./test_keys/test_keys.txt"
INTEGRITY_VERIFICATION_TEST_FILE_PATH_CONTAINER="/test_keys/test_keys.txt"
INTEGRITY_VERIFICATION_SLOTS_COLLECT_PATH="./slots_collect"
INTEGRITY_VERIFICATION_SLOTS_COLLECT_PATH_CONTAINER="/slots_collect"