Class: IControl::Management::Provision
- Inherits:
-
Base
- Object
- Base
- IControl::Management::Provision
- Defined in:
- lib/icontrol/management/provision.rb,
lib/icontrol/management.rb
Overview
The Provision interface manages the partitioning of system memory, disk space, and CPU usage among the modules (e.g., LTM, GTM, WOM) licensed to run on the system. The modules and the "host“ system (everything not dedicated to network traffic processing) are first assigned a minimal set of resources, based on pre-determined values and the available system memory. The remaining resources are distributed among the modules, according to pre-determined rules, which can be modified by values which can be set via this iControl interface. The pre-defined module resource allocation handles a wide variety of circumstances, so this allocation should only need to be changed for unusual circumstances, such as turning modules on or off and large network traffic or configurations.
Defined Under Namespace
Classes: ProvisionLevel, ProvisionLevelSequence
Instance Method Summary collapse
-
#custom_cpu_ratio ⇒ long
Gets the ratios of CPU usage above the minimum which are allocated to the requested module.
-
#custom_disk_ratio ⇒ long
Gets the ratios of disk space above the minimum which are allocated to the requested module.
-
#custom_memory_ratio ⇒ long
Gets the ratios of system memory which are allocated to the requested module.
-
#level ⇒ ProvisionLevel
Gets the provisioning level for the requested module.
-
#list ⇒ TMOSModule
Gets all provisionable module.
-
#provisioned_list ⇒ TMOSModule
Gets all provisioned module, i.e., all module which have resources to run on the system, i.e., whose provisioning level is not "none“.
-
#set_custom_cpu_ratio(opts) ⇒ Object
Sets the ratios of CPU usage above the minimum levels which are allocated to the requested module.
-
#set_custom_disk_ratio(opts) ⇒ Object
Sets the ratios of disk space above the minimum which are allocated to the requested module.
-
#set_custom_memory_ratio(opts) ⇒ Object
Sets the ratios of system memory above the minimum which are allocated to the requested module.
-
#set_level(opts) ⇒ Object
Sets the provisioning level for the requested module.
-
#version ⇒ String
Gets the version for this interface.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class IControl::Base
Instance Method Details
#custom_cpu_ratio ⇒ long
Gets the ratios of CPU usage above the minimum which are allocated to the requested module. This value is only meaningful for the "custom“ provisioning level.
27 28 29 |
# File 'lib/icontrol/management/provision.rb', line 27 def custom_cpu_ratio super end |
#custom_disk_ratio ⇒ long
Gets the ratios of disk space above the minimum which are allocated to the requested module. This value is only meaningful for the "custom“ provisioning level.
39 40 41 |
# File 'lib/icontrol/management/provision.rb', line 39 def custom_disk_ratio super end |
#custom_memory_ratio ⇒ long
Gets the ratios of system memory which are allocated to the requested module. This value is only meaningful for the "custom“ provisioning level.
51 52 53 |
# File 'lib/icontrol/management/provision.rb', line 51 def custom_memory_ratio super end |
#level ⇒ ProvisionLevel
Gets the provisioning level for the requested module.
62 63 64 |
# File 'lib/icontrol/management/provision.rb', line 62 def level super end |
#list ⇒ TMOSModule
Gets all provisionable module
73 74 75 |
# File 'lib/icontrol/management/provision.rb', line 73 def list super end |
#provisioned_list ⇒ TMOSModule
Gets all provisioned module, i.e., all module which have resources to run on the system, i.e., whose provisioning level is not "none“.
85 86 87 |
# File 'lib/icontrol/management/provision.rb', line 85 def provisioned_list super end |
#set_custom_cpu_ratio(opts) ⇒ Object
Sets the ratios of CPU usage above the minimum levels which are allocated to the requested module. This value is only valid for the "custom“ provisioning level.
107 108 109 110 |
# File 'lib/icontrol/management/provision.rb', line 107 def set_custom_cpu_ratio(opts) opts = check_params(opts,[:ratios]) super(opts) end |
#set_custom_disk_ratio(opts) ⇒ Object
Sets the ratios of disk space above the minimum which are allocated to the requested module. This value is only used for the "custom“ provisioning level.
121 122 123 124 |
# File 'lib/icontrol/management/provision.rb', line 121 def set_custom_disk_ratio(opts) opts = check_params(opts,[:ratios]) super(opts) end |
#set_custom_memory_ratio(opts) ⇒ Object
Sets the ratios of system memory above the minimum which are allocated to the requested module. This value is only valid for the "custom“ provisioning level.
135 136 137 138 |
# File 'lib/icontrol/management/provision.rb', line 135 def set_custom_memory_ratio(opts) opts = check_params(opts,[:ratios]) super(opts) end |
#set_level(opts) ⇒ Object
Sets the provisioning level for the requested module. Changing the level for one module may require modifying the level of another module. For example, changing one module to "dedicated“ requires setting all others to "none”, or setting one module to "custom“ requires setting all other module to "custom” or "none“. Setting the level of a module to "none” means that the module is not run.
153 154 155 156 |
# File 'lib/icontrol/management/provision.rb', line 153 def set_level(opts) opts = check_params(opts,[:levels]) super(opts) end |
#version ⇒ String
Gets the version for this interface.
93 94 95 |
# File 'lib/icontrol/management/provision.rb', line 93 def version super end |