> On 5 Jan 2016, at 02:16, Manoj Samel <manojsamelt...@gmail.com> wrote:
> 
> Hi,
> 
> Use case needs adding and removing components dynamically.
> 
> What is the proper way to remove a component ? It seems it can be done
> either by doing a "slider flex" with component count set to 0 or by doing a
> "slider upgrade" where the component is deleted from metainfo.xml,
> appconfig.json and resources.json.
> 
> Having trouble using "slider upgrade" to delete a component ... the
> documentation on upgrade is not clean on what it can / can't be used for ...


Upgrade is actually for doing an update of the code of running code: it 
upgrades each component one-by-one, then restarts the AM. Its goal is to keep 
an app running while you update it.

For setting a component count to zero, just use slider flex. Flexing down 
should take seconds, and slider remembers where the component was. If your 
component has any placement policy, then if you next flex up it will use the 
most recently used locations for the initial requests

-steve

Reply via email to