influxdb-srelay
by Helm
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 NOTuse 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
| Parameter | Description | Default |
|---|---|---|
busybox.image | busybox image repository | registry.icp.com:5000/library/common/busybox |
busybox.imageTag | busybox image tag | 1.30.1 |
srelay.image | influxdb-srelay image repository | registry.icp.com:5000/service/db/influxdb-srelay |
srelay.imageTag | influxdb-srelay image tag | 0.6.0 |
srelay.resources | influxdb-srelay resource requests/limit | {} |
srelay.livenessProbe.initialDelaySeconds | Delay before liveness probe is initiated (influxdb-srelay container) | 5 |
srelay.livenessProbe.periodSeconds | How often to perform the probe (influxdb-srelay container) | 10 |
srelay.livenessProbe.timeoutSeconds | When the probe times out (influxdb-srelay container) | 1 |
srelay.livenessProbe.successThreshold | Minimum consecutive successes for the probe to be considered successful after having failed (influxdb-srelay container) | 1 |
srelay.livenessProbe.failureThreshold | Minimum consecutive failures for the probe to be considered failed after having succeeded. (influxdb-srelay container) | 3 |
srelay.readinessProbe.initialDelaySeconds | Delay before readiness probe is initiated (influxdb-srelay container) | 5 |
srelay.readinessProbe.periodSeconds | How often to perform the probe (influxdb-srelay container) | 10 |
srelay.readinessProbe.timeoutSeconds | When the probe times out (influxdb-srelay container) | 1 |
srelay.readinessProbe.successThreshold | Minimum consecutive successes for the probe to be considered successful after having failed (influxdb-srelay container) | 1 |
srelay.readinessProbe.failureThreshold | Minimum consecutive failures for the probe to be considered failed after having succeeded. (influxdb-srelay container) | 3 |
syncflux.image | syncflux image repository | registry.icp.com:5000/service/db/syncflux |
syncflux.imageTag | syncflux image tag | 0.6.5 |
syncflux.resources | syncflux resource requests/limit | {} |
syncflux.livenessProbe.initialDelaySeconds | Delay before liveness probe is initiated (syncflux container) | 30 |
syncflux.livenessProbe.periodSeconds | How often to perform the probe (syncflux container) | 10 |
syncflux.livenessProbe.timeoutSeconds | When the probe times out (syncflux container) | 1 |
syncflux.livenessProbe.successThreshold | Minimum consecutive successes for the probe to be considered successful after having failed (syncflux container) | 1 |
syncflux.livenessProbe.failureThreshold | Minimum consecutive failures for the probe to be considered failed after having succeeded. (syncflux container) | 3 |
syncflux.readinessProbe.initialDelaySeconds | Delay before readiness probe is initiated (syncflux container) | 30 |
syncflux.readinessProbe.periodSeconds | How often to perform the probe (syncflux container) | 10 |
syncflux.readinessProbe.timeoutSeconds | When the probe times out (syncflux container) | 1 |
syncflux.readinessProbe.successThreshold | Minimum consecutive successes for the probe to be considered successful after having failed (syncflux container) | 1 |
syncflux.readinessProbe.failureThreshold | Minimum consecutive failures for the probe to be considered failed after having succeeded. (syncflux container) | 3 |
imagePullPolicy | image pull policy | IfNotPresent |
imagePullSecrets | Optionally specify an array of imagePullSecrets. | [] |
schedulerName | Scheduler name for influxdb-srelay pod assignment | `` |
nodeSelector | Node labels influxdb-srelay pod assignment | {} |
affinity | Affinity settings for influxdb-srelay pod assignment | {} |
tolerations | Toleration labels for influxdb-srelay pod assignment | [] |
deploymentAnnotations | Annotations for influxdb-srelay statefulset | {} |
podAnnotations | Annotations for influxdb-srelay pods | {} |
podLabels | Labels for influxdb-srelay pods | {} |
service.annotations | Annotations for influxdb-srelay service | {} |
service.type | Type for influxdb-srelay service | ClusterIP |
service.port | Port for influxdb-srelay service | 9096 |
service.nodePort | NodePort for influxdb-srelay service | `` |
service.loadBalancerIP | LoadbalancerIP if influxdb-srelay service is LoadBalancer | `` |
tls.enabled | Setup 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartinfluxdb-srelay is pinned at v0.0.2 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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