Ori.livneh has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/188968

Change subject: [WIP] simulate network conditions
......................................................................

[WIP] simulate network conditions

Change-Id: I36d580bff1757335e4fb528ac44e89bf2eb6894f
---
M files/ve/vbench
1 file changed, 10 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/puppet 
refs/changes/68/188968/1

diff --git a/files/ve/vbench b/files/ve/vbench
index 6fed63b..146ac1a 100755
--- a/files/ve/vbench
+++ b/files/ve/vbench
@@ -140,6 +140,16 @@
         self.sendCommand('Page.enable')
         self.sendCommand('Page.addScriptToEvaluateOnLoad', scriptSource=JS)
         self.sendCommand('Network.enable')
+        self.sendCommand('Network.emulateNetworkConditions', latency=15, 
downloadThroughput=100)
+
+        #  "name": "emulateNetworkConditions",
+        #  "description": "Activates emulation of network conditions.",
+        #  "parameters": [
+        #      { "name": "offline", "type": "boolean", "description": "True to 
emulate internet disconnection." },
+        #      { "name": "latency", "type": "number", "description": 
"Additional latency (ms)." },
+        #      { "name": "downloadThroughput", "type": "number", 
"description": "Maximal aggregated download throughput." },
+        #      { "name": "uploadThroughput", "type": "number", "description": 
"Maximal aggregated upload throughput." }
+
         self.sendCommand('Profiler.enable')
         self.sendCommand('Profiler.setSamplingInterval',
                          interval=100,

-- 
To view, visit https://gerrit.wikimedia.org/r/188968
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I36d580bff1757335e4fb528ac44e89bf2eb6894f
Gerrit-PatchSet: 1
Gerrit-Project: operations/puppet
Gerrit-Branch: production
Gerrit-Owner: Ori.livneh <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to