gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gluster-devel] glusterd takes a long time to start


From: Anand Avati
Subject: Re: [Gluster-devel] glusterd takes a long time to start
Date: Tue, 25 Sep 2012 21:22:35 -0700

Actually, no. It is because glusterd (which is just a different incarnation glusterfsd) now returns proper error code by waiting long enough (completion of init()). The init() in glusterd actually can take some time since it starts all the brick processes. Previously all this would happen in the background after starting glusterd (i.,e return of glusterd to shell wouldn't truly have "completed the startup") and now it just waits and returns the right exit status to the shell.

Avati

On Tue, Sep 25, 2012 at 9:15 PM, Anand Avati <address@hidden> wrote:
I suspect this is because of the RPC portmap reconnection delay. Can you check with the latest git head which has review.gluster.com/3994?

Avati


On Tue, Sep 25, 2012 at 9:05 PM, Bharata B Rao <address@hidden> wrote:
Hi,

With recent git tree, glusterd takes a long time to start.

Earlier:
address@hidden glusterfs]# time glusterd

real    0m0.007s
user    0m0.001s
sys     0m0.006s

Now:
address@hidden glusterfs]# time glusterd

real    0m4.152s
user    0m0.003s
sys     0m0.009s

git bisect points to this commit:

address@hidden glusterfs]# git bisect bad
373b25827f0250d11461fbe76dd6a0e295069171 is the first bad commit
commit 373b25827f0250d11461fbe76dd6a0e295069171
Author: Anand Avati <address@hidden>
Date:   Mon Aug 20 10:48:16 2012 -0700

    core: enable process to return the appropriate error code

    Setup a pipe() in glusterfs_ctx_t to communicate with the fork'ed
    child the exit status and return it to the shell.

    Change-Id: Ibbaa581d45acb24d5141e43ae848cae29312d95f
    BUG: 762935
    Signed-off-by: Anand Avati <address@hidden>
    Reviewed-on: http://review.gluster.org/3836
    Tested-by: Gluster Build System <address@hidden>
    Reviewed-by: Amar Tumballi <address@hidden>

Regards,
Bharata.
--
http://bharata.sulekha.com/blog/posts.htm, http://raobharata.wordpress.com/

_______________________________________________
Gluster-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/gluster-devel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]