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
|
||||
|
||||
oxia:
|
||||
initialShardCount: 1
|
||||
replicationFactor: 1
|
||||
initialShardCount: 3
|
||||
replicationFactor: 3
|
||||
server:
|
||||
replicas: 1
|
||||
memoryLimit: 256Mi
|
||||
dbCacheSizeMb: 128
|
||||
replicas: 3
|
||||
cpuLimit: 333m
|
||||
memoryLimit: 200Mi
|
||||
dbCacheSizeMb: 100
|
||||
storageSize: 1Gi
|
||||
|
||||
@ -88,8 +88,16 @@ namespaces:
|
||||
initialShardCount: {{ .Values.oxia.initialShardCount }}
|
||||
replicationFactor: {{ .Values.oxia.replicationFactor }}
|
||||
servers:
|
||||
- public: {{ template "pulsar.fullname" . }}-{{ .Values.oxia.component }}-svc.{{ template "pulsar.namespace" . }}.svc.cluster.local:{{ .Values.oxia.server.ports.public }}
|
||||
internal: {{ template "pulsar.fullname" . }}-{{ .Values.oxia.component }}-svc.{{ template "pulsar.namespace" . }}.svc.cluster.local:{{ .Values.oxia.server.ports.internal }}
|
||||
{{- $servicename := printf "%s-%s-svc" (include "pulsar.fullname" .) .Values.oxia.component }}
|
||||
{{- $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 }}
|
||||
|
||||
{{/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user