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

Adjust rpc-timeout of gRPC probes #425

Merged
merged 2 commits into from
Jun 8, 2023
Merged

Adjust rpc-timeout of gRPC probes #425

merged 2 commits into from
Jun 8, 2023

Conversation

zolug
Copy link
Collaborator

@zolug zolug commented Jun 6, 2023

Description

Using SPIFFE Workload API to retrieve TLS credentials can be CPU intensive. Thus, employing resource limits for Spire can lead to failed probes.

Set default rpc-timeout of grpc-health-probes in case of SPIFFE issued credentials to 1s.
Also, use 2 seconds initial delay for liveness probes not to overlap with readiness probes.

RPC timeout of code internal grpc-health-probes can be adjusted via GRPC_PROBE_RPC_TIMEOUT operator environment variable (expects time.Duration values).

Issue link

#420

Checklist

  • Purpose
    • Bug fix
    • New functionality
    • Documentation
    • Refactoring
    • CI
  • Test
    • Unit test
    • E2E Test
    • Tested manually
  • Introduce a breaking change
    • Yes (description required)
    • No

zolug added 2 commits June 6, 2023 13:37
RPC timeout value defaults to 1s in case of SPIFFE
issued credentials.
Using SPIFFE Workload API to retrive TLS credentials
can be CPU intensive. Can result in increased probe
response times and thus failed probes.

- GRPC_PROBE_RPC_TIMEOUT operator env variable (defaults to 1s)
- 2s liveness probe init delay (avoid overlap with readiness probe)
- RPC timeout of other gRPC probes relying on SPIFFE increased (1s)
@zolug zolug requested a review from LionelJouin June 6, 2023 14:01
@zolug zolug merged commit 44327ec into master Jun 8, 2023
@zolug zolug deleted the ezollug-rpc-timeout branch June 21, 2023 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant