incubator-deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Fojtik <mfoj...@redhat.com>
Subject Re: [PATCH 02/10] Properly define hardware profiles for gogrid.
Date Fri, 06 Aug 2010 09:54:00 GMT
On 05/08/10 15:57 -0400, Chris Lalancette wrote:
>Signed-off-by: Chris Lalancette <clalance@redhat.com>
>---
> .../lib/deltacloud/drivers/gogrid/gogrid_driver.rb |   30 ++++++++++++++++++--
> 1 files changed, 27 insertions(+), 3 deletions(-)
>
>diff --git a/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb b/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb
>index 28cba15..31fa74b 100644
>--- a/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb
>+++ b/server/lib/deltacloud/drivers/gogrid/gogrid_driver.rb
>@@ -37,10 +37,34 @@ class GogridDriver < Deltacloud::BaseDriver
>
>   feature :instances, :authentication_password
>
>-  define_hardware_profile 'server' do
>+  define_hardware_profile '512MB' do
>+    cpu            0.5
>+    memory         512
>+    storage        30
>+  end
>+
>+  define_hardware_profile '1GB' do
>+    cpu            1
>+    memory         1
>+    storage        60
>+  end
>+
>+  define_hardware_profile '2GB' do
>     cpu            2
>-    memory         [512, 1024, 2048, 4096, 8192]
>-    storage        10
>+    memory         2
>+    storage        120
>+  end
>+
>+  define_hardware_profile '4GB' do
>+    cpu            4
>+    memory         4
>+    storage        240
>+  end
>+
>+  define_hardware_profile '8GB' do
>+    cpu            8
>+    memory         8
>+    storage        480
>   end
>
>   def supported_collections

Perfect! ACK.

-- 
--------------------------------------------------------
Michal Fojtik, mfojtik@redhat.com, +420 532 294 4307
Ruby / Ruby On Rails Developer
Deltacloud API: http://deltacloud.org
--------------------------------------------------------

Mime
View raw message