Bad Gateway on Jupyter after resize RAM


#1

Hi,
I run the follow command on console in order to increase RAM on Jupyter Notebook:

function setJupyterSessionMemory(mem_in_mb) {

   var taskConfig = AwsEcsTaskDefinition.make({

       "id": "ecstd-jupyter"

   }).getConfig();

   var containerConfig = taskConfig.containerDefinitions;

   containerConfig[0].memoryReservation = containerConfig[0].memory = mem_in_mb;



   AwsEcsTaskDefinition.make({

       "id": "ecstd-jupyter"

   }).setConfigValue('containerDefinitions', containerConfig, ConfigOverride.TAG);

   console.log("Jupyter session set to " + mem_in_mb + " MB");

}

setJupyterSessionMemory(16*1024)

Jupyter.make().stop()

After the last, when I try to access on Jupyter I have the error:

HTTP ERROR 502

Problem accessing /jupyter/tree. Reason: Bad Gateway

Does anyone know why or how can I fix it?

Thanks


Resizing Jupyter session resources