Opening Ports
If you are having trouble with opening ports on oracle cloud, run
sudo iptables -I INPUT -j ACCEPTIf that work don’t forget to save the iptables permanently(because iptables will be restored to the default one between restarts)
sudo su
iptables-save > /etc/iptables/rules.v4
exitCronjob based load generator
Since oracle has started reclaiming idle instances, here is a command to cause artificial load on your vps.
`echo "*/5 * * * * root timeout 46 nice md5sum /dev/zero" | sudo tee /etc/cron.d/dummy-load`After an hour, use the uptime command to check the load average. You will want the 15 minute load average, the last value in the output of the uptime command, to be between 0.10 and 0.20. Change the default timeout value from 46 to something shorter or longer if you need to decrease or increase the load. Here is an uptime example from one of my systems:
$ uptime
04:22:35 up 22 days, 8:53, 1 user, load average: 0.10, 0.16, 0.12