[Gluster-devel] glusterd takes a long time to start
Anand Avati
anand.avati at gmail.com
Wed Sep 26 04:22:35 UTC 2012
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 <anand.avati at gmail.com> 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 <bharata.rao at gmail.com>wrote:
>
>> Hi,
>>
>> With recent git tree, glusterd takes a long time to start.
>>
>> Earlier:
>> [root at bharata glusterfs]# time glusterd
>>
>> real 0m0.007s
>> user 0m0.001s
>> sys 0m0.006s
>>
>> Now:
>> [root at bharata glusterfs]# time glusterd
>>
>> real 0m4.152s
>> user 0m0.003s
>> sys 0m0.009s
>>
>> git bisect points to this commit:
>>
>> [root at bharata glusterfs]# git bisect bad
>> 373b25827f0250d11461fbe76dd6a0e295069171 is the first bad commit
>> commit 373b25827f0250d11461fbe76dd6a0e295069171
>> Author: Anand Avati <avati at redhat.com>
>> 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 <avati at redhat.com>
>> Reviewed-on: http://review.gluster.org/3836
>> Tested-by: Gluster Build System <jenkins at build.gluster.com>
>> Reviewed-by: Amar Tumballi <amarts at redhat.com>
>>
>> Regards,
>> Bharata.
>> --
>> http://bharata.sulekha.com/blog/posts.htm,
>> http://raobharata.wordpress.com/
>>
>> _______________________________________________
>> Gluster-devel mailing list
>> Gluster-devel at nongnu.org
>> https://lists.nongnu.org/mailman/listinfo/gluster-devel
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20120925/bd9af9af/attachment-0001.html>
More information about the Gluster-devel
mailing list