Skip to content

Commit

Permalink
refactor: add remote wal config (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyy17 authored Jul 30, 2024
1 parent f310d62 commit 3082433
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/greptimedb-cluster/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: greptimedb-cluster
description: A Helm chart for deploying GreptimeDB cluster in Kubernetes.
type: application
version: 0.2.1
version: 0.2.2
appVersion: 0.9.0
home: https://github.com/GreptimeTeam/greptimedb
sources:
Expand Down
6 changes: 5 additions & 1 deletion charts/greptimedb-cluster/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A Helm chart for deploying GreptimeDB cluster in Kubernetes.

![Version: 0.2.1](https://img.shields.io/badge/Version-0.2.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.9.0](https://img.shields.io/badge/AppVersion-0.9.0-informational?style=flat-square)
![Version: 0.2.2](https://img.shields.io/badge/Version-0.2.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.9.0](https://img.shields.io/badge/AppVersion-0.9.0-informational?style=flat-square)

## Source Code

Expand Down Expand Up @@ -198,3 +198,7 @@ helm uninstall mycluster -n default
| prometheusMonitor.enabled | bool | `false` | Create PodMonitor resource for scraping metrics using PrometheusOperator |
| prometheusMonitor.interval | string | `"30s"` | Interval at which metrics should be scraped |
| prometheusMonitor.labels | object | `{"release":"prometheus"}` | Add labels to the PodMonitor |
| remoteWAL | object | `{"enabled":false,"kafka":{"brokerEndpoints":[]}}` | Configure to remote wal |
| remoteWAL.enabled | bool | `false` | Enable remote wal |
| remoteWAL.kafka | object | `{"brokerEndpoints":[]}` | The remote wal type, only support kafka now. |
| remoteWAL.kafka.brokerEndpoints | list | `[]` | The kafka broker endpoints |
6 changes: 6 additions & 0 deletions charts/greptimedb-cluster/templates/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -298,3 +298,9 @@ spec:
{{- else }}
{}
{{- end }}
{{- if .Values.remoteWAL.enabled }}
remoteWAL:
{{- if .Values.remoteWAL.kafka }}
kafka: {{- toYaml .Values.remoteWAL.kafka | nindent 6 }}
{{- end }}
{{- end }}
9 changes: 9 additions & 0 deletions charts/greptimedb-cluster/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -421,3 +421,12 @@ objectStorage:
# # The data directory in OSS will be: 'oss://<bucket>/<root>/data/...'.
# root: "mycluster"
# endpoint: "oss-cn-hangzhou.aliyuncs.com"

# -- Configure to remote wal
remoteWAL:
# -- Enable remote wal
enabled: false
# -- The remote wal type, only support kafka now.
kafka:
# -- The kafka broker endpoints
brokerEndpoints: []

0 comments on commit 3082433

Please sign in to comment.