Skip to content

tar/failover test#13

Closed
Pothulapati wants to merge 10 commits intomainfrom
tar/failover-test
Closed

tar/failover test#13
Pothulapati wants to merge 10 commits intomainfrom
tar/failover-test

Conversation

@Pothulapati
Copy link
Copy Markdown
Contributor

  • feat(operator): Add fail-over capabilities
  • feat(operator): Basic cleanup
  • refactor(health_controller): Add a new DragonflyInstance type
  • logic cleanup in health_controller
  • remove occurances of DragonFlyPod
  • rename phases to be more specific
  • rebase on main changes
  • rename symbols to be relevant and consistent
  • add logs
  • feat(health): Add tests to verify fail-over

This PR adds a new health_controller that takes care
of marking which pods as replica, and which is master. This is done
by listening to all pod events that include the dragonfly label,
and then marking it either to be `master` or `replica` based
on the current state.

This PR also includes a `print-roles.go` helper CLI that essentially
shows the pods along with their roles given a dragonfly instance.
This Commit adds `health_controller_test.go` that essentially
tests for automatic fail-over of master if the pod goes down.
It also verifies the same for replica's as pods are restarted.
@Pothulapati
Copy link
Copy Markdown
Contributor Author

Still in draft. Will be rebased onto #2 once that is merged.

@Pothulapati
Copy link
Copy Markdown
Contributor Author

Closing in favour of #14

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