Page MenuHomePhabricator
Paste P10660

(An Untitled Masterwork)
ActivePublic

Authored by ema on Mar 9 2020, 9:51 AM.
Tags
None
Referenced Files
F31672578: raw.txt
Mar 9 2020, 9:51 AM
Subscribers
None
===Testing patches in labs===
The '''traffic''' project in labs provides a testbed for ATS related patches, both in terms of Lua/configuration and ATS itself. One of the [https://horizon.wikimedia.org/auth/switch/traffic/?next=/project/instances/ traffic instances] with hostname beginning in '''traffic-cache-''' can be used for this purpose. The '''traffic''' labs project also features a self-hosted puppetmaster on which puppet patches can be cherry-picked. At the time of this writing the instance is '''traffic-puppetmaster-buster.traffic.eqiad.wmflabs''', but double-check that this is still the case now that you are reading.
<source lang="bash">
ema@traffic-cache-atstext-buster:~$ grep ^server /etc/puppet/puppet.conf
server = traffic-puppetmaster-buster.traffic.eqiad.wmflabs
</source>
The labs testbed provides a different, significantly simplified remap configuration compared to production. Right now it looks like this on cache_text instances:
<source lang="bash">
ema@traffic-cache-atstext-buster:~$ sudo cat /etc/trafficserver/remap.config
# https://docs.trafficserver.apache.org/en/latest/admin-guide/files/remap.config.en.html
# This file is managed by Puppet.
map http://en.wikipedia.beta.wmflabs.org http://deployment-mediawiki-07.deployment-prep.eqiad.wmflabs
</source>
Test requests against MediaWiki can be performed as follows
<source lang="bash">
ema@traffic-cache-atstext-buster:~$ curl -v -H 'Host: en.wikipedia.beta.wmflabs.org' '127.0.0.1:3128/w/load.php?lang=it&modules=startup&only=scripts&raw=1&skin=vector'
</source>
Use '''Host: upload.beta.wmflabs.org''' on cache_upload instances instead.