Opened 8 years ago

Closed 8 years ago

#1362 closed defect (fixed)

inst_template.conf

Reported by: Florian.LaRoche@… Owned by:
Priority: normal Milestone: 8.0.0d
Component: sge Version: 8.0.0b
Severity: minor Keywords: patch
Cc:

Description

Hello,

it would be convenient to have an inst_template.conf
file with good defaults installed. As this would put in
very Linx/Red? Hat-centric entries, maybe this should
just be added to the default source rpm as a separate
patch, then the SGE defaults could stay more neutral.

best regards,

Florian La Roche

diff --git a/source/dist/util/install_modules/inst_template.conf b/source/dist/util/install_modules/inst_template.conf
index 5bee087..b6d933f 100644
--- a/source/dist/util/install_modules/inst_template.conf
+++ b/source/dist/util/install_modules/inst_template.conf
@@ -6,19 +6,19 @@

# SGE_ROOT Path, this is basic information
#(mandatory for qmaster and execd installation)

-SGE_ROOT="Please enter path"
+SGE_ROOT="/opt/sge"

# SGE_QMASTER_PORT is used by qmaster for communication
# Please enter the port in this way: 1300
# not like this: 1300/tcp
#(mandatory for qmaster installation)

-SGE_QMASTER_PORT=6444
+SGE_QMASTER_PORT="6444"

# SGE_EXECD_PORT is used by execd for communication
# Please enter the port in this way: 1300
# Not like this: 1300/tcp
#(mandatory for qmaster installation)

-SGE_EXECD_PORT=6445
+SGE_EXECD_PORT="6445"

# SGE_ENABLE_SMF
# if set to false SMF will not control SGE services

@@ -26,7 +26,7 @@ SGE_ENABLE_SMF="false"

# SGE_CLUSTER_NAME
# Name of this cluster (used by SMF as an service instance name)

-SGE_CLUSTER_NAME="Please enter cluster name"
+SGE_CLUSTER_NAME="p6444"

# SGE_JMX_PORT is used by qmasters JMX MBean server
# mandatory if install_qmaster -jmx -auto <cfgfile>

@@ -73,11 +73,11 @@ CELL_NAME="default"

# ADMIN_USER, if you want to use a different admin user than the owner,
# of SGE_ROOT, you have to enter the user name, here
# Leaving this blank, the owner of the SGE_ROOT dir will be used as admin user

-ADMIN_USER=""
+ADMIN_USER="root"

# The dir, where qmaster spools this parts, which are not spooled by DB
#(mandatory for qmaster installation)

-QMASTER_SPOOL_DIR="Please, enter spooldir"
+QMASTER_SPOOL_DIR="/opt/sge/default/spool/qmaster"

# The dir, where the execd spools (active jobs)
# This entry is needed, even if your are going to use

@@ -85,7 +85,7 @@ QMASTER_SPOOL_DIR="Please, enter spooldir"

# be spooled in the database. The execution daemon still needs a spool
# directory
#(mandatory for qmaster installation)

-EXECD_SPOOL_DIR="Please, enter spooldir"
+EXECD_SPOOL_DIR="/opt/sge/default/spool"

# For monitoring and accounting of jobs, every job will get
# unique GID. So you have to enter a free GID Range, which

@@ -93,7 +93,7 @@ EXECD_SPOOL_DIR="Please, enter spooldir"

# If you want to run 100 Jobs at the same time on one host you
# have to enter a GID-Range like that: 16000-16100
#(mandatory for qmaster installation)

-GID_RANGE="Please, enter GID range"
+GID_RANGE="20000-20100"

# If SGE is compiled with -spool-dynamic, you have to enter here, which
# spooling method should be used. (classic or berkeleydb)

@@ -124,27 +124,27 @@ PAR_EXECD_INST_COUNT="20"

# If you do not enter any host here, you have to add all of your hosts
# by hand, after the installation. The autoinstallation works without
# any entry

-ADMIN_HOST_LIST="host1 host2 host3 host4"
+ADMIN_HOST_LIST=""

# A List of Host which should become submit hosts
# If you do not enter any host here, you have to add all of your hosts
# by hand, after the installation. The autoinstallation works without
# any entry

-SUBMIT_HOST_LIST="host1 host2 host3 host4"
+SUBMIT_HOST_LIST=""

# A List of Host which should become exec hosts
# If you do not enter any host here, you have to add all of your hosts
# by hand, after the installation. The autoinstallation works without
# any entry
# (mandatory for execution host installation)

