# Why does my worker memory limit not increase?

**URL:** https://discourse.itk.org/t/why-does-my-worker-memory-limit-not-increase/3804
**Category:** Engineering
**Tags:** python, dask
**Created:** [January 27, 2021, 3:33pm UTC](https://discourse.itk.org/t/why-does-my-worker-memory-limit-not-increase/3804 "2021-01-27T15:33:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![joeykleingers](https://discourse.itk.org/user_avatar/discourse.itk.org/joeykleingers/32/1876_2.png) [@joeykleingers](https://discourse.itk.org/u/joeykleingers)
#### Post date: [January 27, 2021, 3:33pm UTC](https://discourse.itk.org/t/why-does-my-worker-memory-limit-not-increase/3804/1 "2021-01-27T15:33:16Z")

</div>

I am a Dask newbie trying out the Dask.distributed library, and I would like to create a Client with the worker memory limit set to 4 GB. After some Googling around, I wrote the following code in a Jupyter notebook:

```
from dask.distributed import Client, LocalCluster

local_cluster = LocalCluster(n_workers=5, processes=False, memory_limit='4GB', threads_per_worker=4)
client = Client(local_cluster)
client

```

When I run this code, I get the following output:

```
Client
   Scheduler: inproc://172.17.0.2/3319/1
   Dashboard: http://172.17.0.2:8787/status
Cluster
   Workers: 5
   Cores: 20
   Memory: 10.43 GB

```

Since I set the worker memory limit to 4 GB, I would expect the total cluster memory to be at least 20 GB since I have 5 workers. In fact, if I change the memory limit to any number at all, I still get the same 10.43 GB total. What am I doing wrong?

---

<div class="post-metadata">

### Author: ![dzenanz](https://discourse.itk.org/user_avatar/discourse.itk.org/dzenanz/32/1093_2.png) [@dzenanz](https://discourse.itk.org/u/dzenanz)
#### Post date: [January 27, 2021, 10:50pm UTC](https://discourse.itk.org/t/why-does-my-worker-memory-limit-not-increase/3804/2 "2021-01-27T22:50:34Z")

</div>

This sounds like a question for the [Dask community](https://docs.dask.org/en/latest/support.html).

---

<div class="post-metadata">

### Author: ![joeykleingers](https://discourse.itk.org/user_avatar/discourse.itk.org/joeykleingers/32/1876_2.png) [@joeykleingers](https://discourse.itk.org/u/joeykleingers)
#### Post date: [January 28, 2021, 2:55pm UTC](https://discourse.itk.org/t/why-does-my-worker-memory-limit-not-increase/3804/3 "2021-01-28T14:55:36Z")

</div>

Oh yeah, sorry! I’m working on a project that involves both Dask and ITK, and I accidentally posted the question on the wrong board.
