Specifying all parameters to the YarnCluster constructor every time may be
error prone, especially when sharing this workflow with new users.
Alternatively, you can provide defaults in a configuration file, traditionally
held in ~/.config/dask/yarn.yaml or /etc/dask/yarn.yaml. Note that
this configuration is optional, and only changes the defaults when not
specified in the constructor.

Example:

# /home/username/.config/dask/yarn.yamlyarn:name:dask# Application namequeue:default# Yarn queue to deploy toenvironment:/path/to/my-env.tar.gztags:[]# List of strings to tag applicationsscheduler:# Specifications of scheduler containervcores:1memory:4GiBworker:# Specifications of worker containersvcores:2memory:8GiBcount:0# Number of workers to start on initializationrestarts:-1# Allowed number of restarts, -1 for unlimited

Users can now create YarnClusters without specifying any additional
information.