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 gRPC probe for agent #4990

Merged
merged 7 commits into from
Mar 9, 2024
Merged

Add gRPC probe for agent #4990

merged 7 commits into from
Mar 9, 2024

Conversation

pingsutw
Copy link
Member

@pingsutw pingsutw commented Mar 1, 2024

Tracking issue

#3936

Why are the changes needed?

Allow propeller to send the request only when agent is ready.

What changes were proposed in this pull request?

Add gRPC probe

How was this patch tested?

Sandbox

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Blocked by flyteorg/flytekit#2232 and flytekit release

Docs link

NA

@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. documentation Improvements or additions to documentation enhancement New feature or request labels Mar 1, 2024
Copy link

codecov bot commented Mar 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.99%. Comparing base (992641c) to head (acde19e).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4990      +/-   ##
==========================================
- Coverage   58.99%   58.99%   -0.01%     
==========================================
  Files         645      645              
  Lines       55547    55547              
==========================================
- Hits        32772    32769       -3     
- Misses      20183    20187       +4     
+ Partials     2592     2591       -1     
Flag Coverage Δ
unittests 58.99% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Kevin Su <[email protected]>
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. and removed size:XS This PR changes 0-9 lines, ignoring generated files. labels Mar 4, 2024
Signed-off-by: Kevin Su <[email protected]>
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:S This PR changes 10-29 lines, ignoring generated files. labels Mar 6, 2024
Signed-off-by: Kevin Su <[email protected]>
Copy link
Member

@Future-Outlier Future-Outlier left a comment

Choose a reason for hiding this comment

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

lgtm, thank you

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 6, 2024
@Future-Outlier
Copy link
Member

I've checked 2 docs from k8s official website.
Kubernetes 1.24: gRPC container probes in beta
https://kubernetes.io/blog/2022/05/13/grpc-probes-now-in-beta/#trying-the-feature-out
Configure Liveness, Readiness and Startup Probes
https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/

@Future-Outlier Future-Outlier self-requested a review March 6, 2024 13:16
@Future-Outlier
Copy link
Member

Don't merge this PR, I am looking the bug

@dosubot dosubot bot removed the lgtm This PR has been approved by a maintainer label Mar 6, 2024
readinessProbe:
grpc:
port: 8000
initialDelaySeconds: 5
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is it that high? or why is it needed?

Copy link
Member Author

Choose a reason for hiding this comment

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

importing some python modules is very slow, especially airflow and spark.

pingsutw added 3 commits March 8, 2024 10:07
Signed-off-by: Kevin Su <[email protected]>
Signed-off-by: Kevin Su <[email protected]>
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Mar 8, 2024
@pingsutw pingsutw enabled auto-merge (squash) March 8, 2024 19:36
Copy link
Member

@Future-Outlier Future-Outlier left a comment

Choose a reason for hiding this comment

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

LGTM!

@pingsutw pingsutw merged commit a49284e into master Mar 9, 2024
50 of 51 checks passed
@pingsutw pingsutw deleted the gRPC-probe branch March 9, 2024 01:11
@Future-Outlier Future-Outlier mentioned this pull request Mar 9, 2024
3 tasks
yubofredwang pushed a commit to yubofredwang/flyte that referenced this pull request Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants