ambari-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebastian Toader (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-16226) Execute topology tasks in parallel by hosts.
Date Thu, 08 Sep 2016 16:54:22 GMT

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

Sebastian Toader updated AMBARI-16226:
--------------------------------------
    Fix Version/s:     (was: 2.4.2)
                   3.0.0

> Execute topology tasks in parallel by hosts.
> --------------------------------------------
>
>                 Key: AMBARI-16226
>                 URL: https://issues.apache.org/jira/browse/AMBARI-16226
>             Project: Ambari
>          Issue Type: Task
>          Components: ambari-server
>            Reporter: Sebastian Toader
>             Fix For: 3.0.0
>
>
> Currently a when a cluster is created using Blueprints PersistHostResourcesTask, RegisterWithConfigGroupTask,
InstallHostTask and StartHostTask topology tasks are created for each host in this order.
These tasks than are executed by a single threaded executor TopologyManager.executor as hosts
are being assigned to the cluster.
> Since TopologyManager is singleton this will leads to sequential execution of topology
tasks on a single thread. The execution of the each individual topology tasks involves db
operations under the hood. If for any reason there is some latency introduced by the db operations
(e.g. the db server is not local but a remote one is used) than this latency builds up a considerable
delay if there are many hosts to execute topology tasks for.
> Executing the topology tasks in parallel will reduce the delay in this case.
> Since topology tasks for a host must be executed in order only tasks that belong to different
hosts. E.g. the PersistHostResourcesTask, RegisterWithConfigGroupTask, InstallHostTask and
StartHostTask topology tasks would be executed sequentially by one thread for host1 and by
another thread for host2.



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

Mime
View raw message