How to fix "Unavailable" with ERPNext On Amazon AWS on T2xlarge

If you haven’t then first increase workers (Recommended workers 9 for T2xlarge) in common_site_config. Generally path: frappe-bench/sites/common_site_config.json

Also consider some performance tuning for mysql as suggested in below post, file path: /etc/mysql/my.cnf