MCPcopy Create free account
hub / github.com/apache/mesos / FrameworkProfile

Class FrameworkProfile

src/tests/hierarchical_allocator_benchmarks.cpp:72–98  ·  view source on GitHub ↗

TODO(kapil): Add support for per-framework-profile configuration for offer acceptance/rejection.

Source from the content-addressed store, hash-verified

70// TODO(kapil): Add support for per-framework-profile configuration for
71// offer acceptance/rejection.
72struct FrameworkProfile
73{
74 FrameworkProfile(
75 const string& _name,
76 const set<string>& _roles,
77 size_t _instances,
78 // For frameworks that do not care about launching tasks, we provide
79 // some default task launch settings.
80 size_t _maxTasksPerInstance = 100,
81 const Resources& _taskResources =
82 CHECK_NOTERROR(Resources::parse("cpus:1;mem:100")),
83 size_t _maxTasksPerOffer = 10)
84 : name(_name),
85 roles(_roles),
86 instances(_instances),
87 maxTasksPerInstance(_maxTasksPerInstance),
88 taskResources(_taskResources),
89 maxTasksPerOffer(_maxTasksPerOffer) {}
90
91 string name;
92 set<string> roles;
93 size_t instances;
94
95 const size_t maxTasksPerInstance;
96 Resources taskResources;
97 const size_t maxTasksPerOffer;
98};
99
100
101struct AgentProfile

Callers 2

TEST_FFunction · 0.85
TEST_PFunction · 0.85

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.68
TEST_PFunction · 0.68