[ 
https://issues.apache.org/jira/browse/MESOS-1384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14137370#comment-14137370
 ] 

Benjamin Hindman commented on MESOS-1384:
-----------------------------------------

This is great [~bernd-mesos]! I've got some clarifiying questions below. I'm 
also curious if it makes more sense to throw this into a document or on a wiki 
so it's easier to evolve the content? Questions:

Is the idea that we'll use Java package naming convention for the module names, 
 e.g., 'io.mesosphere.calculator.example'?

Can you elaborate on why we need to use macros versus function calls or 
inheritance as had been in the previous design?

I don't fully understand the section starting with "... information is 
maintained in a table in src/module/module_manager.cpp". Perhaps some concrete 
examples that show the semantics as interfaces and versions change would help 
explain?

Why do we need RTTI? Was the casting in the previous design insufficient?

Can we please make the command line flag use JSON rather than inventing another 
parsing format (like I've already made the mistake of doing numerous times in 
Mesos)? ;-) This will likely mean we'll have more flexibility as well, so we 
can just have a single --modules='{ ... }' flag and not have to have any extra 
flags like --allocator= and --auth=.

Instead of describing a module as having a 'role', can we just call it a 
'module type', or any other name since 'role' already has a well defined 
meaning in Mesos.

> Add support for loadable MesosModule
> ------------------------------------
>
>                 Key: MESOS-1384
>                 URL: https://issues.apache.org/jira/browse/MESOS-1384
>             Project: Mesos
>          Issue Type: Improvement
>    Affects Versions: 0.19.0
>            Reporter: Timothy St. Clair
>            Assignee: Niklas Quarfot Nielsen
>
> I think we should break this into multiple phases.
> -(1) Let's get the dynamic library loading via a "stout-ified" version of 
> https://github.com/timothysc/tests/blob/master/plugin_modules/DynamicLibrary.h.
>  -
> *DONE*
> (2) Use (1) to instantiate some classes in Mesos (like an Authenticator 
> and/or isolator) from a dynamic library. This will give us some more 
> experience with how we want to name the underlying library symbol, how we 
> want to specify flags for finding the library, what types of validation we 
> want when loading a library.
> *TARGET* 
> (3) After doing (2) for one or two classes in Mesos I think we can formalize 
> the approach in a "mesos-ified" version of 
> https://github.com/timothysc/tests/blob/master/plugin_modules/MesosModule.h.
> *NEXT*



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to