Code Monkey home page Code Monkey logo

green-compute-cluster's Introduction

Green Compute Cluster

Install Dependencies

Use your favorite dependency manager to install the required dependencies for this project, i.e: conda env create -f environment.yml

Run Compute Cluster Simulator

To reproduce the results in Sections 4.1 and 4.2 of the paper, run the following commands. While a random seed has been fixed, it is possible that randomness in your machine causes the generated workload to be slightly different than the one used in the paper. Otherwise, you can run the simulation on the real-life Google workload, which is described in the google_cluster folder.
python3 compute_cluster.py --solar_only [--use-google]

Relevant Files

auction.py contains implementations of the uniform price auction and the Random Sampling Optimal Price (RSOP) auction. This is used by our dynamic pricing model in the compute cluster.

power_supply.py provides an easy-to-use API that returns available renewable energy on a minute-by-minute granularity. Inputs to methods in this API are timestamps (in seconds, assumed to be multiple of 60) that are mapped to the week-long period the simulation operates on.

compute_cluster.py is the core of the cluster simulation. It generates a workload of 175,000 jobs (as outlined in our paper) or uses the Google workload and then runs these jobs through the compute cluster based on the specified model on green power and the dynamic auction mechanism described in our paper. It collects a variety of useful statistics and results, many of which are presented in our final paper.

econ.m and load_values_2.m implemented the cubic spline interpolation we developed (see our paper) to convert raw field data (solar intensity, wind speed, etc.) into a realistic power supply (at a minute-level granularity) we could use for powering the compute cluster. Outputs from these methods were used to implement the API in power_supply.py. The 2 was used in file and variable names to correspond to the second supporting file to the paper https://doi.org/10.1021/acssuschemeng.0c01054 (year 2013). This was done so that the code could easily be adapted to account for the other files (years 2014-2017).

green-compute-cluster's People

Contributors

hs189 avatar gwang2 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.