-
Notifications
You must be signed in to change notification settings - Fork 2
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
200 bug cluster node initializes as healthy #252
base: main
Are you sure you want to change the base?
Conversation
…into 200-bug-cluster-node-initializes-as-healthy
…into 200-bug-cluster-node-initializes-as-healthy
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration 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.
see comments
@@ -73,6 +73,9 @@ DATE_NOW=$(date +"%Y%m%d%H%M%S") | |||
FALKORDB_LOG_FILE_PATH=$(if [[ $SAVE_LOGS_TO_FILE -eq 1 ]]; then echo $DATA_DIR/falkordb_$DATE_NOW.log; else echo ""; fi) | |||
NODE_CONF_FILE=$DATA_DIR/node.conf | |||
|
|||
|
|||
sleep 10 |
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.
It'd be nice to get an explanation for that
# Run this before health check to prevent client connections until discrepancies are resolved. | ||
meet_unknown_nodes | ||
ensure_replica_connects_to_the_right_master_ip | ||
|
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.
why are those removed?
healthcheck_rs/src/main.rs
Outdated
@@ -26,7 +26,7 @@ fn main() { | |||
/// # Arguments | |||
/// | |||
/// * `is_sentinel` - A boolean that indicates whether the health check server is for a Redis Sentinel instance. | |||
fn start_health_check_server(is_sentinel: bool) { | |||
fn start_probes_check_server(is_sentinel: bool) { |
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.
any reason for the name change?
healthcheck_rs/src/main.rs
Outdated
@@ -38,14 +38,26 @@ fn start_health_check_server(is_sentinel: bool) { | |||
let server = Server::new(addr, move |request| { | |||
router!(request, | |||
(GET) (/healthcheck) => { |
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.
maybe change the route to /liveness?
healthcheck_rs/src/main.rs
Outdated
@@ -74,7 +86,7 @@ fn start_health_check_server(is_sentinel: bool) { | |||
/// # Errors | |||
/// | |||
/// The function returns a RedisError if there is an error connecting to the Redis server. | |||
fn health_check_handler(is_sentinel: bool) -> Result<bool, redis::RedisError> { | |||
fn probes_check_handler(is_sentinel: bool,readiness: bool, healthcheck: bool) -> Result<bool, redis::RedisError> { |
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.
i don't think aadding bool args are a clean solution. Maybe split into 3 functions and separate common components in util functions
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.
that goes for all functions you added bools as params.
Let's make this easier to read
…into 200-bug-cluster-node-initializes-as-healthy
fix #200