-
Notifications
You must be signed in to change notification settings - Fork 308
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
ci: add flownode in docker compose #4306
ci: add flownode in docker compose #4306
Conversation
WalkthroughThe recent changes streamline the management of the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- Makefile (1 hunks)
- docker/docker-compose/cluster-with-etcd.yaml (5 hunks)
Additional comments not posted (8)
docker/docker-compose/cluster-with-etcd.yaml (6)
2-6
: LGTM!Renaming variables to more descriptive names and adding a new image reference improves clarity and maintainability.
Line range hint
10-26
:
LGTM!The addition of a health check for the
etcd0
service is a good practice. The variable renaming aligns with the x-custom section updates.
Line range hint
38-55
:
LGTM!The addition of a health check for the
metasrv
service is a good practice. The image reference update aligns with the x-custom section updates.
113-127
: LGTM! But verify the correctness of the health check and port configuration.The addition of the
flownode0
service is consistent with the PR objectives. The health check and port configuration should be verified to ensure they are correctly implemented.
60-79
: LGTM! But verify the necessity of the additional port configuration.The addition of a health check for the
datanode0
service is a good practice. The image reference update aligns with the x-custom section updates.However, ensure that the additional port configuration (5000:5000) is necessary and correctly implemented.
Verification successful
The additional port configuration (5000:5000) is necessary and correctly implemented.
The references to port 5000 in the
docker/docker-compose/cluster-with-etcd.yaml
file indicate its use for the HTTP address and health check, confirming its necessity.
docker/docker-compose/cluster-with-etcd.yaml
- 5000:5000
- --http-addr=0.0.0.0:5000
test: [ "CMD", "curl", "-f", "http://datanode0:5000/health" ]
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the necessity of the additional port configuration (5000:5000) for datanode0 service. # Test: Search for the usage of port 5000 in the codebase. Expect: Relevant code references. rg --type yaml --type dockerfile '5000'Length of output: 74
Script:
#!/bin/bash # Description: Verify the necessity of the additional port configuration (5000:5000) for datanode0 service. # Test: Search for the usage of port 5000 in the codebase. Expect: Relevant code references. rg '5000'Length of output: 25312
Line range hint
87-111
:
LGTM! But verify the necessity of the multiple port configurations.The addition of a health check for the
frontend0
service is a good practice. The image reference update aligns with the x-custom section updates.However, ensure that the multiple port configurations (4000-4003) are necessary and correctly implemented.
Verification successful
Multiple port configurations for
frontend0
service are necessary and correctly implemented.The ports 4000-4003 are referenced across various configuration and test files, indicating their importance for different services and functionalities (HTTP, RPC, MySQL, PostgreSQL).
docker/docker-compose/cluster-with-etcd.yaml
config/frontend.example.toml
config/standalone.example.toml
config/config.md
- Various test files
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify the necessity of the multiple port configurations (4000-4003) for frontend0 service. # Test: Search for the usage of ports 4000-4003 in the codebase. Expect: Relevant code references. rg --type yaml --type dockerfile '400[0-3]'Length of output: 80
Script:
#!/bin/bash # Description: Verify the necessity of the multiple port configurations (4000-4003) for frontend0 service. # Test: Search for the usage of ports 4000-4003 in YAML files. rg --type yaml '400[0-3]' # Test: Search for the usage of ports 4000-4003 in Dockerfiles. rg '400[0-3]' $(fd -e Dockerfile)Length of output: 25990
Makefile (2)
208-210
: LGTM!The
start-cluster
target is consistent with the PR objectives and is correctly implemented.
212-214
: LGTM!The
stop-cluster
target is consistent with the PR objectives and is correctly implemented.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4306 +/- ##
==========================================
- Coverage 85.25% 84.90% -0.35%
==========================================
Files 1058 1060 +2
Lines 186975 188643 +1668
==========================================
+ Hits 159398 160173 +775
- Misses 27577 28470 +893 |
370c6b6
to
f3154e4
Compare
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- Makefile (1 hunks)
- docker/docker-compose/cluster-with-etcd.yaml (5 hunks)
Files skipped from review as they are similar to previous changes (2)
- Makefile
- docker/docker-compose/cluster-with-etcd.yaml
I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
NOTE: Wait for the latest nightly release.
Add flownode in cluster that created by docker compose.
Refactor the Makefile target naming:
make start-cluster
: Create the greptimedb cluster by using docker compose;make stop-cluster
: Stop the greptimedb cluster that created by the docker compose;Checklist
Summary by CodeRabbit
New Features
greptimedb
cluster using Docker Compose.Improvements
greptimedb
cluster tostart-cluster
.datanode0
,frontend0
, andflownode0
.Configuration Changes
greptimedb
.