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

Fault injection cli: zbchaos #162

Merged
merged 42 commits into from
Aug 12, 2022
Merged

Conversation

ChrisKujawa
Copy link
Member

@ChrisKujawa ChrisKujawa commented Aug 12, 2022

Write a new fault injection cli:

$ zbchaos
A chaos experimenting toolkit for Zeebe.
    Perfect to inject some chaos into your brokers and gateways.

Usage:
  zbchaos [command]

Available Commands:
  brokers     Print the name of the Zeebe broker pods
  completion  Generate the autocompletion script for the specified shell
  connect     Connect Zeebe nodes
  disconnect  Disconnect Zeebe nodes
  help        Help about any command
  restart     Restarts a Zeebe broker
  terminate   Terminates a Zeebe broker
  topology    Print the Zeebe topology deployed in the current namespace
  verify      Verify certain properties
  version     Print the version of zbchaos

Flags:
  -h, --help      help for zbchaos
  -v, --verbose   verbose output

Use "zbchaos [command] --help" for more information about a command.

It allows to:

  • terminate brokers non-gracefully
  • terminate standalone gateways non-gracefully
  • restart brokers gracefully
  • restart standalone gateway gracefully
  • print the broker topology in a compact form
  • verify certain attributes:
    • readiness; all broker pods and gateway deployment must be ready
    • steady-state; we can deploy a process model and create a PI on a certain partition
  • disconnect nodes:
    • disconnect brokers with given partition roles (for specific partitions)
    • disconnect brokers with given node id
    • disconnect only in one direction
  • connect all nodes again
  • on all commands a verbose output can be turned on for debugging purposes

For certain more complicated logic tests have been written, but if can be of course improved. Workers were not yet implemented due to limited time.

@ChrisKujawa ChrisKujawa merged commit 72c9c7d into main Aug 12, 2022
@ChrisKujawa ChrisKujawa deleted the zell-hackdays-fault-injection-tool branch August 12, 2022 14:53
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.

1 participant