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

chore: docker compose to standalone by default #13814

Merged
merged 4 commits into from
Dec 6, 2023

Conversation

huangjw806
Copy link
Contributor

@huangjw806 huangjw806 commented Dec 5, 2023

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.

What's changed and what's your intention?

After testing, the standalone mode has become relatively stable, so we plan to change docker-compose to standalone by default.

  1. docker-compose.yml -> docker-compose-minio.yml

  2. docker-compose-standalone.yml -> docker-compose.yml

  3. change integration tests docker-compose to standalone mode. The following two cases cannot be simply changed to standalone mode, so I will still deploy using a distributed cluster.

  • doris-sink
  • feature-store
    @xxhZs please help confirm if these two cases can be run in standalone mode.

#13235

Checklist

  • I have written necessary rustdoc comments
  • I have added necessary unit tests and integration tests
  • I have added test labels as necessary. See details.
  • I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features Sqlsmith: Sql feature generation #7934).
  • My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
  • All checks passed in ./risedev check (or alias, ./risedev c)
  • My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)
  • My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

  • My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note

If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

@xxhZs
Copy link
Contributor

xxhZs commented Dec 5, 2023

"Doris Sink" is because we need to ensure that the entire cluster adopts the same set of network IP, otherwise it will result in RW being unable to access Doris. Is there any other way to solve the whole problem? The Feature Store needs to transfer UDF files to Docker, and I'm not sure if there is any other solution.

Copy link

codecov bot commented Dec 5, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1c453f4) 68.23% compared to head (9fc2c40) 68.24%.
Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #13814   +/-   ##
=======================================
  Coverage   68.23%   68.24%           
=======================================
  Files        1525     1525           
  Lines      262188   262175   -13     
=======================================
+ Hits       178899   178912   +13     
+ Misses      83289    83263   -26     
Flag Coverage Δ
rust 68.24% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kwannoel kwannoel self-requested a review December 5, 2023 10:43
docker/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@kwannoel kwannoel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, let's trigger integration test on this PR before merging.
Also docker-compose-minio seems confusing since standalone mode has that too. We can just call it docker-compose-distributed instead.

@huangjw806
Copy link
Contributor Author

standalone mode integration test:
https://buildkite.com/risingwavelabs/integration-tests/builds/488

It seems that the data check of vector case fails in standalone mode. Please help to check. cc @neverchanje

@@ -28,56 +28,56 @@ services:
ipv4_address: 172.21.0.3
compactor-0:
extends:
file: ../../docker/docker-compose.yml
file: ../../docker/docker-compose-minio.yml
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why didn't you use the standalone mode for this test?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned above, I am not sure how to run it using standalone for doris-sink and feature-store.
#13814 (comment)

@neverchanje
Copy link
Contributor

Did you run it using the nightly version? I ran on the nightly last time.
Please use the cluster mode if it just cannot run.

Copy link
Contributor

@neverchanje neverchanje left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rest LGTM. Thanks!

@huangjw806
Copy link
Contributor Author

"Doris Sink" is because we need to ensure that the entire cluster adopts the same set of network IP, otherwise it will result in RW being unable to access Doris. Is there any other way to solve the whole problem? The Feature Store needs to transfer UDF files to Docker, and I'm not sure if there is any other solution.

These two cases are not in the daily test list. We can temporarily not enable standalone mode in this PR. Maybe you can try to see if you can run them in standalone mode?

@huangjw806
Copy link
Contributor Author

Did you run it using the nightly version? I ran on the nightly last time. Please use the cluster mode if it just cannot run.

I use ‘nightly-20231205’ version
image

@huangjw806 huangjw806 added this pull request to the merge queue Dec 6, 2023
Merged via the queue into main with commit 427cfc6 Dec 6, 2023
30 of 31 checks passed
@huangjw806 huangjw806 deleted the jianwei/docker-compose-standalone branch December 6, 2023 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants