Merge "Modernize VIRT_DRIVER=fake usage"
This commit is contained in:
commit
9fd9799805
@ -38,18 +38,7 @@ function cleanup_nova_hypervisor {
|
|||||||
function configure_nova_hypervisor {
|
function configure_nova_hypervisor {
|
||||||
iniset $NOVA_CONF DEFAULT compute_driver "fake.FakeDriver"
|
iniset $NOVA_CONF DEFAULT compute_driver "fake.FakeDriver"
|
||||||
# Disable arbitrary limits
|
# Disable arbitrary limits
|
||||||
iniset $NOVA_CONF DEFAULT quota_instances -1
|
iniset $NOVA_CONF quota driver nova.quota.NoopQuotaDriver
|
||||||
iniset $NOVA_CONF DEFAULT quota_cores -1
|
|
||||||
iniset $NOVA_CONF DEFAULT quota_ram -1
|
|
||||||
iniset $NOVA_CONF DEFAULT quota_floating_ips -1
|
|
||||||
iniset $NOVA_CONF DEFAULT quota_fixed_ips -1
|
|
||||||
iniset $NOVA_CONF DEFAULT quota_metadata_items -1
|
|
||||||
iniset $NOVA_CONF DEFAULT quota_injected_files -1
|
|
||||||
iniset $NOVA_CONF DEFAULT quota_injected_file_path_length -1
|
|
||||||
iniset $NOVA_CONF DEFAULT quota_security_groups -1
|
|
||||||
iniset $NOVA_CONF DEFAULT quota_security_group_rules -1
|
|
||||||
iniset $NOVA_CONF DEFAULT quota_key_pairs -1
|
|
||||||
iniset $NOVA_CONF filter_scheduler enabled_filters "RetryFilter,AvailabilityZoneFilter,ComputeFilter,ComputeCapabilitiesFilter,ImagePropertiesFilter,CoreFilter,RamFilter,DiskFilter"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# install_nova_hypervisor() - Install external components
|
# install_nova_hypervisor() - Install external components
|
||||||
|
7
stackrc
7
stackrc
@ -800,12 +800,7 @@ SERVICE_PROTOCOL=${SERVICE_PROTOCOL:-http}
|
|||||||
# the memory used where there are a large number of CPUs present
|
# the memory used where there are a large number of CPUs present
|
||||||
# (the default number of workers for many services is the number of CPUs)
|
# (the default number of workers for many services is the number of CPUs)
|
||||||
# Also sets the minimum number of workers to 2.
|
# Also sets the minimum number of workers to 2.
|
||||||
if [[ "$VIRT_DRIVER" = 'fake' ]]; then
|
API_WORKERS=${API_WORKERS:=$(( ($(nproc)/4)<2 ? 2 : ($(nproc)/4) ))}
|
||||||
# we need more workers for the large ops job
|
|
||||||
API_WORKERS=${API_WORKERS:=$(( ($(nproc)/2)<2 ? 2 : ($(nproc)/2) ))}
|
|
||||||
else
|
|
||||||
API_WORKERS=${API_WORKERS:=$(( ($(nproc)/4)<2 ? 2 : ($(nproc)/4) ))}
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Service startup timeout
|
# Service startup timeout
|
||||||
SERVICE_TIMEOUT=${SERVICE_TIMEOUT:-60}
|
SERVICE_TIMEOUT=${SERVICE_TIMEOUT:-60}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user