Changes between Version 11 and Version 12 of DRM4G/UseCases


Ignore:
Timestamp:
Jan 30, 2017 6:20:25 PM (5 years ago)
Author:
minondoa
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DRM4G/UseCases

    v11 v12  
    491491}}}
    492492{{{#!td
    493 The user will indicate in the "__resources.conf__" with the configuration keys "'''''max_nodes'''''" and "'''''min_nodes'''''" how many VMs he wants created.
     493The user will indicate in the "__resources.conf__" with the configuration keys "'''''max_nodes'''''" and "'''''min_nodes'''''" how many VMs he wants created
    494494}}}
    495495|----------------
     
    545545
    546546
     547{{{#!th colspan=2 align=justify
     548'''Use case''': [=#DestroyingVMsdynamically Destroying VMs dynamically]
     549}}}
     550|----------------
     551{{{#!td
     552'''Description'''
     553}}}
     554{{{#!td
     555The DRM4G will check if certain parameters have been met and then will proceed to destroy the VMs
     556}}}
     557|----------------
     558{{{#!td
     559'''Primary Actor'''
     560}}}
     561{{{#!td
     562DRM4G
     563}}}
     564|----------------
     565{{{#!td
     566'''Preconditions'''
     567}}}
     568{{{#!td
     569* There must be a resource in the configuration defined with the purpose for the creation of VMs
     570* The user must have already [#Creatingcloudcredentials created his x509 certificate proxy]
     571}}}
     572|----------------
     573{{{#!td
     574'''Basic Flow'''
     575}}}
     576{{{#!td
     5771. For each VM, the DRM4G will check how many jobs it's currently running
     5781. If there aren't any jobs, the VM will be given an '''''idle''''' state
     579 a. It will remain in this state until it's assigned a job
     5801. If a VM stays '''''idle''''' for a certain amount of time, it will be destroyed
     581 a. If a VM has been marked to be destroyed but the user has already been charged for it, it won't be destroyed until the time it has been hired for has passed
     582 a. If a VM has been marked to be destroyed but a job is assigned to it, it will be given a second chance, but the the second time it gets marked it will be destroyed
     583}}}
     584|----------------
     585{{{#!td
     586'''Postconditions'''
     587}}}
     588{{{#!td
     589* The VMs will be correctly destroyed until the number of available VMs reaches "'''''min_nodes'''''"
     590}}}
     591|----------------
     592{{{#!td
     593'''Alternate Flow'''
     594}}}
     595{{{#!td
     5961. If the user has run out of money, all VMs will be destroyed
     597 a. It will wait for the last paid hour to pass before destroying the VM
     598}}}
     599
     600
     601
     602
     603
     604
     605[[br]]
     606
     607
     608
     609
     610
    547611{{{#!comment
    548612