GWicke has uploaded a new change for review.

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


Change subject: Randomize the POST URL with pid to help production load 
balancing
......................................................................

Randomize the POST URL with pid to help production load balancing

Change-Id: Ie9554f8ea7f19b3271857bdc10e7ea6fa808deca
---
M js/lib/mediawiki.ApiRequest.js
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid 
refs/changes/39/73539/1

diff --git a/js/lib/mediawiki.ApiRequest.js b/js/lib/mediawiki.ApiRequest.js
index 9822cbb..863b9dc 100644
--- a/js/lib/mediawiki.ApiRequest.js
+++ b/js/lib/mediawiki.ApiRequest.js
@@ -347,7 +347,8 @@
                title: title,
                text: text
        };
-       var url = env.conf.wiki.apiURI;
+       // Randomize the POST url so that we hit different Squids
+       var url = env.conf.wiki.apiURI + '?' + process.pid;
 
        this.requestOptions = {
                // Use POST since we are passing a bit of source, and GET has a 
very
@@ -446,7 +447,8 @@
                text: text,
                disablepp: 'true'
        };
-       var url = env.conf.wiki.apiURI;
+       // Randomize the POST url so that we hit different Squids
+       var url = env.conf.wiki.apiURI + '?' + process.pid;
 
        this.requestOptions = {
                // Use POST since we are passing a bit of source, and GET has a 
very

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie9554f8ea7f19b3271857bdc10e7ea6fa808deca
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>

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

Reply via email to