-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from cortze/dev
Stable version optimizing DB interaction, DB total size and State processing times
- Loading branch information
Showing
38 changed files
with
2,539 additions
and
490 deletions.
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
STATE_ANALYZER_CMD="rewards" | ||
STATE_ANALYZER_LOG_LEVEL="debug" | ||
STATE_ANALYZER_BN_ENDPOINT="http://beacon_node_ip:api-port" | ||
STATE_ANALYZER_OUTFOLDER="results" | ||
STATE_ANALYZER_INIT_SLOT="10000" | ||
STATE_ANALYZER_FINAL_SLOT="10050" | ||
STATE_ANALYZER_VALIDATOR_INDEXES="test_validators.json" | ||
STATE_ANALYZER_DB_URL="postgresql://db_user:db_password@db_ip:db_port/db_name" | ||
STATE_ANALYZER_WORKERS_NUM="50" | ||
STATE_ANALYZER_DB_WORKERS_NUM="4" |
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 +1,7 @@ | ||
results/ | ||
eth2-state-analyzer | ||
.vscode/** | ||
test*.json | ||
.ipynb_checkpoints/** | ||
metrika/** | ||
.config |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!make | ||
|
||
GOCC=go | ||
MKDIR_P=mkdir -p | ||
|
||
BIN_PATH=./build | ||
BIN="./build/eth2-state-analyzer" | ||
|
||
include .env | ||
|
||
.PHONY: check build install run clean | ||
|
||
build: | ||
$(GOCC) build -o $(BIN) | ||
|
||
install: | ||
$(GOCC) install | ||
|
||
run: | ||
$(BIN) $(STATE_ANALYZER_CMD) \ | ||
--log-level=${STATE_ANALYZER_LOG_LEVEL} \ | ||
--bn-endpoint=${STATE_ANALYZER_BN_ENDPOINT} \ | ||
--outfolder=${STATE_ANALYZER_OUTFOLDER} \ | ||
--init-slot=${STATE_ANALYZER_INIT_SLOT} \ | ||
--final-slot=${STATE_ANALYZER_FINAL_SLOT} \ | ||
--validator-indexes=${STATE_ANALYZER_VALIDATOR_INDEXES} \ | ||
--db-url=${STATE_ANALYZER_DB_URL} \ | ||
--workers-num=${STATE_ANALYZER_WORKERS_NUM} \ | ||
--db-workers-num=${STATE_ANALYZER_DB_WORKERS_NUM} | ||
|
||
clean: | ||
rm -r $(BIN_PATH) | ||
|
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,2 +1 @@ | ||
# api-benchmark | ||
Little client that measures API's response times | ||
# Eth2 State Analyzer |
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
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
Oops, something went wrong.