Jupyterhub Tornado Configuration

Dear Team,

We have a question regarding configuring Tornado parameters from the JupyterHub global configuration file.

We are trying to set the max_body_size parameter for our JH’s Tornado server in /etc/jupyter/jupyterhub_config.py, by passing the below:

c.JupyterHub.tornado_settings = {

"max_body_size": 1024 \*\* 3  # Example setting to 1GB, default value is 100MB

}

but this does not seem to take effect. Could you please advise us on how to pass the parameter correctly?

We would also greatly appreciate your advice on the effect and risks which increasing the max_body_size (e.g., to 1GB) would have on JupyterHub.

Thanks a lot in advance.

JupyterHub.tornado_settings affects the JupyterHub web server, not any user servers. If that is your goal, it would need to be c.ServerApp.tornado_settings in jupyter_server_config.py in the user environment (e.g. /etc/jupyter/jupyter_server_config.py)

1 Like