Chiming in since I raised an identical issue a few weeks back:
https://issues.apache.org/jira/browse/MESOS-6567

The proposed endpoint solution sounds plausible. However I'd like to
explore if it solves the use case I raised my issue for. I was trying to
create a Mesos framework that adds new CNI networks. But [IIRC] the Agent
API can't be reached from a Mesos Executor instance since the Agent could
be listening on a non-default port, or on any of its IPs. The executor
instance doesn't know that information, so after it installs the plugin, it
won't know how to reach that new reload endpoint.

- Is there a reliable way  to reach the reload endpoint from a default
executor instance?
- Why not scan the config directory every time? Are you trying to avoid the
speed hit from disk reads?

Best,
-Dan

On Wed, Dec 7, 2016 at 3:01 PM, Avinash Sridharan <[email protected]>
wrote:

> @adam @vinod Starting to work  on
> https://issues.apache.org/jira/browse/MESOS-6679 . Need some inputs.
>
>
> The goal is to allow the `network/cni` isolator to load CNI configs without
> the need for agent restarts. Had a discussion with @jieyu and the solution
> we came up with was for the `network/cni` isolator to expose an endpoint
> called `reload`. The endpoint will accept `POST` requests (with an empty
> body), which will trigger the `network/cni` isolator to reload the CNI
> configs present in the `network_cni_config_dir`. On a successful `reload`
> the `network/cni` isolator will respond with an empty HTTP response. Wanted
> to run this by you guys to understand the implications on authn/authz and
> if this is the right place (the `network/cni` isolator) to host this
> endponit?
>
> --
> Avinash Sridharan, Mesosphere
> +1 (323) 702 5245
>

Reply via email to