Giter Club home page Giter Club logo

oracle-docker-active's Introduction

Oracle-Docker-Active

应对甲骨文免费机器回收机制,基于alpine的Docker"锻炼"镜像

使用stress-ng生成CPU压力

思路

95%的 CPU 利用率低于 10%

网络利用率低于10%

内存利用率低于 10% (仅适用于ARM机型)

================================================

对于ARM机型,能占用内存的,尽量占用内存为10%以上即可

对于AMD机型,7天内5%以上时间CPU利用率高于10%即可

由于stress-ng调用内存压力测试时,会产生比较大的CPU负载,而ARM机型需要一直保持内存在10%以上,故本镜像对于ARM机型暂时也统一使用CPU占用来解决活跃度问题

开始锻炼

此Docker镜像将会在北京时间凌晨3点20分开始占用15%左右的CPU资源,一直持续1.5小时来满足CPU占用的要求

对于ARM机型:

docker run -d --name oracle-active --restart=always myleo1/oracle-docker-active:arm64

对于AMD机型:

docker run -d --name oracle-active --restart=always myleo1/oracle-docker-active:amd64

取消锻炼

docker rm -f oracle-active

对于ARM机型:

docker rmi myleo1/oracle-docker-active:arm64

对于AMD机型:

docker rmi myleo1/oracle-docker-active:amd64

日志查看/锻炼情况查看

docker logs -f --tail=50 oracle-active

oracle-docker-active's People

Contributors

myleo1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.