Swift Configuration
Swift uses a single configuration file called swift.properties. The swift.properties file is responsible for:
1. Defining how to interface with schedulers
2. Defining app names and locations
3. Defining various other swift settings and behavior
Here is an example swift.properties file.
# Define a site named sandyb
site.sandyb {
tasksPerWorker=16
taskWalltime=00:05:00
jobManager=slurm
jobQueue=sandyb
maxJobs=1
workdir=/scratch/midway/$USER/work
filesystem=local
}
# Define sandyb apps
app.sandyb.echo=/bin/echo
# Define other swift properties
sitedir.keep=true
wrapperlog.always.transfer=true
# Select which site to run on
site=sandyb
The details of this file will be explained more later. Let’s first look at an example of running Swift. Using the swift.properties the new Swift command a user would run is:
$ swift script.swift
That is all that is needed. Everything Swift needs to know is defined in swift.properties.