MgsRandom: Random Priorities

IT Asset Management (Cloud)
This algorithm assigns random priorities to the download/upload locations on inventory beacons, within the range specified by the HighestPriority and LowestPriority registry keys (see HighestPriority and LowestPriority).

This ensures that all target inventory devices referencing the same failover list of locations do not use the same location for download and/or upload, spreading the load between inventory beacons.

MgsRandom (int limit)
where:
  • limit is an optional integer setting the maximum number of inventory beacons to which priorities will be assigned by this algorithm.

Example of MgsRandom algorithm results

For:
  • Domain of target inventory device: abc.com.au
  • IP address of target inventory device: 123.3.45.44
In the table below, the domain and IP address are those of the inventory beacon under consideration.
Location Domain IP address Auto Priority Incoming priority Resulting priority

A

abc.com.au 123.3.45.56 true blank 3

B

abc.com.de 123.3.44.46 true blank

1

C abb.com.au 123.5.45.56 true blank 2
D abbb.com.de 123.3.45.32 true blank

4

E abc.com.au 123.3.45.42 false 5 5
In the above example, the algorithm determines priorities in the following way:
  • Location E has AutoPriority set to false, so that it is excluded from the calculation process and its priority value of 5 is carried through unchanged.
  • Priorities 1-4 are randomly assigned to the remaining locations.

IT Asset Management (Cloud)

Current