Author Topic: Worker Configuration  (Read 25312 times)

anthony

  • Senior Software Engineer
  • Hero Member
  • *****
  • Posts: 183
Worker Configuration
« on: January 18, 2005, 11:00:43 PM »
With the use of larger and larger farms, it becomes important to make worker configuration simple.

We will introduce the qbwrk.conf file which the supervisor uses to configure hosts.  This file is located here: /etc/qbwrk.conf or C:\winnt\qbwrk.conf or C:\windows\qbwrk.conf

The format is simple.  It consists of templates and attributes.

# comment

[templatename] : parent
attribute_one = value
attribute_two  = "value"
attribute_three = $parent.attribute_one

Example:

[linux_cluster]
worker_cluster = /linux

[pfx001] : linux_cluster
worker_flags = remove_logs
[pfx002] : linux_cluster

The use of the "parent" allows pfx001 and pfx002 to be a part of  /linux

You may then push out these configurations to your workers by executing this command:

     qbadmin worker --reconfig

Please respond to this post if you have any additional questions.



ex-centris

  • Jr. Member
  • **
  • Posts: 6
Re: Worker Configuration
« Reply #1 on: August 08, 2007, 04:40:53 AM »
Since all machines read the qbwrk.conf, how would I proceed to push different config to OSX and Windows machines or to push config1 to nodes01 to 10 and config2 to nodes11 to 15?

anthony

  • Senior Software Engineer
  • Hero Member
  • *****
  • Posts: 183
Re: Worker Configuration
« Reply #2 on: August 08, 2007, 05:30:37 PM »
Hey Ex-centris,

   The configuration you a looking for specifically looks like this:

[osx]
worker_cpus = 10

[winnt]
worker_cluster = /hello/world

[nodes[01-10]]
worker_cpus = 5

[nodes[11-15]]
worker_clusters = /dude

Thanks,
    Anthony





pinkwerks

  • Sr. Member
  • ****
  • Posts: 26
    • Method Studios
Re: Worker Configuration
« Reply #3 on: November 13, 2008, 07:54:40 PM »
Hi, I've added 'proxy_nice_value = 10' to the /etc/qbwrk.conf.  This doesn't seem to get pushed to the workers, neither does 'proxy_account'.  Are only settings with a 'worker_' prefix supported?  If it's not supported, it'd be nice if it was.

This is my conf.
---

[slave]
proxy_account = slave

[workstation] : slave
worker_groups = workstation
proxy_nice_value = 10
worker_cpus = 2

[farm] : slave
worker_groups = farm
worker_cpus = 2

[rw64[29-32]] : workstation

[ny-render[01-08]] : farm
---
-p
« Last Edit: November 13, 2008, 07:56:37 PM by pinkwerks »

Matan

  • Jr. Member
  • **
  • Posts: 2
Re: Worker Configuration
« Reply #4 on: January 20, 2010, 04:24:55 PM »
Hi,

I was wandering if there is a way to append values to a key

Something like this:

[Parent]
Value1 = 1,2,3

[Child] : Parent
Value1 += 4,5

Result:

[Parent]
Value1 = 1,2,3

[Child] : Parent
Value1 = 1,2,3,4,5

Matan

  • Jr. Member
  • **
  • Posts: 2
Re: Worker Configuration
« Reply #5 on: January 21, 2010, 08:43:32 AM »
another question:

I defined something like this in my qbwrk.conf

[TagGeneral]
worler_logpath = "\\storage\Qube\Logs\Workers\${_}"
worler_logfile = "\\storage\Qube\Logs\supelog"

[Host1] : TagGeneral

I also defined the supervisor's qb.conf file like this:

supervisor_logpath = "\\storage\Qube\Logs\"
supervisor_logfile = "\\storage\Qube\Logs\supelog"

but I get no logs written, am I doing something wrong here?
« Last Edit: January 21, 2010, 08:45:05 AM by Matan »