Merge "Add support for running multiple n-cpus for performance testing"
This commit is contained in:
commit
f3d5045ebd
5
lib/nova
5
lib/nova
@ -722,6 +722,11 @@ function start_nova() {
|
|||||||
# The group **$LIBVIRT_GROUP** is added to the current user in this script.
|
# The group **$LIBVIRT_GROUP** is added to the current user in this script.
|
||||||
# Use 'sg' to execute nova-compute as a member of the **$LIBVIRT_GROUP** group.
|
# Use 'sg' to execute nova-compute as a member of the **$LIBVIRT_GROUP** group.
|
||||||
screen_it n-cpu "cd $NOVA_DIR && sg $LIBVIRT_GROUP '$NOVA_BIN_DIR/nova-compute --config-file $NOVA_CONF_BOTTOM'"
|
screen_it n-cpu "cd $NOVA_DIR && sg $LIBVIRT_GROUP '$NOVA_BIN_DIR/nova-compute --config-file $NOVA_CONF_BOTTOM'"
|
||||||
|
elif [[ "$VIRT_DRIVER" = 'fake' ]]; then
|
||||||
|
for i in `seq 1 $NUMBER_FAKE_NOVA_COMPUTE`
|
||||||
|
do
|
||||||
|
screen_it n-cpu "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-compute --config-file $NOVA_CONF_BOTTOM"
|
||||||
|
done
|
||||||
else
|
else
|
||||||
screen_it n-cpu "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-compute --config-file $NOVA_CONF_BOTTOM"
|
screen_it n-cpu "cd $NOVA_DIR && $NOVA_BIN_DIR/nova-compute --config-file $NOVA_CONF_BOTTOM"
|
||||||
fi
|
fi
|
||||||
|
3
stackrc
3
stackrc
@ -191,6 +191,9 @@ case "$VIRT_DRIVER" in
|
|||||||
LIBVIRT_GROUP=libvirtd
|
LIBVIRT_GROUP=libvirtd
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
fake)
|
||||||
|
NUMBER_FAKE_NOVA_COMPUTE=${NUMBER_FAKE_NOVA_COMPUTE:-1}
|
||||||
|
;;
|
||||||
xenserver)
|
xenserver)
|
||||||
# Xen config common to nova and neutron
|
# Xen config common to nova and neutron
|
||||||
XENAPI_USER=${XENAPI_USER:-"root"}
|
XENAPI_USER=${XENAPI_USER:-"root"}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user