aws / aws/apprunner-roadmap

Intermittent Downtime in Rails Application Running on AWS App Runner

Open
#261 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
301
Forks
15
PR merge metrics
No merged PRs in 30d

Description

**Description**:
I'm experiencing intermittent downtime with my Rails application hosted on AWS App Runner. A third-party service, Crisp, monitors the availability of my site and sends notifications whenever it is unreachable. I receive these downtime alerts from Crisp a couple of times a day.

**Steps to reproduce**:
- Deploy a Rails application on AWS App Runner.
- Set up a monitoring service (e.g., Crisp) to check site availability.
- Observe the intermittent downtime notifications.

**Expected behavior**:
The application should remain available consistently, especially since there are no signs of high CPU or memory usage.

**Observed behavior**:
Even though the application is running under low load (as indicated by AWS App Runner metrics), Crisp reports that my site is unavailable for short periods. During these periods:

- Metrics show no CPU or memory exhaustion.
- However, AWS CloudWatch logs indicate gaps of up to 4 minutes between the last stream's end and the beginning of the next one, which aligns with the reported downtime.

![Screenshot 2024-09-17 at 22 39 46](https://github.com/user-attachments/assets/cc40414e-8bfa-42a5-9db9-9c95dfce682a)
![Screenshot 2024-09-17 at 22 41 04](https://github.com/user-attachments/assets/6feb554a-704d-4d38-b2b6-28b55e617756)

**Questions**:
1. What could be causing these 4-minute gaps in the logs, which coincide with the periods when my site is unreachable?
2. Why might the Rails application be stopping so frequently, even when resource usage seems normal?

**Logs and metrics**:
I have attached relevant logs above and metric graphs below. Let me know if you need more details.

![Screenshot 2024-09-17 at 22 44 08](https://github.com/user-attachments/assets/3a108e9f-10f3-48e4-b24f-ccee68609b07)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.