CEPH filesystem development
 help / color / mirror / Atom feed
* Smarter blacklisting?
@ 2017-04-18 16:37 John Spray
  2017-04-18 16:41 ` Sage Weil
  0 siblings, 1 reply; 7+ messages in thread
From: John Spray @ 2017-04-18 16:37 UTC (permalink / raw)
  To: Ceph Development

Currently, when we add an address to the blacklist, we leave it in
there for a set period of time (24 minutes by default, which I suspect
might have been meant to be 24 hours), and then expire it.

Clearly there are two problems with that:
 * We leave things in the list for much longer than necessary most of
the time, when a blacklisted client/node comes back reasonably soon
after a restart
 * We are never 100% guaranteed that a long-halted client won't come
back after its blacklist entry has expired (e.g. a paused VM with
dirty pages, wakes up a day later and writes back to OSDs).

These mostly haven't been too much trouble in practice, but we may be
(optionally) doing a lot more blacklisting on cephfs systems soon[1],
and cephfs clients are perhaps more likely to be VMs than RBD hosts.

One thought is to have an alternative type of backlist entry that does
not have an expiration, but instead is automatically removed when we
see a client authenticate with the same auth id, from the same IP
address as the blacklist entry, but with a different nonce.

Flushing out any blacklist entries from a host that never came back
would be an administrative operation, or we could do it automatically
on a *super* long expiration time (like a month), and in other cases
like if the auth identity associated with the blacklist entry was
removed.

Any thoughts?

John

1. https://github.com/ceph/ceph/pull/14610

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-04-20 13:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-18 16:37 Smarter blacklisting? John Spray
2017-04-18 16:41 ` Sage Weil
2017-04-18 18:36   ` Gregory Farnum
2017-04-19 12:02     ` John Spray
2017-04-19 13:16       ` Sage Weil
2017-04-19 23:26         ` Josh Durgin
2017-04-20 13:09           ` Jason Dillaman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox