Openstack-swift recon middleware cli tool
swift-recon <server_type> [-v] [--suppress] [-a] [-r] [-u] [-d] [-l] [--md5] [--auditor] [--updater] [--expirer] [--sockstat]
The swift-recon cli tool can be used to retrieve various metrics and telemetry information about a cluster that has been collected by the swift-recon middleware.
In order to make use of the swift-recon middleware, update the object-server.conf file and enable the recon middleware by adding a pipeline entry and setting its option(s). You can view more information in the example section below.
account|container|object - Defaults to object server.
show this help message and exit
Print verbose information
Suppress most connection related errors
Get async stats
Get auditor stats
Get updater stats
Get expirer stats
Get replication stats
Check cluster for unmounted devices
Get disk usage stats
Get cluster load average stats
Get cluster quarantine stats
Get md5sum of servers ring and compare to local cop
Perform all checks. Equivalent to -arudlq --md5
Only query servers in specified zone
Default = /etc/swift
Finally if you also wish to track asynchronous pending’s you will need to setup a cronjob to run the swift-recon-cron script periodically:
More documentation about Openstack-Swift can be found at http://swift.openstack.org/index.html Also more specific documentation about swift-recon can be found at http://swift.openstack.org/admin_guide.html#cluster-telemetry-and-monitoring