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

Add Heal command #468

Merged
merged 46 commits into from
Jun 18, 2024
Merged

Add Heal command #468

merged 46 commits into from
Jun 18, 2024

Conversation

pietrodimarco-dfinity
Copy link
Contributor

@pietrodimarco-dfinity pietrodimarco-dfinity commented Jun 7, 2024

This introduces the heal command, designed to improve the health of the network by replacing unhealthy nodes within specified subnets.
The command traverses all nodes in the network, identifying and replacing the unhealthy in each subnet.

Users can optionally specify the argument --max-replaceable-nodes-per-sub to optimize the healing process up to max-replaceable-nodes-per-sub nodes.
If the --max-replaceable-nodes-per-sub argument is not provided, the algorithm will proceed replacing all and only the unhealthy nodes in the subnets.

@pietrodimarco-dfinity pietrodimarco-dfinity requested a review from a team as a code owner June 7, 2024 15:42
@pietrodimarco-dfinity pietrodimarco-dfinity marked this pull request as draft June 7, 2024 15:42
@pietrodimarco-dfinity pietrodimarco-dfinity changed the title Heal all subnets Add Heal Network command Jun 7, 2024
@pietrodimarco-dfinity pietrodimarco-dfinity changed the title Add Heal Network command Add Heal command Jun 11, 2024
@pietrodimarco-dfinity pietrodimarco-dfinity marked this pull request as ready for review June 11, 2024 16:22
@pietrodimarco-dfinity pietrodimarco-dfinity marked this pull request as draft June 12, 2024 07:35
@pietrodimarco-dfinity pietrodimarco-dfinity marked this pull request as ready for review June 17, 2024 16:10
Copy link
Member

@sasa-tomic sasa-tomic left a comment

Choose a reason for hiding this comment

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

Looks great! Thank you!

rs/cli/src/main.rs Outdated Show resolved Hide resolved
rs/cli/src/main.rs Outdated Show resolved Hide resolved
rs/cli/src/runner.rs Outdated Show resolved Hide resolved
rs/decentralization/src/network.rs Outdated Show resolved Hide resolved
rs/cli/src/cli.rs Outdated Show resolved Hide resolved
rs/decentralization/src/network.rs Outdated Show resolved Hide resolved
rs/ic-management-types/src/requests.rs Outdated Show resolved Hide resolved
rs/ic-management-backend/src/endpoints/network.rs Outdated Show resolved Hide resolved
rs/decentralization/src/network.rs Outdated Show resolved Hide resolved
rs/decentralization/src/network.rs Outdated Show resolved Hide resolved
pietrodimarco-dfinity and others added 11 commits June 17, 2024 19:35
Co-authored-by: Saša Tomić <sasa.tomic@dfinity.org>
Co-authored-by: Saša Tomić <sasa.tomic@dfinity.org>
Co-authored-by: Saša Tomić <sasa.tomic@dfinity.org>
Co-authored-by: Saša Tomić <sasa.tomic@dfinity.org>
Co-authored-by: Saša Tomić <sasa.tomic@dfinity.org>
Co-authored-by: Saša Tomić <sasa.tomic@dfinity.org>
Co-authored-by: Saša Tomić <sasa.tomic@dfinity.org>
Co-authored-by: Saša Tomić <sasa.tomic@dfinity.org>
Co-authored-by: Saša Tomić <sasa.tomic@dfinity.org>
Copy link
Member

@sasa-tomic sasa-tomic left a comment

Choose a reason for hiding this comment

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

Awesome!

Copy link
Contributor

@NikolaMilosa NikolaMilosa left a comment

Choose a reason for hiding this comment

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

Noice job machine 🤖

rs/cli/src/runner.rs Show resolved Hide resolved
rs/cli/src/runner.rs Outdated Show resolved Hide resolved
rs/decentralization/src/network.rs Show resolved Hide resolved
rs/ic-management-backend/src/subnets.rs Outdated Show resolved Hide resolved
pietrodimarco-dfinity and others added 3 commits June 18, 2024 13:15
Co-authored-by: Nikola Milosavljevic <73236646+NikolaMilosa@users.noreply.github.com>
Co-authored-by: Saša Tomić <sasa.tomic@dfinity.org>
@pietrodimarco-dfinity pietrodimarco-dfinity merged commit 099fc6d into main Jun 18, 2024
4 checks passed
@pietrodimarco-dfinity pietrodimarco-dfinity deleted the heal-all-subnets branch June 18, 2024 11:41
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.

3 participants