[Swift-user] Sites.xml to swift.properties Conversion

Matthew Shaxted Matthew.Shaxted at som.com
Tue Jun 17 16:56:46 CDT 2014


Yes I did just fix this and it is generating two  pools (below), but I still cannot identify the execution provider for some odd reason.

<?xml version="1.0" encoding="UTF-8"?>
<config xmlns="http://www.ci.uchicago.edu/swift/SwiftSites">

<pool handle="local">
<filesystem provider="local"/>
<profile namespace="globus" key="slots">1</profile>
<profile namespace="karajan" key="jobThrottle">0.03</profile>
<workdirectory>/home/som/EnergyPlus/test/work</workdirectory>
<execution provider="coaster" jobmanager="local:local"/>
<profile namespace="globus" key="jobsPerNode">8</profile>
<profile namespace="globus" key="maxwalltime">00:15:00</profile>
</pool>

<pool handle="coaster">
<profile namespace="globus" key="slots">1</profile>
<profile namespace="globus" key="jobsPerNode">8</profile>
<profile namespace="globus" key="maxwalltime">00:15:00</profile>
<filesystem provider="local"/>
<workdirectory>/home/som/EnergyPlus/test/work</workdirectory>
</pool>

</config>

MATTHEW SHAXTED

SKIDMORE, OWINGS & MERRILL LLP
224 South Michigan Ave.
Chicago, IL 60604
TEL: 312.360.4368
FAX: 312.360.4545
matthew.shaxted at som.com<mailto:matthew.shaxted at som.com>

[cid:image001.png at 01CF8A4D.1F7722D0]
WWW.SOM.COM<http://www.som.com/>

The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited and may be unlawful. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender.

[cid:image002.png at 01CF8A4D.1F7722D0]

From: Yadu Nand [mailto:yadudoc1729 at gmail.com]
Sent: Tuesday, June 17, 2014 4:49 PM
To: David Kelly
Cc: Matthew Shaxted; swift-user at ci.uchicago.edu
Subject: Re: [Swift-user] Sites.xml to swift.properties Conversion

Hi David,

Isn't the swift.properties supposed to say : site=local,persistent-coaster
instead of the site variable being redefined in what looks like a single swift.properties file ?

-Yadu

On Tue, Jun 17, 2014 at 4:46 PM, David Kelly <davidkelly at uchicago.edu<mailto:davidkelly at uchicago.edu>> wrote:
Hi Matthew,

The new config assumes the provider is just 'coaster' by default, but it's possible to override this and specify your own url (just a little more verbose). This property should do it:

jobManager=coaster-persistent:local:local:http://localhost:56069

I'll make a note to add documentation about non-'coaster' setups in the userguide.

David

On Tue, Jun 17, 2014 at 4:03 PM, Matthew Shaxted <Matthew.Shaxted at som.com<mailto:Matthew.Shaxted at som.com>> wrote:
Hi Swift support,

I am in the process of converting my 0.94 swift scripts to 0.95, and I am having a bit of difficulties creating the correct sites properties from the new swift.properties file.

I am trying to convert the sites.xml file below, and when I attempt to identify site.persistent-coaster{provider=”coaster-persistent”…} in the swift.properties file I am getting an “Error: Unknown property site.persistent-coasters.provider”.

Can anyone please lend some insight on how to best convert from a sites.xml to a swift.properties file? I am using Swift 0.95 RC6 swift-r7900 cog-r3908

Thanks,
Matthew


0.94 Sites.xml File

<config>
   <pool handle="localhost">
      <execution provider="coaster" jobmanager="local:local"/>
      <profile namespace="karajan" key="jobThrottle">0</profile>
      <profile namespace="karajan" key="initialScore">10000</profile>
      <filesystem provider="local"/>
      <workdirectory>{env.HOME}/work</workdirectory>
   </pool>
  <pool handle="persistent-coasters">
    <execution provider="coaster-persistent"
               url="http://localhost:56069"
               jobmanager="local:local"/>
    <profile namespace="globus" key="workerManager">passive</profile>
    <profile namespace="globus" key="jobsPerNode">2</profile>
    <profile key="jobThrottle" namespace="karajan">.01999</profile>
    <profile namespace="karajan" key="initialScore">10000</profile>
    <filesystem provider="local" url="none" />
    <workdirectory>/tmp/shaxted</workdirectory>
  </pool>
</config>


My new swift.properties file look like below:

sitedir.keep=true
wrapperlog.always.transfer=true

site.local {
   tasksPerWorker=8
   taskWalltime=00:15:00
   maxJobs=1
   workdir=/home/som/EnergyPlus/test/work
   filesystem=local
}
app.local.echo=/bin/echo
site=local

site. persistent-coaster {
   provider=coaster
   tasksPerWorker=8
   taskWalltime=00:15:00
   maxJobs=2
   workdir=/home/som/EnergyPlus/test/work
   filesystem=local
}
app.persistent-coaster.echo=/bin/echo
site=persistent-coaster



MATTHEW SHAXTED

SKIDMORE, OWINGS & MERRILL LLP
224 South Michigan Ave.
Chicago, IL 60604
TEL: 312.360.4368<tel:312.360.4368>
FAX: 312.360.4545<tel:312.360.4545>
matthew.shaxted at som.com<mailto:matthew.shaxted at som.com>

[cid:image001.png at 01CF8A4D.1F7722D0]
WWW.SOM.COM<http://www.som.com/>

The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited and may be unlawful. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender.

[cid:image002.png at 01CF8A4D.1F7722D0]


_______________________________________________
Swift-user mailing list
Swift-user at ci.uchicago.edu<mailto:Swift-user at ci.uchicago.edu>
https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user


_______________________________________________
Swift-user mailing list
Swift-user at ci.uchicago.edu<mailto:Swift-user at ci.uchicago.edu>
https://lists.ci.uchicago.edu/cgi-bin/mailman/listinfo/swift-user



--
Yadu Nand B

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20140617/0eccde7e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 6643 bytes
Desc: image001.png
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20140617/0eccde7e/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 3047 bytes
Desc: image002.png
URL: <http://lists.mcs.anl.gov/pipermail/swift-user/attachments/20140617/0eccde7e/attachment-0001.png>


More information about the Swift-user mailing list