You are browsing a read-only backup copy of Wikitech. The live site can be found at wikitech.wikimedia.org

Thumbor/Runbook

From Wikitech-static
< Thumbor
Revision as of 00:38, 16 November 2021 by imported>Legoktm (force TOC for links)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Testing a specific thumbnail

Given a URL like https://upload.wikimedia.org/wikipedia/commons/thumb/e/e5/NASA_logo.svg/574px-NASA_logo.svg.png

legoktm@thumbor1005:~$ curl -I 'localhost:8801/wikipedia/commons/thumb/e/e5/NASA_logo.svg/574px-NASA_logo.svg.png'
HTTP/1.1 200 OK
Thumbor-Memcache-Get-Time: 251
Thumbor-Wikimedia-Original-Path: e/e5/NASA_logo.svg
Thumbor-Request-Date: Tue, 16 Nov 2021 00:34:52 GMT
Thumbor-Swift-Thumbnail-Success-Time: 139
Content-Disposition: inline;filename*=UTF-8''NASA_logo.svg.png
Content-Length: 44339
Thumbor-Wikimedia-Thumbnail-Path: e/e5/NASA_logo.svg/574px-NASA_logo.svg.png
Thumbor-Wikimedia-Original-Container: wikipedia-commons-local-public.e5
Server: Thumbor/6.3.2
Thumbor-Wikimedia-Thumbnail-Container: wikipedia-commons-local-thumb.e5
Etag: "89706a805df1d0fe06ea71d1ac491e088e11dc23"
Thumbor-Parameters: {"width": "574", "image": "https://ms-fe.svc.eqiad.wmnet/v1/AUTH_mw/wikipedia-commons-local-public.e5/e/e5/NASA_logo.svg", "filters": "format(png)"}
Thumbor-Poolcounter-Time: 5
Date: Tue, 16 Nov 2021 00:34:52 GMT
Xkey: File:NASA_logo.svg
Proxy-Request-Date: None
Content-Type: image/png

Pooling a new server

  • Enable the thumbor::mediawiki Puppet role and run puppet until it exits cleanly.
    • If you have issues with scap, it's probably T197470, in which case just edit the git server manually in /srv/deployment/3d2png/deploy-cache/.config.
  • Reboot the server so new boot parameters take effect
  • Test that basic thumbnails work, httpbb tests will soon be available for this.
  • Add to conftool and pool with confctl.