We are deploying EC2 instances through OpenNebula, we already got this but trying to deploy a vast number of VM’s in the same HOST (region of Amazon) the capacity of this HOST in OpenNebula is too short, due that I just can deploy few and micro machines in EC2.
This is the output of my HOST in OpenNebula:
oneadmin@opennebula:~$ onehost list
ID NAME CLUSTER RVM ALLOCATED_CPU ALLOCATED_MEM STAT
1 172.18.10.8 - 6 900 / 2400 (37%) 9G / 31.4G (28%) on
15 eu-west-1 - 1 200 / 300 (66%) 2G / 3G (66%) on
As you can see just 3G the host (eu-west-1 region) has, so few ¿How can I increase that or What can I do?
You can define the capacity for each region in the ec2_driver.conf:
The capacity is defined specifying the number of instances per type allowed in the host. Then, the host memory and cpu is calculated using the cpu and memory values of each instance type defined in the bottom of that file.
If you change this value in the next monitoring cycle the capacity of the host will be updated.
Thanks for your answer. Now we have more space in our host : )
ID NAME CLUSTER RVM ALLOCATED_CPU ALLOCATED_MEM STAT
1 172.18.10.8 - 6 900 / 2400 (37%) 9G / 31.4G (28%) on
15 eu-west-1 - 0 0 / 7000 (0%) 0K / 230G (0%) on
19 eu-east-1 - 1 200 / 28000 (0%) 2G / 920G (0%) on
20 eu-west-2 - 2 400 / 28000 (1%) 4G / 920G (0%) on
Changing the ec2_driver.conf I was able to increase the CPU capacity, ALL IS WORKING, but just one thing to understand and curiosity, I defined my file like this:
As you can see was defined different number of instances per type and us-east-1 has 920G and us-west-2 as well, these two has the same CPU assignation ¿How OpenNebula calculates it?