Replicate over WAN?

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

 



On May 4, 2010, at 9:01 PM, Count Zero wrote:

> I have some machines over WAN, in a Replicate cluster, with around 50ms ~ 60ms between them.
> However, I have read-subvolume specified so that it will always use the local brick instead of the WAN.
> I just need this in order to replicate files as easily and as quickly as possible between various systems...
> 
> My question is - Why is it still painfully slow when all I do is read operations?
> Even just listing a directory takes ages.
> I can understand about Write operations, but read? and from the local sub-volume?


Replicate is not really designed for a WAN environment. A couple of things that are probably affecting you are:

1) "lookup" (first access to any file or directory) needs to be sent to all subvolumes to gather information to determine if self-heal is needed. There is no way to fix this without losing the ability to self-heal.

2) "readdir" (ls) is always sent to the first subvolume. This is necessary to ensure consistent inode numbers. Perhaps you could ensure that the first subvolume is local? (Make sure the order of subvolumes is the same on all your clients.)

------------------------------
Vikas Gorur
Engineer - Gluster, Inc.
------------------------------










[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux