Code Monkey home page Code Monkey logo

wattson's Introduction

wattson

Distributed power capping framework to optimize performance of a cluster given a power budget. Uses Agent-Controller architecture (similar to Facebook's Dynamo) with multiple lightweight Agent processes running on each server (alongside production workloads) reporting power readings to a dedicated central Controller that makes sure that the total cluster power budget does not exceed the configured power budget at any point of time.

Initially, the focus is on the distributed protocol and creating general interfaces for both Agent and Controller. We also focus on safety, ensuring total power budget is maintained at all times over performance (optimizing power allocation algorithm) for now. We chose to use RAPL as the power capping mechanism and support Primary-Replica priority, that is, if two nodes are both hitting the limit of their allocated power, the Primary node will be preferred over the Replica.

Wattson differs from FB's Dynamo in that it aims to optimize performance of a cluster, not merely act as "insurance" for power usage. It differs from approaches like PUPiL in that it aims to optimize performance within a power budget for a cluster of nodes, and can leverage systems like PUPiL to optimize single-node performance given the single node's power allocation. In other words, Wattson is a dynamic, feedback-based power management framework that calculates each node's power allocation at any point of time. Given this calculation, we can use RAPL or PUPiL or any other system to enforce this power limit on the node while extracting maximum performance. So, Wattson is closer to PoDD in its aim.

Wattson in a single diagram:

Wattson architecture diagram showing Controller getting power readings from multiple Agents

To understand what happens after getting the readings, click here to see Wattson explained in 3 simple diagrams.

Using Wattson

We're using sockpp as a static library dependency for socket communication. Note that libs/libsockpp.a has been compiled on MacOS (for local development) for now. Wattson plans to support Linux - since production servers widely use Linux and RAPL or other power-capping typically support Linux.

Related work:

  • PoDD: power-capping dependent distributed applications - Zhang et al., 2019 - PDF
  • Dynamo: Facebook’s Data Center-Wide Power Management System - Wu et al., 2016 - Link
  • Maximizing Performance Under a Power Cap: A Comparison of Hardware, Software, and Hybrid Techniques - Zhang et al., 2016 - Link

wattson's People

Contributors

pranavsb 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.