patch: add a MultipleNetworks policy

Andy McFarland andy at
Wed Oct 3 18:43:26 UTC 2007


Attached is a patch against svn r1127 which adds a ReplicationPolicy
which aims to put a copy of a file on a different network to the
original. There's also some tests, which are good for getting an idea of
how it works.

By default a "different network" is one on a different /16 block
( to the host storing the original copy. That behaviour
should be OK for most, but if you need to change it, you can define
"network zones" with server settings and give yourself lots of different
netmasks, see the POD.

Read server/doc/pluggable-replication-policies.txt for the gory details
on how to change your network policy for a class.

This patch doesn't include the earlier bugfix to

It was a bit nasty having to change to allow new server

Missing from this is a change to the behaviour of mogilefs when putting
a new file.  That's next on my list.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: MultipleNetworks.patch
Type: text/x-patch
Size: 18018 bytes
Desc: not available
Url :

More information about the mogilefs mailing list