[gridengine users] sgemaster on dedicated node?
rayson at scalablelogic.com
Mon May 28 20:49:22 UTC 2012
On Mon, May 28, 2012 at 4:16 PM, Alan McKay <alan.mckay at gmail.com> wrote:
> On Mon, May 28, 2012 at 4:05 PM, Alan McKay <alan.mckay at gmail.com> wrote:
>> OK, reading through the /etc/init.d/sgemaster script, it looks like it
>> automatically figures out based on the shadow_master file whether or
>> not it runs as a master or a shadow, is that right?
> Upon further examination of that script, maybe not.
You shouldn't need to modify that script. I just quickly read it, and
the function that checks whether the host is a shadow is:
And it greps $SGE_ROOT/$SGE_CELL/common/shadow_masters for the name of
the host $HOST (ie. the output of SGE's "gethostname -aname" command)
- and if you follow the logic, you should find that you will hit the
"if [ $start_shadowd = true ]; then" code block, and then the line
"$bin_dir/sge_shadowd" starts the shadow master daemon.
> But it looks like I can add a few lines before "MAIN Procedure" that will
> check $0 and if it is sgemaster than run as master, or if it is sgeshadow
> then run as shadow.
> Is that a reasonable approach?
> I would like put it right after the below for loop and set the qmaster and
> shadowd variables.
> if [ "$#" -gt 3 -o "$1" = "-h" -o "$1" = "help" ]; then
> for i in $*; do
> if [ "$i" = start ]; then
> elif [ "$i" = stop ]; then
> elif [ "$i" = softstop ]; then
> elif [ "$i" = -qmaster ]; then
> elif [ "$i" = -shadowd ]; then
> elif [ "$i" = -migrate ]; then
> elif [ "$i" = -nosmf ]; then
> “Don't eat anything you've ever seen advertised on TV”
> - Michael Pollan, author of "In Defense of Food"
> users mailing list
> users at gridengine.org
More information about the users