| 1 |
distributed: |
| 2 |
version: 2 |
| 3 |
# logging: |
| 4 |
# distributed: info |
| 5 |
# distributed.client: warning |
| 6 |
# bokeh: error |
| 7 |
# # http://stackoverflow.com/questions/21234772/python-tornado-disable-logging-to-stderr |
| 8 |
# tornado: critical |
| 9 |
# tornado.application: error |
| 10 |
|
| 11 |
scheduler: |
| 12 |
allowed-failures: 3 # number of retries before a task is considered bad |
| 13 |
bandwidth: 100000000 # 100 MB/s estimated worker-worker bandwidth |
| 14 |
blocked-handlers: [] |
| 15 |
contact-address: null |
| 16 |
default-data-size: 1kiB |
| 17 |
# Number of seconds to wait until workers or clients are removed from the events log |
| 18 |
# after they have been removed from the scheduler |
| 19 |
events-cleanup-delay: 1h |
| 20 |
idle-timeout: null # Shut down after this duration, like "1h" or "30 minutes" |
| 21 |
transition-log-length: 100000 |
| 22 |
events-log-length: 100000 |
| 23 |
work-stealing: True # workers should steal tasks from each other |
| 24 |
work-stealing-interval: 100ms # Callback time for work stealing |
| 25 |
worker-saturation: 1.1 # Send this fraction of nthreads root tasks to workers |
| 26 |
worker-ttl: "5 minutes" # like '60s'. Time to live for workers. They must heartbeat faster than this |
| 27 |
pickle: True # Is the scheduler allowed to deserialize arbitrary bytestrings |
| 28 |
preload: [] # Run custom modules with Scheduler |
| 29 |
preload-argv: [] # See https://docs.dask.org/en/latest/how-to/customize-initialization.html |
| 30 |
unknown-task-duration: 500ms # Default duration for all tasks with unknown durations ("15m", "2h") |
| 31 |
default-task-durations: # How long we expect function names to run ("1h", "1s") (helps for long tasks) |
| 32 |
rechunk-split: 1us |
| 33 |
split-shuffle: 1us |
| 34 |
validate: False # Check scheduler state at every step for debugging |
| 35 |
dashboard: |
| 36 |
status: |
| 37 |
task-stream-length: 1000 |
| 38 |
tasks: |
| 39 |
task-stream-length: 100000 |
| 40 |
tls: |
| 41 |
ca-file: null |
| 42 |
key: null |
| 43 |
cert: null |
| 44 |
bokeh-application: # keywords to pass to BokehTornado application |
| 45 |
allow_websocket_origin: ["*"] |
| 46 |
keep_alive_milliseconds: 500 |
| 47 |
check_unused_sessions_milliseconds: 500 |
| 48 |
locks: |
| 49 |
lease-validation-interval: 10s # The interval in which the scheduler validates staleness of all acquired leases. Must always be smaller than the lease-timeout itself. |
| 50 |
lease-timeout: 30s # Maximum interval to wait for a Client refresh before a lease is invalidated and released. |
| 51 |
|
| 52 |
http: |
| 53 |
routes: |
| 54 |
- distributed.http.scheduler.prometheus |
| 55 |
- distributed.http.scheduler.info |
| 56 |
- distributed.http.scheduler.json |
| 57 |
- distributed.http.health |
| 58 |
- distributed.http.proxy |
| 59 |
- distributed.http.statics |
| 60 |
|
| 61 |
allowed-imports: |
| 62 |
- dask |
| 63 |
- distributed |
| 64 |
|
| 65 |
active-memory-manager: |
| 66 |
# Set to true to auto-start the Active Memory Manager on Scheduler start; if false |
| 67 |
# you'll have to either manually start it with client.amm.start() or run it once |
| 68 |
# with client.amm.run_once(). |
| 69 |
start: true |
| 70 |
|
| 71 |
# Once started, run the AMM cycle every <interval> |
| 72 |
interval: 2s |
| 73 |
|
| 74 |
# Memory measure to use. Must be one of the attributes of |
| 75 |
# distributed.scheduler.MemoryState. |
| 76 |
measure: optimistic |
| 77 |
|
| 78 |
# Policies that should be executed at every cycle. Any additional keys in each |
| 79 |
# object are passed as keyword arguments to the policy constructor. |
| 80 |
policies: |
| 81 |
- class: distributed.active_memory_manager.ReduceReplicas |
| 82 |
|
| 83 |
worker: |
| 84 |
blocked-handlers: [] |
| 85 |
multiprocessing-method: spawn |
| 86 |
use-file-locking: True |
| 87 |
transfer: |
| 88 |
message-bytes-limit: 50MB |
| 89 |
connections: # Maximum concurrent connections for data |
| 90 |
outgoing: 50 # This helps to control network saturation |
| 91 |
incoming: 10 |
| 92 |
preload: [] # Run custom modules with Worker |
| 93 |
preload-argv: [] # See https://docs.dask.org/en/latest/how-to/customize-initialization.html |
| 94 |
daemon: True |
| 95 |
validate: False # Check worker state at every step for debugging |
| 96 |
resources: {} # Key: value pairs specifying worker resources. |
| 97 |
lifetime: |
| 98 |
duration: null # Time after which to gracefully shutdown the worker |
| 99 |
stagger: 0 seconds # Random amount by which to stagger lifetimes |
| 100 |
restart: False # Do we ressurrect the worker after the lifetime deadline? |
| 101 |
|
| 102 |
profile: |
| 103 |
enabled: True # Whether or not to enable profiling |
| 104 |
interval: 10ms # Time between statistical profiling queries |
| 105 |
cycle: 1000ms # Time between starting new profile |
| 106 |
low-level: False # Whether or not to include low-level functions |
| 107 |
# Requires https://github.com/numba/stacktrace |
| 108 |
|
| 109 |
memory: |
| 110 |
# When there is an increase in process memory (as observed by the operating |
| 111 |
# system) that is not accounted for by the dask keys stored on the worker, ignore |
| 112 |
# it for this long before considering it in non-critical memory measures. |
| 113 |
# This should be set to be longer than the duration of most dask tasks. |
| 114 |
recent-to-old-time: 30s |
| 115 |
|
| 116 |
rebalance: |
| 117 |
# Memory measure to rebalance upon. Possible choices are: |
| 118 |
# process |
| 119 |
# Total process memory, as measured by the OS. |
| 120 |
# optimistic |
| 121 |
# Managed by dask (instantaneous) + unmanaged (without any increases |
| 122 |
# happened in the last <distributed.worker.memory.recent-to-old-time>). |
| 123 |
# Recommended for use on CPython with large (2MiB+) numpy-based data chunks. |
| 124 |
# managed |
| 125 |
# Only consider the data allocated by dask in RAM. Recommended if RAM is not |
| 126 |
# released in a timely fashion back to the OS after the Python objects are |
| 127 |
# dereferenced, but remains available for reuse by PyMalloc. |
| 128 |
# |
| 129 |
# If this is your problem on Linux, you should alternatively consider |
| 130 |
# setting the MALLOC_TRIM_THRESHOLD_ environment variable (note the final |
| 131 |
# underscore) to a low value; refer to the mallopt man page and to the |
| 132 |
# comments about M_TRIM_THRESHOLD on |
| 133 |
# https://sourceware.org/git/?p=glibc.git;a=blob;f=malloc/malloc.c |
| 134 |
# managed_total |
| 135 |
# Only consider data allocated by dask, including that spilled to disk. |
| 136 |
# Recommended if disk occupation of the spill file is an issue. |
| 137 |
measure: optimistic |
| 138 |
# Fraction of worker process memory at which we start potentially sending |
| 139 |
# data to other workers. Ignored when max_memory is not set. |
| 140 |
sender-min: 0.30 |
| 141 |
# Fraction of worker process memory at which we stop potentially accepting |
| 142 |
# data from other workers. Ignored when max_memory is not set. |
| 143 |
recipient-max: 0.60 |
| 144 |
# Fraction of worker process memory, around the cluster mean, where a worker is |
| 145 |
# neither a sender nor a recipient of data during a rebalance operation. E.g. if |
| 146 |
# the mean cluster occupation is 50%, sender-recipient-gap=0.10 means that only |
| 147 |
# nodes above 55% will donate data and only nodes below 45% will receive them. |
| 148 |
# This helps avoid data from bouncing around the cluster repeatedly. |
| 149 |
# Ignored when max_memory is not set. |
| 150 |
sender-recipient-gap: 0.10 |
| 151 |
|
| 152 |
# Fractions of worker process memory at which we take action to avoid memory |
| 153 |
# blowup. Set any of the values to False to turn off the behavior entirely. |
| 154 |
# All fractions are relative to each worker's memory_limit. |
| 155 |
transfer: 0.10 # fractional size of incoming data transfers where we start |
| 156 |
# throttling incoming data transfers |
| 157 |
target: 0.60 # fraction of managed memory where we start spilling to disk |
| 158 |
spill: 0.70 # fraction of process memory where we start spilling to disk |
| 159 |
pause: 0.80 # fraction of process memory at which we pause worker threads |
| 160 |
terminate: 0.95 # fraction of process memory at which we terminate the worker |
| 161 |
|
| 162 |
# Max size of the spill file on disk (e.g. "10 GB") |
| 163 |
# Set to false for no maximum. |
| 164 |
max-spill: false |
| 165 |
|
| 166 |
# Interval between checks for the spill, pause, and terminate thresholds. |
| 167 |
# The target threshold is checked every time new data is inserted. |
| 168 |
monitor-interval: 100ms |
| 169 |
|
| 170 |
http: |
| 171 |
routes: |
| 172 |
- distributed.http.worker.prometheus |
| 173 |
- distributed.http.health |
| 174 |
- distributed.http.statics |
| 175 |
|
| 176 |
nanny: |
| 177 |
preload: [] # Run custom modules with Nanny |
| 178 |
preload-argv: [] # See https://docs.dask.org/en/latest/how-to/customize-initialization.html |
| 179 |
# Override environment variables after spawning the Worker process. |
| 180 |
# Use whenever you are sure that nothing will read them before the end of the worker |
| 181 |
# initialization. |
| 182 |
environ: {} |
| 183 |
# Override environment variables *before* spawning the Worker initialization. |
| 184 |
# Use for variables that are parsed in or before the worker init. |
| 185 |
# Note that this leaks variables into the nanny process. |
| 186 |
# Read important caveats at |
| 187 |
# https://distributed.dask.org/en/stable/worker.html#nanny. |
| 188 |
pre-spawn-environ: |
| 189 |
# See https://distributed.dask.org/en/stable/worker-memory.html#automatically-trim-memory |
| 190 |
MALLOC_TRIM_THRESHOLD_: 65536 |
| 191 |
# Numpy configuration |
| 192 |
OMP_NUM_THREADS: 1 |
| 193 |
MKL_NUM_THREADS: 1 |
| 194 |
OPENBLAS_NUM_THREADS: 1 |
| 195 |
|
| 196 |
client: |
| 197 |
heartbeat: 5s # Interval between client heartbeats |
| 198 |
scheduler-info-interval: 2s # Interval between scheduler-info updates |
| 199 |
security-loader: null # A callable to load security credentials if none are provided explicitl |
| 200 |
preload: [] # Run custom modules with Client |
| 201 |
preload-argv: [] # See https://docs.dask.org/en/latest/how-to/customize-initialization.html |
| 202 |
|
| 203 |
deploy: |
| 204 |
lost-worker-timeout: 15s # Interval after which to hard-close a lost worker job |
| 205 |
cluster-repr-interval: 500ms # Interval between calls to update cluster-repr for the widget |
| 206 |
|
| 207 |
adaptive: |
| 208 |
interval: 1s # Interval between scaling evaluations |
| 209 |
target-duration: 5s # Time an entire graph calculation is desired to take ("1m", "30m") |
| 210 |
minimum: 0 # Minimum number of workers |
| 211 |
maximum: .inf # Maximum number of workers |
| 212 |
wait-count: 3 # Number of times a worker should be suggested for removal before removing it |
| 213 |
|
| 214 |
comm: |
| 215 |
retry: # some operations (such as gathering data) are subject to re-tries with the below parameters |
| 216 |
count: 0 # the maximum retry attempts. 0 disables re-trying. |
| 217 |
delay: |
| 218 |
min: 1s # the first non-zero delay between re-tries |
| 219 |
max: 20s # the maximum delay between re-tries |
| 220 |
compression: auto |
| 221 |
shard: 64MiB |
| 222 |
offload: 10MiB # Size after which we choose to offload serialization to another thread |
| 223 |
default-scheme: tcp |
| 224 |
socket-backlog: 2048 |
| 225 |
recent-messages-log-length: 0 # number of messages to keep for debugging |
| 226 |
ucx: |
| 227 |
cuda-copy: null # enable cuda-copy |
| 228 |
tcp: null # enable tcp |
| 229 |
nvlink: null # enable cuda_ipc |
| 230 |
infiniband: null # enable Infiniband |
| 231 |
rdmacm: null # enable RDMACM |
| 232 |
create-cuda-context: null # create CUDA context before UCX initialization |
| 233 |
environment: {} # Any other environment settings to |
| 234 |
# be transferred to UCX. Name |
| 235 |
# munging: key-name => UCX_KEY_NAME |
| 236 |
zstd: |
| 237 |
level: 3 # Compression level, between 1 and 22. |
| 238 |
threads: 0 # Threads to use. 0 for single-threaded, -1 to infer from cpu count. |
| 239 |
|
| 240 |
timeouts: |
| 241 |
connect: 30s # time before connecting fails |
| 242 |
tcp: 30s # time before calling an unresponsive connection dead |
| 243 |
|
| 244 |
require-encryption: null # Whether to require encryption on non-local comms |
| 245 |
|
| 246 |
tls: |
| 247 |
ciphers: null # Allowed ciphers, specified as an OpenSSL cipher string. |
| 248 |
min-version: 1.2 # The minimum TLS version supported. |
| 249 |
max-version: null # The maximum TLS version supported. |
| 250 |
ca-file: null # Path to a CA file, in pem format, optional |
| 251 |
scheduler: |
| 252 |
cert: null # Path to certificate file for scheduler. |
| 253 |
key: null # Path to key file for scheduler. Alternatively, the key |
| 254 |
# can be appended to the cert file above, and this field |
| 255 |
# left blank. |
| 256 |
worker: |
| 257 |
key: null |
| 258 |
cert: null |
| 259 |
client: |
| 260 |
key: null |
| 261 |
cert: null |
| 262 |
|
| 263 |
tcp: |
| 264 |
backend: tornado # The backend to use for TCP, one of {tornado, asyncio} |
| 265 |
|
| 266 |
websockets: |
| 267 |
shard: 8MiB |
| 268 |
|
| 269 |
diagnostics: |
| 270 |
nvml: True |
| 271 |
computations: |
| 272 |
max-history: 100 |
| 273 |
ignore-modules: |
| 274 |
- distributed |
| 275 |
- dask |
| 276 |
- xarray |
| 277 |
- cudf |
| 278 |
- cuml |
| 279 |
- prefect |
| 280 |
- xgboost |
| 281 |
erred-tasks: |
| 282 |
max-history: 100 |
| 283 |
|
| 284 |
################### |
| 285 |
# Bokeh dashboard # |
| 286 |
################### |
| 287 |
|
| 288 |
dashboard: |
| 289 |
link: "{scheme}://{host}:{port}/status" |
| 290 |
export-tool: False |
| 291 |
graph-max-items: 5000 # maximum number of tasks to try to plot in graph view |
| 292 |
prometheus: |
| 293 |
namespace: "dask" |
| 294 |
|
| 295 |
################## |
| 296 |
# Administrative # |
| 297 |
################## |
| 298 |
|
| 299 |
admin: |
| 300 |
tick: |
| 301 |
interval: 20ms # time between event loop health checks |
| 302 |
limit: 3s # time allowed before triggering a warning |
| 303 |
cycle: 1s # time between checking event loop speed |
| 304 |
|
| 305 |
max-error-length: 10000 # Maximum size traceback after error to return |
| 306 |
log-length: 10000 # default length of logs to keep in memory |
| 307 |
log-format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s' |
| 308 |
pdb-on-err: False # enter debug mode on scheduling error |
| 309 |
system-monitor: |
| 310 |
interval: 500ms |
| 311 |
disk: true # Monitor host-wide disk I/O |
| 312 |
host-cpu: false # Monitor host-wide CPU usage, with very granular breakdown |
| 313 |
event-loop: tornado |
| 314 |
rmm: |
| 315 |
pool-size: null |