-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfiguration.sh
53 lines (39 loc) · 1.9 KB
/
configuration.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
## Configuration file for variable creation
## Set the maximum and minimum number of nodes that will run
MAXNODES=6
MINNODES=2
## The script needs to monitor the submitting user(s) to count running jobs and do other things.
readarray SUBMITTINGUSERS < <(echo "-submitter galaxy"; echo "-submitter centos")
## This is the base name that each execute node will get in the openstack interface. To make each node unique the main script will append the unix time
## at the time of creation. An example is "htcondorexecute-1515581225".
CONDORINSTANCENAME=htcondorexecute
## Name of the base VM image that will be used as execute node
CONDORIMAGENAME=HTCondorVanilla-20-08-18
#CONDORIMAGENAME=("GOLD CentOS 7")
## Security group name(s) openstack
readarray SECURITYGROUPS < <(echo "--security-group Pipeline-development"; echo "--security-group test"; echo "--security-group default")
## SSH key name for VM administration, this needs to exist already
SSHKEY=vgcn-testing
## Net id
readarray NIC < <(echo "--nic net-id=dualStack")
## Set flavor size for small or large VMs.
## m1.large: 2 cores, 8GB RAM
## m1.xlarge: 4 cores, 16B RAM
## m2.2xlarge: 8 cores, 32 GB RAM
## m2.4xlarge: 16 cores, 64 GB RAM
SMALL=m1.xlarge
LARGE=m1.xlarge
## Idle job VM creation variable, when the number of idle jobs is greater than this number, a larger VM is created to speed up the job execution
IDLEJOBVMC=40
## Large VM creation variable. This variable represents the number of CPUs that the job requests, if a job requests 4 CPUs, but no VM can run the job,
## then a new instance with 4 CPUs (m1.xlarge) is created. If this variable is changed to e.g 8, the $LARGE variable must be changed to the corresponding
## flavor too
LARGEVMC=4
## Sleep variables for the various sleep commands
SHORTSLEEP=15
LONGSLEEP=60
## How many redundant nodes to create
REDUNDANTNODES=2
## How many nodes to start when there are many queued jobs
STARTMANY=4