Changes between Version 5 and Version 6 of GTD_Cloud_One_arch


Ignore:
Timestamp:
Apr 6, 2009, 10:57:47 AM (16 years ago)
Author:
rock
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GTD_Cloud_One_arch

    v5 v6  
    44[[Image(oper.png)]]
    55 * 只需安裝 ONE 於 Server 即可
    6  * Client 和 Server 間的溝通是透過 ssh (必須設定 ONE 管理者的 ssh 自動登入)
    7  * Host 和 VM 的資訊是透過 SQLite 來存取 ($ONE_LOCATION/var/one.db)
    8 
    9 [[BR]]
    10 == 1.程式面 ==
    11  * one 啟動時,會根據 oned.conf 的設定來啟動 2 個 Daemon 和 3 個 driver:
     6 * Client 和 Server 透過 ssh 來溝通
     7 * Host 和 VM 的資訊透過 SQLite 來存取 ($ONE_LOCATION/var/one.db)
     8 * 當 one start 時,會根據 oned.conf 啟動 (1)!ONE daemon 和 Scheduler (2)Drivers
    129   * oned (主程式)
    1310   * mm_sched (排程用)
    1411   * one_im_ssh.rb (資訊管理者)
    1512   * one_vmm_xen.rb (虛擬管理者,此處的 Vitualizer 為 Xen,若是用 KVM 則為 one_vmm_kvm.rb)
    16    * one_tm.rb  (傳輸管理者)
    17 
    18 == 2.指令運作面 ==
    19  * onehost
    20 == 0. OpenNEbula 的 Daemon ==
    21  * 當 $ONE_LOCATION/bin/one start 時,會啟動 (1)!OpenNebula daemon、(2)相關的 Drivers (Information driver, Virtualization driver & Transfer driver) 和 (3)Scheduler。
    22  * Drivers 彼此都是獨立的 process,透過 internal ASCII protocol 與 OpenNEbla core 溝通,在 load driver 前會啟動兩個 Run Command (RC) 來獲得境變數,這兩個 RC file為:
     13   * one_tm.rb  (傳輸管理者) 
     14 * Drivers 都是獨立的 process,透過 internal ASCII protocol 與 ONE core 溝通,在 load driver 前會啟動兩個 Run Command (RC) 來獲得境變數,這兩個 RC file為:
    2315   1. $ONE_LOCATION/etc/mad/defaultrc
    2416   2. Driver 各自的特定的檔案
    25 
    26 [[BR]]
    27 == 3. OpenNebula daemon ==
    28  * 功能:!OpenNebula daemon (oned) 管理 host, vnet & vm
    29    * 設定檔為 $ONE_LOCATION/etc/oned.conf
    30      * 相關參數:
    31        1. '''HOST_MONITORING_INTERVAL:''' Time in seconds between host monitorization
    32        2. '''VM_POLLING_INTERVAL:''' Time in seconds between virtual machine monitorization
    33        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.
    34        4. '''MAC_PREFIX:''' Default MAC prefix to generate virtual network MAC addresses
    35        5. '''NETWORK_SIZE:''' Default size for virtual networks
    36        6. '''PORT:''' Port where oned will listen for xml-rpc calls
    37        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)
     17----
     18== 1. ONE Daemon ==
     19 * oned 管理 host, vnet & vm ($ONE_LOCATION/etc/oned.conf)
     20   * 相關參數:
     21     1. '''HOST_MONITORING_INTERVAL:''' Time in seconds between host monitorization
     22     2. '''VM_POLLING_INTERVAL:''' Time in seconds between virtual machine monitorization
     23     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.
     24     4. '''MAC_PREFIX:''' Default MAC prefix to generate virtual network MAC addresses
     25     5. '''NETWORK_SIZE:''' Default size for virtual networks
     26     6. '''PORT:''' Port where oned will listen for xml-rpc calls
     27     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)
    3828   * 範例:
    3929{{{
     
    4939DEBUG_LEVEL  = 3
    5040}}}
    51 
    52 [[BR]]
    53 == 4. Information Driver ==
    54  * 功能:從 Clustre node 去收集資訊,相依選擇的 Virtualizer
    55  * [http://www.opennebula.org/doku.php?id=documentation:rel1.2:img Information Driver 配置]
     41----
     42== 2. Information Driver ==
     43 * 從 Clustre node 去收集資訊,相依選擇的 Virtualizer
    5644 * IM 的 File:
    5745   1. $ONE_LOCATION/lib/mads/one_im_ssh : shell script wrapper to the driver itself. Sets the environment and other bootstrap tasks.
     
    7058    default    = "im_xen/im_xen.conf" ]
    7159}}}
    72 
    73 [[BR]]
    74 == 5. Transfer Driver ==
     60----
     61== 3. Transfer Driver ==
    7562 * 功能:傳輸、複製、回復和開啟 VM 印象檔
    7663 * 範例檔:
     
    8269    default    = "tm_ssh/tm_ssh.conf" ]
    8370}}}
    84 
    85 [[BR]]
    86 == 6. Virtualization Driver ==
    87  * 功能:開啟、控制和監控 VMs 在 Cluster nodes
    88  * [http://www.opennebula.org/doku.php?id=documentation:rel1.2:xeng Xen Driver 的配置]
     71----
     72== 4. Virtualization Driver ==
     73 * 開啟、控制和監控 VMs
    8974 * 範例檔:
    9075{{{
     
    9580    type       = "xen" ]   
    9681}}}
    97 
    98 == 7. Scheduler  ==
    99  * 功能:分配 pending VM 到 Host,他是獨立的 process
     82----
     83== 5. Scheduler  ==
     84 * 分配 pending VM 到 Host,他是獨立的 process
    10085 * match making scheduler (mm_sched) 實作 Rank Scheduling Policy.
    10186