Script allowing me to flood an api, or a website with HTTP GET method. Like this, if i monitor the website and all his requests, i can test if my Centreon, Grafana, ELK stack etc... works good with my website. I can too test if the website is able to support a heavy number of requests.
> git clone https://github.com/gabyfulchic/Website-flooder.git
> cd Website-flooder/
> chmod +x flood.sh run.sh
> ./flood.sh urlToFlood numberOfEndlessLoop
>> example : ./flood.sh google.com 8
>> it will launch 8 endless loop making curl -X GET google.com in background.
> ps aux | grep run
/
> ps -ef | grep run
/
> top
/
> htop
/
> pstree
Do the above test, to get all the pid of run processes.
Then kill all.
> kill 1234
> kill 5678
> kill 9012