openstack swift Cluster Health and Telemetry

9 篇文章 0 订阅
3 篇文章 0 订阅
之前看swift的code主要关注在ring,proxy-server, object-server, container-server, account-server这些组件上,一次有人问我swift如何monitoring的,哦,fuck 我漏了这里,不过我想swift使用WSGI应该比较容易在filter加一个 侦测状态的filter_factory 到原有的WSGI的Pipeline,马上去翻code,果然,这货解耦做的很强悍嘛,

[url]https://github.com/openstack/swift/blob/master/swift/common/middleware/recon.py[/url]

1. How many unmounted (failed) drives there are in the cluster, and on which servers those are located
2. How many async pendings are present
3. Drive usage and balance
4. Load Average (for easy access later on*)
5. Memory Usage (for easy access later on*)
6. Checking ring md5sum’s
7. Logged replication stats
8. Connection stats (tbd)
9. Quarantine Statistics (a new pending addition)

WSGI filter
[pipeline:main]
pipeline = recon object-server
[filter:recon]
use = egg:swift#recon
recon_cache_path = /var/cache/swift
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值