Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not necessarily a fork bomb but had similar effects:

- Boss asks me to write a script to check X resource

- Script is done and takes around 30 seconds to run

- Boss neglected to tell me script was schedule to run once a minute

- As load increased, script started to take more than 60 seconds to run

- Since we are running script every 60 seconds, we start having multiple copies of the script

- Server goes down

#funtimes



This is why you need locking on a script like that :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: