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

Introduce new CRD as StorageNode for better usability #271

Closed
5 tasks
mlycore opened this issue Mar 21, 2023 · 3 comments
Closed
5 tasks

Introduce new CRD as StorageNode for better usability #271

mlycore opened this issue Mar 21, 2023 · 3 comments
Assignees
Labels
in: feature operator solutions of operator type: enhancement New feature or request
Milestone

Comments

@mlycore
Copy link
Contributor

mlycore commented Mar 21, 2023

Apache ShardingSphere

Apache ShardingSphere is positioned as a Database Plus, and aims at building a standard layer and ecosystem above heterogeneous databases. It focuses on how to reuse existing databases and their respective upper layer, rather than creating a new database. The goal is to minimize or eliminate the challenges caused by underlying databases fragmentation.

Page: https://shardingsphere.apache.org/
Github: https://github.com/apache/shardingsphere 

Background

There is a proposal about new CRD Cluster and ComputeNode as belows:

Currently we try to promote StorageNode as major CRD to represent a set of storage units for ShardingSphere.

Task

The elementary task is that the storage node controller could manage the lifecycle of a set of storage units, like PostgreSQL, in kubernetes.

We don't hope to create another wheel like pg-operator. So consider using a predefined parameter group to generate the target CRD.

  • Create a PostgreSQL cluster while a StorageNode with pg parameters is created
  • Update the PostgreSQL cluster while updated StorageNode
  • Delete the PostgreSQL cluster while deleted StorageNode. Notice this may need a deletion strategy.
  • Reconciling StorageNode according to the status of PostgreSQL cluster.
  • The status of StorageNode would be consumed by common storage units related DistSQLs

Relevant Skills

  1. Master Go language, Ginkgo test framework
  2. Have a basic understanding of Apache ShardingSphere Concepts
  3. Be familiar with Kubernetes Operator, kubebuilder framework

Targets files

StorageNode Controller - https://github.com/apache/shardingsphere-on-cloud/blob/main/shardingsphere-operator/pkg/controllers/storagenode_controller.go

@mlycore mlycore added the gsoc-2023 GSoC 2023 label Mar 21, 2023
@mlycore mlycore changed the title WIP: StorageNode CRD [GSoC 2023] WIP: StorageNode CRD Mar 21, 2023
@mlycore mlycore changed the title [GSoC 2023] WIP: StorageNode CRD [GSoC 2023] StorageNode CRD Mar 21, 2023
@mlycore mlycore changed the title [GSoC 2023] StorageNode CRD [GSoC 2023] Introduce new CRD as StorageNode for better usability Mar 21, 2023
@mlycore mlycore added type: enhancement New feature or request operator solutions of operator in: feature labels Mar 21, 2023
@yikuaibro
Copy link
Contributor

I am very interested in this project and submit my proposal.

@mlycore
Copy link
Contributor Author

mlycore commented Mar 22, 2023

I am very interested in this project and submit my proposal.

Yes thanks !

@mlycore
Copy link
Contributor Author

mlycore commented Apr 5, 2023

@Xu-Wentao has proposed a pr #292

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: feature operator solutions of operator type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants