Ask Your Question
0

possible to have different cpu ratio across availability zones

asked 2016-04-08 17:45:04 -0600

yee379 gravatar image

we group our different types of servers in host aggregates. some older hardware, some newer. is it possible to tell nova to use different cpu and memory ratios (cpu_allocation_ratio and ram_allocation_ratio) on different host aggregates?

edit retag flag offensive close merge delete

Comments

Compute nodes cannot be in two different availability zones, so, configuring nova compute nodes with different allocation ratios should do the job.

Eduardo Gonzalez gravatar imageEduardo Gonzalez ( 2016-04-09 12:29:34 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-04-09 23:20:34 -0600

Bipin gravatar image

Yes, its possible to do this.

nova aggregate-set-metadata 1 cpu_allocation_ratio=8
nova aggregate-set-metadata 4 cpu_allocation_ratio=10

nova aggregate-set-metadata 1 ram_allocation_ratio=1 
nova aggregate-set-metadata 4 ram_allocation_ratio=1.5

Here the 1 and 4 are the ID of your Aggregates.

edit flag offensive delete link more

Comments

thanks :) however, i just tried in on liberty and i can still over provision ram and cpu... in my test setup i have one compute and one hybrid compute/controller - although the latter has the hypervisor service disabled. does disabling the nova service on a hypervisor not exclude it from calculation

yee379 gravatar imageyee379 ( 2016-04-12 00:51:40 -0600 )edit

If nova service is disabled, I dont think those settings will be considered.

Bipin gravatar imageBipin ( 2016-04-12 01:38:26 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-04-08 17:45:04 -0600

Seen: 294 times

Last updated: Apr 09 '16