All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wido den Hollander <wido@42on.com>
To: Sage Weil <sage@inktank.com>
Cc: ceph-devel <ceph-devel@vger.kernel.org>
Subject: Re: Blocking rados_* calls
Date: Thu, 10 Oct 2013 22:47:34 +0200	[thread overview]
Message-ID: <52571266.4060303@42on.com> (raw)
In-Reply-To: <alpine.DEB.2.00.1310100644130.18301@cobra.newdream.net>

On 10/10/2013 03:45 PM, Sage Weil wrote:
> On Thu, 10 Oct 2013, Wido den Hollander wrote:
>> 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.
>
> Yeah I think this is definitely doable.  The simplest would be to have a
> configurable (or configurables) that are set via rados_conf_set() (or put
> in the config).  There are several timeouts there already, but I think
> they don't capture the entire connect sequence.
>
> Want to open a feature ticket?

Done!

http://tracker.ceph.com/issues/6507

Wido

>
> sage
>


-- 
Wido den Hollander
42on B.V.

Phone: +31 (0)20 700 9902
Skype: contact42on

      reply	other threads:[~2013-10-10 20:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-10 11:50 Blocking rados_* calls Wido den Hollander
2013-10-10 13:45 ` Sage Weil
2013-10-10 20:47   ` Wido den Hollander [this message]

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=52571266.4060303@42on.com \
    --to=wido@42on.com \
    --cc=ceph-devel@vger.kernel.org \
    --cc=sage@inktank.com \
    /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.