diff --git a/README.rst b/README.rst index faec7d4..9d44f01 100644 --- a/README.rst +++ b/README.rst @@ -7,7 +7,9 @@ How good is your OpenStack data or storage plane under real heavy load? KloudBuster is a tool that can load the data or storage plane of any OpenStack cloud at massive scale and can measure how well the cloud behaves under load. -Anybody with very basic knowledge of OpenStack, data plane and storage performance concepts can use the tool and get scale numbers for any OpenStack cloud straight off the box wth pre-defined default workloads. +Anybody with very basic knowledge of OpenStack, data plane and storage +performance concepts can use the tool and get scale numbers for any OpenStack +cloud straight off the box wth pre-defined default workloads. Features @@ -17,16 +19,17 @@ Features * OpenStack Storage backend agnostic -* User can specify any number of tenants, routers, networks, VM instances (only limited by - cloud capacity) and KloudBuster will stage all these resources in a way that - makes sense for operational usage +* User can specify any number of tenants, routers, networks, VM instances (only + limited by cloud capacity) and KloudBuster will stage all these resources in a + way that makes sense for operational usage * Real VM-level performance and scale numbers (not bare metal) -* Punishing scale (thousands of VMs and enough load to fill even the fastest NIC cards or load any storage cluster with ease - if your cloud can even support that much) +* Punishing scale (thousands of VMs and enough load to fill even the fastest NIC + cards or load any storage cluster with ease - if your cloud can even support + that much) * Data plane with HTTP traffic load: - * Can load the data plane with one OpenStack cloud (single-cloud operations for L3 East-West scale) or 2 OpenStack clouds (dual-cloud operations with one cloud hosting the HTTP servers and the other loading HTTP traffic for @@ -34,22 +37,24 @@ Features * Real HTTP servers (Nginx) running in real Linux images (Ubuntu 14.04) - * Can specify any number of HTTP servers per tenant (as many as your cloud can handle) + * Can specify any number of HTTP servers per tenant (as many as your cloud + can handle) * High performance and highly scalable HTTP traffic generators to simulate - huge number of HTTP users and TCP connections (hundreds of thousands - to millions of concurrent and active connections) + huge number of HTTP users and TCP connections (hundreds of thousands to + millions of concurrent and active connections) - * overall throughput aggegation and loss-less latency aggregation for every single HTTP request - (typically millions per run) using the open source HdrHistogram library + * Overall throughput aggegation and loss-less latency aggregation for every + single HTTP request (typically millions per run) using the open source + HdrHistogram library * Traffic shaping to specify on which links traffic should flow * Can support periodic reporting and aggregation of results * Storage load: - - * VM-level Cinder volume file I/O using FIO running inside VMs (not bare metal) + * VM-level Cinder volume file I/O using FIO running inside VMs (not bare + metal) * Supports random amd sequential file access mode @@ -59,7 +64,8 @@ Features * User configurable storage workload profiles -* Supports automated scale progressions (VM count series in any multiple increment) +* Supports automated scale progressions (VM count series in any multiple + increment) * Highly efficient and scalable metric aggregation @@ -68,13 +74,15 @@ Features * Manual cleanup script * KloudBuster Web Server with Web UI to drive scale test from your browser - -* KloudBuster REST Server allows external programs to drive scale automation using REST -* Aggregated results provide an easy to understand way to assess the scale - of the cloud under test +* KloudBuster REST Server allows external programs to drive scale automation + using REST -* KloudBuster VM image pre-built and available from the OpenStack Community App Catalog (https://apps.openstack.org/) +* Aggregated results provide an easy to understand way to assess the scale of + the cloud under test + +* KloudBuster VM image pre-built and available from the OpenStack Community App + Catalog (https://apps.openstack.org/) Limitations @@ -91,23 +99,21 @@ If you are interested in OpenStack Performance and Scale, contributions and feedbacks are welcome! If you have any feedbacks or would like to make small or large contributions, -simply send an email to openstack-dev@lists.openstack.org with a -'[kloudbuster]' tag in the subject. +simply send an email to openstack-dev@lists.openstack.org with a '[kloudbuster]' +tag in the subject. Licensing --------- KloudBuster is licensed under the Apache License, Version 2.0 (the "License"). -You may not use this tool except in compliance with the License. -You may obtain a copy of the License at -``_ +You may not use this tool except in compliance with the License. You may obtain +a copy of the License at ``_ -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. +Unless required by applicable law or agreed to in writing, software distributed +under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR +CONDITIONS OF ANY KIND, either express or implied. See the License for the +specific language governing permissions and limitations under the License. KloudBuster VM images contain multiple open source license components: @@ -117,18 +123,19 @@ KloudBuster VM images contain multiple open source license components: * Redis: BSD License (http://redis.io/topics/license) * FIO: GPL v2 (https://raw.githubusercontent.com/axboe/fio/master/MORAL-LICENSE) -Although the VM image includes a binary copy of the FIO code, it does not include the source code used to build it. -In accordance to the GPL V2 license related to the inclusion of binary copies of FIO, the source code used to -build the binary copy was not modified and can be found directly at ``_. +Although the VM image includes a binary copy of the FIO code, it does not +include the source code used to build it. In accordance to the GPL V2 license +related to the inclusion of binary copies of FIO, the source code used to build +the binary copy was not modified and can be found directly at +``_. Links ----- * Documentation: ``_ +* `KloudBuster REST API documentation Preview `_ * Source: ``_ * Supports/Bugs: ``_ * Mailing List: kloudbuster-core@lists.launchpad.net -* `KloudBuster REST API documentation Preview `_ - diff --git a/doc/source/_static/kloudbuster-swagger.html b/doc/source/_static/kloudbuster-swagger.html index e20e04e..03bb31d 100644 --- a/doc/source/_static/kloudbuster-swagger.html +++ b/doc/source/_static/kloudbuster-swagger.html @@ -182,7 +182,7 @@ font-style: italic;

KloudBuster Rest API Specification

-
A tool to load OpenStack clouds end to end in both control plane and\ndata plane.
+
A tool to load OpenStack clouds end to end in both control plane and data plane.
More information: https://helloreverb.com
Contact Info: hello@helloreverb.com
Version: 0.1.0
diff --git a/doc/source/usage.rst b/doc/source/usage.rst index 6725a51..e65557a 100644 --- a/doc/source/usage.rst +++ b/doc/source/usage.rst @@ -2,26 +2,27 @@ Usage ===== -There are three ways for running KloudBuster, the easiest -being the **Web UI**. It offers the most user friendly interface and -needs the least learning to get started. **CLI** is the traditional way -to run applications. It has the most comprehensive feature sets when compared -to the other two ways. **Rest API** gives another way to access -and control KloudBuster from another application. +There are three ways for running KloudBuster, the easiest being the **Web UI**. +It offers the most user friendly interface and needs the least learning to get +started. **CLI** is the traditional way to run applications. It has the most +comprehensive feature sets when compared to the other two ways. **Rest API** +gives another way to access and control KloudBuster from another application. The built-in Web UI is fully implemented on top of the REST API. The default scale settings of KloudBuster is at minimal scale, which is -generally safe to run on any cloud, small or large. It should also work on -an all-in-one devstack cloud installation as well. The minimal pre-requisites -to run KloudBuster: +generally safe to run on any cloud, small or large. It should also work on an +all-in-one devstack cloud installation as well. The minimal pre-requisites to +run KloudBuster: - * Admin access to the cloud under test (non-admin might work with some tweaks and limitations) - * 3 available floating IPs (for HTTP data plane test only) + * Admin access to the cloud under test (non-admin might work with some + tweaks and limitations) + * 3 available floating IPs if running HTTP data plane testing, 2 available + floating IPs if running Storage testing -Regardless of the way you launch KloudBuster, you will need the access info and the credentials to the cloud under test. -This information can be downloaded from a Horizon dashboard -(Project|Acces&Security!Api Access|Download OpenStack RC File). Save it to -your local filesystem for future use. +Regardless of the way you launch KloudBuster, you will need the access info and +the credentials to the cloud under test. This information can be downloaded +from a Horizon dashboard (Project|Access&Security|Api Access|Download OpenStack +RC File). Save it to your local filesystem for future use. Running KloudBuster as a Web/REST Server @@ -30,47 +31,59 @@ Running KloudBuster as a Web/REST Server Starting the KloudBuster Server from a VM Image ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -The easiest way to use KloudBuster is to run it as a web server application running in a VM. -The pre-built KloudBuster qcow2 image contains the Web server and is ready to service HTTP and REST requests once up and running. -To get the KloudBuster Web server running in any OpenStack cloud: +The easiest way to use KloudBuster is to run it as a web server application +running in a VM. The pre-built KloudBuster qcow2 image contains the Web server +and is ready to service HTTP and REST requests once up and running. To get the +KloudBuster Web server running in any OpenStack cloud: 1. Follow the steps :ref:`here ` to upload the KloudBuster image to the openstack cloud that will host your KloudBuster web server - (note that this could be the same as the cloud under test or could be a different cloud) -2. If necessary, and as for any VM-based web server application bringup, create and configure the Neutron router and network - where the KloudBuster web server VM instance will be attached +.. note:: + This could be the same as the cloud under test or a different cloud. -3. Create or reuse a security group which allows ingress TCP traffic on - port 8080 +2. If necessary, and as for any VM-based web server application bringup, create + and configure the Neutron router and network where the KloudBuster web server + VM instance will be attached -4. Launch an instance using the KloudBuster image,with the proper security group - and connect to the appropriate network. Leave the - Key Pair as blank, as we don't need the SSH access to this VM +3. Create or reuse a security group which allows ingress TCP traffic on port + 8080 -5. Associate a floating IP to the newly created VM instance so that it can be accessible from - an external browser +4. Launch an instance using the KloudBuster image,with the proper security + group, and connect to the appropriate network. Leave the Key Pair as blank, + as we don't need the SSH access to this VM + +5. Associate a floating IP to the newly created VM instance so that it can be + accessible from an external browser The base URL to use for REST access is:: http://:8080 - The Web UI URL to use from any browser is:: http://:8080/ui/index.html +Starting the KloudBuster Server from PyPI installation +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + + Starting the KloudBuster Server from a git clone ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -If you use git clone, you can bring up the KloudBuster Web/REST server fron the CLI. -KloudBuster uses the -`Pecan `_ web server to host both the KloudBuster REST -server and the KloudBuster front-end website (which listens to -port 8080 by default). +If you use git clone, you can bring up the KloudBuster Web/REST server fron the +CLI. KloudBuster uses the `Pecan `_ web server to host +both the KloudBuster REST server and the KloudBuster front-end website (which +listens to port 8080 by default). + +From the root of the KloudBuster repository, go to the kb_server directory. If +this is the first time to start the server, run below command once to setup the +environment:: + + $ python setup.py develop -From the root of the KloudBuster repository, go to the kb_server directory. Then start the server by doing:: $ pecan serve config.py @@ -81,71 +94,86 @@ is up running:: Starting server in PID 26431 serving on 0.0.0.0:8080, view at http://127.0.0.1:8080 + Using the KloudBuster Web UI ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Using any browser, point to the provided URL at port 8080. You will get a Login page where you will need to enter +Using any browser, point to the provided URL at port 8080. You will get a Login +page where you will need to enter: - * the type of scale test (HTTP data plane or storage) - * the credentials openrc file of the cloud under test + * The type of scale test (HTTP data plane or storage) + * The location of openrc file of the cloud under test + * The credentials for the cloud under test Interacting with the KloudBuster Server REST Interface ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Once the server is started, you can use different HTTP methods -(GET/PUT/POST/DELETE) to interact with the KloudBuster REST interface using the provided URL at port 8080. +(GET/PUT/POST/DELETE) to interact with the KloudBuster REST interface using the +provided URL at port 8080. * `KloudBuster REST API Documentation Preview `_ * `REST API Documentation (Swagger yaml) `_ -Running the KloudBuster HTTP Data Plane Scale Test from CLI ------------------------------------------------------------ -If you do not really need a Web UI or REST interface, you can simply run KloudBuster scale test straight from CLI. +Running the KloudBuster from CLI +-------------------------------- + +If you do not really need a Web UI or REST interface, you can simply run +KloudBuster scale test straight from CLI. KloudBuster is ready to run with the default configuration, which can be displayed from the command line using *--show-config* option. By default, -KloudBuster will run on a single cloud and run the default HTTP data plane scale test: +KloudBuster will run on a single cloud and run the default HTTP data plane scale +test: - * create 2 tenants, 2 users, and 2 routers; - * create 1 shared network for both servers and clients tenants - * create 1 VM running as an HTTP server - * create 1 VM running the Redis server (for orchestration) - * create 1 VM running the HTTP traffic generator (default to 1000 connections, + * Create 2 tenants, 2 users, and 2 routers; + * Create 1 shared network for both servers and clients tenants + * Create 1 VM running as an HTTP server + * Create 1 VM running the Redis server (for orchestration) + * Create 1 VM running the HTTP traffic generator (default to 1000 connections, 1000 requests per second, and 30 seconds duration - * measure/aggegate throughput and latency - * bring down and cleanup - + * Measure/aggegate throughput and latency + * Bring down and cleanup Run KloudBuster with the following options:: kloudbuster --tested-rc --tested-passwd -The run should take couple of minutes (depending on how fast the cloud can create the resources) -and you should see the actions taken by KloudBuster -displayed on the console. +.. note:: -Once this minimal scale test passes, you can tackle more elaborate scale -testing by increasing the scale numbers or providing various traffic shaping -options. See below sections for more details about configuring KloudBuster. + Simply adding *--storage* to the above command will run KloudBuster with + storage testing. + +The run should take couple of minutes (depending on how fast the cloud can +create the resources) and you should see the actions taken by KloudBuster +displayed on the console. Once this minimal scale test passes, you can tackle +more elaborate scale testing by increasing the scale numbers or providing +various traffic shaping options. See below sections for more details about +configuring KloudBuster. KloudBuster Configuration ^^^^^^^^^^^^^^^^^^^^^^^^^ -To create a custom scale test configuration, make a copy of the default configuration -and modify that file to satisfy our own needs. A copy of the default configuration can -be obtained by redirecting the output of *--show-config* to a new file. -Once done, provide that custom configuration file to the KloudBuster command line using the *--config * option. +To create a custom scale test configuration, make a copy of the default +configuration and modify that file to satisfy our own needs. A copy of the +default configuration can be obtained by redirecting the output of +*--show-config* to a new file. Once done, provide that custom configuration +file to the KloudBuster command line using the *--config * option. .. note:: Note that the default configuration is always loaded by KloudBuster and any default option can be overridden by providing a custom configuration - file that only contains modified options. So you can delete all the lines + file that only contains modified options. So you can delete all the lines in the configuration file that you do not intend to change + +General Options +""""""""""""""" + Each item in cfg.scale.yaml is well documented and self-explained. Below is just a quick-start on some important config items that need to be paid more attention. @@ -167,16 +195,16 @@ Safely to say, 5 would be OK for most deployments. * **server:number_tenants, server:routers_per_tenant, server:networks_per_router, server:vms_per_network** -These are the four key values which controls the scale of the cloud you -are going to create. Depends on how you want the VM to be created, sets -these values differently. For example, if we want to create 180 Server VMs, -we could do either of the following settings: +These are the four key values which controls the scale of the cloud you are +going to create. Depends on how you want the VM to be created, sets these values +differently. For example, if we want to create 180 Server VMs, we could do +either of the following settings: -(1) 30 tenants, 1 router per tenant, 2 networks per router, and 3 VMs -per network (so-called 30*1*2*3); +(1) 30 tenants, 1 router per tenant, 2 networks per router, and 3 VMs per +network (so-called 30*1*2*3); -(2) 20 tenants, 3 routers per tenant, 3 networks per router, and 1 VMs -per network (so-called 20*3*3*1); +(2) 20 tenants, 3 routers per tenant, 3 networks per router, and 1 VMs per +network (so-called 20*3*3*1); * **server:secgroups_per_network** @@ -188,65 +216,103 @@ this part yet. * **client:progression** -KloudBuster will give multiple runs (progression) on the cloud under this -mode. +KloudBuster will give multiple runs (progression) on the cloud under this mode. -If enabled, KloudBuster will start the testing with certain amount of -VMs specified by vm_start. For each iteration, KloudBuster will putting -more VMs into the testing (specified by vm_step). The iteration will -continue until it reaches the scale defined in the upper sections, or -the stop limit. +If enabled, KloudBuster will start with certain amount of VMs, and put more VMs +into the testing for every iteration. The increment of the VM count is specified +by *vm_multiple*. The iteration will continue until it reaches the scale defined +in the upper sections, or the stop limit. The stop limit is used for KloudBuster to determine when to stop the -progression, and do the cleanup if needed earlier. It defines as: -[number_of_err_packets, percentile_of_packet_not_timeout(%)]. +progression, and do the cleanup if needed earlier. -For example: [50, 99.99] means, KloudBuster will continue the progression -run only if **ALL** below conditions are satisfied: +In the case of HTTP testing, it is defines as: [number_of_err_packets, +percentile_of_packet_not_timeout(%)]. For example: [50, 99.99] means, +KloudBuster will continue the progression run only if **ALL** below conditions +are satisfied: (1) The error count of packets are less or equal than 50; (2) 99.99% of the packets are within the timeout range; +In the case of Storage testing, it is a single integer indicating the degrading +percentile. In the mode of random read and random write, this value indicates +the percentile of degrading on IOPS, while in the mode of sequential read and +sequential write, this value indicates the percentile of degrading on +throughput. + +Assume the IOPS or throughput per VM is a fixed value, usually we are expecting +higher values when the VM count grows. At certain point where the capacity of +storage is reached, the overall performance will start to degrade. + +e.g. In the randread and randwrite mode, for example the IOPS is limited to 100 +IOPS/VM. In the iteration of 10 VMs, the requested IOPS for the system is 100 * +10 = 1000. However, the measured IOPS is degraded to only 800 IOPS. So the +degraded percentile is calculated as 800/1000=20% for this set of data. + +KloudBuster will continue the progression run if the degrading percentile is +within (less or equal) the range as defined. + + +HTTP Tool Specific Options +"""""""""""""""""""""""""" + * **client:http_tool_configs** -This section is IMPORTANT, as it controls how the HTTP traffic will be -generated. Below are the two values which determine the traffic:: +This section controls how the HTTP traffic will be generated. Below are the two +values which determine the traffic:: # Connections to be kept concurrently per VM connections: 1000 # Rate limit in RPS per client (0 for unlimited) rate_limit: 1000 -Each testing VM will have its targeting HTTP server for sending the -requests. Simply to say, connections determines the how many concurrent -users that the tool is emulating, and rate_limit determines how fast -the HTTP request will be sent. If the connections are more than the -capacity of the cloud can handle, socket errors or timeouts will occur; -if the requests are sending too fast, you will likely to have lots of -requests responded very slow (will be reflected in the latency -distribution spectrum generated by KloudBuster). +Each testing VM will have its targeting HTTP server for sending the requests. +Simply to say, connections determines the how many concurrent users that the +tool is emulating, and rate_limit determines how fast the HTTP request will be +sent. If the connections are more than the capacity of the cloud can handle, +socket errors or timeouts will occur; if the requests are sending too fast, you +will likely to have lots of requests responded very slow (will be reflected in +the latency distribution spectrum generated by KloudBuster). -Different cloud has different capacity to handle data plane traffics. -The best practice is to have an estimate first, and get started. -In a typical 10GE VLAN deployment, the line rate is about 9Gbps, or -1.125 GB/s. For pure HTTP traffic, the effective rate minus the overhead -is approximately 80% of the line rate, which is about 920 MB/s. Each -HTTP request will consume 32KB traffic for loading the HTML page (HTML -payload size is configurable), so the cloud capacity is about 30,000 req/sec. -If you are staging a cloud with 20 testing pairs, the rate_limit for each -VM settings will be about (30000 / 20 = 1500). +Different cloud has different capacity to handle data plane traffics. The best +practice is to have an estimate first, and get started. In a typical 10GE VLAN +deployment, the line rate is about 9Gbps, or 1.125 GB/s. For pure HTTP traffic, +the effective rate minus the overhead is approximately 80% of the line rate, +which is about 920 MB/s. Each HTTP request will consume 32KB traffic for loading +the HTML page (HTML payload size is configurable), so the cloud capacity is +about 30,000 req/sec. If you are staging a cloud with 20 testing pairs, the +rate_limit for each VM settings will be about (30000 / 20 = 1500). -The capacity for handling connections varies among factors including -kernel tuning, server software, server configs, etc. and hard to have -an estimate. It is simple to start with the same count as the rate_limit -to have (1 request/connection) for each VM, and we can adjust it later -to find out the maximum value. If you see socket errors or timeouts, means -the scale you are testing is more than the cloud capacity. +The capacity for handling connections varies among factors including kernel +tuning, server software, server configs, etc. and hard to have an estimate. It +is simple to start with the same count as the rate_limit to have (1 +request/connection) for each VM, and we can adjust it later to find out the +maximum value. If you see socket errors or timeouts, means the scale you are +testing is more than the cloud capacity. Some other values which are self-explained, and you can change them as needed. +Storage Tool Specific Options +""""""""""""""""""""""""""""" + +* **client:storage_tool_configs** + +This section controls how the Storage tests will be performed. All the fields +are self-explained, and you can create your own test case with customized +parameters. + +* **client:volume_size** + +This controls the size of the Cinder volume to be attached to each VM instance. +(in GB) + +* **client:io_file_size** + +This controls the size of the test file to be used for storage testing. (in GiB) + + Advanced Features ^^^^^^^^^^^^^^^^^ @@ -310,6 +376,19 @@ To use this feature, just pass *-l * to the kloudbuster command line. +Displaying the Results +^^^^^^^^^^^^^^^^^^^^^^ + +Results can be saved in a file in json format or in html format. The json format +is more appropriate for usage by any post-processing tool or script while the +html file is more adapted for human usage. + +The KloudBuster Web UI will display the results using charts and tables when the +test is finished running. The KloudBuster CLI provides an option to generate +the html file from the results (*--html* option). It can also generate the html +file from the json results (*--charts-from-json* option). + + Examples of running KloudBuster ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ @@ -350,44 +429,60 @@ Example 3: Single-cloud Mode, Customized VM placements $ kloudbuster --tested-rc ~/admin_openrc.sh --tested-passwd admin -t cfg.topo.yaml -Displaying the Results -^^^^^^^^^^^^^^^^^^^^^^ -Results can be saved in a file in json format or in html format. The json format is more appropriate for usage by any post-processing tool or script -while the html file is more adapted for human usage. +Example 4: Single-cloud Mode, Running storage test, Save results to JSON +"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" -The KloudBuster Web UI will display the results using charts and tables when the test is finished running. -The KloudBuster CLI provides an option to generate the html file from the results (--html option). -It can also generate the html file from the json results (--charts-from-json option). +.. code:: + + $ kloudbuster --tested-rc ~/aio-openrc.sh --tested-passwd lab --storage --json aio.json KloudBuster Standard Scale Profile ---------------------------------- -Multiple factors can impact data plane scale numbers measured by KloudBuster: -VM count, number of connections per VM, number of requests per -seconds per VM, timeout, etc... -To help obtaining quick and easy results without having to tweak too many parameters, -KloudBuster defines an off the shelf *default scale profile*. +Multiple factors can impact data plane scale numbers measured by KloudBuster: VM +count, number of connections per VM, number of requests per seconds per VM, +timeout, etc... To help obtaining quick and easy results without having to +tweak too many parameters, KloudBuster defines an off the shelf *default scale +profile*. -In the default scale profile: +In the default scale profile for running HTTP load: -- the number of connections per VM will be set to 1000, -- the number of requests per seconds per VM is set to 1000, -- the HTTP request timeout is set to 5 seconds. -- the stop limit for progression runs will be error packets greater than 50. -- The size of the HTML page in the server VMs will be 32768 Bytes. +- The number of connections per VM is set to 1000; +- The number of requests per seconds per VM is set to 1000; +- The HTTP request timeout is set to 5 seconds; +- The stop limit for progression runs will be error packets greater than 50; +- The size of the HTML page in the server VMs will be 32768 Bytes; -In order to perform a run using the default scale profile, set the max VM counts for the test, -enable progression run and leave everything else with their default values. -KloudBuster will start the iteration until -reaching the stop limit or the max scale. Eventually, once the KloudBuster -run is finished, the cloud performance can be told by looking at how many VMs -KloudBuster can run to and by looking at the latency charts. +As a reference, KloudBuster can run approximately 21 VMs (with 21,000 +connections and 21,000 HTTP requests/sec) and achieve approximately 5 Gbps of +HTTP throughput on a typical multi-node Kilo OpenStack deployment (LinuxBridge + +VLAN, 10GE NIC card). + +In the default scale profile for running Storage load: + +- A standard set of 6 test cases (random read/write/mixed, sequential + read/write/mixed); +- The IOPS limit per VM is set to 100 for random read/write/mixed test cases, + and Rate limit per VM is set to 60MB/s for sequential read/write/mixed test + cases; +- Block size is set to 4K for random read/write/mixed test cases, and 64K for + sequential read/write/mixed test cases; +- IO Depth is set to 4 for random read/write/mixed test cases, and 64 for + sequential read/write/mixed test cases; +- The stop limit for progression runs is degrading more than 20% of the target; + +Note that it is hard to give a reference on storage testing since the +performance varies a lot on different hardware or solutions. + +In order to perform a run using the default scale profile, set the max VM counts +for the test, enable progression run and leave everything else with their +default values. KloudBuster will start the iteration until reaching the stop +limit or the max scale. Eventually, once the KloudBuster run is finished, the +cloud performance can be told by looking at how many VMs KloudBuster can run to +and by looking at the latency charts. -As a reference, KloudBuster can run approximately 21 VMs (with 21,000 connections and 21,000 HTTP requests/sec) -and achieve approximately 5 Gbps of HTTP throughput on -a typical multi-node Kilo OpenStack deployment (LinuxBridge + VLAN, 10GE NIC card). How-to ^^^^^^ @@ -406,10 +501,12 @@ configurations: 2. Set up the max scale: - The max scale basically means the max VM counts that KloudBuster will - try to reach. For a typical 10GE NIC card with VLAN encapsulation, - 25 will be a good value. Adjust it to a reasonable value based on - your deployment details. + The max scale basically means the max VM counts that KloudBuster will try to + reach. In the case of HTTP testing, for a typical 10GE NIC card with VLAN + encapsulation, 25 will be a good value; in the case of Storage testing, + depends on the solution the deployment is using, pick a number from 10 to 25 + would usually be fine. Remember you can always adjust it to a more + reasonable value based on your deployment details. Running from CLI: Edit the config file, and set **server:vms_per_network** to a proper value. @@ -422,70 +519,14 @@ configurations: Interpret the results ^^^^^^^^^^^^^^^^^^^^^ -From the CLI, check the log and find the warning that KloudBuster gave, -similar to this:: +From the CLI, check the log and find the warning that KloudBuster gave, similar +to this:: WARNING KloudBuster is stopping the iteration because the result reaches the stop limit. -One line before is the json output of last successful run, which has the -number in the "total_server_vms" field. - -From the Web UI, in ihe "Interactive Mode" tab, you will see how many sets -of data are you getting. The second last set of data shows the last successful -run, which has the number in the "Server VMs" column. - - -Running the KloudBuster Storage Scale Test from CLI ---------------------------------------------------- - -To run the storage scale test you need to pass the following options on the command line. - ---storage: - - this option enables the storage scale test (and disables the http data plane scale test) - ---tested-rc: - - to provide the OpenStack openrc credential file to use - ---tested_passwd: - - to provide the OpenStack password - ---json (optional): - - save results in the passed json file - ---html (optional): - - generate results in HTML format with Javascript charts - - -Example of run (git clone, with pip install you can directly invoke the kloudbuster wrapper script instead of "python kloudbuster.py"):: - - python kloudbuster.py --tested-rc ../../aio-openrc.sh --tested-passwd lab --storage --json ../../aio.json - -A custom configuration file can be created and modified to adjust several storage scale test parameters (use the *--show-config* option and redirect to a new custom configuration file then pass it using *--config*): - -server|vms_per_network: - - specify how many VMs you want to test for storage access - -client|progression: - - can be enabled to get progression scale numbers for storage test - -client|storage_tool_configs: - - can be modified to fit the exact storage workload suite you want to test - -client|volume_size: - - size of the Cinder volume to be attached to each VM instance (in GB) - -client|io_file_size: - - size of the test file to be used for the storage tests (in GB) - - +One line before is the json output of last successful run, which has the number +in the "total_server_vms" field. +From the Web UI, in ihe "Interactive Mode" tab, you will see how many sets of +data are you getting. The second last set of data shows the last successful run, +which has the number in the "Server VMs" column.