-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The
firehose
, substreams-tier1
and substream-tier2
health endpo…
…int now respects the `common-system-shutdown-signal-delay` configuration value This means that the health endpoint will return `false` now if `SIGINT` has been received but we are still in the shutdown unready period defined by the config value. If you use some sort of load balancer, you should make sure they are configured to use the health endpoint and you should `common-system-shutdown-signal-delay` to something like `15s`. Fixes #9
- Loading branch information
Showing
32 changed files
with
1,070 additions
and
41 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 |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
.envrc | ||
.env | ||
.DS_Store | ||
firehose-data* |
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
start: | ||
args: | ||
- reader-node | ||
- merger | ||
- relayer | ||
- firehose | ||
- substreams-tier1 | ||
- substreams-tier2 | ||
flags: | ||
# Specifies the path to the binary, we assume you did | ||
# `go install github.com/streamingfast/dummy-blockchain@latest` (and that you have value | ||
# of `go env GOPATH` in your environment). | ||
reader-node-path: "dummy-blockchain" | ||
reader-node-data-dir: "{data-dir}/reader-node" | ||
|
||
# Flags that will be added to the dummy chain process command | ||
reader-node-arguments: | ||
start | ||
--tracer=firehose | ||
--store-dir="{node-data-dir}" | ||
--block-rate=1200 | ||
--genesis-height=0 |
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,49 @@ | ||
#!/usr/bin/env bash | ||
|
||
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
|
||
clean= | ||
firecore="$ROOT/../firecore" | ||
|
||
main() { | ||
pushd "$ROOT" &> /dev/null | ||
|
||
while getopts "hc" opt; do | ||
case $opt in | ||
h) usage && exit 0;; | ||
c) clean=true;; | ||
\?) usage_error "Invalid option: -$OPTARG";; | ||
esac | ||
done | ||
shift $((OPTIND-1)) | ||
[[ $1 = "--" ]] && shift | ||
|
||
set -e | ||
|
||
if [[ $clean == "true" ]]; then | ||
rm -rf firehose-data &> /dev/null || true | ||
fi | ||
|
||
exec $firecore -c $(basename $ROOT).yaml start "$@" | ||
} | ||
|
||
usage_error() { | ||
message="$1" | ||
exit_code="$2" | ||
|
||
echo "ERROR: $message" | ||
echo "" | ||
usage | ||
exit ${exit_code:-1} | ||
} | ||
|
||
usage() { | ||
echo "usage: start.sh [-c]" | ||
echo "" | ||
echo "Start $(basename $ROOT) environment." | ||
echo "" | ||
echo "Options" | ||
echo " -c Clean actual data directory first" | ||
} | ||
|
||
main "$@" |
Oops, something went wrong.