Skip to content

Commit 9052286

Browse files
committed
Add note for changing Heroku's release dyno type
1 parent b07249f commit 9052286

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: Scaling Heroku's release type
3+
tags:
4+
- Heroku
5+
---
6+
7+
During `release`, it's possible to consume so much memory, Heroku kills the dyno before it finishes executing.
8+
9+
```
10+
heroku[release.xxxx]: Process running mem=1038M(202.8%)
11+
heroku[release.xxxx]: Error R15 (Memory quota vastly exceeded)
12+
heroku[release.xxxx]: Stopping process with SIGKILL
13+
heroku[release.xxxx]: Process exited with status 137
14+
heroku[release.xxxx]: State changed from up to complete
15+
```
16+
17+
When that happens, the release fails (even though it may say "complete"). Whilst it's a good idea not to use huge amounts of memory during release, sometimes it's unavoidable.
18+
19+
Releases run in a `Standard-1X` dyno, regardless of what the other dynos are set to. This has a 512MB RAM limit, however Heroku will let it push over for short periods.
20+
21+
Setting the `release` dyno type can't be done from the dashboard, but can be done from the CLI:
22+
23+
```
24+
heroku ps:type release=Standard-1X -a <app>
25+
```
26+
27+
!!! warning
28+
When running `Eco` or `Basic` dynos, the release container is configured to match. It's not possible to use other types of dyno on these plans.

0 commit comments

Comments
 (0)