GithubHelp home page GithubHelp logo

Comments (4)

markdryan avatar markdryan commented on July 22, 2024

Here's a sample payload

start:
  requested_resources:
     - type: vcpus
       value: 2
     - type: mem_mb
       value: 16
  instance_uuid: 67d86208-b46c-4465-9018-e14187d41
  tenant_uuid: 67d86208-000-4465-9018-fe14087d415f
  docker_image: ubuntu/python
  vm_type: docker
  networking:
    vnic_mac: CA:FE:00:02:02:03
    vnic_uuid: 67d86208-b46c-0000-9018-fe14087d415f
    concentrator_ip: 192.168.200.200
    concentrator_uuid: 67d86208-b46c-4465-0000-fe14087d415f
    subnet: 192.168.111.0/24
    private_ip: 192.168.111.101

memory and vcpus are currently ignored.

from ciao.

rbradford avatar rbradford commented on July 22, 2024

Proposal:

For memory: use -m mem_mb
For cpu: use --cpu-period=50000 --cpu-quota=50000 * vcpus

See https://docs.docker.com/engine/reference/run/

from ciao.

markdryan avatar markdryan commented on July 22, 2024

Just out of a matter of interest why use a period of 50000? Reading the docs the default seems to be 100000. I was just curious as to why we don't use the default. Otherwise the formulas look good.

from ciao.

rbradford avatar rbradford commented on July 22, 2024

Let's use 100ms.

from ciao.

Related Issues (20)

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.