You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@slider.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2014/08/04 21:12:17 UTC

[jira] [Commented] (SLIDER-186) Provide a mechanism for a provider to know if an application is being created for the first time

    [ https://issues.apache.org/jira/browse/SLIDER-186?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14085121#comment-14085121 ] 

Steve Loughran commented on SLIDER-186:
---------------------------------------

The AM would need to know this ... I propose having a file that is created once; if it does not exist then the cluster is deemed to be "new". 

If you delete the cluster: tough.

This could be a JSON file with some information 
{code}
createtime: string
{code}

> Provide a mechanism for a provider to know if an application is being created for the first time
> ------------------------------------------------------------------------------------------------
>
>                 Key: SLIDER-186
>                 URL: https://issues.apache.org/jira/browse/SLIDER-186
>             Project: Slider
>          Issue Type: Improvement
>          Components: agent-provider, appmaster
>    Affects Versions: Slider 0.40
>            Reporter: Sumit Mohanty
>
> If its known to the application that the instance is being created for the first time (as opposed to thawed) then the application can perform some one time clean-up or setup if needed.
> AppMaster can provide the flag to a provider. The agent provider can make the flag available to the app package during INSTALL command and the application package can use the flag as appropriate.



--
This message was sent by Atlassian JIRA
(v6.2#6252)