Reputation: 41360
I have a situation when some DDOS attacks are putting my PHP server down. Occasionally.
I'm using AWS with auto scaling groups, so it is not a problem.
The problems start when this server is going down in the middle of the cron job scheduled PHP script.
So my idea was to block all of the routs on the PHP servers except for the /healthcheck
...
How can I do that and is there a better solution?
Upvotes: 1
Views: 168
Reputation: 788
have you considered creating secondary auto scaling group, specifically for the cron job? It would require setting up Scheduled Action like this:
that way live system and cron jobs are separated and will not affect one another.
Upvotes: 1