[
https://issues.apache.org/jira/browse/MESOS-1384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14165203#comment-14165203
]
Bernd Mathiske commented on MESOS-1384:
---------------------------------------
The above patch has been committed. This establishes a first version of the
module API. Suggested next steps:
1. Call module loading from slave/main and master/main, so that modules
actually do get loaded.
2. Enable module-specific command line parameters. Idea: add a flags parameter
to the create call and hand down textual or parsed JSON to the module. The JSON
on the command line can either a) be associated with the module mention or it
can b) be associated with the module kind's topic or c) have a separate flags
section just for module flags. Opinions?
3. Hook up some modules (isolators, authenticators, etc.) and gain experience
with them.
4. MESOS-1864 (test integration for modules).
5. Module shutdown logic.
For 2., here are some examples (pretotyping, not claiming this grammar is
ideal):
a) slave --modules='[{lib : <path>, modules : [{name : "myAuthenticator", flags
: '{credentials : "foo"}}]}]'
b) slave --modules='[{lib : <path>, modules : [{"myAuthenticator"}]}]'
--authenticatorFlags='{credentials : "foo"}'
c) slave --modules='[{lib : <path>, modules : [{"myAuthenticator"}]}]'
--moduleFlags='[{module : "myAuthenticator", flags : {credentials : "foo"}]}
Till remarks that in any case modules could report their required flags syntax
when calling
"slave --help --modules='[{lib : <path>, modules : [{"myAuthenticator"}]}]'"
or something like that in any of the above variants.
> 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)