node-wizard

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

README

License Go version Release Docker Build Go Report Card

Node Wizard

Node Wizard is a controller that monitors node readiness. It cordons and drains nodes that are not ready, and uncordons them when they become ready again.

Why do we need this?

The purpose of Node Wizard is to automate the response to nodes entering the "NotReady" state. It evacuates workloads from the affected node and cordons it off until it becomes ready again. Automating this process offers a faster response time compared to waiting for human intervention. The controller instantly reacts, cordons off the node, evacuates the workloads, and reschedules them on other nodes with minimal downtime.

Additionally, Node Wizard accounts for cases where the node may recover on its own over time. In such situations, there may not be an immediate urgency, allowing for investigation at a later time. When the node becomes ready again, the controller automatically uncordons it.

Features

There are several features that Node Wizard offers:

  • Drain: Non-graceful draining parameters can be set via an environment variable.

  • Uncordon: The node will be uncordoned when it is ready.

  • Ignore Some Nodes: Some nodes can be ignored by the controller by labeling with node-wizard/ignore=true (it can be useful for the ready nodes but some maintenance is going on).

  • Leader Election: Application uses leader election mechanism. This is useful for high availability.

  • Metrics: As now, two metrics are exposed:  

    Metric Name Metric Type Description
    node_wizard_uncordon_count Counter Counter metric that shows the number of uncordon operations performed for each node.
    node_wizard_drained_count Counter Counter metric that shows the number of drain operations performed for each node.

Features to be added

  • Time to uncordon: Time to uncordon feature is planned to be added in the future.
  • Time to cordon: The default node monitor grace period is 40 seconds. As this is quite a long time, the Node Wizard does not wait by default. However, this feature can be added in the future.

How to install?

# to add the Helm repository
helm repo add cnwizards https://charts.cloudnativewizards.dev 
# to install the Helm charts
helm install node-wizard cnwizards/node-wizard --namespace node-wizard --create-namespace
⚠️ This project is still under development. ⚠️

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL