[dask] Improve configuration for port. (#7645)

- Try port 0 to let the OS return the available port.
- Add port configuration.
This commit is contained in:
Jiaming Yuan
2022-02-14 21:34:34 +08:00
committed by GitHub
parent b52c4e13b0
commit 5cd1f71b51
5 changed files with 51 additions and 25 deletions

View File

@@ -478,7 +478,7 @@ interface, including callback functions, custom evaluation metric and objective:
.. _tracker-ip:
***************
Tracker Host IP
Troubleshooting
***************
.. versionadded:: 1.6.0
@@ -499,7 +499,10 @@ dask config is used:
with Client(scheduler_file="sched.json") as client:
reg = dxgb.DaskXGBRegressor()
XGBoost will read configuration before training.
# or we can specify the port too
with dask.config.set({"xgboost.scheduler_address": "192.0.0.100:12345"}):
reg = dxgb.DaskXGBRegressor()
*****************************************************************************
Why is the initialization of ``DaskDMatrix`` so slow and throws weird errors