想必大家一定都有使用過 CPU Limit 的經驗,透過這個機制能夠確保每個 Container 使用的 CPU 資源量,也可以保證每個節點上面會有足夠 CPU 供 Kubernetes 原生服務 (kubelet) 使用。
然而本篇文章就要來跟大家分享一個設定 CPU Limit 反而造成效能更差的故事,故事中當 CPU 設定為 800ms 的時候,卻發現實際運行的 Container 最高大概就只有 200ms 左右,這一切的一切都是因為 Liniux Kernel 的臭蟲導致!
一個直接的做法就是針對那些本來就沒有過高 CPU 使用量服務取消其 CPU Limit,作者於文章中也探討了一些機制要如何保護與應對這些被移除 CPU 限制的服務。
這個臭蟲於 Linux Kernel 4.19 後已經修復,但是要注意你使用的發行版本是否有有包含這個修復,作者列出一些已知的發行版本修復狀況
Debian: The latest version buster has the fix, it looks quite recent (august 2020). Some previous version might have get patched.
Ubuntu: The latest version Ubuntu Focal Fosa 20.04 has the fix.
EKS has the fix since December 2019, Upgrade your AMI if necessary.
kops: Since June 2020, kops 1.18+ will start using Ubuntu 20.04 as the default host image.
GKE: THe kernel fix was merged in January 2020. But it does looks like throttling are still happening.
有興趣的歡迎點選原文閱讀更多
https://erickhun.com/posts/kubernetes-faster-services-no-cpu-limits/
同時也有10000部Youtube影片,追蹤數超過2,910的網紅コバにゃんチャンネル,也在其Youtube影片中提到,...
「ubuntu kernel version」的推薦目錄:
- 關於ubuntu kernel version 在 矽谷牛的耕田筆記 Facebook 的精選貼文
- 關於ubuntu kernel version 在 コバにゃんチャンネル Youtube 的最佳貼文
- 關於ubuntu kernel version 在 大象中醫 Youtube 的最佳貼文
- 關於ubuntu kernel version 在 大象中醫 Youtube 的最讚貼文
- 關於ubuntu kernel version 在 How To Upgrade Linux Kernel On Ubuntu - YouTube 的評價
- 關於ubuntu kernel version 在 pimlie/ubuntu-mainline-kernel.sh - GitHub 的評價
- 關於ubuntu kernel version 在 There is no ubuntu kernel version i'm looking for 的評價
- 關於ubuntu kernel version 在 查詢Ubuntu 版本資訊的4 種方法 - ShengYu Talk 的評價
- 關於ubuntu kernel version 在 How to get the exact ubuntu kernel source files? 的評價
ubuntu kernel version 在 pimlie/ubuntu-mainline-kernel.sh - GitHub 的推薦與評價
Bash script for Ubuntu (and derivatives) to easily (un)install kernels from ... If you want to automatically check for a new kernel version when you login:. ... <看更多>
ubuntu kernel version 在 There is no ubuntu kernel version i'm looking for 的推薦與評價
linux-image-5.15.0-66-generic was a proposed update for Jammy (22.04, not 20.04), but it didn't graduate to the updates repository; ... ... <看更多>
ubuntu kernel version 在 How To Upgrade Linux Kernel On Ubuntu - YouTube 的推薦與評價
In this video i will be covering how to upgrade your Linux kernel on Ubuntu with the Ubuntu kernel update utility (ukuu). ... <看更多>