How do I switch the dyno hosts for apps in Common Runtime and Private Spaces?

Issue

I'm seeing poor response times/performance issues with a single dyno.

Resolution

When we encounter a scenario/situation where a single dyno has has poor response times/performance issues, the best thing to do is to restart that dyno with heroku restart web.<dyno-id>(where <dyno-id> is the id of whichever dyno is affected). That will cause the dyno to be replaced with a new one running on a different host.

$ heroku restart web.1

heroku restart is an alias of heroku ps:restart.

However, this command replaces dyno hosts only for apps in Common Runtime. For Private Space apps, we should use ps:kill or ps:stop:

  • heroku ps:restart web.1: Restarts web.1 onto the same runtime instance.

  • heroku ps:stop web.1: Stops the dyno and the runtime instance, provisions a new host and starts the dyno on this new host. This command not just stops but also starts the dyno.

Ask on Stack Overflow

Engage with a community of passionate experts to get the answers you need

Ask on Stack Overflow

Heroku Support

Create a support ticket and our support experts will get back to you

Contact Heroku Support