Last modified: 2013-07-24 10:42:21 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T53874, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 51874 - vhtcpd needs to support purge request send over unicast
vhtcpd needs to support purge request send over unicast
Status: RESOLVED WORKSFORME
Product: Wikimedia Labs
Classification: Unclassified
deployment-prep (beta) (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 48203
  Show dependency treegraph
 
Reported: 2013-07-23 12:15 UTC by Antoine "hashar" Musso (WMF)
Modified: 2013-07-24 10:42 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Antoine "hashar" Musso (WMF) 2013-07-23 12:15:48 UTC
deployment-cache-text1 has a vhtcpd purge daemon running with the following options:

 cat /etc/default/vhtcpd 
 DAEMON_OPTS="-F -m 239.128.0.112 -c 127.0.0.1:80 -c 127.0.0.1:3128"

The -m is a multicast address to subscribe to. Since beta does not have multicast, we need vhtcpd to handle request send over unicast.  The daemon does listen on udp:

# netstat -ulnp|grep vhtcpd
udp        0      0 0.0.0.0:4827   0.0.0.0:*      21339/vhtcpd    


When sending a purge request:

$ echo 'https://login.wikimedia.beta.wmflabs.org/' |mwscript purgeList.php --wiki=loginwiki
Purging 1 urls
Done!


We do receive a packet on the varnish cache:


# tcpdump -n -s0 -A udp port 4827
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
12:14:00.440175 IP 10.4.0.58.53582 > 10.4.1.133.4827: UDP, length 77
E..i..@.@.$.
..:
....N...U.r.M...G..I.#.....HEAD.)https://login.wikimedia.beta.wmflabs.org/..HTTP/1.0....
#

But that does not seem to trigger a purge :(  A request before:

$ curl -s -i https://login.wikimedia.beta.wmflabs.org/|grep X-Cache
X-Cache: deployment-cache-text1 hit (11), deployment-cache-text1 frontend hit (9)

And after the purge is send

$ curl -s -i https://login.wikimedia.beta.wmflabs.org/|grep X-Cache
X-Cache: deployment-cache-text1 hit (11), deployment-cache-text1 frontend hit (10)
Comment 1 Antoine "hashar" Musso (WMF) 2013-07-23 12:16:07 UTC
That prevents purging in beta (bug 48203)
Comment 2 Antoine "hashar" Musso (WMF) 2013-07-23 12:19:17 UTC
Filled RT #5504
Comment 3 Antoine "hashar" Musso (WMF) 2013-07-24 10:42:21 UTC
Brandon confirmed vhtcpd honors HTCP purge requests send over unicast. So the issue is somewhere else.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links