Page MenuHomePhabricator

Deploy geoip lookup script on 2 hosts
Closed, ResolvedPublic

Description

To test the geoip lookup (and header settings) under live load we can deploy the script and related dependencies on 2 production hosts

  • cp3073.esams.wmnet (text)
  • cp3081.esams.wmnet (upload)

Puppet configuration will include:

  • LUA script in /etc/haproxy that will be used for actual lookup
  • HAProxy template modification to load the lua script and set the header
  • Varnish template configuration to remove the set header (as it's currently unused)

What's NOT included in puppet configuration is the maxminddb.so shared library for LUA bindings that is required by geoip.lua lookup script, as it will be packaged and distributed at a later time when this test will show a positive result.

The test header will be X-Test-ISP (just to be sure that is identifiable as a test).

If this test will show the expected result, this work will be reviewed and modified to add more configuration options (and also geoip.lua script will be improved).

Details

Related Changes in Gerrit: