I need to run as many (thousands) very small cron jobs within a duration of 5 minutes and repeatedly through out the day. This kind of requirement would be up against system resources and limitations such as nproc, maxuprc, numbers of cron jobs allowed in crontab, RSS, SWAP, CPU and others that I don't know. The problem is typical knapsack problem, maximize number of jobs within constrains.
1. A typical cron job is to monitor responsiveness of a webpage. A simplified one-liner would be:
time -p wget http://domain.com where domain.com is varied.
2. I have root access
3. At the other thread I read the below script, what is the purpose of the wait command? Can I use the above one-liner as a job in this example?
Quote:
#! /usr/bin/ksh
job1 &
job2 &
job3 &
wait
exit 0
4. In general, what do I have to do? What strategy?
Thanks in advance, your advise appreciated.