Skip to content

Conversation

@grayside
Copy link
Contributor

@grayside grayside commented May 1, 2023

This PR fixes the blueprint's exaggerated cold start penalty, originally documented in GoogleCloudPlatform/avocano#74.

Change

  • Delay 5 seconds to give server a chance to start
  • Begin polling on a 3 second interval
  • Fail out on 5 fails
  • Noticing some queries take around 1.1 seconds, setting timeout to 2.

Impact

Screenshot 2023-05-01 at 4 50 46 PM

This is showing cold start page load taking just over 8 seconds, and that the initial request for site_config is taking 7.47 seconds. The screenshot also shows "7.33 seconds of "stalled" time, which may well be cold start/waiting for ready check.

Based on the updated settings in this PR, the first healtcheck at 5 seconds is successful. We should follow-up in the future with more optimization and a data-based approach to these numbers, but this is much better than the current slowness we're encountering of ~23 second first response

@grayside grayside requested review from a team, donmccasland and glasnt as code owners May 1, 2023 23:50
@grayside grayside self-assigned this May 1, 2023
glasnt added a commit to GoogleCloudPlatform/avocano that referenced this pull request May 2, 2023
@glasnt
Copy link
Collaborator

glasnt commented May 2, 2023

Testing this in https://github.com/GoogleCloudPlatform/avocano/tree/healthcheck-tune on avocano-preview

@grayside grayside changed the title performance: tune healtcheck for server behavior performance: tune healthcheck for server behavior May 2, 2023
@glasnt
Copy link
Collaborator

glasnt commented May 4, 2023

Based on discussions, closing this in favour of another method.

@glasnt glasnt closed this May 4, 2023
@glasnt glasnt mentioned this pull request May 4, 2023
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