想必大家一定都有使用過 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/
no throttling 在 pindaPanda Facebook 的最佳貼文
Taking 500 selfies is no easy game ok.
Introducing the new Western Digital Black NVMe SSD
Specs:
- 1 TB
- Up to 3,400 MB/s Read
- Up to 2,800 MB/s Write
- M.2 2280
Features:
- suited best for gaming, video editing, virtual reality, and beyond.
- Innovative power management and thermal throttling consistently help prevent overheating to deliver smooth, fast performance.
#Sponsored #WD
no throttling 在 Vaune Phan Facebook 的最佳貼文
Saving the best for last 😍😍😍
Here with Taiwan's hottest biker chicks Cynthia Wang and 王晨飄, both proud owners of a Ducati 959 Panigale and Aprilia RSV4!!
Staying warm together in the 14°C chilly weather with some really good hot chocolate and talking about everything under the sun, before catching the last flight back home to Singapore! 😀
--
Woke up at 3:00am to catch the train from Alishan to Zhu Shan to catch the sunrise. It was pretty cold at 5 deg. Too bad it was a little cloudy but still a breathtaking sight to behold.
Thankfully tho, we were just in time for the Alishan Flower Season where we saw lots of pretty cherry blossoms, so incredibly beautiful as we slowly make our way down the mountain from Alishan and on towards Tai Chung!
--
From Kenting, we happily thought that Day 4 of our ride to Alishan mountain will take us just 4 hours via the Freeway.
Turns out, it ended up as my first time involved in a high speed chase here in Taiwan because we were on the Freeway towards Chiayi where motorcycles are actually not allowed on.
Best part was I had no clue the police was chasing with his loud speaker on behind as I was happily throttling off on the Freeway, taking photos, and listening to my favourite "That's What I Like" Bruno Mars song until the rear view of my friends were replaced with a BMW with red/blue blinker lights right behind me 😂
On a serious note, I would like to genuinely apologize for my route mistake, and would like to take this opportunity to commend the police officer who stopped us as he exercised so much grace, understanding and hospitality toward us that left us speechless. He carefully explained the road rules for motorcycles here in Taiwan, and showed us the right route to take to Alishan.
He even left his phone number before wishing us a safe and enjoyable journey as we continued our way up over 2,000m above sea level to Alishan Mountain with nothing but smiles in our helmet and a thankful heart!
Full details will be up on the blog.
--
From the Northernmost part of Taiwan to the Southernmost, after doing more than 500km of both mountain and coastal roads, we are finally soaking up some sun here at Kenting on Day 3 of our ride!
The beach here is gorgeous, the weather is perfect, a great getaway from the hustle and bustle of city life.
Taking it all in, falling asleep to the sound of the gentle waves, before we prepare ourselves for the ascend of up to more than 2,000metres in altitude for the next day's ride, to Alishan!
--
Cloudy on the second day of our ride but at least it stopped raining! Exploring the magnificent Taroko Gorge, riding alongside an abundance of all that natural marble and gushing river before making our way down South to Kenting! The Hawaii of Taiwan 😀
--
First day of our ride saw 7 straight hours of rain as we made our way from Taipei to Hualien. The coastal roads were beautiful as it overlooked the gorgeous Pacific Ocean, but before that was carefully getting through more than 100km of slippery mountain corners.
My arms got so tired from gripping the bars too tightly because I tend to tense up from the phobia of skidding off sharp corners especically when the roads are wet :/
Gloves are completely damped and it's gonna feel oh so gross stuffing my hands into them for the next day's ride! 😂
Let's hope the weather improves for the second day of our ride!
www.vaunephan.blogspot.sg
--
Arrived in Taipei safely and all ready for the ride!!
First time riding a motorcycle in Taiwan and rain or shine, cold or hot, we're gonna tour around almost the whole of this beautiful country through gorgeous mountains curves and coastal roads lining the Pacific Ocean with temperatures averaging at 14°C.
Ride for the trip - The Aprilia Shiver 750!
Much thanks to my local friend, Jason, for arranging the bikes!
First leg of the journey - Taking it easy with 181km from Taipei City to Hualien!
Clocking another adventure in 2017! Leggooooo!
www.vaunephan.blogspot.sg