<div dir="ltr">Matan - I&#39;ll do my best to take a shot at answering this...<div><br></div><div>They&#39;re completely different technologies.  HDFS is not posix compliant and is not a &quot;mountable&quot; filesystem while Gluster is.<div><br></div><div>In HDFS land, every file, directory and block in HDFS is represented as an object in the namenode’s memory, each of which occupies 150 bytes.  So 10 million files would each up about 3 gigs of memory.  Furthermore was designed for streaming large files - the default blocksize in HDFS is 64MB.</div><div><br></div><div>Gluster doesn&#39;t have a central namenode, so having millions of files doesn&#39;t put a tax on it in the same way.  But, again, small files causes lots of small seeks to handle the replication tasks/checks and generally isn&#39;t very efficient.  So don&#39;t expect blazing performance...  Doing rebalancing and rebuilding of Gluster bricks can be extremely painful since Gluster isn&#39;t a block level filesystem - so it will have to read each file one at a time.</div><div><br></div><div><div>If you want to use HDFS and don&#39;t need a mountable filesystem have a look at HBASE.<br></div></div><div><br></div><div>We tacked the small files problem by using a different technology.  I have an image store of about 120 million+ small-file images, I needed a &quot;mountable&quot; filesystem which was posix compliant and ended up doing a ZFS setup - using the built in replication to create a few identical copies on different servers for both load balancing and reliability.  So we update one server and than have a few read-only copies serving the data.  Changes get replicated, at a block level, every few minutes.</div><div><br></div><div>thanks,</div><div>liam</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 29, 2015 at 4:29 AM, Matan Safriel <span dir="ltr">&lt;<a href="mailto:dev.matan@gmail.com" target="_blank">dev.matan@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>Is glusterfs much better than hdfs for the many small files scenario?</div><div><br></div><div>Thanks,</div><div>Matan</div></div>
</blockquote></div><br></div></div>
<br>_______________________________________________<br>
Gluster-users mailing list<br>
<a href="mailto:Gluster-users@gluster.org">Gluster-users@gluster.org</a><br>
<a href="http://www.gluster.org/mailman/listinfo/gluster-users" target="_blank">http://www.gluster.org/mailman/listinfo/gluster-users</a><br></blockquote></div><br></div>