Add standard mapping option for environment variables.
See original GitHub issueIn our Pangeo deployments, we have a need for setting an environment variable on the workers based on user input. This seems like the kind of thing that would be useful for all backends so I’m raising this here while we’ll implement it on our own in Pangeo for now.
- A widget / traitlet for accepting input from the user in the form of a mapping from
{name: value}
. - A standard dask-gateway config for this option for all backends supported by dask-gateway, which is then forwarded to the appropriate location.
The main downside I see with 2 is that this would make two ways to specify environment variables for each backend. The “dask-gateway” way, and the backend-native way. For kubernetes that would be
gateway:
backend:
worker:
extraContainerConfig:
env:
- name: name
value: value
Is that problematic?
cc @rsignell-usgs and @scottyhq.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Environment variables and app settings in Azure App Service
In Azure App Service, certain settings are available to the deployment or runtime environment as environment variables.
Read more >Environment variables to configure the AWS CLI
Environment variables provide another way to specify configuration options and credentials, and can be useful for scripting or temporarily setting a named ...
Read more >Introduction to environment variables - CircleCI
Use environment variables to set up various configuration options, and keep your set-up secure with secrets, private keys, and contexts.
Read more >Agent Environment Variables - Datadog Docs
Overview. For Agent v6, most of the configuration options in the Agent's main configuration file ( datadog.yaml ) can be set through environment...
Read more >Using Environment Variables in Python for App Configuration ...
Option 1: Required with no default value ... For example, an application should fail to start if a required environment variable is not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ve added a mapping option in #290, will be part of the next release.
We don’t do anything with preload scripts currently.
Also, note that configuration set locally (using
dask.config.set
) isn’t generally picked up by a dask cluster started via any of dask’s clusters tools. If you’re running a cluster that starts the scheduler locally, then the scheduler and client will see your configuration, but the workers will not. Dask-gateway doesn’t run the scheduler locally, so only theClient
will see your local dask configuration. All options on dask-gateway clusters must be either set by administrators, or exposed via cluster options.