Showing posts with label free vps. Show all posts
Showing posts with label free vps. Show all posts

Oracle Cloud Oracle free vps one-click automatic exercise (keep alive script)

 The Oracle Cloud keep-alive script starts at 0:00 every day and makes the CPU automatically exercise for 600 seconds every 3 hours, 8 times a day for a total of 80 minutes (load 10% to 20%), and the CPU utilization is greater than 10% for 5% of the time (at least 72 minutes a day) ), the amount of exercise can be adjusted according to your own situation. Meet the amount of exercise to avoid oracle free vps from being deleted.

One-click workout:

#amdversion
cd /root && wget https://raw.githubusercontent.com/velor2012/lookbusy-docker/main/lookbusy -O lookbusy && chmod +x lookbusy && sudo echo "0 */3 * * * root timeout 600 /root/lookbusy -c 10-20 -r curve" >> /etc/crontab && grep -q centos /etc/os-release && service crond restart || service cron restart

#ARM version
cd /root && wget https://raw.githubusercontent.com/velor2012/lookbusy-docker/main/lookbusy-arm -O lookbusy && chmod +x lookbusy && sudo echo "0 */3 * * * root timeout 600 /root/lookbusy -c 10-20 -r curve" >> /etc/crontab && grep -q centos /etc/os-release && service crond restart || service cron restart


Check the execution log:

cat /var/log/cron | grabbed lookbusy


One-click uninstall:

sed -i "/lookbusy/d" /etc/crontab && rm -f /root/lookbusy && grep -q centos /etc/os-release && service crond restart || service cron restart

Picture [1]-Oracle Cloud Oracle free vps one-click automatic exercise (keep-alive script)-Rich Miscellaneous

Pagoda exercise:
If you use pagoda timing tasks, you don’t need to read the previous ones. The steps are as follows:
1. Execute the following command in the shell to download lookbusy to the root path

cd /root && wget https://raw.githubusercontent.com/velor2012/lookbusy-docker/main/lookbusy -O lookbusy && chmod +x lookbusy

Configure the pagoda timing task as shown in the figure below, and the script content is

timeout 600 /root/lookbusy -c 10-20 -r curve
Picture [2]-Oracle Cloud Oracle free vps one-click automatic exercise (keep-alive script)-Rich Miscellaneous

3. In the lower right corner of the scheduled task, you can test the execution and view the execution log, which is very intuitive and easy to use

Great Wall of China