Page 1 of 1

Parameterize Fastname in APT Config file

Posted: Thu Sep 24, 2015 2:11 pm
by synsog
Is there a way where we can parameterize fastname in apt config file based on the server name on which the DS job is running?

I tried using uname -n in the fastname "" but it does not seem to be working. Even assigning a variable the value of uname -n and then recalling it also does not work. Has anyone tried this before?

E.g.
{
node "node1"
{
fastname "`uname -n`"
pools ""
resource disk "/usr/appl/datasets" {pools ""}
resource scratchdisk "/usr/appl/scratch" {pools ""}
}

}

Posted: Thu Sep 24, 2015 5:02 pm
by ray.wurlod
No. The configuration file is simply read when job execution is requested. No resolution of parameters or shell techniques is supported.

You could, of course, script something to rewrite the configuration file but, since it's only ever changed once per server, why would you bother?

Posted: Fri Sep 25, 2015 11:28 am
by PaulVL
What are you basically trying to do? Load balance your jobs across multiple boxes?