dble

by Helm

Helm chartv0.0.2App 2.19.09

DBLE is a high scalability middle-ware for MySQL sharding.

About this chart

DBLE Helm Chart

DBLE is a high scalability middle-ware for MySQL sharding.

TL;DR;

$ helm repo add inspur https://inspur-iop.github.io/charts
$ helm install inspur/dble --values values.yaml

Introduction

DBLE is a high scalability middle-ware for MySQL sharding maintained by ActionTech.

Features

  • Sharding As your business grows, you can use dble to replace the origin single MySQL instance.

  • Compatible with MySQL protocol Use dble as same as MySQL. You can replace MySQL with dble to power your application without changing a single line of code in most cases.

  • High availability dble server can be used as clustered, business will not suffer from single node fail.

  • SQL Support Support(some in Roadmap) SQL 92 standard and MySQL dialect. We support complex SQL query like group by, order by, distinct, join ,union, sub-query(in Roadmap) and so on.

  • Complex Query Optimization Optimize the complex query, including, without limitation, Global-table join sharding-table, ER-relation tables, Sub-Queries, Simplifying select items, and the like.

  • Distributed Transaction Support Distributed Transaction using two-phase commit. You can choose normal mode for performance or XA mode for data safety, of course, the XA mode dependent on MySQL-5.7's XA Transaction, MySQL node's high availability and data reliability of disk.

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add inspur https://inspur-iop.github.io/charts
$ helm install --name my-release inspur/dble --values values.yaml

The command deploys DBLE on the Kubernetes cluster in the default configuration. The Parameters section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

ParameterDescriptionDefault
global.registrydble image repositoryregistry.icp.com:5000
global.archdble image architecture, default is amd64``
dble.imagedble imagelibrary/dble
dble.imageTagdble image tag2.19.09
replicasdble replicas2
resourcesdble resource requests/limit{}
imagePullPolicyimage pull policyIfNotPresent
schedulerNameScheduler name for dble pod assignment``
nodeSelectorNode labels dble pod assignment{}
affinityAffinity settings for dble pod assignment{}
tolerationsToleration labels for dble pod assignment[]
deploymentAnnotationsAnnotations for dble statefulset{}
podAnnotationsAnnotations for dble pods{}
podLabelsLabels for dble pods{}
imagePullSecretsOptionally specify an array of imagePullSecrets.[]
service.annotationsAnnotations for dble service{}
service.typeType for dble serviceClusterIP
service.dble.portPort for dble service8066
service.dble.nodePortNodePort for dble service``
service.admin.portPort for dble management service9066
service.admin.nodePortNodePort for dble management servic``
service.loadBalancerIPLoadbalancerIP if dble service is LoadBalancer``
wrapperAdditionalParametersConfigurations about JVM in wrapper.conf. See https://actiontech.github.io/dble-docs-cn/1.config_file/1.04_wrapper.conf.html["-XX:MaxPermSize=64M", "-XX:+AggressiveOpts", "-XX:MaxDirectMemorySize=1G", "-Xmx512m", "-Xms100m", "-XX:+UseParNewGC", "-XX:+UseConcMarkSweepGC", "-XX:+UseCMSCompactAtFullCollection", "-XX:CMSFullGCsBeforeCompaction=0", "-XX:CMSInitiatingOccupancyFraction=70"]
configurationFilesDBLE configuration files, exclude wrapper.conf. For more details see https://actiontech.github.io/dble-docs-cn/1.config_file/1.00_config_file.html[]
zookeeper.resourceszookeeper resource requests/limit{}
zookeeper.persistencezookeeper data persistence{}
[For more DBLE configurations]: https://actiontech.github.io/dble-docs-cn/

Deploy dble with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has dble on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdble is pinned at v0.0.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply