You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Remove the knowledge of where to publish metrics from Revision controller #1927
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.
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.
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.
Activity
mattmoor commentedon Oct 4, 2018
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
josephburnett commentedon Nov 5, 2018
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.
mattmoor commentedon Nov 28, 2018
/assign @k4leung4
I think @k4leung4 is driving this now.
mattmoor commentedon Dec 5, 2018
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.
k4leung4 commentedon Jan 28, 2019
/unassign
/assign @yanweiguo
mattmoor commentedon Feb 12, 2019
Discussed in chat, we're going to move this to 0.5 so that it can bake a bit longer