patch: add a MultipleNetworks policy

Andy McFarland andy at state51.co.uk
Wed Oct 3 18:43:26 UTC 2007


Hi, 

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
(255.255.0.0) 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 Class.pm

It was a bit nasty having to change Config.pm to allow new server
settings.

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

Cheers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MultipleNetworks.patch
Type: text/x-patch
Size: 18018 bytes
Desc: not available
Url : http://lists.danga.com/pipermail/mogilefs/attachments/20071003/61e88a40/MultipleNetworks-0001.bin


More information about the mogilefs mailing list