Haizea includes some sample configuration files and lease request tracefiles that you can use to test Haizea. If you installed Haizea as root, you can run the following to test your installation:
haizea -c /usr/share/haizea/etc/sample_trace.conf
This will use a sample configuration file to simulate running the scheduler with no requests, resulting in the following (somewhat anticlimactic) output:
[2006-11-25 13:00:00.00] RM Starting resource manager [2006-11-25 13:00:00.00] TFILE Loading tracefile /usr/share/haizea/traces/sample.lwf [2006-11-25 13:00:00.00] TFILE Loaded workload with 0 requests () [2006-11-25 13:00:00.00] CLOCK Starting simulated clock [2006-11-25 13:00:00.00] CLOCK Simulated clock has stopped [2006-11-25 13:00:00.00] RM Stopping resource manager gracefully... [2006-11-25 13:00:00.00] RM --- Haizea status summary --- [2006-11-25 13:00:00.00] RM Number of leases (not including completed): 0 [2006-11-25 13:00:00.00] RM Completed leases: 0 [2006-11-25 13:00:00.00] RM Completed best-effort leases: 0 [2006-11-25 13:00:00.00] RM Queue size: 0 [2006-11-25 13:00:00.00] RM Accepted AR leases: 0 [2006-11-25 13:00:00.00] RM Rejected AR leases: 0 [2006-11-25 13:00:00.00] RM Accepted IM leases: 0 [2006-11-25 13:00:00.00] RM Rejected IM leases: 0 [2006-11-25 13:00:00.00] RM ---- End summary ----
Ok, not terribly exciting, but if you see this then the basic machinery is working fine. We will see how to do more elaborate simulations, and how to use Haizea to manage real hardware, in the next chapters.
Note: If you installed Haizea in your home directory, you will have to run the following:
haizea -c $HOME/share/haizea/etc/sample_trace.conf
Additionally, you will have to modify the tracefile option in the sample configuration so it will point to the sample tracefile located in $HOME/share/haizea/traces/sample.lwf (instead of under the /usr directory).
Borja Sotomayor 2009-12-17