diff --git a/docs/platform/howto/add-storage-space.rst b/docs/platform/howto/add-storage-space.rst index 0cfd167da0..c63dc847d1 100644 --- a/docs/platform/howto/add-storage-space.rst +++ b/docs/platform/howto/add-storage-space.rst @@ -1,34 +1,39 @@ Add or remove storage ======================= -With :doc:`dynamic disk sizing <../concepts/dynamic-disk-sizing>`, you can add or remove disk storage both when you create a service and later for a running service. +With :doc:`dynamic disk sizing <../concepts/dynamic-disk-sizing>`, you can add or remove disk storage (by factor of 10 GiB) both when you create a service and later for a running service. .. note:: - This feature is not available for all service plans. + - You cannot add or remove storage when service nodes are in the rebalancing state, for example, during a maintenance update or a service upgrade. + - This feature is not available for all service plans. + +Use Aiven Console +----------------- Add storage during new service creation ------------------------------------------ +''''''''''''''''''''''''''''''''''''''' You can add disk storage when :doc:`creating a new service <../howto/create_new_service>`. + Add storage to a running service ---------------------------------- +'''''''''''''''''''''''''''''''' You can add storage to your running service in `Aiven Console `_ without interrupting the service. -#. Log in to `Aiven Console `_, and go to your project. +1. Log in to `Aiven Console `_, and go to your project. -#. On the **Services** page, select your service. +2. On the **Services** page, select your service. -#. On the **Overview** page of your service, go to the **Service plan** section, and select **Add storage**. +3. On the **Overview** page of your service, go to the **Service plan** section, and select **Add storage**. -#. In the **Upgrade service storage** window, use the slider to add disk storage. +4. In the **Upgrade service storage** window, use the slider to add disk storage. - ..note:: +.. note:: The price shown for the additional storage includes backup costs. -#. Select **Save changes**. +5. Select **Save changes**. .. topic:: Result @@ -39,18 +44,18 @@ You can add storage to your running service in `Aiven Console `_, and go to your project. @@ -68,3 +73,18 @@ Remove added storage .. topic:: Result Your additional disk space has been removed. The service is in the **Rebalancing** state while the nodes are being recycled. + +Use Aiven CLI +------------- + +You can use :doc:`Aiven CLI ` to add or remove additional storage by :ref:`updating the service configuration ` using command ``avn service update`` with flag ``--disk-space-gib``. Specify the value for the flag as the total disk space that you need for your service. +For example, if you use a ``Startup-4`` plan with a 80-GiB disk by default and you would like to add an extra 10-GiB disk, the value that the ``--disk-space-gib`` flag requires is ``90``. + +.. code-block:: bash + + avn service update --disk-space-gib 90 --project PROJECT_NAME SERVICE_NAME + +.. note:: + + - When you perform a service upgrade or downgrade horizontally, remember to include all additional disks the service uses. For example, when switching from ``Startup-4`` to ``Business-4`` or from ``Business-4`` to ``Startup-4``, include all the additional disks available for this service. + - Similarly, when you fork an existing service, include all additional disks the service uses. \ No newline at end of file diff --git a/docs/platform/howto/scale-services.rst b/docs/platform/howto/scale-services.rst index a0079579bf..3c3e7d2223 100644 --- a/docs/platform/howto/scale-services.rst +++ b/docs/platform/howto/scale-services.rst @@ -16,4 +16,5 @@ When creating a new Aiven service, you are not tied to a plan. Your services can .. note:: - You can also use the :ref:`dedicated service update function ` to scale your service plan via the :doc:`Aiven CLI `. + - You can also use the :ref:`dedicated service update function ` to scale your service plan via the :doc:`Aiven CLI `. + - When you perform a service upgrade or downgrade horizontally, remember to include all additional disks the service uses. For example, when switching from ``Startup-4`` to ``Business-4`` or from ``Business-4`` to ``Startup-4``, include all the additional disks available for this service.