influxdb-srelay

by Helm

Helm chartv0.0.2App 0.6.0

An InfluxDB proxy for achieving a highly available setup on 2 InfluxDB instances.

About this chart

InfluxDB-srelay Helm Chart

InfluxDB-srelay is an InfluxDB proxy for achieving a highly available setup on 2 InfluxDB instances.

TL;DR;

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

Introduction

InfluxDB-srelay adds a basic high availability layer to InfluxDB. With Syncflux(which is already built-in) as disaster recovery processes, this achieves a highly available setup.

Limitions

  • Support Http and UDP connection
  • Support /write requests
  • Support GET /query requests like SELECT, SHOW
  • POST /query requests like ALTER, CREATE, DELETE, DROP, GRANT, KILL, REVOKE, SELECT INTO are NOT SUPPORTED!
  • DO NOT use GET /query to send POST query command like ALTER, CREATE etc, the request can be sent to only one influxdb instance.

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/influxdb-srelay --values values.yaml

The command deploys InfluxDB-srelay 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
busybox.imagebusybox image repositoryregistry.icp.com:5000/library/common/busybox
busybox.imageTagbusybox image tag1.30.1
srelay.imageinfluxdb-srelay image repositoryregistry.icp.com:5000/service/db/influxdb-srelay
srelay.imageTaginfluxdb-srelay image tag0.6.0
srelay.resourcesinfluxdb-srelay resource requests/limit{}
srelay.livenessProbe.initialDelaySecondsDelay before liveness probe is initiated (influxdb-srelay container)5
srelay.livenessProbe.periodSecondsHow often to perform the probe (influxdb-srelay container)10
srelay.livenessProbe.timeoutSecondsWhen the probe times out (influxdb-srelay container)1
srelay.livenessProbe.successThresholdMinimum consecutive successes for the probe to be considered successful after having failed (influxdb-srelay container)1
srelay.livenessProbe.failureThresholdMinimum consecutive failures for the probe to be considered failed after having succeeded. (influxdb-srelay container)3
srelay.readinessProbe.initialDelaySecondsDelay before readiness probe is initiated (influxdb-srelay container)5
srelay.readinessProbe.periodSecondsHow often to perform the probe (influxdb-srelay container)10
srelay.readinessProbe.timeoutSecondsWhen the probe times out (influxdb-srelay container)1
srelay.readinessProbe.successThresholdMinimum consecutive successes for the probe to be considered successful after having failed (influxdb-srelay container)1
srelay.readinessProbe.failureThresholdMinimum consecutive failures for the probe to be considered failed after having succeeded. (influxdb-srelay container)3
syncflux.imagesyncflux image repositoryregistry.icp.com:5000/service/db/syncflux
syncflux.imageTagsyncflux image tag0.6.5
syncflux.resourcessyncflux resource requests/limit{}
syncflux.livenessProbe.initialDelaySecondsDelay before liveness probe is initiated (syncflux container)30
syncflux.livenessProbe.periodSecondsHow often to perform the probe (syncflux container)10
syncflux.livenessProbe.timeoutSecondsWhen the probe times out (syncflux container)1
syncflux.livenessProbe.successThresholdMinimum consecutive successes for the probe to be considered successful after having failed (syncflux container)1
syncflux.livenessProbe.failureThresholdMinimum consecutive failures for the probe to be considered failed after having succeeded. (syncflux container)3
syncflux.readinessProbe.initialDelaySecondsDelay before readiness probe is initiated (syncflux container)30
syncflux.readinessProbe.periodSecondsHow often to perform the probe (syncflux container)10
syncflux.readinessProbe.timeoutSecondsWhen the probe times out (syncflux container)1
syncflux.readinessProbe.successThresholdMinimum consecutive successes for the probe to be considered successful after having failed (syncflux container)1
syncflux.readinessProbe.failureThresholdMinimum consecutive failures for the probe to be considered failed after having succeeded. (syncflux container)3
imagePullPolicyimage pull policyIfNotPresent
imagePullSecretsOptionally specify an array of imagePullSecrets.[]
schedulerNameScheduler name for influxdb-srelay pod assignment``
nodeSelectorNode labels influxdb-srelay pod assignment{}
affinityAffinity settings for influxdb-srelay pod assignment{}
tolerationsToleration labels for influxdb-srelay pod assignment[]
deploymentAnnotationsAnnotations for influxdb-srelay statefulset{}
podAnnotationsAnnotations for influxdb-srelay pods{}
podLabelsLabels for influxdb-srelay pods{}
service.annotationsAnnotations for influxdb-srelay service{}
service.typeType for influxdb-srelay serviceClusterIP
service.portPort for influxdb-srelay service9096
service.nodePortNodePort for influxdb-srelay service``
service.loadBalancerIPLoadbalancerIP if influxdb-srelay service is LoadBalancer``
tls.enabledSetup and use TL

Deploy influxdb-srelay with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has influxdb-srelay 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 chartinfluxdb-srelay 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