[Gluster-devel] libgfapi threads

Paul Cuzner pcuzner at redhat.com
Thu Jan 30 21:15:11 UTC 2014


Wouldn't the thread count relate to the number of bricks in the volume, rather that peers in the cluster? 

----- Original Message -----

> From: "Kelly Burkhart" <kelly.burkhart at gmail.com>
> To: gluster-devel at nongnu.org
> Sent: Friday, 31 January, 2014 9:52:38 AM
> Subject: [Gluster-devel] libgfapi threads

> Hello, I'm working through using libgfapi and am curious about the number of
> background threads started. I have a simple cluster with four bricks on four
> peers. On my client machine I run a program that does this:

> glfs_new()
> glfs_set_volfile_server()
> glfs_set_logging()
> glfs_init()
> pause()
> glfs_fini()
> pause()

> At the first pause, right after glfs_init, there are four child threads
> created. Is it a coincidence that the api creates the same number of threads
> as cluster peers? I'd hate to think that if I had a thousand peers I'd have
> a thousand threads.

> Second, the threads don't shut down after the call to glfs_fini().

> Can anyone shed some light on what's going on?

> Thanks,

> -Kelly

> _______________________________________________
> 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/20140130/5b3071a8/attachment-0001.html>


More information about the Gluster-devel mailing list