We moved this page to our Documentation Portal. You can find the latest updates here. |
Question
How do I create instance packages with values that are higher/lower than the default ones? E.G. How do I create a package with more than 8 CPUs?
Environment
OnApp 5.X
Answer
These values can be edited within the info_hub.yml file found in /onapp/interface/config/
vi /onapp/interface/config/info_hub.yml
Navigate to the "virtual_machine" section. It will look like this:
virtual_machine: min_cpus: 1 max_cpus: 8 min_memory: 128 min_swap_size: 1 max_swap_size: 3 cpu_sockets_min: 1 cpu_sockets_max: 16 cpu_threads_min: 1 cpu_threads_max: 16 cores_per_socket_min: 1 cores_per_socket_max: 32 vcloud: min_memory: 4 max_memory: 1048576 max_cpus: 32
Note: These changes will be overwritten by any OnApp update so a permanent file with the changes should be created and named: info_hub.local
Virtual_machine: max_cpus: 8
Edit these values to the desired values, then make sure to restart the OnApp services:
service monit stop
service crond stop
service onapp stop
service httpd stop
service httpd start
service onapp start
service crond start
service monit start