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

[Features] RSM Heterogeneous Pods Supports #5799

Closed
free6om opened this issue Nov 8, 2023 · 3 comments · Fixed by #5815 or #6776
Closed

[Features] RSM Heterogeneous Pods Supports #5799

free6om opened this issue Nov 8, 2023 · 3 comments · Fixed by #5815 or #6776

Comments

@free6om
Copy link
Contributor

free6om commented Nov 8, 2023

Currently all pods in a component share the same podTemplate and volumeClaimTemplate, and restricted by the current design(one RSM mapping to one StatefulSet), it's impossible to remove pod with ordinal less than the biggest one. but there are scenarios need to break these constraints:

  1. in a primary-secondary cluster, the secondary pod should be configured with less CPU or memory resources for cost saving.
  2. in a raft-based cluster, the logger pod should be configured with less storage resource for cost saving.
  3. some outer system that interacting with KubeBlocks has its own update strategy and needs the capability to apply it to the low-level pod directly.

A reasonable design to overcome these drawbacks is mapping RSM's one replica to one StatefulSet, and provides API field(s) in RSM, Component and Cluster to configure each replica separately.
Another design is managing pods and pvcs directly to allow separate configuration.

@Somiacao
Copy link
Contributor

Somiacao commented Nov 8, 2023

scenario:

  1. implement of scale down specified instance
  2. specify nodes list to create pods

@free6om free6om changed the title [Features] RSM Multi-StatefulSet Supports [Features] RSM Heterogeneous Pod Supports Nov 8, 2023
@free6om free6om changed the title [Features] RSM Heterogeneous Pod Supports [Features] RSM Heterogeneous Pods Supports Nov 8, 2023
@free6om free6om assigned Somiacao and unassigned nayutah Nov 10, 2023
Copy link

This issue has been marked as stale because it has been open for 30 days with no activity

@github-actions github-actions bot added the Stale label Dec 11, 2023
@free6om free6om reopened this Jan 25, 2024
@free6om
Copy link
Contributor Author

free6om commented Jan 25, 2024

the stateful part is not finished yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment