Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/queryservice/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.0"
description: A Helm chart for Kubernetes
name: queryservice
version: 0.2.1
version: 0.2.4
home: https://github.com/wbstack
maintainers:
- name: WBstack
Expand Down
12 changes: 12 additions & 0 deletions charts/queryservice/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
# wbstack queryservice

## Settings

Existing memory and probe defaults are preserved unless overridden.

| Value | Default | Description |
| --- | --- | --- |
| `app.maxRam` | `2g` | JVM `-XX:MaxRAM`; not a total process-memory limit. |
| `app.maxDirectMemorySize` | `""` | Optional JVM `-XX:MaxDirectMemorySize` limit. |
| `startupProbe` | `{}` | Optional Kubernetes startup probe, applied only when `useProbes` is enabled. |
| `probeTimeoutSeconds` | `1` | Timeout for the HTTP liveness and readiness probes. |

## Changelog

- 0.2.4: Make JVM memory limits and startup/probe settings configurable while preserving existing defaults.
- 0.2.0: Switch to ingress API version to GA v1 from v1beta1
- 0.1.3: Change service from `NodePort` to `ClusterIP`
- 0.1.2: Change image pullPolicy values to `IfNotPresent`
Expand Down
10 changes: 7 additions & 3 deletions charts/queryservice/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,24 @@ spec:
containerPort: 9999
protocol: TCP
{{- if .Values.useProbes }}
{{- with .Values.startupProbe }}
startupProbe:
{{- toYaml . | nindent 12 }}
{{- end }}
livenessProbe:
httpGet:
path: /bigdata/
port: http
# wdqs can take some time on initial boot, so take that into account
initialDelaySeconds: 30
timeoutSeconds: 1
timeoutSeconds: {{ .Values.probeTimeoutSeconds }}
periodSeconds: 15
readinessProbe:
httpGet:
path: /bigdata/
port: http
initialDelaySeconds: 15
timeoutSeconds: 1
timeoutSeconds: {{ .Values.probeTimeoutSeconds }}
periodSeconds: 15
{{- end }}
resources:
Expand All @@ -64,7 +68,7 @@ spec:
value: {{ .Values.app.heapSize }}
# TODO would use -XX:+UseSerialGC but conflicts with -XX:+UseG1GC in runBlazegraph.sh
- name: EXTRA_JVM_OPTS
value: "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAM=2g -XX:+TieredCompilation -XX:TieredStopAtLevel=1"
value: "-XX:+UnlockExperimentalVMOptions -XX:+UseCGroupMemoryLimitForHeap -XX:MaxRAM={{ .Values.app.maxRam }}{{ if .Values.app.maxDirectMemorySize }} -XX:MaxDirectMemorySize={{ .Values.app.maxDirectMemorySize }}{{ end }} -XX:+TieredCompilation -XX:TieredStopAtLevel=1"
- name: GC_LOGS
value: " "
#TODO allow passing value in values
Expand Down
4 changes: 4 additions & 0 deletions charts/queryservice/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

replicaCount: 1
useProbes: true
startupProbe: {}
probeTimeoutSeconds: 1

image:
repository: ghcr.io/wbstack/queryservice
Expand All @@ -12,6 +14,8 @@ image:

app:
heapSize: 2g
maxRam: 2g
maxDirectMemorySize: ""

imagePullSecrets: []
nameOverride: ""
Expand Down
Loading