Project: springxd
Issue XD-1638: Add a 'rank' expression to be used by the container matcher
following the HTCondor model for resource assignment, the use of a 'rank' expression that evaluates to an integer is used to order the containers that match the current 'criteria' expression. This allows you to setup ranks such as 'prefer the machine with the most free memory' or 'prefer a machine from groupa' (higher rank values match first). From HTCondor Presentation Rank * The rank expression is evaluated into a number for every potential matching machine. * A machine with a higher number will be preferred over a machine with a lower number. Rank Examples * Prefer machines with more Mips: ** Rank = Mips * Prefer more memory, but add 100 to the rank if the machine is Solaris 2.7: ** Rank = Memory + 100*(OpSys==“SOLARIS27)” * Prefer machines with a high ratio of memory to cpu performance: ** Rank = Memory/Mips * Prefer machines that will checkpoint in Bologna: ** Rank = (CkptServer==“ckpt.bo.infn.it”)
Story points: 5