Fix Oxia config so that it includes a list of all pods in the statefulset (#553)
* Fix Oxia config so that it includes a list of all pods in the statefulset * Test Oxia with 3 replicas since some issues only come up with more nodes * Make internal name not a fqdn * Fix issue with insufficient cpu requests in CI
This commit is contained in:
parent
cc12992d8f
commit
07689860f6
@ -25,10 +25,11 @@ components:
|
|||||||
functions: false
|
functions: false
|
||||||
|
|
||||||
oxia:
|
oxia:
|
||||||
initialShardCount: 1
|
initialShardCount: 3
|
||||||
replicationFactor: 1
|
replicationFactor: 3
|
||||||
server:
|
server:
|
||||||
replicas: 1
|
replicas: 3
|
||||||
memoryLimit: 256Mi
|
cpuLimit: 333m
|
||||||
dbCacheSizeMb: 128
|
memoryLimit: 200Mi
|
||||||
|
dbCacheSizeMb: 100
|
||||||
storageSize: 1Gi
|
storageSize: 1Gi
|
||||||
|
|||||||
@ -88,8 +88,16 @@ namespaces:
|
|||||||
initialShardCount: {{ .Values.oxia.initialShardCount }}
|
initialShardCount: {{ .Values.oxia.initialShardCount }}
|
||||||
replicationFactor: {{ .Values.oxia.replicationFactor }}
|
replicationFactor: {{ .Values.oxia.replicationFactor }}
|
||||||
servers:
|
servers:
|
||||||
- public: {{ template "pulsar.fullname" . }}-{{ .Values.oxia.component }}-svc.{{ template "pulsar.namespace" . }}.svc.cluster.local:{{ .Values.oxia.server.ports.public }}
|
{{- $servicename := printf "%s-%s-svc" (include "pulsar.fullname" .) .Values.oxia.component }}
|
||||||
internal: {{ template "pulsar.fullname" . }}-{{ .Values.oxia.component }}-svc.{{ template "pulsar.namespace" . }}.svc.cluster.local:{{ .Values.oxia.server.ports.internal }}
|
{{- $fqdnSuffix := printf "%s.svc.cluster.local" (include "pulsar.namespace" .) }}
|
||||||
|
{{- $podnamePrefix := printf "%s-%s-server-" (include "pulsar.fullname" .) .Values.oxia.component }}
|
||||||
|
{{- range until (int .Values.oxia.server.replicas) }}
|
||||||
|
{{- $podnameIndex := . }}
|
||||||
|
{{- $podname := printf "%s%d.%s" $podnamePrefix $podnameIndex $servicename }}
|
||||||
|
{{- $podnameFQDN := printf "%s.%s" $podname $fqdnSuffix }}
|
||||||
|
- public: {{ $podnameFQDN }}:{{ $.Values.oxia.server.ports.public }}
|
||||||
|
internal: {{ $podname }}:{{ $.Values.oxia.server.ports.internal }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user