Quantcast
Channel: Cloud Training Program
Viewing all articles
Browse latest Browse all 1902

Database Sharding On Oracle Kubernetes (OKE)

$
0
0

Database in OCI is used to store, manage, and retrieve data whenever needed. These databases need to be Highly available & Fault-tolerant. For this, we use various methods like implementing RAC Databases, Data Guard, etc. Database Sharding is one of them. With the new update of Oracle, we can deploy Database Sharding on Oracle Kubernetes

This blog post covers all you should know about Database Sharding and how we can implement it using OKE (Oracle Kubernetes Engine).

To know in detail about:

Overview Of Database Sharding

Database Sharding is the concept of splitting the database into multiple databases. Splitting the database means we are splitting the data inside a database and create various new databases. The newly formed databases are called shards. It makes the database more scalable, Highly available & fault-tolerant.

database sharding

Note: Shards can be formed on Cloud as well as on-premise.

Benefits of Database Sharding

  • Linear Scalability: Scale capacity and performance by increasing the number of shards.
  • Fault-Tolerant: It is a shared-nothing infrastructure that means that each shard is isolated. If there is a failure or any slow-down of one shard will not affect the other.
  • Distributed Data: It allows you to spread data across regions and make particular data available to consumers. For eg: data of US consumers is stored in the US region and data of Canada consumers are stored in the Canada region.
  • Rolling Upgrades: Changes made to one shard will not affect the processing of other shards.

benefits of Sharded database

Database Sharding On Oracle Kubernetes (OKE)

  • Oracle Kubernetes (OKE) is a highly available and manageable service in Oracle Cloud Infrastructure (OCI). It is used to deploy containerized applications in OCI. Kubernetes groups the application containers into logical units called pods.
  • Containers are a software package into an invisible box with everything that the application needs to run. That includes the operating system, application code, runtime, system tools, system libraries, and etc. Docker containers are built off Docker images.

Oracle Sharded Databases can be deployed on OKE (Oracle Kubernetes Engine). So that we can deploy containers in different regions and provide HA, Fault Tolerance, and scalability to the databases (shards) in containers.

To deploy Oracle Database Sharding on OKE, we use Ansible Modules that will create compute resources, configure the network, create block storage volumes. It does so by using a YAML file passed to ansible playbooks.

1) Deploy an Ansible machine.

Ansible Modules are used to automate the provisioning and configuring of various cloud resources in OCI.

  • Installing and configuring pip (Python Manager)
  • Install Ansible Engine and OCI specific Ansible modules
  • Setup OCI configuration file for Ansible.

To know more about Ansible Machine and how to configure click here.

2) Configure the OKE cluster in OCI.

Oracle Kubernetes Engine (OKE) is used to deploy the containerized applications on Oracle Cloud.

3) Create GSM and Oracle Database Images (Optional)

This step is optional and you need to execute this when you do not have access to Oracle GSM software and database image.

4) Oracle Database Sharding Deployment using Helm/Charts.

Helm is a packaging tool used to install applications and services on Oracle Kubernetes (OKE). It uses a packaging format called charts. Charts are YAML templates that describe a particular set of Kubernetes resources.

To know how to perform sharding using Helm/Charts click here

Reference/Related Post

Join FREE Masterclass

To know more about Docker and Kubernetes for beginners, why you should learnJob opportunities, and what to study Including Hands-On labs you must perform to clear CKA certification Exam.

Click on the below image to Register Our FREE Masterclass Now!Free Masterclass

The post Database Sharding On Oracle Kubernetes (OKE) appeared first on Cloud Training Program.


Viewing all articles
Browse latest Browse all 1902

Trending Articles