-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide process type as $DYNO to container #733
Comments
What would this be used for? |
DYNO is a very Heroku-specific concept and albeit modeled after Heroku, Dokku imo does not need to provide the exact same config vars. Deis does not seem to offer the DYNO config var. If your app depends on the DYNO config var, it seems easier to set it as a config var. |
Add the moment that value doesn't do much except to ensure compatibility with a few more buildpacks like https://github.com/dpiddy/heroku-buildpack-runit - should #732 be implement the workaround with a static config var wouldn't work anymore. |
@yabawock do you have a PR for this? |
Seems like we could set this by default - check if set and set it in pre-deploy - and use it here. Thoughts, @michaelshobbs ? I don't know if we have a |
To clarify, we'll modify Do we want the default |
I think we should always have it set and default it to Does heroku rebuild or not? If not, we should not, if so, we should, but we should allow people to do either/or. |
According to https://devcenter.heroku.com/articles/config-vars a restart happens on set and unset. |
So we should at least do a restart (with the env vars sourced in). Is that not what we do now? |
That is what we do now. Should we offer a flag to bypass the restart? If so, why? |
I don't know what I was thinking. Ignore that. |
I'm bumping into this (or related) as well. I use a Procfile in my app to specify multiple worker types.that all need to be running to service the app. This is a rails app that has a web worker and a jobs worker (eg delayed_job) The procfile is in the tree:
For the moment, what I'm doing is manually starting a second docker for it:
But this doesn't seem optimal. It seems like dokku should examine the procfile and do something useful. I don't see the Heroku parallel metaphor here, which is their ps settings on each dyno/worker type. In Heroku you specify the number of each dyno, and type/size you want to run. The numbers arent part of the procfile, they are set via the heroku command.
That is what tells heroku what to do. Is there a dokku idiom for this? |
I use the dokku-logging-supervisor plugin to scale my processes at the moment. |
Thanks for the tip. I just tried it and it works very well! |
@joshco better would be for us to do actual process scaling - which would include this sort of feature. Is this something you're interested in working on? |
Closed by #1118 |
Heroku has a $DYNO environment variable in the container which shows which process from the Procfile is running in the container. It would be nice to have this variable available (even if hardcoded as „web“ like the start command) on Dokku too.
The text was updated successfully, but these errors were encountered: