• Dr. Stefan Schimanski's avatar
    Implement resource accounting for pods with the Mesos scheduler · a2fa41b7
    Dr. Stefan Schimanski authored
    This patch
    
    - set limits (0.25 cpu, 64 MB) on containers which are not limited in pod spec
      (these are also passed to the kubelet such that it uses them for the docker
      run limits)
    - sums up the container resource limits for cpu and memory inside a pod,
    - compares the sums to the offered resources
    - puts the sums into the Mesos TaskInfo such that Mesos does the accounting
      for the pod.
    - parses the static pod spec and adds up the resources
    - sets the executor resources to 0.25 cpu, 64 MB plus the static pod resources
    - sets the cgroups in the kubelet for system containers, resource containers
      and docker to the one of the executor that Mesos assigned
    - adds scheduler parameters --default-container-cpu-limit and
      --default-container-mem-limit.
    
    The containers themselves are resource limited the Docker resource limit which
    the kubelet applies when launching them.
    
    Fixes mesosphere/kubernetes-mesos#68 and mesosphere/kubernetes-mesos#304
    a2fa41b7
Name
Last commit
Last update
Godeps Loading commit data...
api/swagger-spec Loading commit data...
build Loading commit data...
cluster Loading commit data...
cmd Loading commit data...
contrib Loading commit data...
docs Loading commit data...
examples Loading commit data...
hack Loading commit data...
hooks Loading commit data...
pkg Loading commit data...
plugin Loading commit data...
test Loading commit data...
third_party Loading commit data...
www Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CHANGELOG.md Loading commit data...
CONTRIB.md Loading commit data...
CONTRIBUTING.md Loading commit data...
DESIGN.md Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
Vagrantfile Loading commit data...
logo.pdf Loading commit data...
logo.png Loading commit data...
logo.svg Loading commit data...
logo_usage_guidelines.md Loading commit data...
shippable.yml Loading commit data...