Knowledge Base
KamlatechToolBlogContact Us
  • Kamlatech Documentation
  • Magento
    • Installation
    • Email Configuration
  • Blogger
    • Adding Code Block
  • Linux
    • Managing Logs
    • Prevent Package Update
  • Node
    • Installation
    • Http-Server
  • Github
    • .gitignore
    • Branch to New Repo
  • HTML
    • Common Header & Footer in HTML
  • Linkedin Infographics
    • Flame Retardant Standards
    • Flame Retardant Terms
  • Music
    • Pandit Niladri Kumar - Sitar
  • Applications
    • Konvect Connect
    • Konvect Fetcher
    • Konvect Fetcher WebApp
  • HTTPS SSL Certificate
    • Lets's Encrypt
  • Oracle Cloud Instance
    • Firewall
    • CPU Stressing
    • CPU Stressing Docker
  • SFTP
    • WinSCP SFTP
  • NextCloud
    • Installation
    • Post Install Tweak
    • PHP Version
  • Wordpress
    • NGINX Configuration
    • Image upload / Crop issue
    • Required PHP Modules
    • PHP Configuration
  • Healthcare Wearables (Cardiac)
    • Wearable ECG
    • Arrhythmia
    • Ambulatory ECG Usecase
    • Understanding EKG Leads
  • Flutter
    • Direct URL Access
    • Change Android PackageName
  • Math
    • Online Equation Writing
  • Backend Web Service
    • Flask App Deployment
  • 3D Modeling
    • DWG in Solid Edge
  • MariaDB
    • MariaDB Commands
  • Excel
    • HTML as String in Excel
  • Tools
    • Online Tools
  • PostgreSQL
    • PostgreSQL Installation
  • MEDUSA
    • Medusa Installation
    • Backend Server/Worker Mode
    • Frontend Deployment
  • Jupyter Lab
    • Jupyter Web App
  • WooCommerce
    • Product Filename Renaming
  • Embedded
    • Flash Xiao Sense Bootloader
Powered by GitBook
On this page
Edit on GitHub
  1. Oracle Cloud Instance

CPU Stressing Docker

PreviousCPU StressingNextWinSCP SFTP

Last updated 1 year ago

To bypass the idle compute identification bu oracle we need to have the CPU, Memory and Network cross a certain level of utilization (as of writing this document it was 20%).

We already talked about stress-ng. Another way to stress the resources is LookBusy script on docker so lets get to it.

First install docker dependeicies and then docker

sudo apt install -y curl wget socat
sudo curl -fsSL https://get.docker.com | sh

Then create a lookbusy container by using this script

sudo docker run -itd --name=lookbusy --restart=always \
    -e TZ=Asia/Kolkata \
    -e CPU_UTIL=15-35 \
    -e CPU_CORE=2 \
    -e MEM_UTIL=0 \
    -e SPEEDTEST_INTERVAL=120 \
    fogforest/lookbusy

Required docker files will be downloaded and container will be initiated

  1. Memory usage, unit %, can be omitted if the memory is not running

  2. Network speed test interval, in minutes, can be omitted if you are not running the network

  3. The number of cores occupied by the CPU will run on all cores by default if not specified. If the CPU is full, you can specify 1 core.

  4. CPU usage, unit %, cannot be omitted, supports fixed value or range

Another configurtion with only CPU usage in both core, no memory and smaller network interval

sudo docker run -itd --name=lookbusy --restart=always \
    -e TZ=Asia/Kolkata \
    -e CPU_UTIL=19-30 \
    -e SPEEDTEST_INTERVAL=30 \
    fogforest/lookbusy

You can check the docker status by running

sudo docker container ls

Stop/Start docker container lookbusy instance by running

sudo docker stop lookbusy
sudo docker start lookbusy

Terminate docker container lookbusy by running

sudo docker rm lookbusy
https://github.com/kejilion/docker/blob/main/fogforest