Skip to content

Automate cold-start timing collection #2495

Closed

Description

@greghaynes

Expected Behavior

I expect to have a record of time spent broken down in to components during cold-start. Including:

  • How much time is spent before we ask our deployment to scale up
  • How much time is spent before our user application begins executing

This should be automated and ideally reported to somewhere we can track over time (similar to testgrid).

Actual Behavior

These measurements can only be gotten ad-hoc.

Activity

  1. added
    kind/feature
    on Nov 14, 2018
  2. greghaynes commented on Nov 14, 2018

    @greghaynes
    ContributorAuthor

    /milestone Scaling: Sub-Second Cold Start

  3. added this to the milestone on Nov 15, 2018
  4. vantuvt commented on Dec 10, 2018

    @vantuvt

    I'm curious, are there any open proposals on how to address this feature request at this time?

  5. josephburnett commented on Dec 10, 2018

    @josephburnett
    Contributor

    @sjug you worked on this a bit. Do you have any recommendations?

  6. vantuvt commented on Dec 10, 2018

    @vantuvt

    I don't have any recommendations at this time. However, I'd be interested in learning more about ideas that others have discussed in this space.

  7. greghaynes commented on Dec 10, 2018

    @greghaynes
    ContributorAuthor

    #2323 would be nice to get in for reporting 'how much time is spent before our application begins executing' to testgrid

  8. markusthoemmes commented on Dec 11, 2018

    @markusthoemmes
    Contributor

    #2667 will somewhat contribute to this as well, as it'll measure the time it takes to scale an application up from 1-X, arguably cold-start as well, just a slightly different category.

  9. sjug commented on Dec 11, 2018

    @sjug
  10. greghaynes commented on Dec 14, 2018

    @greghaynes
    ContributorAuthor

    I've started poking at adding some more detailed tracing to autoscaler in #2726 - AIUI we only support promethus metrics recording in CI so I am not sure how we want to close that gap. IMO tracing is the right tool for the job here form the development side so I think our options are:

    • Get zipkin recording in our perf tests
    • Also report promethus metrics for each of these spans

    Thoughts from the CI folks?

    /cc @jessiezcc @adrcunha @srinivashegde86

  11. srinivashegde86 commented on Mar 1, 2019

    @srinivashegde86
    Contributor

    we have enabled zipkin and prometheus in our perf tests. Have we enabled zipkin tracing for autoscaler? Last time I checked(few months ago :)), zipkin tracing was not available for internal knative components.

  12. srinivashegde86 commented on Mar 1, 2019

    @srinivashegde86
    Contributor
  13. greghaynes commented on Mar 1, 2019

    @greghaynes
    ContributorAuthor

    Working on adding tracing internally here: #2726

  14. modified the milestones: , Serving "v1" (ready for production) on May 6, 2019
  15. added
    area/test-and-release
    on May 15, 2019
  16. mattmoor commented on Jun 24, 2019

    @mattmoor
    Contributor

    @greghaynes You definitely have the best instrumentation here. Would it be possible to try and add it to automation in 0.8?

    For "v1" scope, I'd just like to see a benchmark in place that keeps us from going backwards on cold-start performance, not necessarily the deep visibility @greghaynes has, but bonus points the more we have.

  17. mattmoor commented on Jul 11, 2019

    @mattmoor
    Contributor

    I think we have this covered already in

    func TestScaleFromZero1(t *testing.T) {
    and https://mako.dev/benchmark?benchmark_key=5762723203776512&maxruns=100. Sure they could be better, but we are tracking them.

  18. yuxiaoba commented on Nov 1, 2019

    @yuxiaoba

    Is there a way to get the cold-start timing collection from Prometheus now? @greghaynes

  19. nimakaviani commented on Nov 9, 2019

    @nimakaviani
    Contributor

    @yuxiaoba not yet, the implementation is still experimental and hasn't been merged. If you are interested in the implementation, you can have a look here: https://github.com/nimakaviani/serving/tree/pod-tracing-redux

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1area/autoscalearea/monitoringarea/test-and-releasekind/feature

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions