Nova Resource:Wikistats

From Wikitech


Resource Type Resource Type::project
Project Name [[Project::wikistats]]
Monitoring nagf
Admins {{#arraymap:User:dzahn,User:mschon,User:novaadmin|,|x|* Member::x|\n}}
Members {{#arraymap:User:dzahn,User:mschon,User:novaadmin|,|x|* Member::x|\n}}

Documentation

{{#formlink:form=Nova Project Documentation |target=Nova Resource:Wikistats/Documentation |link text=Edit documentation }}

Wikistats

Description

Description::A project that collects and displays statistics for Mediawikis.

Purpose

Purpose::Collecting statistics about Mediawiki installs on the internet.

Anticipated traffic level

Anticipated Traffic Level::10-100 hits per day

Anticipated time span

Anticipated Time Span::indefinite

Project status

Project Status::currently running

Contact address

Contact Address::dzahn@wikimedia.org

Willing to take contributors or not

willing

Subject area narrow or broad

narrow {{#arraymap:statistics|,|x|}}

http://wikistats.wmflabs.org

Where to find the code

Wikistats consists of 2 parts, the puppet manifests (in the operations/puppet git repo) and the Debian package (in the operations/debs/wikistats repo).

The puppet part is divided into ./puppet/manifests/role/wikistats.pp,the role class which is applied to a node/instance, and the module in ./puppet/modules/wikistats/.

Manifests

  1. role::wikistats - configures host name and SSL certs depending on labs vs. prod, uses the main classes below, is all that needs to be included on an instance or node
  2. wikistats - the init.pp of the module, sets up user/group, installs package (if we're using labsdebprepo), uses the other classes
  3. wikistats::cronjob - defines a cron job to update a table
  4. wikistats::db - installs mariadb, php5-mysql
  5. wikistats::updates - installs php5-cli, creates log dir, has definitions for the update cron jobs and configures them
  6. wikistats::web - does the Apache setup

(Currently they do not automatically install the package yet which is done manually)

How to build the Debian package

  1. git clone https://gerrit.wikimedia.org/r/p/operations/debs/wikistats
  2. cd wikistats
  3. "debuild" (signed) or "debuild -us -uc" (unsigned)
  4. cd ..
  5. optional: check which files would be installed by this: dpkg-deb -c wikistats_*_all.deb
  6. install: dpkg -i wikistats_*_all.deb

Server admin log

2015-07-15

  • 02:56 mutante: - apt-get upgrade

2015-07-14

  • 23:48 mutante: added more missing projects, pnb.wikt, ca.wm, cn.wm ..
  • 23:47 mutante: built and installed packaged 2.10
  • 23:02 mutante: add missing Persian Wikivoyage (fa)

September 18

  • 23:11 mutante: - package install problem due to bug 70981

August 20

  • 23:52 mutante: - so that now we have puppet status OK again (missing puppetized db setup)
  • 23:50 mutante: - deleted old proxy, created new one, switche... (more)

Instances for this project

{{#ask:Resource Type::instance[[Project::wikistats]] |?Instance Type |?Image Id |?Public IP |?Number of CPUs |?RAM Size |?Amount of Storage |?Modification date |mainlabel=FQDN |format=broadtable |limit=20 |order=DESC |sort=Modification date |offset=0 }}