From: Wido den Hollander <wido@42on.com>
To: ceph-devel <ceph-devel@vger.kernel.org>
Subject: Blocking rados_* calls
Date: Thu, 10 Oct 2013 13:50:48 +0200 [thread overview]
Message-ID: <52569498.2090109@42on.com> (raw)
Hi,
Currently librados blocks all calls when something is not working inside
the Ceph cluster.
This is common practice for fopen(), fread() and fwrite(), but I'm
running into a use-case where I think the rados_connect() should not
block indefinitely.
The use-case here is the RBD storage pool in libvirt. When for whatever
reason libvirt is not able to connect to the Ceph cluster libvirt will
simply block and wait on rados_connect() to complete.
This causes libvirt not being able to report new statistics about the
RBD storage pool, which causes issues again for the applications using it.
Would it be an idea that you can configure librados not to block
indefinitely and return for example ETIMEDOUT?
By default librados could stay blocking like it's now so nothing changes
for existing users.
--
Wido den Hollander
42on B.V.
Phone: +31 (0)20 700 9902
Skype: contact42on
next reply other threads:[~2013-10-10 11:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-10 11:50 Wido den Hollander [this message]
2013-10-10 13:45 ` Blocking rados_* calls Sage Weil
2013-10-10 20:47 ` 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=52569498.2090109@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.