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

Feature: standby tenant #81

Merged
merged 15 commits into from
Oct 9, 2023
Merged

Conversation

powerfooI
Copy link
Collaborator

Summary

Support:

  • Change root's password of specific tenant
  • Create a standby tenant from backup restore
  • Create an empty standby tenant and follow a primary tenant's log stream
  • Check whether the log of a tenant is of integrity
  • Failover by activating standby tenant
  • Switchover two tenants and over back

Solution Description

Through OBTenantOperation resource, ob-operator offers above features. The resource has a type field, which indicates the behaviors of an resource instance. There are three types now, CHANGE_PASSWORD, FAILOVER and SWITCHOVER. Its controller will also validate the type and spec then.

Makefile Outdated Show resolved Hide resolved
api/v1alpha1/obcluster_types.go Show resolved Hide resolved
api/v1alpha1/obcluster_types.go Outdated Show resolved Hide resolved
api/v1alpha1/observer_types.go Outdated Show resolved Hide resolved
api/v1alpha1/observer_types.go Outdated Show resolved Hide resolved
api/v1alpha1/obtenant_types.go Outdated Show resolved Hide resolved
pkg/resource/obtenant_task.go Outdated Show resolved Hide resolved
pkg/resource/obtenant_task.go Outdated Show resolved Hide resolved
pkg/resource/obtenantoperation_task.go Outdated Show resolved Hide resolved
pkg/task/obtenant_operation_flow.go Outdated Show resolved Hide resolved
@chris-sun-star chris-sun-star merged commit a468414 into oceanbase:2.0.x_dev Oct 9, 2023
2 checks passed
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.

2 participants