-EXEC_HOST_LIST="host1 host2 host3 host4"
+EXEC_HOST_LIST=""

# The dir, where the execd spools (local configuration)
# If you want configure your execution daemons to spool in
# a local directory, you have to enter this directory here.
# If you do not want to configure a local execution host spool directory
# please leave this empty

-EXECD_SPOOL_DIR_LOCAL="Please, enter spooldir"
+EXECD_SPOOL_DIR_LOCAL=""

# If true, the domainnames will be ignored, during the hostname resolving
# if false, the fully qualified domain name will be used for name resolving

@@ -167,11 +167,11 @@ COPY_COMMAND="scp"

DEFAULT_DOMAIN="none"


# If a job stops, fails, finish, you can send a mail to this address

-ADMIN_MAIL="none"
+ADMIN_MAIL="root"

# If true, the rc scripts (sgemaster, sgeexecd, sgebdb) will be added,
# to start automatically during boottime

-ADD_TO_RC="false"
+ADD_TO_RC="true"

#If this is "true" the file permissions of executables will be set to 755
#and of ordenary file to 644.

@@ -181,7 +181,7 @@ SET_FILE_PERMS="true"

# When a exechost should be uninstalled, the running jobs will be rescheduled
RESCHEDULE_JOBS="wait"


-# Enter a one of the three distributed scheduler tuning configuration sets
+# Enter one of the three distributed scheduler tuning configuration sets

# (1=normal, 2=high, 3=max)
SCHEDD_CONF="1"


@@ -191,16 +191,16 @@ SCHEDD_CONF="1"

# (mandatory for shadowhost installation)
SHADOW_HOST="hostname"


-# Remove this execution hosts in automatic mode
+# Remove these execution hosts in automatic mode

# (mandatory for unistallation of execution hosts)

-EXEC_HOST_LIST_RM="host1 host2 host3 host4"
+EXEC_HOST_LIST_RM=""

# This option is used for startup script removing.
# If true, all rc startup scripts will be removed during
# automatic deinstallation. If false, the scripts won't
# be touched.
# (mandatory for unistallation of execution/qmaster hosts)

-REMOVE_RC="false"
+REMOVE_RC="true"

# This is a Windows specific part of the auto isntallation template
# If you going to install windows executions hosts, you have to enable the

Change History (5)

comment:1 Changed 8 years ago by dlove

SGE <sge-bugs@…> writes:

it would be convenient to have an inst_template.conf
file with good defaults installed. As this would put in
very Linx/Red? Hat-centric entries, maybe this should
just be added to the default source rpm as a separate
patch, then the SGE defaults could stay more neutral.

Thanks, yes. I think various defaults should be set better, and there
are a few changes in the release. What's actually system-specific about
those? They seem generally reasonable.

-ADMIN_USER=""
+ADMIN_USER="root"

What's the argument for root rather than a separate admin account, which
is presumably safer?

comment:2 Changed 8 years ago by dlove

  • Keywords patch added
  • Milestone set to 8.0.0d

comment:3 Changed 8 years ago by Florian.LaRoche@…

Thanks, yes. I think various defaults should be set better, and there
are a few changes in the release. What's actually system-specific about
those? They seem generally reasonable.

Ok, then put them in...

-ADMIN_USER=""
+ADMIN_USER="root"

What's the argument for root rather than a separate admin account, which
is presumably safer?

Maybe some setups want to use ports <1024 for a good setup,
others prefer a non-root admin user.

Either way is fine for me, it is just good to have default
values in there and not keep the template empty.

best regards,

Florian La Roche

comment:4 Changed 8 years ago by dlove

Florian La Roche <Florian.LaRoche@…> writes:

Maybe some setups want to use ports <1024 for a good setup,
others prefer a non-root admin user.

Either way is fine for me, it is just good to have default
values in there and not keep the template empty.

Right. I'll install a slightly amended change. I think the best
default is a non-root user (which I think both Debian and Fedora have).
Not using the registered port numbers would be a special case.

There are still a few things to consider from the Debian and Fedora
packaging which I either didn't understand properly or haven't had time
to sort out. A major issue is whether it's reasonable to try to stop
and start daemons at installation time when the installation can be
shared and may use a non-default cell. Any ideas would be welcome.

comment:5 Changed 8 years ago by dlove

  • Resolution set to fixed
  • Status changed from new to closed

Fixed by [4072]

Note: See TracTickets for help on using tickets.