Debian Codegraph @

debian/dask-config-blocks/distributed-schema.yaml

raw
1 properties:
2 distributed:
3 type: object
4 properties:
5
6 version:
7 type: integer
8
9 scheduler:
10 type: object
11 properties:
12
13 allowed-failures:
14 type: integer
15 minimum: 0
16 description: |
17 The number of retries before a task is considered bad
18
19 When a worker dies when a task is running that task is rerun elsewhere.
20 If many workers die while running this same task then we call the task bad, and raise a KilledWorker exception.
21 This is the number of workers that are allowed to die before this task is marked as bad.
22
23 bandwidth:
24 type:
25 - integer
26 - string
27 description: |
28 The expected bandwidth between any pair of workers
29
30 This is used when making scheduling decisions.
31 The scheduler will use this value as a baseline, but also learn it over time.
32
33 blocked-handlers:
34 type: array
35 description: |
36 A list of handlers to exclude
37
38 The scheduler operates by receiving messages from various workers and clients
39 and then performing operations based on those messages.
40 Each message has an operation like "close-worker" or "task-finished".
41 In some high security situations administrators may choose to block certain handlers
42 from running. Those handlers can be listed here.
43
44 For a list of handlers see the `dask.distributed.Scheduler.handlers` attribute.
45
46 contact-address:
47 type:
48 - string
49 - "null"
50 description: |
51 The address that the scheduler advertises to workers for communication with it.
52
53 To be specified when the address to which the scheduler binds cannot be the same
54 as the address that workers use to contact the scheduler (e.g. because the former
55 is private and the scheduler is in a different network than the workers).
56
57 default-data-size:
58 type:
59 - string
60 - integer
61 description: |
62 The default size of a piece of data if we don't know anything about it.
63
64 This is used by the scheduler in some scheduling decisions
65
66 events-cleanup-delay:
67 type: string
68 description: |
69 The amount of time to wait until workers or clients are removed from the event log
70 after they have been removed from the scheduler
71
72 idle-timeout:
73 type:
74 - string
75 - "null"
76 description: |
77 Shut down the scheduler after this duration if no activity has occurred
78
79 This can be helpful to reduce costs and stop zombie processes from roaming the earth.
80
81 transition-log-length:
82 type: integer
83 minimum: 0
84 description: |
85 How long should we keep the transition log
86
87 Every time a task transitions states (like "waiting", "processing", "memory", "released")
88 we record that transition in a log.
89
90 To make sure that we don't run out of memory
91 we will clear out old entries after a certain length.
92 This is that length.
93
94 events-log-length:
95 type: integer
96 minimum: 0
97 description: |
98 How long should we keep the events log
99
100 All events (e.g. worker heartbeat) are stored in the events log.
101
102 To make sure that we don't run out of memory
103 we will clear out old entries after a certain length.
104 This is that length.
105
106 work-stealing:
107 type: boolean
108 description: |
109 Whether or not to balance work between workers dynamically
110
111 Some times one worker has more work than we expected.
112 The scheduler will move these tasks around as necessary by default.
113 Set this to false to disable this behavior
114
115 work-stealing-interval:
116 type: string
117 description: |
118 How frequently to balance worker loads
119
120 worker-saturation:
121 oneOf:
122 - type: number
123 exclusiveMinimum: 0
124 # String "inf", not to be confused with .inf which in YAML means float
125 # infinity. This is necessary because there's no way to parse a float
126 # infinity from a DASK_* environment variable.
127 - enum: [inf]
128 description: |
129 Controls how many root tasks are sent to workers (like a `readahead`).
130
131 Up to worker-saturation * nthreads root tasks are sent to a
132 worker at a time. If `.inf`, all runnable tasks are immediately sent to workers.
133 The target number is rounded up, so any `worker-saturation` value > 1.0 guarantees
134 at least one extra task will be sent to workers.
135
136 Allowing oversaturation (> 1.0) means a worker may start running a new root task as
137 soon as it completes the previous, even if there is a higher-priority downstream task
138 to run. This reduces worker idleness, by letting workers do something while waiting for
139 further instructions from the scheduler, even if it's not the most efficient
140 thing to do.
141
142 This generally comes at the expense of increased memory usage. It leads to "wider"
143 (more breadth-first) execution of the graph.
144
145 Compute-bound workloads may benefit from oversaturation. Memory-bound workloads should
146 generally leave `worker-saturation` at 1.0, though 1.25-1.5 could slightly improve
147 performance if ample memory is available.
148
149 worker-ttl:
150 type:
151 - string
152 - "null"
153 description: |
154 Time to live for workers.
155
156 If we don't receive a heartbeat faster than this then we assume that the worker has died.
157
158 pickle:
159 type: boolean
160 description: |
161 Is the scheduler allowed to deserialize arbitrary bytestrings?
162
163 The scheduler almost never deserializes user data.
164 However there are some cases where the user can submit functions to run directly on the scheduler.
165 This can be convenient for debugging, but also introduces some security risk.
166 By setting this to false we ensure that the user is unable to run arbitrary code on the scheduler.
167
168 preload:
169 type: array
170 description: |
171 Run custom modules during the lifetime of the scheduler
172
173 You can run custom modules when the scheduler starts up and closes down.
174 See https://docs.dask.org/en/latest/how-to/customize-initialization.html for more information
175
176 preload-argv:
177 type: array
178 description: |
179 Arguments to pass into the preload scripts described above
180
181 See https://docs.dask.org/en/latest/how-to/customize-initialization.html for more information
182
183 unknown-task-duration:
184 type: string
185 description: |
186 Default duration for all tasks with unknown durations
187
188 Over time the scheduler learns a duration for tasks.
189 However when it sees a new type of task for the first time it has to make a guess
190 as to how long it will take. This value is that guess.
191
192 default-task-durations:
193 type: object
194 description: |
195 How long we expect function names to run
196
197 Over time the scheduler will learn these values, but these give it a good starting point.
198
199 validate:
200 type: boolean
201 description: |
202 Whether or not to run consistency checks during execution.
203 This is typically only used for debugging.
204
205 dashboard:
206 type: object
207 description: |
208 Configuration options for Dask's real-time dashboard
209
210 properties:
211 status:
212 type: object
213 description: The main status page of the dashboard
214 properties:
215 task-stream-length:
216 type: integer
217 minimum: 0
218 description: |
219 The maximum number of tasks to include in the task stream plot
220 tasks:
221 type: object
222 description: |
223 The page which includes the full task stream history
224 properties:
225 task-stream-length:
226 type: integer
227 minimum: 0
228 description: |
229 The maximum number of tasks to include in the task stream plot
230 tls:
231 type: object
232 description: |
233 Settings around securing the dashboard
234 properties:
235 ca-file:
236 type:
237 - string
238 - "null"
239 key:
240 type:
241 - string
242 - "null"
243 cert:
244 type:
245 - string
246 - "null"
247 bokeh-application:
248 type: object
249 description: |
250 Keywords to pass to the BokehTornado application
251 locks:
252 type: object
253 description: |
254 Settings for Dask's distributed Lock object
255
256 See https://docs.dask.org/en/latest/futures.html#locks for more information
257 properties:
258 lease-validation-interval:
259 type: string
260 description: |
261 The interval in which the scheduler validates staleness of all acquired leases. Must always be smaller than the lease-timeout itself.
262 lease-timeout:
263 type: string
264 description: |
265 Maximum interval to wait for a Client refresh before a lease is invalidated and released.
266
267 http:
268 type: object
269 description: Settings for Dask's embedded HTTP Server
270 properties:
271 routes:
272 type: array
273 description: |
274 A list of modules like "prometheus" and "health" that can be included or excluded as desired
275
276 These modules will have a ``routes`` keyword that gets added to the main HTTP Server.
277 This is also a list that can be extended with user defined modules.
278
279 allowed-imports:
280 type: array
281 description: |
282 A list of trusted root modules the schedular is allowed to import (incl. submodules). For security reasons, the
283 scheduler does not import arbitrary Python modules.
284
285 active-memory-manager:
286 type: object
287 required: [start, interval, measure, policies]
288 additionalProperties: false
289 properties:
290 start:
291 type: boolean
292 description: set to true to auto-start the AMM on Scheduler init
293 interval:
294 type: string
295 description:
296 Time expression, e.g. "2s". Run the AMM cycle every <interval>.
297 measure:
298 enum:
299 - process
300 - optimistic
301 - managed
302 - managed_total
303 description:
304 One of the attributes of distributed.scheduler.MemoryState
305 policies:
306 type: array
307 items:
308 type: object
309 required: [class]
310 properties:
311 class:
312 type: string
313 description: fully qualified name of an ActiveMemoryManagerPolicy
314 subclass
315 additionalProperties:
316 description: keyword arguments to the policy constructor, if any
317
318 worker:
319 type: object
320 description: |
321 Configuration settings for Dask Workers
322 properties:
323 blocked-handlers:
324 type: array
325 description: |
326 A list of handlers to exclude
327
328 The scheduler operates by receiving messages from various workers and clients
329 and then performing operations based on those messages.
330 Each message has an operation like "close-worker" or "task-finished".
331 In some high security situations administrators may choose to block certain handlers
332 from running. Those handlers can be listed here.
333
334 For a list of handlers see the `dask.distributed.Scheduler.handlers` attribute.
335
336 multiprocessing-method:
337 enum:
338 - spawn
339 - fork
340 - forkserver
341 description: |
342 How we create new workers, one of "spawn", "forkserver", or "fork"
343
344 This is passed to the ``multiprocessing.get_context`` function.
345 use-file-locking:
346 type: boolean
347 description: |
348 Whether or not to use lock files when creating workers
349
350 Workers create a local directory in which to place temporary files.
351 When many workers are created on the same process at once
352 these workers can conflict with each other by trying to create this directory all at the same time.
353
354 To avoid this, Dask usually used a file-based lock.
355 However, on some systems file-based locks don't work.
356 This is particularly common on HPC NFS systems, where users may want to set this to false.
357 transfer:
358 type: object
359 description: |
360 Configuration setting for data transfer between workers
361 properties:
362 message-bytes-limit:
363 type:
364 - string
365 - integer
366 description: |
367 The maximum amount of data for a worker to request from another in a single gather operation
368
369 Tasks are gathered in batches, and if the first task in a batch is larger than this value,
370 the task will still be gathered to ensure progress. Hence, this limit is not absolute.
371 Note that this limit applies to a single gather operation and a worker may gather data from
372 multiple workers in parallel.
373 connections:
374 type: object
375 description: |
376 The number of concurrent connections to allow to other workers
377 properties:
378 incoming:
379 type: integer
380 minimum: 0
381 outgoing:
382 type: integer
383 minimum: 0
384
385 preload:
386 type: array
387 description: |
388 Run custom modules during the lifetime of the worker
389
390 You can run custom modules when the worker starts up and closes down.
391 See https://docs.dask.org/en/latest/how-to/customize-initialization.html for more information
392
393 preload-argv:
394 type: array
395 description: |
396 Arguments to pass into the preload scripts described above
397
398 See https://docs.dask.org/en/latest/how-to/customize-initialization.html for more information
399
400 daemon:
401 type: boolean
402 description: |
403 Whether or not to run our process as a daemon process
404
405 validate:
406 type: boolean
407 description: |
408 Whether or not to run consistency checks during execution.
409 This is typically only used for debugging.
410
411 resources:
412 type: object
413 description: |
414 A dictionary specifying resources for workers.
415
416 See https://distributed.dask.org/en/latest/resources.html for more information.
417 properties: {}
418
419 lifetime:
420 type: object
421 description: |
422 The worker may choose to gracefully close itself down after some pre-determined time.
423
424 This is particularly useful if you know that your worker job has a time limit on it.
425 This is particularly common in HPC job schedulers.
426
427 For example if your worker has a walltime of one hour,
428 then you may want to set the lifetime.duration to "55 minutes"
429 properties:
430 duration:
431 type:
432 - string
433 - "null"
434 description: |
435 The time after creation to close the worker, like "1 hour"
436 stagger:
437 type: string
438 description: |
439 Random amount by which to stagger lifetimes
440
441 If you create many workers at the same time,
442 you may want to avoid having them kill themselves all at the same time.
443 To avoid this you might want to set a stagger time,
444 so that they close themselves with some random variation, like "5 minutes"
445
446 That way some workers can die, new ones can be brought up,
447 and data can be transferred over smoothly.
448 restart:
449 type: boolean
450 description: |
451 Do we try to resurrect the worker after the lifetime deadline?
452
453
454 profile:
455 type: object
456 description: |
457 The workers periodically poll every worker thread to see what they are working on.
458 This data gets collected into statistical profiling information,
459 which is then periodically bundled together and sent along to the scheduler.
460 properties:
461 enabled:
462 type: boolean
463 description: |
464 Whether or not to enable profiling
465 interval:
466 type: string
467 description: |
468 The time between polling the worker threads, typically short like 10ms
469 cycle:
470 type: string
471 description: |
472 The time between bundling together this data and sending it to the scheduler
473
474 This controls the granularity at which people can query the profile information
475 on the time axis.
476 low-level:
477 type: boolean
478 description: |
479 Whether or not to use the libunwind and stacktrace libraries
480 to gather profiling information at the lower level (beneath Python)
481
482 To get this to work you will need to install the experimental stacktrace library at
483
484 conda install -c numba stacktrace
485
486 See https://github.com/numba/stacktrace
487
488 memory:
489 type: object
490 description: >-
491 Settings for memory management
492 properties:
493 recent-to-old-time:
494 type: string
495 description: >-
496 When there is an increase in process memory (as observed by the
497 operating system) that is not accounted for by the dask keys stored on
498 the worker, ignore it for this long before considering it in
499 non-time-sensitive heuristics. This should be set to be longer than
500 the duration of most dask tasks.
501 rebalance:
502 type: object
503 description: >-
504 Settings for memory rebalance operations
505 properties:
506 measure:
507 enum:
508 - process
509 - optimistic
510 - managed
511 - managed_total
512 description: >-
513 Which of the properties of distributed.scheduler.MemoryState
514 should be used for measuring worker memory usage
515 sender-min:
516 type: number
517 minimum: 0
518 maximum: 1
519 description: >-
520 Fraction of worker process memory at which we start potentially
521 transferring data to other workers.
522 recipient-max:
523 type: number
524 minimum: 0
525 maximum: 1
526 description: >-
527 Fraction of worker process memory at which we stop potentially
528 receiving data from other workers. Ignored when max_memory is not
529 set.
530 sender-recipient-gap:
531 type: number
532 minimum: 0
533 maximum: 1
534 description: >-
535 Fraction of worker process memory, around the cluster mean, where
536 a worker is neither a sender nor a recipient of data during a
537 rebalance operation. E.g. if the mean cluster occupation is 50%,
538 sender-recipient-gap=0.1 means that only nodes above 55% will
539 donate data and only nodes below 45% will receive them. This helps
540 avoid data from bouncing around the cluster repeatedly.
541
542 transfer:
543 oneOf:
544 - {type: number, exclusiveMinimum: 0, maximum: 1}
545 - {enum: [false]}
546 description: >-
547 When the total size of incoming data transfers gets above this amount,
548 we start throttling incoming data transfers
549
550 target:
551 oneOf:
552 - {type: number, exclusiveMinimum: 0, maximum: 1}
553 - {enum: [false]}
554 description: >-
555 When the process memory (as observed by the operating system) gets
556 above this amount, we start spilling the dask keys holding the oldest
557 chunks of data to disk
558
559 spill:
560 oneOf:
561 - {type: number, exclusiveMinimum: 0, maximum: 1}
562 - {enum: [false]}
563 description: >-
564 When the process memory (as observed by the operating system) gets
565 above this amount, we spill data to disk, starting from the dask keys
566 holding the oldest chunks of data, until the process memory falls below
567 the target threshold.
568
569 pause:
570 oneOf:
571 - {type: number, exclusiveMinimum: 0, maximum: 1}
572 - {enum: [false]}
573 description: >-
574 When the process memory (as observed by the operating system) gets
575 above this amount, we no longer start new tasks or fetch new
576 data on the worker.
577
578 terminate:
579 oneOf:
580 - {type: number, exclusiveMinimum: 0, maximum: 1}
581 - {enum: [false]}
582 description: >-
583 When the process memory reaches this level the nanny process will kill
584 the worker (if a nanny is present)
585
586 max-spill:
587 oneOf:
588 - type: string
589 - {type: number, minimum: 0}
590 - enum: [false]
591 description: >-
592 Limit of number of bytes to be spilled on disk.
593
594 monitor-interval:
595 type: string
596 description: >-
597 Interval between checks for the spill, pause, and terminate thresholds
598
599 http:
600 type: object
601 description: Settings for Dask's embedded HTTP Server
602 properties:
603 routes:
604 type: array
605 description: |
606 A list of modules like "prometheus" and "health" that can be included or excluded as desired
607
608 These modules will have a ``routes`` keyword that gets added to the main HTTP Server.
609 This is also a list that can be extended with user defined modules.
610
611 nanny:
612 type: object
613 description: |
614 Configuration settings for Dask Nannies
615 properties:
616
617 preload:
618 type: array
619 description: |
620 Run custom modules during the lifetime of the nanny
621
622 You can run custom modules when the nanny starts up and closes down.
623 See https://docs.dask.org/en/latest/how-to/customize-initialization.html for more information
624
625 preload-argv:
626 type: array
627 description: |
628 Arguments to pass into the preload scripts described above
629
630 See https://docs.dask.org/en/latest/how-to/customize-initialization.html for more information
631
632 environ:
633 type: object
634 description: |
635 Environment variables to set on all worker processes started by nannies.
636 These variables are set in the worker process after it has started.
637
638 pre-spawn-environ:
639 type: object
640 description: |
641 Environment variables to set on all worker processes started by nannies.
642 These variables are set within the Nanny process,
643 before spawning the worker process.
644 Should be used for variables that must be set before
645 process startup, interpreter startup, or imports.
646
647 client:
648 type: object
649 description: |
650 Configuration settings for Dask Clients
651
652 properties:
653 heartbeat:
654 type: string
655 description:
656 This value is the time between heartbeats
657
658 The client sends a periodic heartbeat message to the scheduler.
659 If it misses enough of these then the scheduler assumes that it has gone.
660
661 scheduler-info-interval:
662 type: string
663 description: Interval between scheduler-info updates
664
665 security-loader:
666 type: [string, 'null']
667 description: |
668 A fully qualified name (e.g. ``module.submodule.function``) of
669 a callback to use for loading security credentials for the
670 client. If no security object is explicitly passed when creating
671 a ``Client``, this callback is called with a dict containing
672 client information (currently just ``address``), and should
673 return a ``Security`` object to use for this client, or ``None``
674 to fallback to the default security configuration.
675 preload:
676 type: array
677 description: |
678 Run custom modules during the lifetime of the client
679
680 You can run custom modules when the client starts up and closes down.
681 See https://docs.dask.org/en/latest/how-to/customize-initialization.html for more information
682
683 preload-argv:
684 type: array
685 description: |
686 Arguments to pass into the preload scripts described above
687
688 See https://docs.dask.org/en/latest/how-to/customize-initialization.html for more information
689
690
691 deploy:
692 type: object
693 description: Configuration settings for general Dask deployment
694 properties:
695 lost-worker-timeout:
696 type: string
697 description: |
698 Interval after which to hard-close a lost worker job
699
700 Otherwise we wait for a while to see if a worker will reappear
701
702 cluster-repr-interval:
703 type: string
704 description: Interval between calls to update cluster-repr for the widget
705
706 adaptive:
707 type: object
708 description: Configuration settings for Dask's adaptive scheduling
709 properties:
710 interval:
711 type: string
712 description: |
713 The duration between checking in with adaptive scheduling load
714
715 The adaptive system periodically checks scheduler load and determines
716 if it should scale the cluster up or down.
717 This is the timing between those checks.
718
719 target-duration:
720 type: string
721 description: |
722 The desired time for the entire computation to run
723
724 The adaptive system will try to start up enough workers to run
725 the computation in about this time.
726
727 minimum:
728 type: integer
729 minimum: 0
730 description: |
731 The minimum number of workers to keep around
732
733 maximum:
734 type: number
735 minimum: 0
736 description: |
737 The maximum number of workers to keep around
738
739 wait-count:
740 type: integer
741 minimum: 1
742 description: |
743 The number of times a worker should be suggested for removal before removing it
744
745 This helps to smooth out the number of deployed workers
746
747 comm:
748 type: object
749 description: Configuration settings for Dask communications
750 properties:
751
752 retry:
753 type: object
754 description: |
755 Some operations (such as gathering data) are subject to re-tries with the below parameters
756 properties:
757
758 count:
759 type: integer
760 minimum: 0
761 description: |
762 The number of times to retry a connection
763
764 delay:
765 type: object
766 properties:
767 min:
768 type: string
769 description: The first non-zero delay between retry attempts
770 max:
771 type: string
772 description: The maximum delay between retries
773
774 compression:
775 type: string
776 description: |
777 The compression algorithm to use
778
779 This could be one of lz4, snappy, zstd
780
781 offload:
782 type:
783 - boolean
784 - string
785 description: |
786 The size of message after which we choose to offload serialization to another thread
787
788 In some cases, you may also choose to disable this altogether with the value false
789 This is useful if you want to include serialization in profiling data,
790 or if you have data types that are particularly sensitive to deserialization
791
792 shard:
793 type: string
794 description: |
795 The maximum size of a frame to send through a comm
796
797 Some network infrastructure doesn't like sending through very large messages.
798 Dask comms will cut up these large messages into many small ones.
799 This attribute determines the maximum size of such a shard.
800
801 socket-backlog:
802 type: integer
803 description: |
804 When shuffling data between workers, there can
805 really be O(cluster size) connection requests
806 on a single worker socket, make sure the backlog
807 is large enough not to lose any.
808
809 zstd:
810 type: object
811 description: Options for the Z Standard compression scheme
812 properties:
813 level:
814 type: integer
815 minimum: 1
816 maximum: 22
817 description: Compression level, between 1 and 22.
818 threads:
819 type: integer
820 minimum: -1
821 description: |
822 Number of threads to use.
823
824 0 for single-threaded, -1 to infer from cpu count.
825
826 timeouts:
827 type: object
828 properties:
829 connect:
830 type: string
831 tcp:
832 type: string
833
834 require-encryption:
835 type:
836 - boolean
837 - "null"
838 description: |
839 Whether to require encryption on non-local comms
840
841 default-scheme:
842 type: string
843 description: The default protocol to use, like tcp or tls
844
845 recent-messages-log-length:
846 type: integer
847 minimum: 0
848 description: number of messages to keep for debugging
849
850 tls:
851 type: object
852 properties:
853 ciphers:
854 type:
855 - string
856 - "null"
857 description: Allowed ciphers, specified as an OpenSSL cipher string.
858
859 min-version:
860 enum: [null, 1.2, 1.3]
861 description: The minimum TLS version to support. Defaults to TLS 1.2.
862
863 max-version:
864 enum: [null, 1.2, 1.3]
865 description: |
866 The maximum TLS version to support. Defaults to the maximum
867 version supported by the platform.
868
869 ca-file:
870 type:
871 - string
872 - "null"
873 description: Path to a CA file, in pem format
874
875 scheduler:
876 type: object
877 description: TLS information for the scheduler
878 properties:
879 cert:
880 type:
881 - string
882 - "null"
883 description: Path to certificate file
884 key:
885 type:
886 - string
887 - "null"
888 description: |
889 Path to key file.
890
891 Alternatively, the key can be appended to the cert file
892 above, and this field left blank
893
894 worker:
895 type: object
896 description: TLS information for the worker
897 properties:
898 cert:
899 type:
900 - string
901 - "null"
902 description: Path to certificate file
903 key:
904 type:
905 - string
906 - "null"
907 description: |
908 Path to key file.
909
910 Alternatively, the key can be appended to the cert file
911 above, and this field left blank
912
913 client:
914 type: object
915 description: TLS information for the client
916 properties:
917 cert:
918 type:
919 - string
920 - "null"
921 description: Path to certificate file
922 key:
923 type:
924 - string
925 - "null"
926 description: |
927 Path to key file.
928
929 Alternatively, the key can be appended to the cert file
930 above, and this field left blank
931
932 ucx:
933 type: object
934 description: |
935 UCX provides access to other transport methods including NVLink and InfiniBand.
936 properties:
937 cuda-copy:
938 type: [boolean, 'null']
939 description: |
940 Set environment variables to enable CUDA support over UCX. This may be used even if
941 InfiniBand and NVLink are not supported or disabled, then transferring data over TCP.
942 tcp:
943 type: [boolean, 'null']
944 description: |
945 Set environment variables to enable TCP over UCX, even if InfiniBand and NVLink
946 are not supported or disabled.
947 nvlink:
948 type: [boolean, 'null']
949 description: |
950 Set environment variables to enable UCX over NVLink, implies ``distributed.comm.ucx.tcp=True``.
951 infiniband:
952 type: [boolean, 'null']
953 description: |
954 Set environment variables to enable UCX over InfiniBand, implies ``distributed.comm.ucx.tcp=True``.
955 rdmacm:
956 type: [boolean, 'null']
957 description: |
958 Set environment variables to enable UCX RDMA connection manager support,
959 requires ``distributed.comm.ucx.infiniband=True``.
960 create-cuda-context:
961 type: [boolean, 'null']
962 description: |
963 Creates a CUDA context before UCX is initialized. This is necessary to enable UCX to
964 properly identify connectivity of GPUs with specialized networking hardware, such as
965 InfiniBand. This permits UCX to choose transports automatically, without specifying
966 additional variables for each transport, while ensuring optimal connectivity. When
967 ``True``, a CUDA context will be created on the first device listed in
968 ``CUDA_VISIBLE_DEVICES``.
969 environment:
970 type: object
971 description: |
972 Mapping for setting arbitrary UCX environment variables.
973 Names here are translated via the following rules to
974 map to the relevant UCX environment variable:
975 - hyphens are replaced with underscores
976 - words are uppercased
977 - UCX_ is prepended
978 So, for example, setting ``some-option=value`` is
979 equivalent to setting ``UCX_SOME_OPTION=value`` in
980 the calling environment.
981
982 For a full list of supported UCX environment
983 variables, run ``ucx_info -f``.
984 tcp:
985 type: object
986 properties:
987 backend:
988 type: string
989 description: |
990 The TCP backend implementation to use. Must be either `tornado` or `asyncio`.
991
992 websockets:
993 type: object
994 properties:
995 shard:
996 type:
997 - string
998 description: |
999 The maximum size of a websocket frame to send through a comm.
1000
1001 This is somewhat duplicative of distributed.comm.shard, but websockets
1002 often have much smaller maximum message sizes than other protocols, so
1003 this attribute is used to set a smaller default shard size and to
1004 allow separate control of websocket message sharding.
1005
1006 diagnostics:
1007 type: object
1008 properties:
1009 nvml:
1010 type: boolean
1011 description: |
1012 If ``True``, enables GPU diagnostics with NVML. Generally leaving it enabled is
1013 not a problem and will be automatically disabled if no GPUs are found in the
1014 system, but in certain cases it may be desirable to completely disable NVML
1015 diagnostics.
1016 computations:
1017 type: object
1018 properties:
1019 max-history:
1020 type: integer
1021 minimum: 0
1022 description: |
1023 The maximum number of Computations to remember.
1024 ignore-modules:
1025 type: array
1026 description: |
1027 A list of modules which are ignored when trying to collect the
1028 code context when submitting a computation. Accepts regular
1029 expressions.
1030 erred-tasks:
1031 type: object
1032 properties:
1033 max-history:
1034 type: integer
1035 minimum: 0
1036 description: |
1037 The maximum number of erred tasks to remember.
1038
1039 dashboard:
1040 type: object
1041 properties:
1042 link:
1043 type: string
1044 description: |
1045 The form for the dashboard links
1046
1047 This is used wherever we print out the link for the dashboard
1048 It is filled in with relevant information like the schema, host, and port number
1049 graph-max-items:
1050 type: integer
1051 minimum: 0
1052 description: maximum number of tasks to try to plot in "graph" view
1053
1054 export-tool:
1055 type: boolean
1056
1057 prometheus:
1058 type: object
1059 properties:
1060 namespace:
1061 type: string
1062 description: Namespace prefix to use for all prometheus metrics.
1063
1064 admin:
1065 type: object
1066 description: |
1067 Options for logs, event loops, and so on
1068 properties:
1069 tick:
1070 type: object
1071 description: |
1072 Time between event loop health checks
1073
1074 We set up a periodic callback to run on the event loop and check in fairly frequently.
1075 (by default, this is every 20 milliseconds)
1076
1077 If this periodic callback sees that the last time it checked in was several seconds ago
1078 (by default, this is 3 seconds)
1079 then it logs a warning saying that something has been stopping the event loop from smooth operation.
1080 This is typically caused by GIL holding operations,
1081 but could also be several other things.
1082
1083 properties:
1084 interval:
1085 type: string
1086 description: The time between ticks, default 20ms
1087 limit :
1088 type: string
1089 description: The time allowed before triggering a warning
1090 cycle :
1091 type: string
1092 description: The time in between verifying event loop speed
1093
1094 max-error-length:
1095 type: integer
1096 minimum: 0
1097 description: |
1098 Maximum length of traceback as text
1099
1100 Some Python tracebacks can be very very long
1101 (particularly in stack overflow errors)
1102
1103 If the traceback is larger than this size (in bytes) then we truncate it.
1104
1105 log-length:
1106 type: integer
1107 minimum: 0
1108 description: |
1109 Default length of logs to keep in memory
1110
1111 The scheduler and workers keep the last 10000 or so log entries in memory.
1112
1113 log-format:
1114 type: string
1115 description: |
1116 The log format to emit.
1117
1118 See https://docs.python.org/3/library/logging.html#logrecord-attributes
1119 event-loop:
1120 type: string
1121 description: |
1122 The event loop to use,
1123
1124 Must be one of tornado, asyncio, or uvloop
1125
1126 pdb-on-err:
1127 type: boolean
1128 description: Enter Python Debugger on scheduling error
1129
1130 system-monitor:
1131 type: object
1132 description: |
1133 Options for the periodic system monitor
1134 properties:
1135 interval:
1136 type: string
1137 description: Polling time to query cpu/memory statistics default 500ms
1138 disk:
1139 type: boolean
1140 description: Should we include disk metrics? (they can cause issues in some systems)
1141 host-cpu:
1142 type: boolean
1143 description: Should we include host-wide CPU usage, with very granular breakdown?
1144
1145 rmm:
1146 type: object
1147 description: |
1148 Configuration options for the RAPIDS Memory Manager.
1149 properties:
1150 pool-size:
1151 type: [integer, 'null']
1152 description: |
1153 The size of the memory pool in bytes.