Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
changed si.basic.mem property to si.instancetype (small, large, xlarg…
Browse files Browse the repository at this point in the history
…e) in spotinstances.conf file
  • Loading branch information
pauloricardomg committed Aug 5, 2010
1 parent efa8d13 commit 332434e
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 8 deletions.
Expand Up @@ -136,4 +136,11 @@

</bean>

<bean id="elasticSettings"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">

<property name="location" value="$NIMBUS_HOME/services/etc/nimbus/elastic/elastic.conf" />
<property name="placeholderPrefix" value="$ELASTIC{" />
</bean>

</beans>
Expand Up @@ -558,7 +558,7 @@
<constructor-arg ref="nimbus-rm.loglevels" />
<constructor-arg ref="nimbus-rm.home.instance"/>
<constructor-arg ref="nimbus-rm.home.group"/>
<constructor-arg value="$SI{si.basic.minprice}" />
<constructor-arg value="$SI{si.minprice}" />
<constructor-arg ref="nimbus-rm.si.pricingmodel" />

<!-- set after object creation time to avoid circular dep -->
Expand All @@ -570,7 +570,7 @@
<property name="maxUtilization"
value="$SI{async.policies.maxutilization}" />
<property name="instanceMem"
value="$SI{si.basic.mem}" />
value="$ELASTIC{memory.$SI{si.instancetype}}" />

</bean>

Expand Down
Expand Up @@ -61,15 +61,24 @@ si.pricingmodel=org.globus.workspace.async.pricingmodel.MaximizeUtilizationPrici
# BASIC SPOT INSTANCE CONFIGURATION:
####################################

# Defines the amount of memory (in MegaBytes) that
# a Spot Instance of the basic type has
# Defines the instance type that will become
# available as spot instances
#
# The supported instance types are:
# small, large and xlarge.
#
# The amount of memory for each instance type
# is defined in the elastic.conf file.
#
# Currently, Nimbus only supports one type
# of Spot Instance type per site.

si.basic.mem=128
si.instancetype=small

# Defines the minimum price (in allocation units) per minute
# that a Spot Instance of the basic type can cost
# that a Spot Instance can cost

si.basic.minprice=0.1
si.minprice=0.1


#############################
Expand Down Expand Up @@ -115,4 +124,4 @@ async.policies.minreservedmem=256
#
# * reservedMem = (1 - maxUtilization)*usedMem/maxUtilization

async.policies.maxutilization=0.7
async.policies.maxutilization=0.7

0 comments on commit 332434e

Please sign in to comment.