Ask Your Question

how can i mock Instances in OpenStack? (For Scale testing) [closed]

asked 2014-01-16 04:07:05 -0600

DeepakRB gravatar image

updated 2014-01-22 15:13:05 -0600

Evgeny gravatar image

I'm trying to mock up instances in my openstack-havana setup.

I'm trying to scale test my Web-app that i've built using OpenStack API. My ultimate aim is to check how much time my app takes to list out 10,000 (100,000 eventually) instances and it's properties. (i dont need them to be in Active status, suspended or shutdown is fine too)

i followed 2 approaches

  1. I tried creating entries in nova and ovs_neutron databases but i keep on getting some error because of the DB constraints on the table and since there are so many of them, i'm loosing my mind.
  2. Using Shell script, i'm using nova commands to spawn an instance and then shut them down.unfortunately an instance on shutting down/suspended is not releasing memory effectively. I'm not able to create more than 100 instances.(In theory, there should be no limit, except mysql DB size)

Any help on this would be appreciated.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by dheeru
close date 2014-01-28 20:15:20.548699


Yes Dheeru, i tried changing nova.conf to have "scheduler_default_filters = AllHostsFilter" so that RAM filter is not considered, will try to see if i can continue spawning instances

DeepakRB gravatar imageDeepakRB ( 2014-01-16 08:05:56 -0600 )edit

Do you want all the instances to be running ? If not you can just create the instances. It will create as many and all of them will be in error state. I have created 20 instances with just 4GB. 3 entered into active state. Rest of them were in error state.

dheeru gravatar imagedheeru ( 2014-01-16 08:36:41 -0600 )edit

Nope..Do not need them to be running. Got to 1000 instances before my harddisk crashed.Trying in a different openstack setup. fingers crossed

DeepakRB gravatar imageDeepakRB ( 2014-01-17 06:59:56 -0600 )edit

super. Hope your dubba is not crashed. Did you used --num_instances flag ?

dheeru gravatar imagedheeru ( 2014-01-17 11:34:51 -0600 )edit

Yes Dheeru, i'm using --num-instances to create instances.Working fine till now..Hope i can hit the 100,000 mark

DeepakRB gravatar imageDeepakRB ( 2014-01-21 02:48:04 -0600 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-01-16 04:11:34 -0600

dheeru gravatar image

updated 2014-01-16 04:29:06 -0600

You should be able to create any number of instances. All them may enter into Error State. I feel shell script is the way to make many instances using the nova boot command. You can also use the nova boot --num-instances <number> as well.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-01-16 04:07:05 -0600

Seen: 194 times

Last updated: Jan 16 '14