minInstanceCount and maxInstanceCount in metainfo is used to define the
absolute range of the no of running instances for a specific component of
your application. It depends a lot on your application logic. For e.g. If
your app has a master and there cannot be more than 1 running master at a
given point in time, then you would set maxInstanceCount of master to 1.
If you have a worker and your app needs at least 3 workers without which
it cannot perform anything meaningful then you would set minInstanceCount
of worker to 3.


The no of instances you specify in resources.json is the no of instances
you want the first time the app starts. Slider validates that no is within
the min-max range as specified in metainfo. Subsequently whenever you do
flex of a component the total no of instances are validated against
min-max as well.

Hope this helps.

-Gour

On 3/13/17, 7:35 PM, "David.Serafini" <david.seraf...@target.com> wrote:

>I'm confused by the documentation for instance counts.
>resources.json specifes the number of instances of a component, but
>metainfo specifies min and max.
>How do these two configurations interact?  If I want to start my app with
>N instances of a component, but want to be able to flex to N+M instances,
>how should I set the config variables?
>
>thanks,
>-david
>
>

Reply via email to