I tried the code below,
from dask.distributed import Client, LocalCluster
worker_kwargs = {
'memory_limit': '2G',
'memory_target_fraction': 0.6,
'memory_spill_fraction': 0.7,
'memory_pause_fraction': 0.8,
'memory_terminate_fraction': 0.95,
}
cluster = LocalCluster(ip='0.0.0.0', n_workers=8, **worker_kwargs)
but it doesn't work
...
TypeError: __init__() got an unexpected keyword argument 'memory_target_fraction'
What's the right way to call? LocalCluster doesn't seem to care about ~/.config/dask/distributed.yaml
, either.
I've read about these posts: