Can anyone give me any advice on how to analyse why my site has been getting a lot of down time recently.
My setup is as in craigs videos on an Ubuntu server with 4GB Ram.
To get the site going again i need to restart the server and then restart redis with :
sudo systemctl restart redis-server
However often as soon as i restart redis the site goes down again…
Then eventually it works fine for some reason… Sometimes after 5mins, sometimes after an hour…
In the past i’ve already upped the memory limit on redis to 2GB and it seems to be working fine.
Recently I’ve noticed that i’ve been getting a lot of spam incriptions to the news letter so i activated Captcha.
So I was thinking that it may be a good idea to try and block the incoming traffic from certain IP addresses on my server to see if that may help.
If the incoming traffic is from certain foreign countries i have no need to have any incoming traffic from there…
Is this a good idea?
And any idea how i can see what ip addresses have been coming on the website just before my site goes down?
Are there any good tools or commandes to use to see this through the ssh interface?
Also i did recently disable a search bar module as i thought it maybe coming from that.
Could any cron tasks have anything to do with it if a module has been disabled?
Any advice would be great.