aurora-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Farner (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (AURORA-222) Updater should run health checks in parallel
Date Sat, 24 May 2014 04:50:02 GMT

     [ https://issues.apache.org/jira/browse/AURORA-222?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Bill Farner resolved AURORA-222.
--------------------------------

    Resolution: Won't Fix

Closing as won't fix (difficult to choose the right ticket state here).  As comments above
mention, the client no longer performs health checks.

> Updater should run health checks in parallel
> --------------------------------------------
>
>                 Key: AURORA-222
>                 URL: https://issues.apache.org/jira/browse/AURORA-222
>             Project: Aurora
>          Issue Type: Story
>          Components: Client
>            Reporter: Kevin Sweeney
>
> Right now when the Updater is operating on a batch of instances and those instances are
configured for health checking it runs their health checks sequentially one-instance-at-a-time
[1]. This could be trivially parallelized, resulting in a speedup of up to the batch size.
> [1] https://github.com/apache/incubator-aurora/blob/master/src/main/python/apache/aurora/client/api/instance_watcher.py#L106
> {code}
>       for instance_id in instance_ids:
>         if instance_id not in finished_instances():
>           running_task = tasks_by_instance.get(instance_id)
>           if running_task is not None:
>             task_healthy, retriable = health_check.health(running_task)
>             if task_healthy:
>               set_instance_healthy(instance_id, now)
>             else:
>               maybe_set_instance_unhealthy(instance_id, retriable)
>           else:
>             # Set retriable=True since an instance should be retried if it has not been
healthy.
>             maybe_set_instance_unhealthy(instance_id, retriable=True)
> {code}



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

Mime
View raw message