[OpenAFS] CellServDB priority of entries
Jeffrey Altman
jaltman@your-file-system.com
Wed, 12 Aug 2015 11:15:49 -0400
This is a cryptographically signed message in MIME format.
--------------ms020209020004090807010402
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
On 8/12/2015 11:08 AM, Andreas Ladanyi wrote:
> Hi Stephan,
>>> On 11 Aug 2015, at 09:02, Andreas Ladanyi <andreas.ladanyi@kit.edu> w=
rote:
>>>
>>> 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.
>=20
> I cant see a text explanation which tells me something about the
> relation between the IP addres number and ranking / priority.
>=20
> For example: 192.168.1.10 and 192.168.1.20, .20 > .10 so higher priori=
ty.
>=20
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
--------------ms020209020004090807010402
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature
MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC
DV0wggZCMIIFKqADAgECAhA4qwAv/66Wt1b/OVr7XecbMA0GCSqGSIb3DQEBBQUAMIHKMQsw
CQYDVQQGEwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWdu
IFRydXN0IE5ldHdvcmsxOjA4BgNVBAsTMShjKSAxOTk5IFZlcmlT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