Skip to content

Instantly share code, notes, and snippets.

@yaronp68
Created November 12, 2012 11:24
Show Gist options
  • Save yaronp68/4058818 to your computer and use it in GitHub Desktop.
Save yaronp68/4058818 to your computer and use it in GitHub Desktop.
service {
name "groovy"
type "WEB_SERVER"
elastic true
numInstances 2
maxAllowedInstances 2
// define SLA requirements for each service instance with regards to isolation from other services
// if this is not defined - defaults to dedicated mode. which means each service instance is insalled on a dedicated VM.
isolationSLA {
global { // global - meaning each service instance can be installed on any VM that answer the requirements below.
// allowing services to share VM's. Note: VM's running management process are not included.
instanceCpuCores 0 // no CPU requirements, this way instances can be installed on the same VM even if it has just one CPU(can also define 0.5 CPU requirements and so on...)
instanceMemoryMB 128 // each instance needs 128MB to be allocated for him on the VM.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment