-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapt latest changes for data-prep #712
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,8 +28,38 @@ spec: | |
serviceAccountName: {{ include "data-prep.serviceAccountName" . }} | ||
securityContext: | ||
{{- toYaml .Values.podSecurityContext | nindent 8 }} | ||
initContainers: | ||
- name: wait-for-db | ||
Comment on lines
+31
to
+32
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wouldn't Or is this intended for cases where Helm is used just to generate manifest file? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. helm wait is not enough. The dataprep code itself will create a redis/milvus client to connect to DB when it starts, if that fails, it will never retry to create the db client and hence fails all the incoming user requests later. This is actually a cloud native non-friendly bug in the dataprep/retriever source code itself. But we don't have time to fix that in this release cycle. Already created an issue in GenAIComps. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. And I guess |
||
envFrom: | ||
- configMapRef: | ||
name: {{ include "data-prep.fullname" . }}-config | ||
{{- if .Values.global.extraEnvConfig }} | ||
- configMapRef: | ||
name: {{ .Values.global.extraEnvConfig }} | ||
optional: true | ||
{{- end }} | ||
image: busybox:1.36 | ||
command: ["sh", "-c"] | ||
args: | ||
- | | ||
{{- if eq "REDIS" .Values.DATAPREP_BACKEND }} | ||
TESTHOST=$(REDIS_HOST); | ||
TESTPORT=$(REDIS_PORT); | ||
{{- else if eq "MILVUS" .Values.DATAPREP_BACKEND }} | ||
TESTHOST=$(MILVUS_HOST); | ||
TESTPORT=$(MILVUS_PORT); | ||
{{- end }} | ||
wait_timeout={{ .Values.waitTimeout | default 1 }}; | ||
total_timeout={{ .Values.retryTimeoutSeconds | default 60 }}; | ||
lianhao marked this conversation as resolved.
Show resolved
Hide resolved
|
||
j=0; | ||
while ! nc -w ${wait_timeout} -z ${TESTHOST} ${TESTPORT}; do | ||
j=$((j+wait_timeout)); | ||
[[ $j -ge ${total_timeout} ]] && echo "ERROR: ${TESTHOST}:${TESTPORT} is NOT reachable in $j seconds!" && exit 1; | ||
j=$((j+2)); sleep 2; | ||
done; | ||
echo "${TESTHOST}:${TESTPORT} is reachable within $j seconds."; | ||
containers: | ||
- name: {{ .Release.Name }} | ||
- name: {{ .Chart.Name }} | ||
envFrom: | ||
- configMapRef: | ||
name: {{ include "data-prep.fullname" . }}-config | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dataprep api has been changed for file uploading?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately, yes