OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

saf message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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>

}

 

 



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]