Skip to content
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 sleep option to FE entrypoint #9

Merged
merged 2 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ https://docs.starrocks.io/docs/deployment/environment_configurations/

These are NOT taken into account in these Dockerfiles.

However, the AVX2 instruction set is required for these images to run.

## Variables

Variables that need to be set are documented in the scripts in the ./scripts directory.
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ services:
- MINIO_BUCKET=starrocks
- MINIO_ACCESS_KEY=AAAAAAAAAAAAAAAAAAAA
- MINIO_SECRET_KEY=BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
- SLEEP_FOR=0.1s
ports:
- 8031:8031
- 9021:9021
Expand Down
1 change: 1 addition & 0 deletions scripts/cn-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ echo "BRPC_PORT=${BRPC_PORT}"
echo "STARLET_PORT=${STARLET_PORT}"

if [ -n "$SLEEP_FOR" ]; then
echo "Sleeping for $SLEEP_FOR"
sleep $SLEEP_FOR;
fi

Expand Down
5 changes: 5 additions & 0 deletions scripts/fe-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ echo "SQL_QUERY_PORT=${SQL_QUERY_PORT}"
echo "EDIT_LOG_PORT=${EDIT_LOG_PORT}"
echo "START_FOLLOWER_W_LEADER_EDIT_LOG_URL=${START_FOLLOWER_W_LEADER_EDIT_LOG_URL}"

if [ -n "$SLEEP_FOR" ]; then
echo "Sleeping for $SLEEP_FOR"
sleep $SLEEP_FOR;
fi

# NOTE: this env var is only required the first time the follower is added to the cluster
# See https://docs.starrocks.io/docs/deployment/deploy_manually/
if [ -n "$START_FOLLOWER_W_LEADER_EDIT_LOG_URL" ]; then
Expand Down