Coder Social home page Coder Social logo

actimanager's Introduction

actimanager

Fine-grained resource management for Kubernetes Pods.

Description

This repository is a framework for fine-grained orchestration of Kubernetes Pods. It utilizes the Operator Pattern, CRD's, Scheduling Framework plugins and other extension points of Kubernetes to provide a solution for managing the CPU resources of Pods at a fine-grained level.

Components

  • Custom Resource Definitions (CRD's)
    • NodeCPUTopology: The CPU and NUMA topology of a node.
    • PodCPUBinding: The allocated CPU resources of a Pod.
      apiVersion: cslab.ece.ntua.gr/v1alpha1
      kind: PodCPUBinding
      metadata:
        name: benchpod-1-binding
        namespace: benchmarks
      spec:
        exclusivenessLevel: Core  # None, CPU, Core, Socket, NUMA
        podName: benchpod-3
        cpuSet:
          - cpuID: 10
          - cpuID: 12
  • Controller - Manager
    • Watches for changes in the CRD's and reconciles them.
  • Custom Scheduler
    • A custom scheduler that schedules Pods based on the CRD's.
    • Implements the WorkloadAware plugin, which schedules and binds Pods based on the workload family they belong in (MemoryBound, CPUBound, IOBound, BestEffort).
  • Daemon
    • A gRPC server that runs on each node as a DaemonSet.
    • Exposes Topology and CPUPinning services to interact with each node.
    • Reconciles the resources of the Pods inside each host.
  • Utility Libraries:
    • Code-generated clientset, informers, listers for CRD's
    • Protobuf definitions for the gRPC services.
    • Utility functions for interacting with the Kubernetes API.
    • Linux cgroup utilities for interacting with the host.

Getting Started

Prerequisites

  • go version v1.22.2+
  • docker version 26.01+.
  • kubectl version v1.29.4+.
  • Access to a Kubernetes v1.28.10+ cluster.

To Deploy on the cluster

  1. Clone the repository and navigate to the root directory.

    git clone
    cd actimanager
  2. Edit the DaemonSet manifest under config/daemon/daemon.yaml to match your nodes' configuration.

     args:
        - '--node-name=$(NODE_NAME)'
        - '--container-runtime=containerd'  # containerd, docker, kind
        - '--cgroups-path=/cgroup'
        - '--cgroups-driver=systemd'        # systemd, cgroupfs
        - '--reconcile-period=15s'
        - '--verbosity=3'
  3. Install the components on the cluster.

    kubectl apply -k config/default

To Uninstall

kubectl delete -k config/default

License

Copyright 2023.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

actimanager's People

Contributors

stefanaki avatar

Watchers

Yannis Papadakis avatar  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.