Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

NamedResourceSetRequest #132

Closed
emaxerrno opened this issue Mar 15, 2017 · 2 comments
Closed

NamedResourceSetRequest #132

emaxerrno opened this issue Mar 15, 2017 · 2 comments

Comments

@emaxerrno
Copy link

Didn't see any docs around this:

TaskRequest.java {
     public NamedResourceSetRequest(String resName, String resValue, int numSets,
                                   int numSubResources) {
      this.resName = resName;
      this.resValue = resValue;
      this.numSets = numSets;
      this.numSubResources = numSubResources;
    }

....
}

Is it for the mesos agents --attributes ?

@spodila
Copy link
Contributor

spodila commented Mar 15, 2017

Javadocs are available in the source code, also here: http://netflix.github.io/Fenzo/fenzo-core/com/netflix/fenzo/PreferentialNamedConsumableResourceSet.html

We use this to model the two level ENI (elastic network interface) resource in AWS VPC environment to assign a security group per container. Mesos itself does not, at this time, support such a resource. We define a custom attribute for the Mesos agent that is parsed by our framework to convert into this two level resource in Fenzo. For example, the custom attribute, ResourceSet-ENIs-7-29, is interpreted as a ResourceSet called ENI, with 7 ENIs, each having 29 IPs (sub-resources).

@emaxerrno
Copy link
Author

Amazing work! Thanks for hand holding me! I should have read the docs, I instead downloaded the source code and was playing around w/ the tests. hehe.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants