Re: Custom Mesos Allocation module

2015-06-09 Thread Dariia Zhyrova
Hi Alex, Right, I can add Mesos sources to include path... But I cannot inherit from MesosAllocator since it has private constructor. I will think about this, maybe I really can reuse existing allocator implementation w/o subclassing. I plan to send all protobufs which come with specific event to

Re: Custom Mesos Allocation module

2015-06-09 Thread Alex Rukletsov
The MesosAllocator class is just a wrapper for any actor-based allocator. I think you actually want to subclass HierarchicalAllocatorProcess and pass it as template parameter to MesosAllocator. But consider preferring composition over inheritance

Re: Custom Mesos Allocation module

2015-06-08 Thread Alex Rukletsov
Hi Dariia, interesting! I think you can actually subclass the Hierarchical allocator, but you need access to Mesos sources (quick check of your code hints you need it nevertheless since you build unbundled Mesos). What protobufs do you plan to send to your Go server? Allocator maintains a list

Re: Custom Mesos Allocation module

2015-05-29 Thread Dariia Zhyrova
Hi Alex, My task was to create allocator which produces information about all protobufs it receives to Kafka (prior to actual resources allocation). Here is the implementation: https://github.com/stealthly/alligator. I had to copy-paste Hierarchical allocator from Mesos sources since

Re: Custom Mesos Allocation module

2015-05-26 Thread Alex Rukletsov
Dariia, what Mesos version are you using? The ability to write and and use custom allocator modules without hacking on Mesos source code has just landed in Mesos (means will be available in 0.23 release) with docs being updated right now (here https://reviews.apache.org/r/34545/ is the RR request

Custom Mesos Allocation module

2015-05-25 Thread Dariia Zhyrova
Hello, I need to write custom Allocation module, but I don't see a possibility to load it dynamically using --modules command line argument. This is the allocation module creation in master/main: allocator::Allocator* allocator = new allocator::HierarchicalDRFAllocator(); (so it is just