| 4 | | * 當 $ONE_LOCATION/bin/one start 時,會啟動 openNebula,相關的 drivers (Information driver, Virtualization driver & Transfer driver) 和 scheduler。 |
| | 4 | * 當 $ONE_LOCATION/bin/one start 時,會啟動 OpenNebula daemon、相關的 drivers (Information driver, Virtualization driver & Transfer driver) 和 scheduler。 |
| | 5 | |
| | 6 | [[BR]] |
| | 7 | == 2. OpenNebula daemon == |
| | 8 | * 功能:!OpenNebula daemon (oned) 管理 host, vnet & vm |
| | 9 | * 設定檔為 $ONE_LOCATION/etc/oned.conf |
| | 10 | * 相關參數: |
| | 11 | 1. '''HOST_MONITORING_INTERVAL:''' Time in seconds between host monitorization |
| | 12 | 2. '''VM_POLLING_INTERVAL:''' Time in seconds between virtual machine monitorization |
| | 13 | 3. '''VM_DIR:''' Remote path to store the VM images, it should be shared between all the cluster nodes to perform live migrations. This path will be used for all the cluster nodes. |
| | 14 | 4. '''MAC_PREFIX:''' Default MAC prefix to generate virtual network MAC addresses |
| | 15 | 5. '''NETWORK_SIZE:''' Default size for virtual networks |
| | 16 | 6. '''PORT:''' Port where oned will listen for xml-rpc calls |
| | 17 | 7. '''DEBUG_LEVEL:''' Sets the level of verbosity of $ONE_LOCATION/var/oned.log log file. [[BR]](0 -> ERROR, 1 -> WARNING, 2 ->INFO, 3 -> DEBUG) |
| | 18 | * 範例: |
| | 19 | {{{ |
| | 20 | #------------------------------------------------------------------------------- |
| | 21 | # Daemon configuration attributes |
| | 22 | #------------------------------------------------------------------------------- |
| | 23 | HOST_MONITORING_INTERVAL = 10 |
| | 24 | VM_POLLING_INTERVAL = 10 |
| | 25 | |
| | 26 | VM_DIR = /local/images |
| | 27 | |
| | 28 | MAC_PREFIX = "00:01" |
| | 29 | NETWORK_SIZE = 254 |
| | 30 | |
| | 31 | PORT = 2633 |
| | 32 | DEBUG_LEVEL = 3 |
| | 33 | }}} |
| | 34 | |
| | 35 | [[BR]] |
| | 36 | == 3. Information Driver == |
| | 37 | * [http://www.opennebula.org/doku.php?id=documentation:rel1.2:img Information Driver 配置] |
| | 38 | * 功能:從 Clustre node 去收集資訊,相依選擇的 Virtualizer |
| | 39 | * IM 的 File: |
| | 40 | 1. $ONE_LOCATION/lib/mads/one_im_ssh : shell script wrapper to the driver itself. Sets the environment and other bootstrap tasks. |
| | 41 | 2. $ONE_LOCATION/lib/mads/one_im_ssh.rb : The actual Information driver. |
| | 42 | 3. $ONE_LOCATION/lib/im_probes/* : sensors home. Little scripts or binaries that extract information from the remote hosts. Let's see a simple one to understand how they work: |
| | 43 | * 適用於 Xen 的 IM File: |
| | 44 | 1. $ONE_LOCATION/etc/im_xen/im_xenrc : environment setup and bootstrap instructions |
| | 45 | 2. $ONE_LOCATION/etc/im_xen/im_xen.conf : This file defines the REMOTE_DIR and which sensors will be used |
| | 46 | 3. $ONE_LOCATION/lib/im_probes/xen.rb : xen specific sensor. |
| | 47 | * 範例 (適用於 Xen) |
| | 48 | {{{ |
| | 49 | IM_MAD = [ |
| | 50 | name = "im_xen", |
| | 51 | executable = "bin/one_im_ssh", |
| | 52 | arguments = "im_xen/im_xen.conf", |
| | 53 | default = "im_xen/im_xen.conf" ] |
| | 54 | }}} |