To add another server to your deployment that uses httperf to apply load to your web application servers.
This tutorial is designed to supplement the E2E Gaming tutorial, providing you with a learning tool surrounding the mechanics of autoscaling. (However, you can use the steps below as a general guideline for getting a load testing server in your own custom deployment.)
You need to make sure your server array is enabled, and configured properly. Specific settings for the array vary based on application, and what you want to accomplish with your load tests. If you are simply learning the mechanics of server arrays and our alert/monitoring subsystem, you may want to limit the number of servers you can scale to, and how quickly the scaling process works. In our example settings below we change the maximum count of servers from the default 20 to just 5. The amount of time it takes to scale is artificially shortened by changing the calm time.
This step requires to SSH into the httperf server and run the httperf command manually. This command will send 100 requests per second to get "/index.php" hosted on server with IP "126.96.36.199", port 80. After 60000 requests (~10 minutes), httperf will stop and display the load statistics.
Hit Control+C at any time to abort the load and return to the shell.
httperf --hog --timeout=5 --client=0/1 --send-buffer=4096 --recv-buffer=16384 --rate=100 --num-conns=60000 \ --num-calls=1 --uri=/index.php --server=188.8.131.52 --port=80 -v
This step is considered optional, considering time, interest and previous level of understanding of httperf.
httperf --hog --timeout=5 --client=0/1 --server=www.rightscaletraining.com --port=80 --uri=/index.php \ --rate=200 --send-buffer=4096 --recv-buffer=16384 --num-conns=30000000 --num-calls=1 #Note: Above command is a single line of text. The \ followed by a <CR>/<LF> is for display purposes only.
Depending on whether you are going to keep your load tester running or not, you may need to perform some cleanup tasks. For example, if you lowered the resize calm time to speed up your testing, you can change it back. Similarly, you may need to change the min or max count, or disable the server array entirely. Remember, cloud charges apply to running servers.
© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.