@@ -43,7 +43,7 @@ deployment_groups:
4343 use :
4444 - network1
4545
46- - id : htcondor_configure_central_manager
46+ - id : htcondor_startup_central_manager
4747 source : modules/scripts/startup-script
4848 settings :
4949 runners :
@@ -54,7 +54,7 @@ deployment_groups:
5454 source : modules/compute/vm-instance
5555 use :
5656 - network1
57- - htcondor_configure_central_manager
57+ - htcondor_startup_central_manager
5858 settings :
5959 name_prefix : central-manager
6060 machine_type : c2-standard-4
@@ -77,25 +77,40 @@ deployment_groups:
7777 outputs :
7878 - internal_ip
7979
80- - id : htcondor_configure_execute_point
80+ - id : htcondor_startup_execute_point
8181 source : modules/scripts/startup-script
8282 settings :
8383 runners :
8484 - $(htcondor_install.install_htcondor_runner)
8585 - $(htcondor_configure.execute_point_runner)
8686
87+ # the HTCondor modules support up to 2 execute points per blueprint
88+ # if using 1, it may use Spot or On-demand pricing
89+ # if using 2, one must use Spot and the other must use On-demand (default)
8790 - id : htcondor_execute_point
8891 source : community/modules/compute/htcondor-execute-point
8992 use :
9093 - network1
91- - htcondor_configure_execute_point
94+ - htcondor_startup_execute_point
9295 settings :
9396 service_account :
9497 email : $(htcondor_configure.execute_point_service_account)
9598 scopes :
9699 - cloud-platform
97100
98- - id : htcondor_configure_access_point
101+ - id : htcondor_execute_point_spot
102+ source : community/modules/compute/htcondor-execute-point
103+ use :
104+ - network1
105+ - htcondor_startup_execute_point
106+ settings :
107+ spot : true
108+ service_account :
109+ email : $(htcondor_configure.execute_point_service_account)
110+ scopes :
111+ - cloud-platform
112+
113+ - id : htcondor_startup_access_point
99114 source : modules/scripts/startup-script
100115 settings :
101116 runners :
@@ -104,23 +119,26 @@ deployment_groups:
104119 - $(htcondor_install.install_autoscaler_runner)
105120 - $(htcondor_configure.access_point_runner)
106121 - $(htcondor_execute_point.configure_autoscaler_runner)
122+ - $(htcondor_execute_point_spot.configure_autoscaler_runner)
107123 - type : data
108124 destination : /var/tmp/helloworld.sub
109125 content : |
110- universe = docker
111- docker_image = hello-world
112- output = out
113- error = err
114- log = log
126+ universe = vanilla
127+ executable = /bin/echo
128+ arguments = "Hello, World!"
129+ output = out.\$(ClusterId).\$(ProcId)
130+ error = err.\$(ClusterId).\$(ProcId)
131+ log = log.\$(ClusterId).\$(ProcId)
115132 request_cpus = 1
116133 request_memory = 100MB
134+ +RequireSpot = true # if unset, defaults to false
117135 queue
118136
119137 - id : htcondor_access
120138 source : modules/compute/vm-instance
121139 use :
122140 - network1
123- - htcondor_configure_access_point
141+ - htcondor_startup_access_point
124142 settings :
125143 name_prefix : access-point
126144 machine_type : c2-standard-4
0 commit comments