Skip to content

Conversation

@nickva
Copy link
Contributor

@nickva nickva commented Jan 28, 2025

A ping is not enough. A clouseau instance is not usable if we it's just connected, it's main process should be up and running as well.

We have observed that it is possible for the clouseau node to be connected and respond to pings, but the main process was down. We want to alert or catch cases when that happens so we ask the main process for the version.

Copy link

@mckenzr mckenzr left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@mckenzr mckenzr left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jiahuili430 jiahuili430 left a comment

Choose a reason for hiding this comment

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

+1

@nickva nickva force-pushed the add-version-to-clouseau-ping branch 2 times, most recently from cf546d2 to d576d83 Compare January 28, 2025 19:29
A ping is not enough. A clouseau instance is not usable if we it's just
connected, it's main process should be up and running as well.

We have observed that it is possible for the clouseau node to be connected and
respond to pings, but the main process was down. We want to alert or catch
cases when that happens so we ask the main process for the version.
@nickva nickva force-pushed the add-version-to-clouseau-ping branch from d576d83 to f09da22 Compare January 28, 2025 19:30
Copy link
Contributor

@jaydoane jaydoane left a comment

Choose a reason for hiding this comment

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

Tested against Clouseau 2.24

(node1@127.0.0.1)6> clouseau_rpc:connected().
true

% {'EXIT',noconnection}
%
case (catch version()) of
{ok, _} -> true;
Copy link
Contributor

Choose a reason for hiding this comment

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

Haha was just trying to suggest that change and you beat me to it!

Copy link
Contributor Author

@nickva nickva Jan 28, 2025

Choose a reason for hiding this comment

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

You did suggest it in the meeting, so thanks for your input, Jay!

@nickva nickva merged commit 378f604 into main Jan 28, 2025
24 checks passed
@nickva nickva deleted the add-version-to-clouseau-ping branch January 28, 2025 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants