Update to jupyter-resource-usage

This commit is contained in:
Jeremy Tuloup
2021-02-09 09:07:51 +01:00
parent 873e6bf661
commit dc30923658
5 changed files with 19 additions and 19 deletions

View File

@@ -1,10 +1,10 @@
.. _howto/admin/resize:
=================================================
Resize the resources available to your JupyterHub
Resize the resources available to your JupyterHub
=================================================
As you are using your JupyterHub, you may need to increase or decrease
As you are using your JupyterHub, you may need to increase or decrease
the amount of resources allocated to your TLJH install. The kinds of resources that can be
allocated, as well as the process to do so, will depend on the provider / interface for your
VM. We recommend consulting the installation page for your provider for more information. This
@@ -18,12 +18,12 @@ Currently there are instructions to resize your resources on the following provi
Once resources have been reallocated, you must tell TLJH to make use of these resources,
and verify that the resources have become available.
Verifying a Resize
Verifying a Resize
==================
#. Once you have resized your server, tell the JupyterHub to make use of
these new resources. To accomplish this, follow the instructions in
:ref:`topic/tljh-config` to set new memory or CPU limits and reload the hub. This can be completed
#. Once you have resized your server, tell the JupyterHub to make use of
these new resources. To accomplish this, follow the instructions in
:ref:`topic/tljh-config` to set new memory or CPU limits and reload the hub. This can be completed
using the terminal in the JupyterHub (or via SSH-ing into your VM and using this terminal).
#. TLJH configuration options can be verified by viewing the tljh-config output.
@@ -36,14 +36,14 @@ Verifying a Resize
#. **To verify changes to memory**, confirm that it worked by starting
a new server (if you had one previously running, click "Control Panel -> Stop My Server" to
shut down your active server first), opening a notebook, and checking the value of the
`nbresuse <https://github.com/yuvipanda/nbresuse>`_ extension in the upper-right.
shut down your active server first), opening a notebook, and checking the value of the
`jupyter-resource-usage <https://github.com/jupyter-server/jupyter-resource-usage>`_ extension in the upper-right.
.. image:: ../../images/nbresuse.png
:alt: nbresuse demonstration
:alt: jupyter-resource-usage demonstration
#. **To verify changes to CPU**, use the ``nproc`` from a terminal.
This command displays the number of available cores, and should be equal to the
#. **To verify changes to CPU**, use the ``nproc`` from a terminal.
This command displays the number of available cores, and should be equal to the
number of cores you selected in your provider's interface.
.. code-block:: bash