2023-02-01
瞎折腾
00
请注意,本文编写于 605 天前,最后修改于 605 天前,其中某些信息可能已经过时。

目录

提升内存利用率(arm)
多跑流量
多跑CPU
定时写磁盘

介绍提升机器利用率避免被回收的办法

根据Oracle的最新政策,免费资源长期利用率不达标(降本增效既视感)会被回收:

Reclamation of Idle Compute Instances

Idle Always Free compute instances may be reclaimed by Oracle. Oracle will deem virtual machine and bare metal compute instances as idle if, during a 7-day period, the following are true:

CPU utilization for the 95th percentile is less than 10% Network utilization is less than 10% Memory utilization is less than 10% (applies to A1 shapes only)

我的小鸡上跑了些服务,为了避免机器被回收,需要一些措施

提升内存利用率(arm)

每次开机启动后dd文件到/dev/shm

多跑流量

使用crontab定时下载测速文件 定时运行yabs或其他测速脚本

多跑CPU

定时运行yabs或其他benchmark脚本 跑一些科研计算项目:https://boinc.berkeley.edu/projects.php

定时写磁盘

定时dd文件到磁盘

脚本参考:https://keeporacle.pages.dev/ 来源:https://hostloc.com/thread-1131732-1-1.html

P.S. 感谢Oracle给的免费实例,一直在用,希望不会被回收🙏

本文作者:renbear

本文链接:

版权声明:本博客所有文章除特别声明外,均采用 CC BY-NC 2.0 许可协议。转载请注明出处!