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

ASF GitHub Bot commented on EAGLE-432:
--------------------------------------

Github user DadanielZ commented on the issue:

    https://github.com/apache/incubator-eagle/pull/412
  
    hi Team, I am working on application status part and here is an initial 
code review, just want make sure all corner cases are covered and the work flow 
is correct.
    
    My idea is:
    User can trigger following status for an applicaitonEntity: 
    "INSTALLED"(once an application entity is created, it is always set as 
"INSTALLED", so there will be no "INSTALLING" status), "STARTING",  "STOPPING", 
"UNINSTALLING", "UNINSTALLED"
    
    Other status including "RUNNING" and "STOPPED" should only be determined by 
"background task", which combine the current (stale) status in 
applicationEntity and status in storm restapi call response.
    
    current question is :
    1. if users triggers an "ING" status, but this topology never get a chance 
to be updated in storm, what should we do?
    -  for "starting", retry for a certain times automatically or wait for a 
certain time then set status as "FAILED" or reset it to previous status?
    -  for "stopping", retry or wait or reset it to previous status?
    
    2.  "stop" function defined in ApplicaitonContext is in fact equals to 
"kill" a storm topology, which is confusing, as storm support "inactive" status 
for a "stopped" topology. May be we should add a similar function in eagle too?
    
    Any advice will be appreciated.
    
    Thanks and Regards,
    Da


> Application status monitoring
> -----------------------------
>
>                 Key: EAGLE-432
>                 URL: https://issues.apache.org/jira/browse/EAGLE-432
>             Project: Eagle
>          Issue Type: Improvement
>    Affects Versions: v0.5.0
>            Reporter: Edward Zhang
>            Assignee: DanielZhou
>             Fix For: v0.5.0
>
>
> App framework needs to probe application status periodically or on demand.
> ApplicationEntity contains status field, and this field's value should come 
> from physical storm applications.
> We can start background threads to check application status or on-demand.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to