Ask Your Question
0

How to update vcpu allocation_ratio dynamically?

asked 2018-08-23 21:03:37 -0500

qearl gravatar image

The openstack version is queen. When I use "/resource_providers/{uuid}/inventories/MEMORY_MB" to update memory_mb allocation_ratio, and it success.But after somtimes,it revert to old value automatically. Then I find it report the value from compute_node in nova-compute automatically. But the allocation_ratio of compute_node was came from the nova.conf.So that means,We can't update the allocation_ratio until we update the nova.conf? But I wish to update the allocation_ratio dynamically other to update the nova.conf.

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2018-12-20 06:33:55 -0500

cdent gravatar image

At the moment what you describe is the behavior as things are coded: the compute node's configuration will control the allocation_ratio that gets reported, and any changes you make over the placement API will be clobbered when the periodic job on the nova-compute runs again. So the way to change the allocation ratio is to update nova.conf.

This is planned to be fixed in Stein.

edit flag offensive delete link more

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: 2018-08-23 02:17:27 -0500

Seen: 9 times

Last updated: Dec 20 '18