ISAP Optimization

Generic model

Model overview

Service abstract Service Machine abstract Machine Service->Machine machine Machine->Service services Requirements abstract Requirements Resources abstract Resources : Requirements Task Task InterferenceData abstract InterferenceData MachineISAP abstract MachineISAP : Machine ServiceISAP abstract ServiceISAP : Service MachineISAP->ServiceISAP interferenceSensitiveServices ServiceISAP->MachineISAP machineISAP GoogleCA GoogleCA : MachineISAP GoogleNY GoogleNY : MachineISAP GoogleTX GoogleTX : MachineISAP MailService MailService : ServiceISAP SearchService SearchService : ServiceISAP CalendarService CalendarService : Service DriveService DriveService : Service
Module Statistics: | All clafers: 30 | Abstract: 7 | Concrete: 23 | Reference: 10 | Constraints: 22 | Goals: 1 | Global scope: 1..* | Can skip name resolver: yes |

Module Downloads: | [.cfr] | [.html] |


Service prototype

abstract Service
requirements : Requirements// resources required by a service
machine -> Machine// machine the service is allocated to
[ this in machine.services ]// inverse relationship constraint

Requirements and Resources prototypes

abstract Requirements
cpu -> integer
abstract Resources : Requirements

Machine prototype

abstract Machine
services -> Service *
[ this.machine = Machine ]
isFree ?
[ isFree <=> no services ]
limits : Resources
utilization : Resources
[ cpu < limits.cpu ]

A machine is free when no services are allocated. Utilization of the machine must satisfy limits.

Optimization goals and constraints

We want to maximize the number of free machines.

Task
total_free -> integer = # Machine.isFree
<<max Task.total_free>>

ISAP problem specifics

abstract InterferenceData
memoryPressure ->> integer
memorySensitivity ->> integer
abstract MachineISAP : Machine
interferenceSensitiveServices -> ServiceISAP *
abstract ServiceISAP : Service
interferenceData : InterferenceData
machineISAP -> MachineISAP
[ this = machine ]
memoryPressureToThisService -> integer = totalPressure - interferenceData.memoryPressure
// typecasting the machine to MachineISAP

Particular data (machines and services)

Machines

GoogleCA : MachineISAP
[ limits.cpu = 10 ]
GoogleNY : MachineISAP
[ limits.cpu = 16 ]// constraint:
GoogleTX : MachineISAP
[ limits.cpu = 14 ]

Services

CalendarService : Service
[ requirements.cpu = 1 ]
DriveService : Service
[ requirements.cpu = 2 ]