How to Resize the Linux Instance Resources on the ArvanCloud User Panel
You need to occasionally resize and increase the prefabricated Linux instance resources such as RAM, CPU, and the allocated disk space. The reason for this may be improving performance or requiring more storage space for the data. This process is technically called vertical scaling.
Hint: Notice that it is not possible to decrease the disk space because it can cause the data stored on the instance to be lost.
How to Check the Instance Resources
You have to, first, connect to your instance to know the number of allocated resources. You can use the following guidance if required.
- The SSH Access to the Instance
When you connect to the instance, you can employ the following command to check the volume of RAM. The Total section of the command output displays the volume of the instance RAM.
You can use the following command to check the volume of the instance CPU:
Finally, you may employ the following command to check the volume of the disk space allocated to the instance:
Resize the Linux Instance Resources
To resize the instance resources, open the Cloud Computing product on the ArvanCloud user panel. On the open page, click on the Instances option, and then, on the open window, click on the instance which you need to resize.
In the next stage, select the Resize option from the right menu.
On the open page, you can use the set plan to increase the volume of the resources or select the Custom size if you want to customize it. Notice that when you increase the volume of the instance resources, the system will restart it.
When you resized the volume of the resources and restarted the instance, you can then ensure the addition of the instance resources by using the commands described in the preceding section. For example, looking at the above figure, you see that the system has changed the volume of RAM to 2 Gig, the volume of CPU to two cores, and of the disk space to 15 Gig. After having restarted the system, connect to the instance. Then, you can use the commands again to make sure of the addition of the resources.
Checking the RAM increase:
Checking the CPU increase:
Checking the disk space:
Notice that the system has added the new space to the primary directory (root or / directory).
As you witness in the outputs, the new resources have been added to the instance. In the end, let's spare some time and read the following instruction if you are going to partitioning the new space allocated to the instance:
- How to Partitioning and Mounting the Instance Space on Linux Operating Systems