Implemented in the
feature-10767
branch in the following way:
--flavor
argument of the klever-deploy-openstack
script is replaced by --vcpus
, --ram
and --disk
arguments
- default values for these arguments are: vcpus = 8 cores, ram = vcpus * 4 (if vcpus = 8, then ram = 32GB) and disk = 200GB
- Klever instances almost always use 200GB disks , so you can leave this argument at its default value
- RAM is calculated automatically based on VCPUs number, so unless you require some specific flavor - you should also leave this argument as is
- so, the only argument, that will be realistically used:
--vcpus
, or amount of virtual CPU cores in the instance
Usage examples:
Create new instance with 16 cores, 64GB of RAM and 200GB disk:
klever-deploy-openstack --name "klever-10767" --vcpus 16 create instance
This is also equivalent to:
klever-deploy-openstack --name "klever-10767" --vcpus 16 --ram 64 --disk 200 create instance
Created instance can be resized by specifying new flavor (this will migrate instance to new host, so be sure that there are no running jobs):
klever-deploy-openstack --name "klever-10767" --vcpus 2 resize instance
If OpenStack doesn't contain flavor with required parameters (for example, there is no flavor with 4 VCPUs, 16GB of RAM and 200GB of disk space), then klever-deploy-openstack
script will terminate, but print available flavors for you.