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

feat: pika clusters support automatic rebalance in operater #2121

Merged

Conversation

machinly
Copy link
Collaborator

This PR implements automatic rebalance after pika cluster expansion. The specific verification method is as follows:

  1. Upgrade or update kubeblocks to 0.7.1-beta.1
# install
kbcli kubeblocks install --version 0.7.1-beta.1

# or upgrade
kbcli kubeblocks upgrade --version 0.7.1-beta.1
  1. Install the cluster
helm install pika ./pika && helm install pika-cluster ./pika-cluster
  1. Verify the cluster status
kubectl port-forward svc/pika-cluster-codis-fe 8080

Open codis-fe at http://127.0.0.1:8080/, and you can see the cluster has automatically rebalanced.

  1. Scale out
    First, edit pika-cluster/values.yaml to increase replicaCount.
    Then upgrade the cluster.
helm upgrade pika-cluster ./pika-cluster
  1. Verify the cluster status
    Observe the cluster status on codis-fe, and you can see the cluster rebalances again.

related issue #1906

AlexStocks
AlexStocks previously approved these changes Nov 16, 2023
AlexStocks
AlexStocks previously approved these changes Nov 16, 2023
# Conflicts:
#	tools/kubeblocks_helm/pika/templates/clusterdefinition.yaml
#	tools/kubeblocks_helm/pika/templates/script.yaml
@AlexStocks AlexStocks merged commit 3b74bce into OpenAtomFoundation:unstable Nov 27, 2023
14 checks passed
@chejinge chejinge changed the title feat: pika clusters support automatic rebalance feat: pika clusters support automatic rebalance in operater Feb 7, 2024
@machinly machinly deleted the support_auto-rebalance branch April 20, 2024 12:27
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this pull request Jun 8, 2024
)

* feat: use component post_start_action to auto rebalance pika cluster

* chore: update default count

* fix: use English comment

* update README
cheniujh pushed a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
)

* feat: use component post_start_action to auto rebalance pika cluster

* chore: update default count

* fix: use English comment

* update README
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants