mobrovac added a comment.
In T220402#5199730 <https://phabricator.wikimedia.org/T220402#5199730>, @Tarrow wrote: > Should we be using http rather than https internally? Yes, indeed, sorry that was an omission on my part. Since setting up TLS connections takes time, though, you also want to keep these connections alive. You can do so by explicitly adding this agent option to the request template: uri: https://appservers-ro.discovery.wmnet/{+path} headers: Host: '{req.params.domain}' agentOptions: keepAlive: true > I also wanted to check if we should be using `appservers.discovery.wmnet` as the host; I'm not sure if I read things right but I didn't think this host is defined? Or should we aiming for `appservers-ro.discovery.wmnet` (since we are not writing)? I then saw https://phabricator.wikimedia.org/T199219#4452041 and was wondering if that is indeed the right place or if it is oddly slow/not cached. Yup, +1, use `appservers-ro` here, in that case. The end point itself is synonymous with `appservers-rw` for now, but once we start splitting MW traffic based on reads/writes, this will mean that your requests will always land in the local DC, both giving it a speed-up and decreasing the load from the master appservers, resulting in a net win for everybody :) > In general is there a place on wikitech (or similar) we should be looking to make sure we're getting things right? Not that I'm aware of :/ TASK DETAIL https://phabricator.wikimedia.org/T220402 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: mobrovac Cc: Krenair, fsero, mobrovac, Matthias_Geisler_WMDE, Pablo-WMDE, Dzahn, Addshore, Tarrow, Lea_WMDE, WMDE-leszek, Jakob_WMDE, Aklapper, akosiaris, E.S.A-Sheild, darthmon_wmde, Premeditated, joker88john, Legado_Shulgin, CucyNoiD, Nandana, NebulousIris, thifranc, AndyTan, Gaboe420, Versusxo, Majesticalreaper22, Giuliamocci, Davinaclare77, Adrian1985, Qtn1293, Cpaulf30, Lahi, Gq86, Baloch007, Darkminds3113, Bsandipan, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Hfbn0, Ramalepe, Liugev6, QZanden, LawExplorer, WSH1906, Lewizho99, Zppix, Maathavan, _jensen, rosalieper, Liudvikas, Wong128hk, Eevans, thcipriani, Hardikj, Wikidata-bugs, aude, Lydia_Pintscher, dduvall, faidon, Jdforrester-WMF, Mbch331, Jay8g, fgiunchedi
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
