The Scheduler algorithm takes into account the current available memory of each live device.
Currently we expect that each device only runs one Code Engine instance, and the Code Engine instance will broadcast the device's available memory.
However if one device runs n Code Engine instances, the Scheduler will think there is n times the available memory.
Perhaps each Code Engine can also provide in its meta what device it belongs to (e.g. via MAC address).