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

Readiness probe changes #900

Merged
merged 2 commits into from
Dec 9, 2024
Merged

Readiness probe changes #900

merged 2 commits into from
Dec 9, 2024

Conversation

niladrih
Copy link
Member

@niladrih niladrih commented Dec 7, 2024

Changes:

  1. Makes the readiness probe test tighter
  2. The readiness check API depends on the agent-core service's Node gRPC endpoint.
    The current RwLock lets multiple tokio threads probe the agent-core. This is not
    ideal. This change makes the get operation atomic, so that agent-core state cache
    updates could be performed by only a single thread, and the updated cache should
    feed the next few ready calls.

@niladrih
Copy link
Member Author

niladrih commented Dec 7, 2024

bors try

bors-openebs-mayastor bot pushed a commit that referenced this pull request Dec 7, 2024
@niladrih niladrih force-pushed the healthz-test branch 2 times, most recently from 39feb24 to f2a5141 Compare December 7, 2024 14:25
@bors-openebs-mayastor
Copy link

try

Build succeeded:

@niladrih niladrih changed the title test: shorten wait times for readiness probe pytest Readiness probe changes Dec 9, 2024
@niladrih
Copy link
Member Author

niladrih commented Dec 9, 2024

bors try

bors-openebs-mayastor bot pushed a commit that referenced this pull request Dec 9, 2024
@bors-openebs-mayastor
Copy link

try

Build succeeded:

The readiness check API depends on the agent-core service's Node gRPC endpoint.
The current RwLock lets multiple tokio threads probe the agent-core. This is not
ideal. This change makes the get operation atomic, so that agent-core state cache
updates could be performed by only a single thread, and the updated cache should
feed the next few ready calls.

Signed-off-by: Niladri Halder <[email protected]>
@niladrih
Copy link
Member Author

niladrih commented Dec 9, 2024

bors merge

@bors-openebs-mayastor
Copy link

Build succeeded:

@bors-openebs-mayastor bors-openebs-mayastor bot merged commit 41dac82 into develop Dec 9, 2024
4 checks passed
@bors-openebs-mayastor bors-openebs-mayastor bot deleted the healthz-test branch December 9, 2024 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants