Giter Site home page Giter Site logo

kepler-powermodels's Introduction

User Guide

Overview

This repo contains several bash scripts used to obtain Kepler powermodel from a BARE METAL machine (Not VM!). User needs to run bash scripts one-by-one in a specified order on the machine to collect its power model, manually check outputs of each bash script, and re-run if some script fails.

Requirements

  • Root or sudo access on the target machine is required. (target machine should be running a linux OS)
  • Internet access of the target machine is needed.

K8s tools used under directory /libs

Scripts behavior description

All scripts the user needs to run are in:

/src/

User needs to cd to this directory, and then run all the following scripts one-by-one, starting from ./1_init_and_start_pipeline.sh. (Note that you may need to run chmod +x *.sh if you haven't granted the scripts execution permissions.) Switch to root account before running the following scripts is highly recommended.

  • 0_settings.sh: This script does not need to be executed, user need to write OUTPUT_POWERMODEL_RELATIVE_PATH to the desired relative path from root of this Git Repo.

  • 1_init_and_start_pipeline.sh

    • update some automated settings in 0_settings.sh
    • download Kepler-model-server and switch to corresponding commit
    • start a local kind cluster on the target machine
    • start running the tekton pipeline for several hours and obtain runtime data for power model

    After this script finishs, user can run kubectl on the local kind cluster. If seeing errors like kubectl: command not found, then please run: source 0_settings.sh.

    Note that this script finishes in several minutes, but the pipeline runs could take several hours. When checking if pipeline finishes, user can use command kubectl get pods. Prometheus WebUI should be available at http://localhost:9090 after this script finishes.

  • 2_retrieve_results.sh

    • deploy in a new pod and download results from local kind cluster to the specified directory in 0_settings.sh.
  • 3_cleanup.sh

    • remove the local kind cluster created by 1_init_and_start_pipeline.sh.

kepler-powermodels's People

Contributors

jwjwjw3 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.