ContainerSolutions / mesos-starter

https://container-solutions.com/mesos-starter/
45 stars 10 forks source link

Refactor offer filters to be selected by name #17

Open mwl opened 8 years ago

mwl commented 8 years ago

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

mwl commented 8 years ago

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.