Skip to content

radical-cybertools/wlms_emulator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WLMS Calculator

Build Status codecov Codacy Badge

This document discusses the installation and execution instructions for the WLMS calculator.

  • Assumptions:
    • No noise from resource
    • No noise in WLMS
    • Tasks are single-core
    • No notion of nodes, only cores
    • Each task has to perform a certain number of operations
    • Each core can do a certain number of operations per second

SRS Document: Link

Requirements

  • Python 2.7
  • virtualenv or conda

Installation

If you have virtualenv:

virtualenv $HOME/ve_calc
source $HOME/ve_calc/bin/activate
cd $HOME
git clone https://github.com/vivek-bala/wlms_calculator.git
cd wlms_calculator
pip install .

If you want to use conda:

conda create -n ve_calc
source activate ve_calc
cd $HOME
git clone https://github.com/vivek-bala/wlms_calculator.git
cd wlms_calculator
pip install .

Executing the example

The example can be executed by following three steps:

  1. Start the executor

The executor can be started using the config file provided in the examples folder. The executor executes a given schedule and records the execution in a JSON file.

In a new terminal, load the environment and execute as follows.

If you have virtualenv:

source $HOME/ve_calc/bin/activate
cd $HOME/wlms_calculator/examples
RADICAL_EXECUTOR_VERBOSE=INFO start-executor --cfg_path ./config.yml

If you have conda env:

source activate ve_calc
cd $HOME/wlms_calculator/examples
RADICAL_EXECUTOR_VERBOSE=INFO start-executor --cfg_path ./config.yml
  1. Start the WLMS

The WLMS can be started using the config file provided in the examples folder. The WLMS, upon receiving a workload and a resource, selects tasks from the workload, selects a subset of resources from all available, and binds the tasks to cores (subset of resources) to create a schedule. This schedule is communicated to an executor.

In a new terminal, load the environment and execute as follows.

If you have virtualenv:

source $HOME/ve_calc/bin/activate
cd $HOME/wlms_calculator/examples
RADICAL_WLMS_VERBOSE=INFO start-wlms --cfg_path ./config.yml

If you have conda env:

source activate ve_calc
cd $HOME/wlms_calculator/examples
RADICAL_WLMS_VERBOSE=INFO start-wlms --cfg_path ./config.yml
  1. Create and submit the workload and resource

In the runme Python file in the examples folder, we create a workload and resource and submit it to an Engine object. This workload is executed on the resources by the executor as specified by the WLMS. You can see the various events by the verbose messages in the different terminals.

In a new terminal, load the environment and execute as follows.

If you have virtualenv:

source $HOME/ve_calc/bin/activate
cd $HOME/wlms_calculator/examples
RADICAL_ENGINE_VERBOSE=INFO python runme.py

If you have conda env:

source activate ve_calc
cd $HOME/wlms_calculator/examples
RADICAL_ENGINE_VERBOSE=INFO python runme.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Jupyter Notebook 99.7%
  • Python 0.3%