Skip to content

Remove the knowledge of where to publish metrics from Revision controller #1927

Closed

Description

@mattmoor

This covers the (waving hands) metrics pipeline where the queue-proxy in each Revision can publish a Prometheus-compatible metrics endpoint and (without further knowledge) the autoscaler can performantly act on that.

This would eliminate the need for the queue-proxy to push metrics itself, and eliminate the last piece of remaining knowledge about how the autoscaler implementation works.

Activity

  1. added
    area/API
    kind/cleanup
    on Aug 22, 2018
  2. mattmoor commented on Oct 4, 2018

    @mattmoor
    ContributorAuthor

    Another interesting angle on this is "trust".

    Push models need a way of establishing caller identity to determine whether the metrics pushed should be trusted. The queue-proxy runs as part of the same Pod as the user container and shouldn't be trusted to report things correctly (also how do we lock down the metrics endpoint from receiving other stuff on-cluster?).

    I wonder if the "right" balance would be to run a privileged DaemonSet (similar to fluentd) that can scrape a prometheus endpoint and push metrics to our autoscaler?


    This came up as part of a brainstorm session about whether (in the absence of the istio mesh) on-cluster traffic could simply be blocked via NetworkPolicy.

    cc @tcnghia @mdemirhan

  3. added this to the milestone on Nov 5, 2018
  4. josephburnett commented on Nov 5, 2018

    @josephburnett
    Contributor

    I'm adding pod scraping in #2203.
    @mrmcmuffinz is adding an endpoint to scrape in #2202.

    Once that has proved out, we can remove the direct metrics push pipeline and the knowledge about metrics from the revision controller.

  5. modified the milestones: , Serving 0.3 on Nov 20, 2018
  6. mattmoor commented on Nov 28, 2018

    @mattmoor
    ContributorAuthor

    /assign @k4leung4

    I think @k4leung4 is driving this now.

  7. mattmoor commented on Dec 5, 2018

    @mattmoor
    ContributorAuthor

    I believe the portion of this that can land in 0.3 is effectively done. We need the queue-proxy metrics endpoint to roll out in 0.3 before we can start to take advantage of it in 0.4.

    If we try to take advantage of it in 0.3 we could potentially swap out the autoscaler and start trying to pull metrics from old queue-proxy pods that don't expose metrics.

  8. k4leung4 commented on Jan 28, 2019

    @k4leung4

    /unassign

    /assign @yanweiguo

  9. mattmoor commented on Feb 12, 2019

    @mattmoor
    ContributorAuthor

    Discussed in chat, we're going to move this to 0.5 so that it can bake a bit longer

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

Metadata

Metadata

Assignees

Labels

area/APIarea/autoscalekind/cleanup

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions