Change statsd key in prod webapp config

RESOLVED FIXED

Status

Infrastructure & Operations Graveyard
WebOps: Socorro
RESOLVED FIXED
5 years ago
2 years ago

People

(Reporter: lonnen, Assigned: solarce)

Tracking

Details

(Reporter)

Description

5 years ago
Specifically we need to change STATSD_PREFIX to --
STATSD_PREFIX = 'socorro-stage.webapp'

I can't find a local.py file for the prod webapp, and that's where we would put the hostname and prefix. Prod appears to be sending data to graphite[1], though, so it's getting the info from somewhere?


[1] https://graphite-phx1.mozilla.org/render/?width=750&height=630&_salt=1377214695.551&target=stats_counts.socorro-crashstats.response.auth.200&target=stats_counts.socorro-crashstats.response.200&target=stats_counts.socorro-crashstats.response.auth.400
(Assignee)

Comment 1

5 years ago
(In reply to Chris Lonnen :lonnen from comment #0)
> Specifically we need to change STATSD_PREFIX to --
> STATSD_PREFIX = 'socorro-stage.webapp'
> 
> I can't find a local.py file for the prod webapp, and that's where we would
> put the hostname and prefix. Prod appears to be sending data to graphite[1],
> though, so it's getting the info from somewhere?
> 
> 

The config kind of lives in two places

/data/www/crash-stats.mozilla.org/local.py
/data/www/crash-stats.mozilla.org/socorro/webapp-django/crashstats/settings/local.py

To make a config change you edit socorroadm.private.phx1:/data/crashstats/src/crash-stats.mozilla.org/local.py and then cp it to /data/crashstats/src/crash-stats.mozilla.org/socorro/webapp-django/crashstats/settings/local.py then run /data/crashstats/deploy crash-stats.mozilla.org

We should probably move managing this into Puppet and have it live in /etc/socorro/ and have the deploy script make a symlink into socorro/webapp-django/crashstats/settings/local.py

I can work on that tomorrow


> [1]
> https://graphite-phx1.mozilla.org/render/
> ?width=750&height=630&_salt=1377214695.551&target=stats_counts.socorro-
> crashstats.response.auth.200&target=stats_counts.socorro-crashstats.response.
> 200&target=stats_counts.socorro-crashstats.response.auth.400
Assignee: server-ops-webops → bburton
(Reporter)

Comment 2

5 years ago
copypasta fail. should be socorro-prod.webapp
(Assignee)

Comment 3

5 years ago
Prod settings change deployed

[root@socorroadm.private.phx1 ~]# cp /data/crashstats/src/crash-stats.mozilla.org/local.py /data/crashstats/src/crash-stats.mozilla.org/socorro/webapp-django/crashstats/settings/local.py
cp: overwrite `/data/crashstats/src/crash-stats.mozilla.org/socorro/webapp-django/crashstats/settings/local.py'? y
[root@socorroadm.private.phx1 ~]# /data/crashstats/deploy crash-stats.mozilla.org
[2013-08-23 01:22:12] Running rsync_project
[2013-08-23 01:22:12] [localhost] running: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/crashstats/src/crash-stats.mozilla.org/ /data/crashstats/www/crash-stats.mozilla.org/
[2013-08-23 01:22:13] [localhost] finished: /usr/bin/rsync -aq --include '.gitkeep' --exclude '.git*' --exclude '.hg*' --exclude '.svn*' --exclude 'CVS' --exclude '.bzr*' --delete /data/crashstats/src/crash-stats.mozilla.org/ /data/crashstats/www/crash-stats.mozilla.org/ (1.301s)
[2013-08-23 01:22:13] Finished rsync_project (1.301s)
[2013-08-23 01:22:13] Running commit_www
[2013-08-23 01:22:13] [localhost] running: cd /data/crashstats/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['crash-stats.mozilla.org']'
[2013-08-23 01:22:13] [localhost] finished: cd /data/crashstats/www && /usr/bin/git add .; /usr/bin/git commit -a -m 'deploy ['crash-stats.mozilla.org']' (0.305s)
[localhost] out: [master 5d67875] deploy [crash-stats.mozilla.org]
[localhost] out: 2 files changed, 2 insertions(+), 2 deletions(-)
[2013-08-23 01:22:13] Finished commit_www (0.306s)
[2013-08-23 01:22:13] Running push_www
[2013-08-23 01:22:13] [socorro1.webapp.phx1.mozilla.com] running: /data/bin/update-www.sh crash-stats.mozilla.org
[2013-08-23 01:22:13] [socorro2.webapp.phx1.mozilla.com] running: /data/bin/update-www.sh crash-stats.mozilla.org
[2013-08-23 01:22:13] [socorro3.webapp.phx1.mozilla.com] running: /data/bin/update-www.sh crash-stats.mozilla.org
[2013-08-23 01:22:13] [socorro4.webapp.phx1.mozilla.com] running: /data/bin/update-www.sh crash-stats.mozilla.org
[2013-08-23 01:22:16] [socorro1.webapp.phx1.mozilla.com] finished: /data/bin/update-www.sh crash-stats.mozilla.org (2.702s)
[socorro1.webapp.phx1.mozilla.com] out: Not removing crash-stats.mozilla.org/app/
[2013-08-23 01:22:16] [socorro4.webapp.phx1.mozilla.com] finished: /data/bin/update-www.sh crash-stats.mozilla.org (2.699s)
[2013-08-23 01:22:16] [socorro3.webapp.phx1.mozilla.com] finished: /data/bin/update-www.sh crash-stats.mozilla.org (2.702s)
[2013-08-23 01:22:16] [socorro2.webapp.phx1.mozilla.com] finished: /data/bin/update-www.sh crash-stats.mozilla.org (2.704s)
[2013-08-23 01:22:16] Finished push_www (2.706s)
(Assignee)

Updated

5 years ago
Status: NEW → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Product: Infrastructure & Operations → Infrastructure & Operations Graveyard
You need to log in before you can comment on or make changes to this bug.