Issue link: https://read.uberflip.com/i/1334488
Chapter 6 137 How to do it... To collect usage statistics from our OpenStack Storage cluster, carry out the following: 1. We first need to modify our /etc/swift/object-server.conf configuration file to include the swift-recon middleware, so that it looks similar to the following: [DEFAULT] bind_ip = 0.0.0.0 workers = 2 [pipeline:main] pipeline = recon object-server [app:object-server] use = egg:swift#object [object-replicator] [object-updater] [object-auditor] [filter:recon] use = egg:swift#recon recon_cache_path = /var/cache/swift 2. Once this is in place, we simply restart our object-server service, using swift- init, as follows: swift-init object-server restart Now that the command is running, we can use the swift-recon tool on the proxy server to get usage statistics, as follows: Disk usage swift-recon -d This will report on disk usage in our cluster. swift-recon -d -z5 www.it-ebooks.info

