[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Condor-users] Defining per-slot attribute setting - does not work for me



I’m trying to follow 3.13.9.8 Configuring STARTD_ATTRS on a per-slot basis

But it does not seem to work for me.

 

1.      I tried the following lines in condor_config file:

favorite_color = "blue"

favorite_season = "spring"

STARTD_ATTRS = favorite_color, favorite_season, ${STARTD_ATTRS}

SLOT2_favorite_color = "green"

SLOT3_favorite_season = "summer"

I restarted STARTD and then view the attributes by listing condor_status –l, I did not find any string “favorite”

I also could not find this string in any of the logfiles: /usr/local/condor/log/*

 

2.      I then tried the following lines in condor_config file:

FunnyName = "noname"

STARTD_ATTRS = FunnyName, $(STARTD_ATTRS)

SLOT1_FunnyName = "donald"

SLOT2_FunnyName = "mickey"

SLOT3_FunnyName = "goofy"

I restarted STARTD and then view the attributes by listing condor_status –l, I did not find any string “FunnyName

I also could not find this string in any of the logfiles: /usr/local/condor/log/*

 

What am I doing wrong here ?

 

3.      I am trying to set ClassAds per machine (or slot of machine in this case). Where do I write the ClassAds – only in file condor_config ? or there are other files ?

 

 

Thanks,

Yuval.

 

--

Yuval Leader

Design Automation Engineer, Mellanox Technologies

mailto: leader@xxxxxxxxxxxx

Tel: +972-74-7236360     Fax: +972-4-9593245

Beit Mellanox. 6th Floor,R-620

P.O.Box 586, Yokneam Industrial Park, 20692 Israel

 

From: condor-users-bounces@xxxxxxxxxxx [mailto:condor-users-bounces@xxxxxxxxxxx] On Behalf Of Ian Chesal
Sent: Thursday, August 23, 2012 5:48 PM
To: Condor-Users Mail List
Subject: Re: [Condor-users] SMP machine - Defining and naming Slot Types

 

On Thursday, 23 August, 2012 at 4:43 AM, Yuval Leader wrote:

Hi,

 

I used the default “evenly divide all resources” option on my single SMP machine.

As expected, the vm got the names slot1, slot2 etc.

 

Question #1: Is there a way to assign my own machine names instead of slot1, slot2 ? for example I would like to name them “donald”,”mickey”,”goofy”

 

You can also make per-slot attribute settings and push custom ads to the slots that "name" them: http://research.cs.wisc.edu/condor/manual/v7.6/3_13Setting_Up.html#36580

 

FunnyName = "noname"

STARTD_ATTRS = FunnyName, $(STARTD_ATTRS)

SLOT1_FunnyName = "donald"

SLOT2_FunnyName = "mickey"

SLOT3_FunnyName = "goofy"

 

Now you can see these names with 'condor_status -f "%s\n" FunnyName'.

I would like to try out the “Define your own slot type option”.

For example, I would like to define one slot with a larger portion of the memory and call is “bigmem”. The other slot to be called “normalmem”

From the in-source documentation of the condor_config, I understand that the naming convention is “SLOT_TYPE_<N>”

 

Question#2: In the “Define your own slot type option”, what are the machine names, in the standard naming convention of  “SLOT_TYPE_<N>” ?

I'm not sure what you mean by machine names? You define types:

 

SLOT_TYPE_1 = …some config…

SLOT_TYPE_2 = …some config…

 

And then you tell Condor to create instances of those type:

 

NUM_SLOTS_TYPE_1 = 1

NUM_SLOTS_TYPE_2 = 2

 

That'll make slot1@<hostname> be of type 1 and slot2@ and slot3@ be of type 2.

 Question#3: In the “Define your own slot type option”, can the names of different types of machine types be changed to what I want e.g.  “bigmem”,  “normalmem”?

 

Regards,

- Ian

 

---

Ian Chesal

 

Cycle Computing, LLC

Leader in Open Compute Solutions for Clouds, Servers, and Desktops

Enterprise Condor Support and Management Tools