Forum Discussion

ediaz's avatar
ediaz
Level 3
12 years ago

Create service dependences for not running in the machine.

Hi to all, I like to ask about a problem for a cluster that I am creating. We do have 4 servers, running 3 services in each one of those 4 computers (one is for spare). My question is how can i mak...
  • mikebounds's avatar
    12 years ago

    Best to use System limits and service group prerequisites so make up a variable (say NumSGs) to set to 1 so for example run the following for each system:

    hasys -modify sys_name Limits NumSGs 1

    Then for each service group run:

    hagrp -modify sg_name Prerequisites  NumSGs 1

    This means the limit of NumSGs on sys_name is 1, so when group sg_name runs on this system the Available limit of NumSGs becomes 0 and then it can't run any more service groups that require NumSGs - see "Service group workload management" in VCS admin guide for more info.

    This can be used much more generically so can for example use:

     

    hasys -modify small_sys Limits Memory 16 CPU 400
    hasys -modify big_sys Limits Memory 32 CPU 800
    hagrp -modify sg1 Prerequisites  Memory 2 CPU 25
    hagrp -modify sg2 Prerequisites  Memory 8 CPU 250

     

     

    So here this is saying small_sys has 16GB memory and 4 CPUs and big_sys has 16GB memory and 8 CPUs and sg1 needs 2GB memory and 1/4 of a CPU and sg2 needs 8GB memory and 2.5 CPU.  So this would mean the small_sys could not run 2 sevivce groups like sg2 as this would require CPU=500 and there is only 400, but big_sys could run 3 groups like sg2.

    Mike