On 8/12/2015 11:08 AM, Andreas Ladanyi wrote: > Hi Stephan, >>> On 11 Aug 2015, at 09:02, Andreas Ladanyi <[email protected]> wrote: >>> >>> i dont know if i remember correctly, but think i red something about >>> priorities for DB server entries listed in the file CellServDB in the >>> past. I couldnt find something in the manpage cellservdb. I think the >>> priority is given by the ip adress, isnt it ? >> Right. See fs_getserverprefs(1) >> >> > I had a look at fs_getserverprefs and fs_setserverprefs. > > I cant see a text explanation which tells me something about the > relation between the IP addres number and ranking / priority. > > For example: 192.168.1.10 and 192.168.1.20, .20 > .10 so higher priority. >
AFS uses 1980s class based IPv4 address comparisons to determine locality. It then based upon the assumed distance assigns a ranking. Rankings are then adjusted by a small randomization factor to provide low cost load balancing. You don't want all clients choosing the same replica site. You can view the assigned rankings with "fs getserverprefs" and assign your own ranks with "fs setserverprefs". Obviously IPv4 addresses have not been class based in more than two decades and the default locality ranks computed by AFS are bogus. Jeffrey Altman
smime.p7s
Description: S/MIME Cryptographic Signature
