Commit Graph

4 Commits

Author SHA1 Message Date
Joshua Baergen 0808753eb9 rados: Handle commands that return 'inf' as a float value
For now, this appears to be limited to read balancer fields, which
show up in OSD dumps and pool details.
2024-09-23 11:40:39 -06:00
Daniel R b1548c0d96
establish only 1 rados connection (#235) 2023-03-23 16:35:12 -04:00
Daniel R 46b06f317f
Fix timeouts and use goroutines for collectors/commands (#234)
* rados: timeouts on Mon/Mgr command & connections

* rados: remove unneeded timeouts

* make all collectors async

* fix osd collector

* only add 1 in waitgroups

* ceph: don't pass waitgroups to collectors

* monitors.go: use errgroup instead of waitgroup

* rados: add comment, pass arg & close channel
2023-03-14 14:00:33 -04:00
Xavier Villaneau 6f83fdd300 Restructure so that tests do not depend on go-ceph
- `ceph.Conn` interface no longer depends on go-ceph/rados,
  now defines its own `PoolStat` structure for our use.
- New separate `rados` package that implements the interface
- Merged `mocks` package into `ceph` to avoid circular import
2022-02-24 15:57:00 -05:00