Revision e8fa4ff6 htools/Ganeti/HTools/Types.hs
b/htools/Ganeti/HTools/Types.hs | ||
---|---|---|
6 | 6 |
|
7 | 7 |
{- |
8 | 8 |
|
9 |
Copyright (C) 2009, 2010, 2011 Google Inc. |
|
9 |
Copyright (C) 2009, 2010, 2011, 2012 Google Inc.
|
|
10 | 10 |
|
11 | 11 |
This program is free software; you can redistribute it and/or modify |
12 | 12 |
it under the terms of the GNU General Public License as published by |
... | ... | |
199 | 199 |
, THH.renameField "MaxSpec" $ THH.simpleField "max" [t| ISpec |] |
200 | 200 |
, THH.renameField "DiskTemplates" $ |
201 | 201 |
THH.simpleField "disk_templates" [t| [DiskTemplate] |] |
202 |
, THH.renameField "VcpuRatio" $ |
|
203 |
THH.simpleField "vcpu_ratio" [t| Double |] |
|
202 | 204 |
]) |
203 | 205 |
|
204 | 206 |
-- | Converts an ISpec type to a RSpec one. |
... | ... | |
217 | 219 |
-- string values, not the actual type; and in |
218 | 220 |
-- htools, we are mostly looking at DRBD |
219 | 221 |
, iPolicyDiskTemplates = [DTDrbd8, DTPlain] |
222 |
, iPolicyVcpuRatio = C.ipolicyDefaultsVcpuRatio |
|
220 | 223 |
} |
221 | 224 |
|
222 | 225 |
-- | The dynamic resource specs of a machine (i.e. load or load |
Also available in: Unified diff