summaryrefslogtreecommitdiffstats
path: root/src/mon/DataHealthService.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mon: remove OldHealthMonitorSage Weil2017-09-061-77/+0
| | | | | | | | The only service this provided was mon space notifications, which are now handled explicitly by the new HealthMonitor's check_member_health(), and communited by the new MMonHealthChecks. Signed-off-by: Sage Weil <sage@redhat.com>
* mon: remove legacy get_health infrastructureSage Weil2017-09-061-4/+0
| | | | Signed-off-by: Sage Weil <sage@redhat.com>
* mon: remove Formatter arg to QuorumService::get_health()Sage Weil2017-07-121-3/+3
| | | | | | | This is used to dump extra weirdness to the health detail structured output, but we are about to remove all of that in luminous. Signed-off-by: Sage Weil <sage@redhat.com>
* mon: add override in headersliuchang08122017-03-021-12/+12
| | | | Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
* MON: optimize header file dependency.cxwshawn2016-05-201-3/+2
| | | | | | same work as PR: https://github.com/ceph/ceph/pull/9161 Signed-off-by: Xiaowei Chen <chen.xiaowei@h3c.com>
* mon: optracker (1): support MonOpRequestRefJoao Eduardo Luis2015-07-161-6/+2
| | | | Signed-off-by: Joao Eduardo Luis <joao@redhat.com>
* mon: refactor check_health()Sage Weil2014-06-171-1/+2
| | | | | | | | Refactor the get_health() methods to always take both a summary and detail. Eliminate the return value and pull that directly from the summary, as we already do with the PaxosServices. Signed-off-by: Sage Weil <sage@inktank.com>
* Merge pull request #526 from ceph/wip-5909Sage Weil2013-08-261-0/+1
|\ | | | | | | | | mon: Early warning system for monitor stores growing over predefined threshold Reviewed-by: Sage Weil <sage@inktank.com>
| * mon: DataHealthService: monitor backing store's size and report itJoao Eduardo Luis2013-08-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | If the store's size grows beyond what we believe to be reasonable, we must let the user know that something fishy may be going on. This intends to act as an early warning system for monitors suffering from leveldb compaction issues. However, if the monitor's store is just growing a lot due to normal cluster behaviour, we made sure that the warning threshold is adjustable by tuning 'mon_leveldb_size_warn' (defaulting to 40GB). Fixes: #5909 Signed-off-by: Joao Eduardo Luis <jecluis@gmail.com>
* | Fix compilation -Wmismatched-tags warningsChristophe Courtaut2013-08-091-1/+1
|/ | | | | | Keep consistency in the code to not generate warnings of this type. Signed-off-by: Christophe Courtaut <christophe.courtaut@gmail.com>
* mon: fix leak of health_monitor and config_key_serviceSage Weil2013-05-301-7/+0
| | | | | | | Switch to using regular pointers here. The lifecycle of these services is very simple such that refcounting is overkill. Signed-off-by: Sage Weil <sage@inktank.com>
* mon: QuorumService: return health status on get_health()Joao Eduardo Luis2013-04-191-1/+1
| | | | | | | | | This allows us to return the appropriate overall health status on Monitor::get_health(). Fixes: 4574 Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
* mon: limit warnings about low mon disk spaceSage Weil2013-04-031-1/+4
| | | | | | Only warn once per percentage point per epoch. Signed-off-by: Sage Weil <sage@inktank.com>
* mon: DataHealthService: shutdown mon if failed to obtain disk statsJoao Eduardo Luis2013-03-201-1/+1
| | | | | | | | | | Being unable to run a ::statfs() may be a symptom of something bigger. We want to cleanly shutdown the monitor ASAP if such thing happens. Fixes: #4509 Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
* mon: HealthMonitor: Keep track of monitor cluster's healthJoao Eduardo Luis2013-03-181-0/+88
The HealthMonitor builds upon the QuorumService interface, and should be used to keep track of all and any relevant information about the monitor cluster (maybe even about all the cluster if need be). This patch also introduces the HealthService interface, used to define a HealthMonitor service, responsible for dispatching 'MMonHealth' messages (the QuorumService interface dispatches generic 'Message'). Based on the HealthService interface, we introduce the DataHealthService class, a service that will track disk space consumption by the monitors, warn when a given threshold is crossed, and gracefully shutdown the monitor if disk space usage hits critical levels that might affect the correct monitor behavior. Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>