Last modified: 2014-07-29 04:40:54 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 T54302, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52302 - Add VARNISH role
Add VARNISH role
Status: NEW
Product: MediaWiki-Vagrant
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal enhancement
: ---
Assigned To: Yuvi Panda
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-07-30 23:30 UTC by Yuri Astrakhan
Modified: 2014-07-29 04:40 UTC (History)
2 users (show)

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


Attachments

Description Yuri Astrakhan 2013-07-30 23:30:10 UTC
Can we have varnish through a role please? We will have to do a lot of dev & test for it soon.

The default varnish config in   /etc/varnish/default.vcl could have this at the very top of the file. Leave all comments there.

backend default {
    .host = "127.0.0.1";
    .port = "80";
}

the service can be started with:

sudo varnishd -f /etc/varnish/default.vcl -s malloc,1G -T 127.0.0.1:2000 -a 0.0.0.0:8080

This way varnish will only work if accessed through port 8080 (needs to be mapped to outside), while port 80 will continue be served uncached. The admin port 2000 doesn't have to be patched to the outside (rarely used, can be accessed through ssh).

P.S. Note that varnish config should not be deleted on every vagrant up - there could be a lot of changes during development to that file. Maybe it would make sense to have an include command of some sort the same way as settings.d/ files for vagrant.

Thanks!
Comment 1 Andre Klapper 2013-09-11 22:45:37 UTC
[mass-moving from Tools>MediaWiki-Vagrant to separate product. See bug 54041. Filter bugmail on this comment.]
Comment 2 Bryan Davis 2013-10-04 20:16:34 UTC
Yuvi mentioned on irc that he was working on a varnish role.
Comment 3 Gerrit Notification Bot 2013-10-04 20:56:20 UTC
Change 87623 had a related patch set uploaded by Yuvipanda:
[HEAVY WIP] Add varnish role

https://gerrit.wikimedia.org/r/87623
Comment 4 Gerrit Notification Bot 2014-07-28 18:27:08 UTC
Change 87623 abandoned by Yuvipanda:
[HEAVY WIP] Add varnish role

Reason:
Uncool.

https://gerrit.wikimedia.org/r/87623
Comment 5 Bryan Davis 2014-07-29 04:40:54 UTC
Patch was abandoned.

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


Navigation
Links