Skip to content

Add Heal command#468

Merged
pietrodimarco-dfinity merged 46 commits intomainfrom
heal-all-subnets
Jun 18, 2024
Merged

Add Heal command#468
pietrodimarco-dfinity merged 46 commits intomainfrom
heal-all-subnets

Conversation

@pietrodimarco-dfinity
Copy link
Copy Markdown
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
Copy Markdown
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!

Comment thread rs/cli/src/main.rs Outdated
Comment thread rs/cli/src/main.rs Outdated
Comment thread rs/cli/src/runner.rs Outdated
Comment thread rs/decentralization/src/network.rs Outdated
Comment thread rs/cli/src/cli.rs Outdated
Comment thread rs/decentralization/src/network.rs Outdated
Comment thread rs/ic-management-types/src/requests.rs Outdated
Comment thread rs/ic-management-backend/src/endpoints/network.rs Outdated
Comment thread rs/decentralization/src/network.rs Outdated
Comment thread rs/decentralization/src/network.rs Outdated
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>
Comment thread rs/decentralization/src/network.rs Outdated
Copy link
Copy Markdown
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
Copy Markdown
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 🤖

Comment thread rs/cli/src/runner.rs
Comment thread rs/cli/src/runner.rs Outdated
Comment thread rs/decentralization/src/network.rs
Comment thread rs/ic-management-backend/src/subnets.rs Outdated
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
@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