← Prev in month ← Prev in thread
Next in thread → Next in month →

CMWG use case

From
Vaught, Jeffrey A <>
Date
2011-10-05T04:15:54+00:00
ID
Thread
CMWG use case
As promised… a first pass at cloud profile use case converted to CMWG.

 

 

 

Use case: 
Increase server capacity by 50%

 

SYMPTOMS:

Detect capacity symptoms via CMWG Monitor

Tbd

 

Other symptoms

Tbd

 

 

 

 

PRESCRIPTION:

Get current machines

Request: GET http://www.safco.com/cimi/machines

Response:

<MachineCollection>

          <uri>mymachines</uri>

          <name>mymachines</name>

          <description>my machines</description>

          <created>2011-10-04T11:28:00</created>

          <machine href="" />

          <machine href="" />

          <machine href="" />

          <machine href="" />

</MachineCollection>

 

Determine number of machines

let $c := count(MachineCollection[uri=”mymachines”]/machine)

 

Add 50% more capacity

While ($newc=$c*0.50;$newc > 0; $newc--)

{

Request: 

PUT http://www.safco.com/cimi/machines

<MachineCollection>

          <uri>mymachines</uri>

          <operation rel=”add” href="" href="http://www.safco.com/cimi/machinecreate">http://www.safco.com/cimi/machinecreate” />

</MachineCollection>

 

POST http://www.safco.com/cimi/machinecreate

<MachineCreate>

          <name>mymachine($c+$newc)</name>

          <machineTemplate href="" />

</MachineCreate>

}
← Prev in month ← Prev in thread
Next in thread → Next in month →