Skip to content
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

specify labels unique to a process type #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kevin-cantwell
Copy link
Contributor

@kevin-cantwell kevin-cantwell commented Jul 4, 2018

Use env vars that have a pattern like BACKPLANE_LABELS_<proc> to specify unique labels for a process type.

When using multiple process types as web servers, one typically would wish to route traffic differently between them. Since the config is shared across all process types, BACKPLANE_LABELS is insufficient to achieve this.

Eg:

backplane route www.mydomain.com "endpoint=www.mydomain.com"
backplane route admin.mydomain.com "endpoint=admin.mydomain.com"

Procfile:

web: web
admin: admin
worker: worker
BACKPLANE_LABELS_web="endpoint=www.mydomain.com"
BACKPLANE_LABELS_admin="endpoint=admin.mydomain.com"

@kevin-cantwell kevin-cantwell requested a review from bmizerany July 4, 2018 23:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant