uzh / vm-mad

Dynamically grow or shrink GridEngine clusters using cloud-based nodes
https://arxiv.org/abs/1302.2529
Apache License 2.0
3 stars 2 forks source link

write the `SmscgProvider` class #12

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The `NodeProvider` classes provide the interface between the
`Orchestrator` and specific "VM allocation services".

An `SmscgProvider` that uses an ARC job to launch an AppPot-based
"golden image" can be drafted as follows:

* use the `NodeProvider` class in `provider/__init__.py` as a
  template; inherit from it and implement all abstract methods.

* use GC3Pie as a basis for interacting with ARC and AppPot; the
  `gdemo_simple.py` example[1] can be used as a source for extracting
  working code samples.

Basically, the implementation of the methods should be rougly as
follows: 

* `__init__`: Initialize GC3Pie, i.e., create the `gc3pie.core.Core`
  object and a `gc3pie.persistence.FilesystemStore` instance.

* `start_vm`: Create a suitable `gc3pie.application.AppPotApplication`
  instance and submit it; record the job ID for future reference.

* `stop_vm`: Kill the job ID corresponding to the specified VM.

[1]: 
http://code.google.com/p/gc3pie/source/browse/trunk/gc3pie/examples/gdemo_simple
.py

Original issue reported on code.google.com by riccardo.murri@gmail.com on 16 Apr 2012 at 11:12

GoogleCodeExporter commented 9 years ago
Almost completed. All the gc3pie related parts have to be better checked. 

Original comment by tyanko.a...@gmail.com on 17 Apr 2012 at 3:14

GoogleCodeExporter commented 9 years ago

Original comment by riccardo.murri@gmail.com on 26 Apr 2012 at 9:45