From: Fabio M. Di Nitto <fdinitto@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [RFC] Common cluster connection handler API
Date: Sat, 28 Jun 2008 06:58:09 +0200 (CEST) [thread overview]
Message-ID: <Pine.LNX.4.64.0806280652550.27368@trider-g7> (raw)
In-Reply-To: <20080627192726.GF19105@redhat.com>
On Fri, 27 Jun 2008, David Teigland wrote:
> On Fri, Jun 27, 2008 at 08:19:36PM +0200, Fabio M. Di Nitto wrote:
>>> I was actually hoping that with no more ccsd there'd be no more
>>> "connecting" to ccs, but that's probably a topic for one of the ccs
>>> meetings...
>>
>> The only partial advantage you have, as i documented and wrote to
>> cluster-devel, is that if you are connected to cman and cman_is_active,
>> you are guaranteed 99.9% to connected to ccs without problems (only
>> reason for rejection would be lack of resources on the machine, but at
>> that point you have more serious issues to worry about).
>
> Oops, sorry, I'm still not thinking straight about the new ccs... yeah,
> that makes sense that if cman is up then ccs should be there, since both
> are openais extensions. I'm curious, after cman_init() succeeds, what
> more does cman_is_active() mean? In practice would cman_init() ever be
> ok, but cman_is_active() not be ok?
>
There is a small window while cman has setup the sockets and you can
connect and when it is actually configured, running and ready to process
data.
cman_is_active will return 1 only when the whole startup process is
completed and all of aisexec is running.
I think it is unlikely to happen but it can happen and it is a race
condition we want to avoid. As a consequence we know that the objdb has
been filled up with data.
The new ccs could theoretically load a standalone version of the objdb
(without cman or starting aisexec) but:
1) we would have to replicate all the information to know from which
plugin to load the configuration everywhere.
2) the startup sequence would be much more complex and racy (load, unload,
reload etc.)
3) basically all our daemons need cman. so turning this point into void.
I think all of the above is undesireable.
Fabio
--
I'm going to make him an offer he can't refuse.
next prev parent reply other threads:[~2008-06-28 4:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-27 5:26 [Cluster-devel] [RFC] Common cluster connection handler API Fabio M. Di Nitto
2008-06-27 16:35 ` David Teigland
2008-06-27 18:19 ` Fabio M. Di Nitto
2008-06-27 19:27 ` David Teigland
2008-06-28 4:58 ` Fabio M. Di Nitto [this message]
2008-06-28 5:01 ` Fabio M. Di Nitto
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=Pine.LNX.4.64.0806280652550.27368@trider-g7 \
--to=fdinitto@redhat.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).