ContainerSolutions / mesos-starter

Home Page:https://container-solutions.com/mesos-starter/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor offer filters to be selected by name

mwl opened this issue · comments

Like mesos.resources.filter=distinctHost rather than mesos.resources.distinctHost=true

I'm currently looking into configuration layout. Some filters needs parameters as well, for instance the scale.

If we're doing it the Spring way, it'll look something like this, which I don't find very elegant.

mesos:
  filters:
    distinctSlave:
      enabled: true
    scale:
      enabled: true
      factor: 3
    resources:
      enabled: true
      cpus: 0.1
      mem: 64

So I'm open for suggestions.