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

Dominic Hamon edited comment on MESOS-1384 at 9/17/14 10:30 PM:
----------------------------------------------------------------

I now have a much better idea for the motivation behind this change, but I am 
still struggling to understand why dynamic loading is a necessary piece. If the 
goal is to separate mesos into modules that can be replaced with alternative 
implementations[1], then why not build them as separate libraries and assemble 
them at link time into a static binary?

The implementations can still use common classes in the core library for 
interaction, but you lose any of the complexity associated with dynamic loading 
and registration of modules.

1. a goal i mostly[2] support as it opens the door to having company-specific 
implementations that can optimize for the peculiarities of their platform
2. mostly, because i worry about the stagnation of the open source 
implementation


was (Author: dhamon):
I now have a much better idea for the motivation behind this change, but I am 
still struggling to understand why dynamic loading is a necessary piece. If the 
goal is to separate mesos into modules that can be replaced with alternative 
implementations[1], then why not build them as separate libraries and assemble 
them at link time into a static binary?

The implementations can still use common classes in the core library for 
interaction, but you lose any of the complexity associated with dynamic loading 
and registration of modules.

1. i goal i mostly[2] support as it opens the door to having company-specific 
implementations that can optimize for the peculiarities of their platform
2. mostly, because i worry about the stagnation of the open source 
implementation

> 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