]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd/PG.cc: Optimistic estimation on PG.last_active
authorXiaoxi Chen <xiaoxchen@ebay.com>
Wed, 26 Apr 2017 08:12:04 +0000 (01:12 -0700)
committerXiaoxi Chen <xiaoxchen@ebay.com>
Wed, 26 Apr 2017 08:12:04 +0000 (01:12 -0700)
commita58b7b697f32b6da3d9414617a34bd9db349b24b
tree461a8c3c3c0109f35605dece5d0525cd25a12537
parentb833ba71f1e91e4bc2309104585a6842f706d1d4
osd/PG.cc: Optimistic estimation on PG.last_active

PG may go through inactive state(such like peering) shortly during
state transition, user usually want to only get alter just when
PG is stucking in inactive for long enough time.

Such monitoring depends on PG.last_active > cutoff, but we will not
update PG.last_active if there is neither state change nor IO happened
on this PG. As a result, PG.last_active may lag behind a long time, in
idle cluster/pool.

This patch update the last_active filed to now(), when we first find it
as inactiv, as kind of optimistic estimation to solve the problem.

Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
src/osd/PG.cc