cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CLOUDSTACK-9180) Optimize concurrent VM deployment operation on same network
Date Mon, 11 Jan 2016 18:05:39 GMT


ASF GitHub Bot commented on CLOUDSTACK-9180:

Github user pedro-martins commented on the pull request:
    A javadoc is a notation above the method declaration that describes what the method do.
    javadoc with examples :)
    I saw that you create a test for the deployVirtualRouter that uses the isRouterDeployed(),
but if this test don't pass, will be difficult to analyse if the test don't pass because the
isRouterDeployed method or another problem.  :) 

> Optimize concurrent VM deployment operation on same network
> -----------------------------------------------------------
>                 Key: CLOUDSTACK-9180
>                 URL:
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Management Server
>    Affects Versions: 4.6.0
>            Reporter: Koushik Das
>            Assignee: Koushik Das
>             Fix For: 4.7.0
> During VM deployment a check is performed to see if VR exists or not. If not it is created
- first an entry is allocated in DB for VR and then it is deployed. The allocation logic is
placed in a lock (based on network id) so that only one thread does the allocation. But the
locking is implemented in a way such that all threads wait on that lock even when VR is already
allocated. The correct approach would be to check if VR is allocated or not and acquire lock
only when needed.
> This issue is more frequently seen when concurrently deploying VMs in basic zone as all
threads try to acquire lock using the same network id. In advanced zone operations are spread
across multiple networks and so less frequent.
> Refer to findOrDeployVirtualRouter() in

This message was sent by Atlassian JIRA

View raw message