microsoft / K8s-Storage-Plugins

Storage plugins for Kubernetes
MIT License
42 stars 20 forks source link

SMB and QoS policy #16

Closed guhuajun closed 4 years ago

guhuajun commented 4 years ago

This is not an issue report, it's a tip for some support engineers who come from the future.

Background story I want to confirm the potential impact when some group policies are applied for domain-joined windows nodes in a Kubernetes cluster. I choose Quality of Service (QoS) Policy for this test. The motivation is very simple, I want to control the network speed when transferring large files from containers to a SMB server.

Business Scenario A web application that allows user to upload large attachments (less than 100MB).

Test Result It works as expected! The QoS policy is taking effect on Windows nodes in a Kubernetes cluster. WOW! That's the power and amazing part of Windows Server! (util01.corp.contoso.com is my test box and file server. I am building this lab on a PC with 32GB memory.)

image

image

Potential issue symptoms in support tickets

  1. As an end user, it takes a long time for me to upload attachment. Yet another bad system!
  2. As a developer, I don't know what's happening on network. Windows container is blamed because it's a new technology.
  3. As a network engineer, I only know the concept of overlay network. I swear that I have nothing to do with this slow network issue. I don't apply any QoS policy on any network device.
  4. As a newbie of Windows Server administration, I am facing a bunch of documents. Kubernetes, overlay network, flannel, hybrid cluster, what's next?

PS KBps in group policy and Kbps in resource monitor is not an issue anymore.

Some nights you're programming and you say "may God have mercy on my soul for this line of code." -Scott Hanselman

guhuajun commented 4 years ago

You may also use Get-NetQosPolicy to retrieve qos policies. image

https://github.com/microsoft/Get-NetView Get-NetView can also help to collect diagnostic data.