-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add env feature for clap #314
Open
n00m4d
wants to merge
5
commits into
feature/MTG-868-slots-storage
Choose a base branch
from
feat/mtg-924
base: feature/MTG-868-slots-storage
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f52806f
feat: add env feature for clap
n00m4d 5092470
feat: drop profiling for slot persister
n00m4d 0725a9a
feat: change the way workers take envs
n00m4d 73debce
feat: change env slightly for secondary DB
n00m4d 728af36
feat: drop profiling from docker compose for slot persister
n00m4d File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,120 +1,22 @@ | ||
# Required by Postgre container | ||
POSTGRE_DB_PATH="postgre/db/path" | ||
ASSETS_ROCKS_DB_PATH="path/to/assets/db" | ||
ASSETS_ROCKS_DB_SECONDARY_PATH="path/to/assets_secondary/db" | ||
|
||
RUST_BACKTRACE=1 | ||
# Ingester instance config | ||
INGESTER_LOG_LEVEL=info | ||
SLOTS_ROCKS_DB_PATH="path/to/slots/db" | ||
SLOTS_ROCKS_DB_SECONDARY_PATH="path/to/slots_secondary/db" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here |
||
|
||
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 | ||
SOLANA_RPC="http://localhost:8080" | ||
|
||
INGESTER_ACCOUNTS_BUFFER_SIZE=250 | ||
INGESTER_ACCOUNTS_PARSING_WORKERS=20 | ||
INGESTER_TRANSACTIONS_PARSING_WORKERS=20 | ||
BIG_TABLE_CREDENTIALS="path/to/creds" | ||
BIG_TABLE_TIMEOUT=10 | ||
|
||
INGESTER_SNAPSHOT_PARSING_WORKERS=1 | ||
INGESTER_SNAPSHOT_PARSING_BATCH_SIZE=250 | ||
SLOT_PERSISTER_START_SLOT=10 | ||
SLOT_PERSISTER_SLOTS=[1,2,3] | ||
SLOT_PERSISTER_CHUNK_SIZE=1000 | ||
SLOT_PERSISTER_MAX_CONCURRENCY=100 | ||
SLOT_PERSISTER_METRICS_PORT=6090 | ||
|
||
INGESTER_GAPFILLER_PEER_ADDR="0.0.0.0" | ||
INGESTER_METRICS_PORT=9091 | ||
INGESTER_SERVER_PORT=9092 | ||
INGESTER_PEER_GRPC_PORT=9099 | ||
SLOT_CHECKER_SLOTS=[1,2,3] | ||
|
||
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_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_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" | ||
BACKFILL_START_SLOT=10 | ||
BACKFILL_WORKERS=50 | ||
BACKFILL_SLOTS=[1,2,3] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one will be per service most likely. As it's secondary. Sometimes we could use temp dir for it or if we expect it to grow during the runtime.