From: Wido den Hollander <wido@42on.com>
To: ceph-devel <ceph-devel@vger.kernel.org>
Subject: Quering since when a PG is inactive
Date: Wed, 9 Dec 2015 08:54:31 +0100 [thread overview]
Message-ID: <5667DE37.4080502@42on.com> (raw)
Hi,
I'm working on a patch in PGMonitor.cc that sets the state to HEALTH_ERR
if >= X PGs are stuck non-active.
This works for me now, but I would like to add a timer that a PG has to
be inactive for more than Y seconds.
The PGMap contains "last_active" and "last_clean", but these timestamps
are never updated. So I can't query for last_active =< (now() - 300) for
example.
On a idle test cluster I have a PG for example:
"last_active": "2015-12-09 02:32:31.540712",
It's currently 08:53:56 here, so I can't check against last_active.
What would a good way be to see for how long a PG has been inactive?
--
Wido den Hollander
42on B.V.
Ceph trainer and consultant
Phone: +31 (0)20 700 9902
Skype: contact42on
next reply other threads:[~2015-12-09 7:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-09 7:54 Wido den Hollander [this message]
2015-12-09 13:50 ` Quering since when a PG is inactive Sage Weil
2015-12-09 16:14 ` Wido den Hollander
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5667DE37.4080502@42on.com \
--to=wido@42on.com \
--cc=ceph-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.