Skip to content
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

kubelet does not report usageNanoCores for node on Windows #76740

Closed
yujuhong opened this issue Apr 17, 2019 · 4 comments · Fixed by #80176
Closed

kubelet does not report usageNanoCores for node on Windows #76740

yujuhong opened this issue Apr 17, 2019 · 4 comments · Fixed by #80176
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/windows Categorizes an issue or PR as relevant to SIG Windows.

Comments

@yujuhong
Copy link
Contributor

What happened:

usageNanoCores is not reported for node on Windows.

{ 
  "node": {
   "nodeName": "e2e-test-yjhong-windows-node-group-wv9b",
   "systemContainers": [
    {
     "name": "pods",
     "startTime": "2019-04-17T22:58:59Z",
     "cpu": {
      "time": null
     },
     "memory": {
      "time": null
     },
     "userDefinedMetrics": null
    }
   ],
   "startTime": "2019-04-17T22:24:57Z",
   "cpu": {
    "time": "2019-04-17T22:58:58Z",
    "usageCoreNanoSeconds": 55040000000
   },
   "memory": {
    "time": "2019-04-17T22:58:58Z",
    "availableBytes": 7619317760,
    "usageBytes": 1213886464,
    "workingSetBytes": 433328128,
    "rssBytes": 0,
    "pageFaults": 0,
    "majorPageFaults": 0
   },
...

Environment:

  • Kubernetes version (use kubectl version): Kubernetes v1.15.0-alpha.1.76+d48509bdf01ee1-
  • Cloud provider or hardware configuration: GCE
  • OS (e.g: cat /etc/os-release): Windows 1809
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

/cc @dashpole @feiskyer

@yujuhong yujuhong added kind/bug Categorizes issue or PR as related to a bug. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/windows Categorizes an issue or PR as relevant to SIG Windows. labels Apr 17, 2019
@zhiweiv
Copy link

zhiweiv commented Apr 18, 2019

I reported same issue a few days ago, no feedback yet, it makes metrics server 0.3.x not working with Windows nodes.
#75934

@feiskyer
Copy link
Member

yep, only usageCoreNanoSeconds is reported for node CPU now. We should probably add a cache for usageCoreNanoSeconds and calculate usageNanoCores based on it.

@andyzhangx
Copy link
Member

someone able to work on this? This is a blocking issue for upgrade to metrics server to v0.3.x if there is windows node

@yujuhong yujuhong self-assigned this Jul 10, 2019
@yujuhong
Copy link
Contributor Author

/cc @liyanhui1228

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/node Categorizes an issue or PR as relevant to SIG Node. sig/windows Categorizes an issue or PR as relevant to SIG Windows.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants