You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by hu...@apache.org on 2014/01/03 11:18:12 UTC

[39/50] [abbrv] git commit: updated refs/heads/opendaylight to 858fb69

CLOUDSTACK-4540: Set execute.in.sequence.network.element.commands=true by default

The things is, VR would take time to execute the commands, say it would need
time t1(which is greater than 0).

And the interval between parallel deployment is t2(which can be almost 0).  In
any case, VR need to handle commands in sequence internally, so if t1 > t2, then
the new task in the VR would wait longer and longer to execute, then some
commands result in timeout ultimately. No matter how long the timeout is, if
there are enough big number of queued task for VR, the last ones can timeout.

Currently VR has a robust mechanism to sequence the jobs internal and I
confirmed in this case, it works well. But there is no way to fix this issue if
VR is already 100% load at all time.

Probably we can improve the speed of VR internal executing, but seems the
ultimate answer is: set execute.in.sequence.network.element.commands to true. VR
doesn’t know how long it would take for mgmt. server to timeout, only mgmt.
server knows that.

By setting sequence execution in VR to "true", mgmt server would handle the
commands in a queue, make sure that VR won't be overload and report unexpected
failure just because it's overload.


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/3c68b9f8
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/3c68b9f8
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/3c68b9f8

Branch: refs/heads/opendaylight
Commit: 3c68b9f850181802d3cbed359cc08352399f9116
Parents: 92ba5f6
Author: Sheng Yang <sh...@citrix.com>
Authored: Thu Jan 2 15:41:31 2014 -0800
Committer: Sheng Yang <sh...@citrix.com>
Committed: Thu Jan 2 15:41:31 2014 -0800

----------------------------------------------------------------------
 server/src/com/cloud/configuration/Config.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/3c68b9f8/server/src/com/cloud/configuration/Config.java
----------------------------------------------------------------------
diff --git a/server/src/com/cloud/configuration/Config.java b/server/src/com/cloud/configuration/Config.java
index 0c58141..f6d8341 100755
--- a/server/src/com/cloud/configuration/Config.java
+++ b/server/src/com/cloud/configuration/Config.java
@@ -1878,9 +1878,9 @@ public enum Config {
             NetworkOrchestrationService.class,
             Boolean.class,
             "execute.in.sequence.network.element.commands",
-            "false",
+            "true",
             "If set to true, DhcpEntryCommand, SavePasswordCommand, UserDataCommand, VmDataCommand will be synchronized on the agent side."
-                + " If set to false, these commands become asynchronous. Default value is false.",
+                + " If set to false, these commands become asynchronous. Default value is true.",
             null),
 
     UCSSyncBladeInterval(