ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Beerbower (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-3677) Service state should accurately reflect state of host-components
Date Tue, 05 Nov 2013 22:11:18 GMT

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

Tom Beerbower commented on AMBARI-3677:
---------------------------------------

The default calculation for service state is :
{code}
if all master components are STARTED OR MAINTENANCE then
    service state = STARTED
else 
    service state = master component state
{code}

The calculation for HDFS service state is :
{code}
if all master components are STARTED OR MAINTENANCE OR
    ((NameNodeCount > 0 AND !SecondaryNameNodeExists OR JournalNodeExists) AND ActiveNameNodeCount
> 0))
    service state = STARTED
else if any master components is UNKNOWN
    service state = UNKNOWN
else if any master components is STARTING
    service state = STARTING
else
    service state = INSTALLED // stopped
{code}

The calculation for HBASE service state is :
{code}
if all master components are STARTED OR MAINTENANCE OR
    (ActiveHBaseMasterCount > 0)    // at least one active HBASE_MASTER
    service state = STARTED
else if any master components is UNKNOWN
    service state = UNKNOWN
else if any master components is STARTING
    service state = STARTING
else
    service state = INSTALLED // stopped
{code}


> Service state should accurately reflect state of host-components
> ----------------------------------------------------------------
>
>                 Key: AMBARI-3677
>                 URL: https://issues.apache.org/jira/browse/AMBARI-3677
>             Project: Ambari
>          Issue Type: Task
>            Reporter: Tom Beerbower
>            Assignee: Tom Beerbower
>         Attachments: AMBARI-3677.patch
>
>
> Currently the UI loads *all* the host-components for a service just to calculate the
status of a service. So if YARN, HDFS are installed on a 1000 node cluster, we get 2000 host-components
in response just to calculate the color of 2 services (stopped=red, started=green, starting=blinking-green,
stopping=blinking-red, etc., unknown=yellow)
> This is not scalable on the browser. We want the API to roll-up the host-component statuses,
and correctly update the {{ServiceInfo/state}} of the service. This will help UI in not loading
all host_components.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message