• Skip to main content
  • Skip to after header navigation
  • Skip to site footer

Free-Mail

  • Events
  • Images
    • Instagram Goodness
  • Music
  • News
  • Software

Run a distributed database on the cloud

Run a distributed database on the cloud: Run a distributed database on the cloud wuweijie Mon, 04/17/2023 – 03:00

Apache ShardingSphere is an open source distributed database toolkit. It enhances any database with data sharding, elastic scaling, encryption, and many other capabilities. Deploying and maintaining ShardingSphere-Proxy clusters and load balancing manually can be labor-intensive and time-consuming. To address this issue, Apache ShardingSphere offers ShardingSphere on Cloud, a collection of cloud-based solutions.

ShardingSphere-on-Cloud includes automated deployment scripts to virtual machines in cloud environments. It also includes tools for a Kubernetes cloud-native environment and a variety of hands-on content for high availability, observability, security policy compliance, and more. This includes Helm Charts, an Operator, and automatic horizontal scaling.

Explore the open source cloud
Free online course: Developing cloud-native applications with microservices
eBook: Modernize your IT with managed cloud services
Try for 60 days: Red Hat OpenShift Dedicated
Free online course: Containers, Kubernetes and Red Hat OpenShift
What is Kubernetes?
Understanding edge computing
Register for your free Red Hat account
Latest articles for IT architects

The new cloud project provides the following capabilities:

  • Helm Charts-based ShardingSphere-Proxy for one-click deployment in Kubernetes environments.
  • Operator-based ShardingSphere-Proxy for one-click deployment and automated maintenance in Kubernetes environments.
  • Amazon Web Services (AWS) CloudFormation-based ShardingSphere-Proxy for rapid deployment.
  • Terraform-based rapid deployment of ShardingSphere-Proxy in AWS environments.

This article demonstrates one of the fundamental capabilities of ShardingSphere on Cloud: One-click deployment of ShardingSphere-Proxy clusters in Kubernetes using Helm Charts.

  1. Use the following three-line command to create a three-node ShardingSphere-Proxy cluster within a Kubernetes cluster with the default configuration and serve it through the Service:

     $   helm repo add shardingsphere https://apache.github.io/shardingsphere-on-cloud $   helm repo update $   helm install shardingsphere-proxy shardingsphere/apache-shardingsphere-proxy-charts -n shardingsphere
Create a three-node ShardingSphere-Proxy cluster
Image by:

(Wu Weijie, CC BY-SA 4.0)

  1. The application can access the ShardingSphere-Proxy cluster through the svc domain:

     $   kubectl run mysql-client --image=mysql:5.7.36 \   --image-pull-policy=IfNotPresent -- sleep 300 $   kubectl exec -i -t mysql-client -- mysql \   -h shardingsphere-proxy-apache-shardingsphere-proxy.shardingsphere.svc.cluster.local \   -P3307 -uroot -proot
Access the cluster through the svc domain
Image by:

(Wu Weijie, CC BY-SA 4.0)

It’s as easy as that. You’re running ShardingSphere on the cloud, and that’s just the beginning. For more advanced features, refer to the official ShardingSphere-on-Cloud documentation.


This article is adapted from A Distributed Database Load Balancing Architecture Based on ShardingSphere: Demo and User Case and is republished with permission.

Create a distributed database cluster with Kubernetes in two easy steps.

diagram of planning a cloud
Image by:

Opensource.com

Kubernetes
Databases
Cloud

What to read next
A distributed database load-balancing architecture with ShardingSphere

Creative Commons LicenseThis work is licensed under a Creative Commons Attribution-Share Alike 4.0 International License.
Register or Login to post a comment.

: Opensource.com wuweijie

Supporting Open Source.

Have you tried: Sailing in Africa ?

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X
  • Share on Pinterest (Opens in new window) Pinterest
  • Email a link to a friend (Opens in new window) Email
  • More
  • Share on Tumblr (Opens in new window) Tumblr
  • Print (Opens in new window) Print
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
Published on 17 April 2023 by Alan Category: SoftwareTag: Cloud, Database, Distributed

Trending Now: Wales vs Italy

These are the latest trending searches on Google right now: Wales vs Italy: : Daily Search Trends …

Read moreTrending Now: Wales vs Italy

Sunset Salons: Chocolate

Sunset Salons: Chocolate – a Culture interest event taking place on 2018-03-21 18:00:00 in …

Read moreSunset Salons: Chocolate

Birds’ feeding habits are affected by their personality and self-control – new research

Birds’ feeding habits are affected by their personality and self-control – new research: James …

Read moreBirds’ feeding habits are affected by their personality and self-control – new research

About Alan

Previous Post:Trending Now: Boston Marathon 2023
Next Post:Trending Now: iPhone 15

Reach Trust

Reach Trust is a holding trust for a number of companies within the Stratlec Group.

Copyright © 2026 · Free-Mail · All Rights Reserved · Powered by Straton Electrical

Back to top