閱讀194 返回首頁    go 技術社區[雲棲]


筆記:Cost Reduction Strategies on Java Cloud Hosting Services

估計這篇文章的名字會讓許多上雲的人感興趣:減少Java雲主機服務費用的策略,主要介紹的就是通過使用容器技術降低Java雲服務器的費用。

Key Takeaways
As your project grows you need to move to larger VMs. But if the next step up exceeds your requirements, you are overpaying
Containers offer higher granularity than VM's, and can be scaled vertically without rebooting the running instances
Monolithic and legacy applications can be migrated from VMs to system containers without modifying your settings
Scaling Java vertically requires proper JVM configurations, and the shrinking garbage collector
"Pay as you go" vs "Pay as you use" cloud pricing models and the right choice to increase efficiency

開篇就是:你為VM(Virtual Machine)多付錢了(Admit That You Overpay for VMs),如下圖所示,作者認為粉的這部分都是浪費的。
screenshot

隨著項目垂直擴展,問題越來越大。而如果擴容的話,現在的雲服務器幾乎都是一倍一倍的擴,造成更大的浪費。

解決方案就是使用容器技術(Migrate from VMs to Containers)以及優化垃圾回收策略(Enable Garbage Collector with Memory Shrink)
容器化的好處:Now each container can be scaled up and down on the fly with no downtime. It is much thinner compared to virtual machines, so this operation takes much less time compared to scaling with VMs. And the horizontal scaling process became very granular and smooth, as a container can be easily provisioned from the scratch or cloned.
回收策略優化的好處,從:
screenshot

變成:
screenshot

在與容器技術結合,將釋放的內存供其它容器使用,增加內存利用率。

原文鏈接:https://www.infoq.com/articles/java-cloud-cost-reduction

最後更新:2017-08-30 11:02:53

  上一篇:go  護衛神鏡像需要開放的常規端口
  下一篇:go  幹掉 Whatsapp,隻需4000個微笑?