Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EMG does not allow for per-proxy plugin chain #94

Closed
asnowfix opened this issue Feb 1, 2017 · 3 comments
Closed

EMG does not allow for per-proxy plugin chain #94

asnowfix opened this issue Feb 1, 2017 · 3 comments

Comments

@asnowfix
Copy link

asnowfix commented Feb 1, 2017

Problem

Unlike Edge Cloud "policies", it is not possible to choose which chain of plugin (with their respective configurations) is associated with which API proxy under the edgemicro_* pattern. This is unlike Edge-Cloud, which allows to define a completely customized set of Policies, per API proxy.

This is a very severe limitation of the EMG hybrid model implementation.

Suggestion

EMG should give the flexibility of defining a per-API proxy list of plugins & associated configuration. We propose the following schema, extending the list of active proxies introduced in EMG 2.3.1.

We suggest the following configuration structure, where the sequence of plugins is defined per API proxy, and a for each pugin, an optional per-plugin configuration override:

  proxies:
    edgemicro_foo:
      # api-proxy specific sequence of plugins
      sequence:
        - spikearrest: true
        - quota: true
        - myplugin:
           # plugin-specific config override
           my-config-key: 123
           my-config-struct:
             foo: my-string
             foo: my-other-string
    edgemicro_bar:
      sequence:
        - spikearrest: true
        - myplugin-other: true
@f1erro
Copy link
Contributor

f1erro commented Feb 11, 2017

We will get this into the next release

@mdobson
Copy link
Contributor

mdobson commented Feb 12, 2017

Going to deliver this feature with Edgex.

@srinandan
Copy link
Contributor

Please try with "npm install -g edgemicro@alpha"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants