Asher has submitted this change and it was merged. Change subject: Event logging via varnishlog over ZeroMQ ......................................................................
Event logging via varnishlog over ZeroMQ This patchset declares a `varnish_zmq_pub` class, nested under `varnish`. The class comprises a package requirement (`zpubsub`, which is already in our apt repo, with binaries for precise) and an upstart config file for managing the service. Instances belonging to this class will stream `RxURL` entries from varnishlog, listening to subscribers on port 8006 (no conflicting IANA assignment). The port is set in the upstart config file and can be freely changed. I didn't parametrize this in the class because none of the other upstart configs were templated and I tried to stick closely to the patterns I saw. The Varnishes listens/binds rather than connects for two reasons: (1) That's how ZeroMQ pub/sub sockets work (publisher binds, subscriber connects). (2) It allows me to scale or failover to additional listeners without having to touch configurations of the (far more important) Varnishes. I have the package + upstart config deployed to a labs instance, so those two things are tested, but I'm not sure how to test the Puppet class. Questions: - Am I correct that the bits varnishes are on precise? - Where should I document this? (I don't have access to wikitech.wm.org.) ----------------------------------------------------------- Amended: specify respawn limit ----------------------------------------------------------- Change-Id: I56403ce0cb36e4ad78ce7e7d8aaad311b42be16b --- A files/upstart/zpub.conf M manifests/varnish.pp 2 files changed, 21 insertions(+), 0 deletions(-) Approvals: Asher: Looks good to me, approved gerrit2: Verified -- To view, visit https://gerrit.wikimedia.org/r/20039 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I56403ce0cb36e4ad78ce7e7d8aaad311b42be16b Gerrit-PatchSet: 2 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Ori.livneh <o...@wikimedia.org> Gerrit-Reviewer: Asher <afeld...@wikimedia.org> Gerrit-Reviewer: Ori.livneh <o...@wikimedia.org> Gerrit-Reviewer: Tychay <tc...@wikimedia.org> Gerrit-Reviewer: gerrit2 <n...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits