Issue link: https://read.uberflip.com/i/1334488
Administering OpenStack Storage 128 To ensure we have enough replicated objects in our cluster, we populate it with the swift-dispersion-populate tool, which creates 2,621 containers and objects, thereby increasing our cluster size. Once in place, we can then set up a cron job that will run hourly to ensure our cluster is consistent and therefore giving a good indication that our cluster is healthy. By setting up a cron job on our proxy node (which has access to all our nodes), we can constantly measure the health of our entire cluster. The cron job runs hourly, executing the swift-dispersion-report tool. OpenStack Storage benchmarking Understanding the capabilities of your OpenStack Storage environment is crucial to determining limits for capacity planning and areas for performance tuning. OpenStack Storage provides a tool named swift-bench that helps you understand these capabilities. Getting ready Log in to the swift-proxy node as the root user. How to do it... Carry out the following to benchmark an OpenStack Storage cluster: 1. First, create a configuration file named /etc/swift/swift-bench.conf, with the following contents: [bench] auth = http://172.16.0.1:5000/v2.0 user = cookbook:admin key = openstack concurrency = 10 object_size = 1 num_objects = 1000 num_gets = 10000 delete = yes 2. With this in place, we can simply execute swift-bench, specifying our configuration file: swift-bench /etc/swift/swift-bench.conf www.it-ebooks.info

