Comment 3 for bug 1677223

Revision history for this message
Brett Milford (brettmilford) wrote :

A note regarding importance:

Allocation ratios are effectively not enforced in new charmed deployments since
Pike. This would result in the default allocation ratio for compute resources
being applied regardless of the juju configuration which is 16.0 for CPU, 1.0 DISK
and 1.5 for RAM.

This is problematic for hyperconverged deployments which rely on this to avoid
overcommit and the problems arising from resource starvation of ancillary
services (particularly colocated Ceph).

To avoid this, the default compute resource allocations need to be amended post
deployment to appropriate values, e.g:

openstack resource provider list # get the $RESOURCE_PROVIDER uuid for a compute resource provider
openstack resource provider inventory set $RESOURCE_PROVIDER --resource VCPU:allocation_ratio=16.0 --amend
openstack resource provider inventory set $RESOURCE_PROVIDER --resource MEMORY_MB:allocation_ratio=1.0 --amend
openstack resource provider inventory set $RESOURCE_PROVIDER --resource DISK_GB:allocation_ratio=1.0 --amend