我在local_settings.py中的配置:
DATABASES = {
'default': {
'NAME': 'graphite',
'ENGINE': 'django.db.backends.mysql',
'USER': 'graphite',
'PASSWORD': 'graphite',
'HOST': '${MYSQL_PORT_3306_TCP_ADDR}',
'PORT': '${MYSQL_PORT_3306_TCP_PORT}',
}
}
并运行:
#!/bin/sh
export PYTHONPATH='/var/lib/graphite/webapp'
echo "PYTHONPATH=$PYTHONPATH"
echo "FIXING CONFIG"
ep -v /var/lib/graphite/webapp/graphite/local_settings.py
echo "SYNCING DB"
cd /var/lib/graphite/webapp/graphite && python manage.py syncdb --noinput
echo "RUNNING GRAPHITE"
cd /var/lib/graphite/webapp/ && /usr/bin/gunicorn_django -b127.0.0.1:8000 --pythonpath=/var/lib/graphite/webapp -w2 graphite/settings.py
结果就是
我做错了什么?有什么想法吗?
答案 0 :(得分:0)
对于那些有类似问题的人
如果您有兴趣缩放Graphite:https://grey-boundary.io/the-architecture-of-clustering-graphite/