Merge pull request #1601 from shapeblue/nio-aggressive-selector

CLOUDSTACK-9348: Reduce Nio selector wait timeThis reduced the Nio loop 
selector wait time, this way the selector will
check frequently (as much as 100ms per iteration) and handle any pending
connection/tasks. This would make reconnections very quick at the expense of
some CPU usage.

/cc @swill @kiwiflyer guys can you please apply this fix in your env and test 
if you're still able to produce any Nio related error b/w mgmt server(s) and 
kvm agent(s) not being able to connect quickly. Please also watch out for any 
increased CPU usage (there should not be any significant change), in which case 
we may increase the timeout from 100ms to 200-400ms.

* pr/1601:
  CLOUDSTACK-9348: Reduce Nio selector wait time

Signed-off-by: Will Stevens <[email protected]>


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

Branch: refs/heads/4.9-bountycastle-daan
Commit: ea48e95bdd1641c752eb573fe448aac6478cecd1
Parents: a38279d 0381b7e
Author: Will Stevens <[email protected]>
Authored: Mon Jul 18 14:10:06 2016 -0400
Committer: Will Stevens <[email protected]>
Committed: Mon Jul 18 14:10:06 2016 -0400

----------------------------------------------------------------------
 utils/src/main/java/com/cloud/utils/nio/NioConnection.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


Reply via email to