Skip to content
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

Add --connect-timeout flag to katib-db-manager #1937

Merged

Conversation

tenzen-y
Copy link
Member

What this PR does / why we need it:
I added a flag, --connect-timeout, to katib-db-manager that sets the time before calling an error on database connection and remove the non-configurable flag, -w kubernetes, set in katib-db-manager Dockerfile.

Also, I fixed a process to set PostgreSQL Database.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #1928

Checklist:

  • Docs included if any changes are user facing

@coveralls
Copy link

coveralls commented Aug 21, 2022

Coverage Status

Coverage decreased (-0.05%) to 73.383% when pulling 998d011 on tenzen-y:make-connectTimeout-confugurable into fe4d6e7 on kubeflow:master.

@tenzen-y tenzen-y force-pushed the make-connectTimeout-confugurable branch from 702aa4c to 998d011 Compare August 21, 2022 15:51
@tenzen-y
Copy link
Member Author

I have force-pushed to restart actions.

@@ -28,4 +28,3 @@ WORKDIR /app
COPY --from=build-env /bin/grpc_health_probe /bin/
COPY --from=build-env /go/src/github.com/kubeflow/katib/katib-db-manager /app/
ENTRYPOINT ["./katib-db-manager"]
CMD ["-w", "kubernetes"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this flag not used before?

Copy link
Member Author

@tenzen-y tenzen-y Aug 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review! @johnugeorge
Yes, katib-db-manager can not recognize that flag.

$ docker run --platform linux/amd64 -it docker.io/kubeflowkatib/katib-db-manager:v1beta1-9c7d797 -w kubernetes
flag provided but not defined: -w
Usage of ./katib-db-manager:

@tenzen-y tenzen-y changed the title Make katib-db-manaber connection timeout configurable Add --connect-timeout flags to katib-db-manager Aug 22, 2022
@tenzen-y tenzen-y changed the title Add --connect-timeout flags to katib-db-manager Add --connect-timeout flag to katib-db-manager Aug 22, 2022
@johnugeorge
Copy link
Member

Thanks @tenzen-y I see that it is overriden in manifests.

/lgtm
/approve

@google-oss-prow
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: johnugeorge, tenzen-y

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit ca903e2 into kubeflow:master Aug 22, 2022
@tenzen-y tenzen-y deleted the make-connectTimeout-confugurable branch August 22, 2022 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Try to add a cmd line arg on 'connectTimeout ' to satisfy low performance storage.
3 participants