笔记:Cost Reduction Strategies on Java Cloud Hosting Services

本文探讨了如何通过容器技术和优化垃圾回收策略来降低Java云服务的成本。随着项目的增长,使用虚拟机(VM)可能会导致资源浪费。容器技术提供更细粒度的垂直扩展,并能无缝迁移遗留应用程序。此外,优化JVM配置和垃圾回收可以提高内存利用率。

估计这篇文章的名字会让许多上云的人感兴趣:减少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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值