Project

General

Profile

Backport #15478

Updated by Nathan Cutler almost 8 years ago

https://github.com/ceph/ceph/pull/8593 step1: 
 I set quoat'alarm/crit for the pool in the ceph.conf 
 mon_pool_quota_warn_threshold = 50 
 mon_pool_quota_crit_threshold = 90 

 step2: 
 create pool 

 step3: 
 set the quota of pool  

 step4: 
 copying data to the pool(state of alarm or crit) 
 At the same time confirmed that the quota has to take effect 

 step5: 
 used "ceph health detail" command to test, found no quota warn/crit!!! 

 the reason: 
 <pre> 
 void OSDMonitor::get_pools_health( 
     list<pair<health_status_t,string> >& summary, 
     list<pair<health_status_t,string> > *detail) const 
 { 
   ...... 
   float warn_threshold = g_conf->mon_pool_quota_warn_threshold/100; 
   float crit_threshold = g_conf->mon_pool_quota_crit_threshold/100; 
   ...... 
 } 
 "warn_threshold or crit_threshold"    has been equal to zero, when g_conf->mon_pool_quota_crit_threshold or g_conf->mon_pool_quota_crit_threshold is less than 100 

 In fact: 
 g_conf->mon_pool_quota_crit_threshold <= 100 
 g_conf->mon_pool_quota_crit_threshold <= 100 

 </pre> 

Back