Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: compute_engine_scripts/monitoring/graphite.wsgi

Issue 310253003: Add setup scripts for a Graphite server. (Closed) Base URL: https://skia.googlesource.com/buildbot.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 import os, sys
2 sys.path.append('/home/www-data/graphite/lib')
3 sys.path.append('/home/www-data/graphite/webapp')
4 os.environ['DJANGO_SETTINGS_MODULE'] = 'graphite.settings'
5
6 import django.core.handlers.wsgi
7
8 application = django.core.handlers.wsgi.WSGIHandler()
9
10 # READ THIS
11 # Initializing the search index can be very expensive, please include
12 # the WSGIImportScript directive pointing to this script in your vhost
13 # config to ensure the index is preloaded before any requests are handed
14 # to the process.
15 from graphite.logger import log
16 log.info("graphite.wsgi - pid %d - reloading search index" % os.getpid())
17 import graphite.metrics.search
18
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698