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

Define strategy for testing node disruptor #366

Open
pablochacin opened this issue Oct 26, 2023 · 0 comments
Open

Define strategy for testing node disruptor #366

pablochacin opened this issue Oct 26, 2023 · 0 comments
Assignees
Labels
design proposal Requires a design document for discussion

Comments

@pablochacin
Copy link
Collaborator

Presently the tests for pod and service disruptors use one of the following approaches:

  • Use a fake kubernetes client that simply creates objects but does not emulate their behavior (for example, the execution of a pod) because it does not contain any control plane
  • A test cluster (using kind or k3s) that runs a completely functional control plane and workers, emulating cluster nodes using containers

However, the node disruptor is intended to affect the "physical" nodes of a cluster by consuming resources, disrupting the network traffic, or executing other actions (e.g. rebooting the node).

All these actions are hard to emulate in test clusters. For example, setting memory and CPU resources to be allocated to each "node".

Therefore, we need a strategy for running tests on a "real": cluster that allows to to measure the impact of the disruptions in terms of resource usage, network traffic, and other possible effects.

@pablochacin pablochacin added the design proposal Requires a design document for discussion label Oct 26, 2023
@pablochacin pablochacin self-assigned this Oct 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design proposal Requires a design document for discussion
Projects
None yet
Development

No branches or pull requests

1 participant