-
Notifications
You must be signed in to change notification settings - Fork 38.8k
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
[WIP] Change hashing algorithm in Deployments #38714
Conversation
@wojtek-t I want to write a test that spins up a cluster, creates X namespaces, creates Y deployments in each namespace, runs Z rollouts for each deployment, restart the controller manager with X (average # of namespaces per cluster) |
…r-and-fnv Automatic merge from submit-queue (batch tested with PRs 39466, 39490, 39527) Test and benchmark adler and fnv Split out of #38714 @kubernetes/sig-apps-misc
@smarterclayton where do we expose metrics for the controller manager? I can't seem to find those under the master /metrics endpoint. |
cc @janetkuo |
No idea - scheduler has it, and I thought it was enabled for controller manager because someone was looking at queue depths a while back. |
Is this what you're looking for? func (g *MetricsGrabber) GrabFromControllerManager() (ControllerManagerMetrics, error) {
if !g.registeredMaster {
return ControllerManagerMetrics{}, fmt.Errorf("Master's Kubelet is not registered. Skipping ControllerManager's metrics gathering.")
}
output, err := g.getMetricsFromPod(fmt.Sprintf("%v-%v", "kube-controller-manager", g.masterName), api.NamespaceSystem, ports.ControllerManagerPort)
if err != nil {
return ControllerManagerMetrics{}, err
}
return parseControllerManagerMetrics(output)
} |
@janetkuo the library you are linking is assuming we are running a self-hosted cluster (components run inside pods). I can't see us using it anywhere in the Kubernetes repository apart from some e2e tests. |
@janetkuo thanks for the pointer. Note that if the update on the Deployment proposal that I have up for review is accepted (kubernetes/community#384), then we may not need to migrate old replica sets. |
@Kargakis PR needs rebase |
A migration won't be needed. Closing this one |
Superseded by #44774