Dask Worker 配置文件和 Dask Scheduler 配置文件的正确位置在哪里?
Where is the correct location for Dask Worker configuration file and the Dask Scheduler configuration file?
我正在尝试找到 Dask 配置文件的正确位置。我有很多关于配置 Dask 的问题。
$ dask-worker --version
dask-worker, version 2.3.2
Dask Worker 和 Dask Scheduler 共享相同的配置文件还是使用不同的配置文件?
我不清楚是否有特定于 Dask Worker 和 Dask Scheduler 的配置变量。是否有 Dask Worker 和 Dask Scheduler 的有效配置变量列表?
Dask Worker 和 Dask Scheduler 配置文件的正确位置在哪里?
我在我的系统和 Dask 文档中发现了三个不同的配置文件:
~/.config/dask/distributed.yaml
~/.config/dask/dask.yaml
~/.dask/config.yaml
在我的 Dask Worker 和 Dask Scheduler 机器上,我找到一个位于 ~/.config/dask/dask.yaml
的文件,其中不包含太多信息。我不确定该文件中应该包含什么内容,或者 if/where Dask 库曾经调用过它。
我还在 ~/.config/dask/distributed.yaml
看到了一个包含更多信息的文件。这看起来更像我期待的配置。我可以看到这些配置也由 Dask 在 distributed/config.py
中加载
第三个文件 (~/.dask/config.yaml
) 出现在 documentation 中。引用文档:
Dask accepts some configuration options in a configuration file, which by default is a .dask/config.yaml file located in your home directory.
我在我的系统上没有看到这个文件。我负责创建这个配置文件吗?我从未在存储库中看到引用此文件。为什么文档与源代码不同?
我可以为 Worker 和 Scheduler 打印所有活动配置变量的列表吗?
有没有办法在命令行或 Python 中检查活动配置?
有关 Dask 配置系统的文档,请参阅 https://docs.dask.org/en/latest/configuration.html
该页面说:
通过以下方式之一指定配置:
~/.config/dask/
或 /etc/dask/
中的 YAML 文件
- 环境变量如
DASK_DISTRIBUTED__SCHEDULER__WORK_STEALING=True
- 子库中的默认设置
我已经删除了您在此 PR 中查看的页面:https://github.com/dask/distributed/pull/3038
我正在尝试找到 Dask 配置文件的正确位置。我有很多关于配置 Dask 的问题。
$ dask-worker --version
dask-worker, version 2.3.2
Dask Worker 和 Dask Scheduler 共享相同的配置文件还是使用不同的配置文件?
我不清楚是否有特定于 Dask Worker 和 Dask Scheduler 的配置变量。是否有 Dask Worker 和 Dask Scheduler 的有效配置变量列表?
Dask Worker 和 Dask Scheduler 配置文件的正确位置在哪里?
我在我的系统和 Dask 文档中发现了三个不同的配置文件:
~/.config/dask/distributed.yaml
~/.config/dask/dask.yaml
~/.dask/config.yaml
在我的 Dask Worker 和 Dask Scheduler 机器上,我找到一个位于 ~/.config/dask/dask.yaml
的文件,其中不包含太多信息。我不确定该文件中应该包含什么内容,或者 if/where Dask 库曾经调用过它。
我还在 ~/.config/dask/distributed.yaml
看到了一个包含更多信息的文件。这看起来更像我期待的配置。我可以看到这些配置也由 Dask 在 distributed/config.py
第三个文件 (~/.dask/config.yaml
) 出现在 documentation 中。引用文档:
Dask accepts some configuration options in a configuration file, which by default is a .dask/config.yaml file located in your home directory.
我在我的系统上没有看到这个文件。我负责创建这个配置文件吗?我从未在存储库中看到引用此文件。为什么文档与源代码不同?
我可以为 Worker 和 Scheduler 打印所有活动配置变量的列表吗?
有没有办法在命令行或 Python 中检查活动配置?
有关 Dask 配置系统的文档,请参阅 https://docs.dask.org/en/latest/configuration.html
该页面说:
通过以下方式之一指定配置:
~/.config/dask/
或/etc/dask/
中的 YAML 文件
- 环境变量如
DASK_DISTRIBUTED__SCHEDULER__WORK_STEALING=True
- 子库中的默认设置
我已经删除了您在此 PR 中查看的页面:https://github.com/dask/distributed/pull/3038