ASP.NET Core 502 - Web server received an invalid response while acting as a gateway or proxy server.
Hi I have deployed a ASP.NET Core project to the free tier of AppHarbor however its takes quite a while to load. When I run this app locally on my machines it work fine and is very quick to load.
Sometime it takes so long to load on AppHarbor it times out I get a 502 - Web server received an invalid response while acting as a gateway or proxy server. How are application managed when you deploy them to appharbor ?
Here is the URL - http://gighub-7.apphb.com/
Discussions are closed to public comments.
If you need help with AppHarbor please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
Support Staff 1 Posted by rune on 13 Jan, 2018 05:40 AM
Hi Bob,
Since the issue appears to occur at startup you may want to minimize the time it takes to warm up. You likely don't experience this issue when you redeploy your application as AppHarbor will warm up the new worker before routing data to it (for up to at least 2 minutes on the free plan). However, applications on the Canoe plan will time out after 20 minutes of inactivity, so if your app isn't accessed for a while it'll cause the app to respond slower when it's restarted.
You can likely avoid this by upgrading to the Catamaran plan. Workers on that (and the Yacht) plan will only idle out after 36 hours of inactivity. Apps on the paid plans also have 5 minutes to warm up before AppHarbor starts routing traffic to it, and you get an extra worker unit you can use to scale the app vertically (and get twice as much CPU resources which is often the bottleneck during startup).
I hope this helps, but please don't hesitate to reach out if there's anything else I can help with!
Best,
Rune
rune closed this discussion on 13 Jan, 2018 05:40 AM.