Diskselection.conf # This Chain of filters help you to keep your roots organized. # WARN: This filters MUST work in a synchronized way with SlaveSelection. # Better explanation in: # http://trac.drftpd.org/ticket/85 1.filter=minfreespace 1.minfreespace=100MB 1.assign=all 1.multiplier=remove 2.filter=cycle # # If there's a tie on the ScoreChart, Cycle adds a point to the most unused root. # Should always be last filter on the Chain. #2.filter=cycle # Matchdir is used to distribute certain files to certain roots. # Always remember that ".match=" is a valid path according to master VFS. # So it does not work like, /mnt/site*. # x.filter=matchdir # x.match=/PHOTOS* # x.assign=1+100 2+remove # # x.filter=matchdir # x.match=/VIDEOS* # x.assign=1+remove 2+100 # Randomspread filter grabs a random root and adds 1 (one) point # to it on the ScoreChart. Usefull to make files spread all over. # x.filter=randomspread # This filter might look foolish, but it just have the hole # of letting you choose which root will be filled first. # Using this filter (depeding on the way, of course) you prolly # make 'randomspread' and 'cycle' useless. # x.filter=priority # x.assign=1+100 2+200 slaveselection-up.conf # Only used if you are using # org.drftpd.slaveselection.filter.SlaveSelectionManager in drftpd.conf # the slave that is selected will be an available slave and will have more # points(given from the filters) than the other available slaves # **** Default Config **** (suggested for ultimate bandwidth usage) 1.filter=bandwidth 1.multiplier=1 2.filter=minfreespace 2.multiplier=1 2.minfreespace=100MB 3.filter=cycle # **** Sample Config **** #Bandwidth (SlaveScore - (multiplier * current bw usage of slave)) #.filter=bandwidth #.multiplier=5 #Cycle (If there is a tie in SlaveScore's, Cycle adds one point to the last used slave(in the tie)) #.filter=cycle #MatchDir (Sets appropriate settings from "assign" on transfers inside "path") #.filter=matchdir #.match=/section/* #.assign=slave1+500 slave2-500 slave3+remove # more to come