Git Product home page Git Product logo

cpu's Introduction

cpu Cookbook

Cookbook Version Build Status OpenCollective OpenCollective License

Manage CPU Governor on linux

Requirements

Platforms

  • Ubuntu
  • Debian
  • Centos

Chef

  • Chef 15.3+

Cookbooks

No dependencies defined

Attributes

  • node['cpu']['governor'] - Defaults to "ondemand".

Recipes

  • cpu::affinity - deprecated
  • cpu::default - deprecated
  • cpu::governor - Sets the CPU governer based on the attribute above

Resources

cpu_affinity

Actions

  • set: Default action.

Properties

  • pid:
  • cpu:

Examples

cpu_affinity 1234 do
  cpu 0
end

Set affinity to processor 0,1,2 for process nginx

cpu_affinity 'set affinity for nginx' do
  pid '/var/run/nginx.pid'
  cpu '0-2'
end

cpu_nice

Actions

  • set: Default action.

Properties

  • pid:
  • priority:

Examples

cpu_nice 1234 do
  priority 12
end
cpu_nice 'set affinity for nginx' do
  pid '/var/run/nginx.pid'
  priority 19
end

License and Maintainer

Original Maintainer:: Guilhem Lettron

License:: Apache v2.0

Contributors

This project exists thanks to all the people who contribute.

Backers

Thank you to all our backers!

https://opencollective.com/sous-chefs#backers

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

https://opencollective.com/sous-chefs/sponsor/0/website https://opencollective.com/sous-chefs/sponsor/1/website https://opencollective.com/sous-chefs/sponsor/2/website https://opencollective.com/sous-chefs/sponsor/3/website https://opencollective.com/sous-chefs/sponsor/4/website https://opencollective.com/sous-chefs/sponsor/5/website https://opencollective.com/sous-chefs/sponsor/6/website https://opencollective.com/sous-chefs/sponsor/7/website https://opencollective.com/sous-chefs/sponsor/8/website https://opencollective.com/sous-chefs/sponsor/9/website

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.