-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Improve Hyper-V performance by reduce duplicate Hyper-V operations #10136
Comments
/label os/windows |
@lingsamuel: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
thats a good idea @lingsamuel if indeed we doing those operations multiple times. could we verify how many times we actually call those funcs ? maybe adding some debug.Printstack() and them and see how many times we call it and reduce those calls |
From the log I pasted #10135 we can say it repeat |
The latency only happens when we are accessing host.Driver.XXX. I suspect the reason is powershell starts slowly. host, _ := api.Load(machineName)
s, _ := host.Driver.GetState() Slow operation is In func nodeStatus(api libmachine.API, cc config.ClusterConfig, n config.Node) (*Status, error) {
// ...
hs, err := machine.Status(api, name)
// ...
if _, err := cluster.DriverIP(api, name); err != nil {
// .....
host, err := machine.LoadHost(api, name)
cr, err := machine.CommandRunner(host)
//...
|
Some libmachine codes: GetIP, GetState, GetSSHHostname() From the code we know machine-drivers/machine doesn't cache anything. |
The strange thing is the lib already set IP inside |
By this simple patch, |
Can we use a fork version with this patch machine-drivers/machine#32? @medyagh |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-contributor-experience at kubernetes/community. |
/remove-lifecycle rotten |
Any updates? I think I've provided enough information to confirm this. |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
I believe @afbjorklund has write access to machine-drivers/machine, hopefully he can merge your PR there and we can update the reference in our code here. |
See #10135
docker-env
andstatus
need 10s in average. Seems like each Hyper-V operation (get running state, get ip addr) takes 2s+.Comparison: Linux OS < 1s
/kind feature
The text was updated successfully, but these errors were encountered: