Details
Revisions and Commits
rTHMBREXT Thumbor Plugins | |||
Restricted Differential Revision | rTHMBREXT6cf4b802f799 Add PoolCounter support |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | • Gilles | T121388 Service-based thumbnailing re-architecture in production with Thumbor | |||
Resolved | • Gilles | T151066 Implement PoolCounter support in Thumbor | |||
Resolved | • Gilles | T169312 Implement poolcounter failover in Thumbor | |||
Resolved | • Gilles | T169313 Investigate poolcounter failure leading to thumbor failing to generate thumbs |
Event Timeline
Change 330157 had a related patch set uploaded (by Gilles):
Add poolcounter to thumbor role
Change 330646 had a related patch set uploaded (by Gilles):
Pass the filtered request headers to Thumbor
Change 330646 merged by Filippo Giunchedi:
Pass the filtered request headers to Thumbor
Change 330870 had a related patch set uploaded (by Gilles):
Enable Thumbor PoolCounter support
Issue when deployed, the X-Forwarded-For header in production is a list of IPs, which might explain why the throttle kicks in incorectly for every request:
Jan 20 10:26:35 thumbor1002 thumbor@8836[32389]: 2017-01-20 10:26:35,054 8836 thumbor:ERROR [ImagesHandler] Throttled by PoolCounter: thumbor-ip-x.x.x.x, 10.64.32.81, 10.64.32.81, 10.64.0.167 {'workers': 32, 'maxqueue': 500, 'timeout': 8} Jan 20 10:26:01 thumbor1002 thumbor@8836[32389]: 2017-01-20 10:26:01,925 8836 thumbor:ERROR [ImagesHandler] Throttled by PoolCounter: thumbor-ip-x:x:x:x:x:x:x:x, 10.128.0.113, 10.128.0.113, 10.128.0.115, 10.192.32.116, 10.64.0.167 {'workers': 32, 'maxqueue': 500, 'timeout': 8}
We should only be looking at the client IP, which I imagine is the first in the list.
Change 333228 had a related patch set uploaded (by Gilles):
Remove broken Thumbor IP throttling from configuration
Change 333228 merged by Filippo Giunchedi:
Remove broken Thumbor IP throttling from configuration
Mentioned in SAL (#wikimedia-operations) [2017-01-30T09:44:07Z] <godog> upgrade to thumbor 0.1.33 - T151066