Commit Graph

3 Commits

Author SHA1 Message Date
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