Changes between Version 4 and Version 5 of Haizea_sim
- Timestamp:
- Jan 14, 2010, 11:43:06 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Haizea_sim
v4 v5 5 5 }}} 6 6 ---- 7 = 【 1.架構】 =7 = 【0.架構】 = 8 8 [[Image(mode_unattended_simulation.png,width=600px)]] 9 9 * Haizea Configuration File - 一個文字檔包含一些選項 10 10 * Request Tracefile - 一個文字檔包含了租約的需求 11 11 ---- 12 = 【1.開始】 = 12 = 【1.配置】 = 13 == 【1.1 Haizea Configuration File】 == 13 14 || 從上圖架構知道,要使用 Haiea 的第一步便是要撰寫一篇好的 Haizea Configuration File,官方文件說可以參考範例檔 /usr/share/haizea/etc/sample_trace.conf 和 sample_trace_barebones (兩個文件內容一樣,只差再第2份沒註解),文檔中要注意的地方是 option 的設定和配置 || 14 * 以下面範例來解說 option,便是'''『模擬』''' '''2006-11-25 下午1點'''開始執行任務在 '''4台有1顆CPU 和1G Ram 的機器'''上執行 15 * 以下面範例來解說 option,便是'''『模擬』''' '''2006-11-25 下午1點'''開始執行任務在 '''4台有1顆CPU 和1G Ram 的機器'''上執行 ([simulation]->屬性名稱,startime、resources->屬性細部設定) 15 16 {{{ 16 17 [simulation] … … 19 20 }}} 20 21 * [[Image(quickstart_leasegraph2.png,width=300px)]] 21 * [http://haizea.cs.uchicago.edu/manual/node63.html#app:conffile 參考的 option]22 || 而 tracefile 便是在 Haizea Configuration File 中指定|| 22 * [http://haizea.cs.uchicago.edu/manual/node63.html#app:conffile 參考的屬性值] 23 23 24 [[BR]] 25 == 【1.2 Tracefile File】 == 26 || 而 Tracefile 便是在 Haizea Configuration File 中的 [tracefile] 屬性指定|| 27 {{{ 28 [tracefile] 29 tracefile: /usr/share/haizea/traces/sample.lwf 30 }}} 31 * 此 Tracefile 範例檔的格式為 LWF/Lease Workload Format (類似 XML 的格式) 32 {{{ 33 <lease-workload name="sample"> 34 <description> 35 A simple trace where an AR lease preempts a 36 best-effort lease that is already running. 37 </description> 38 39 <lease-requests> 40 41 <!-- The lease requests are initially commented out --> 42 43 <!-- First lease request --> 44 <!-- 45 ... 46 --> 47 48 <!-- Second lease request --> 49 <!-- 50 ... 51 --> 52 53 </lease-requests> 54 </lease-workload> 55 }}} 56 * [http://haizea.cs.uchicago.edu/manual/node71.html#app:lwf XML 格式參考] 57 ---- 58 = 【2.開始模擬】 = 59 ||現在我們以撰寫好 configuration 和 tracefile,便可透過以下指令開始執行模擬 (參數 -c 為指定設定檔)|| 60 {{{ 61 haizea -c /usr/share/haizea/etc/sample_trace.conf 62 }}} 63 [[BR]]