Junior — Middle
What steps will you take to diagnose the cause of application unavailability after receiving a message about its unavailability?
sobes.tech AI
Answer from AI
To diagnose application unavailability, I would sequentially perform the following steps:
- Check the server and service status where the application runs (e.g., using systemctl, docker ps, kubectl).
- Check application logs and system logs for errors or warnings.
- Check network connectivity to the server (ping, traceroute) and accessibility of necessary ports (telnet, nc).
- Check firewall configuration and security rules (firewall, security groups).
- Check the status of databases and other application dependencies.
- If a load balancer is used, check its status and routing.
- If necessary, reproduce the problem locally or in a test environment.
This systematic approach helps quickly localize and eliminate the cause of unavailability.