-
Notifications
You must be signed in to change notification settings - Fork 706
fix: set default barrier interval to 1s #6553
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
Conversation
Do you mean |
Yes 🤣 |
|
It looks like the scaling simulation test requires a more frequent barrier interval, while it doesn't follow the config in |
Yes, it doesn't use the config from |
Is it possible to inject the config via file in simulation test? risingwave/src/tests/simulation_scale/src/cluster.rs Lines 80 to 86 in baddd63
|
|
The recovery test only uses 3m54s under this configuration. 🤯 cc @yezizp2012 |
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
0470647 to
acaf364
Compare
I guess by changing barrier interval from 250ms to 1s, barrier-related simulations will be 3/4 less. This could be the reason for the reduction in total time. Does it make sense ? @wangrunji0408 🤔 |
Make sense! |
|
|
||
| pub fn barrier_interval_ms() -> u32 { | ||
| 250 | ||
| 1000 |
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.
Should we note somewhere (in toml?) that the default value without configuration file here differs from the default value in risingwave.toml? 🥵
BugenZhao
left a comment
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.
LGTM. I've added a separate configuration file for the simulation scaling test and hope it works.
Codecov Report
@@ Coverage Diff @@
## main #6553 +/- ##
==========================================
- Coverage 73.86% 73.81% -0.05%
==========================================
Files 1002 1003 +1
Lines 162583 162848 +265
==========================================
+ Hits 120088 120205 +117
- Misses 42495 42643 +148
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
The |
I hereby agree to the terms of the Singularity Data, Inc. Contributor License Agreement.
What's changed and what's your intention?
Set the default barrier interval to 1s, which is used by our cloud service.
Meanwhile, keep the testing config as 250ms.
The config in
risingwave.tomlwas not changed, so I suppose our e2e test will also be run in 250ms interval.Checklist
./risedev check(or alias,./risedev c)Documentation
It seems that we didn't mention anything about checkpointing in docs...
Refer to a related PR or issue link (optional)
None