-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade path and tags database #32
Comments
@nickbabcock
in the container for that. |
Interestingly that command returns:
Since I only use graphite-web as a mean as interfacing with carbon with functions for grafana, a quick scan of graphite.db didn't reveal anything I'd care too much about if I dropped sqlite and made a fresh start with postgres. |
That's a good move, indeed - postgresql should run much better. |
I did have a couple questions. I noticed that in order to get the initial migrations to run for postgres (and I'm assuming any non-sqlite db) I had to force FROM graphiteapp/graphite-statsd:1.1.3
COPY carbon.conf storage-schemas.conf /opt/graphite/conf/
# Copy over settings for SECRET_KEY and DATABASES
COPY local_settings.py /opt/graphite/webapp/graphite/
# Graphite does not come bundled with a python postgres driver so we manually
# pip install psycopg2. We pin to 2.7.4 for reproducibility.
RUN pip install psycopg2-binary==2.7.4
CMD /usr/local/bin/manage.sh && /sbin/my_init And my compose file if necessary: version: '3'
services:
graphite:
container_name: 'graphite'
build: .
restart: 'unless-stopped'
ports:
- '8181:80'
- '2003:2003'
links:
- db
# Snipped volumes
db:
container_name: 'graphite-db'
image: 'postgres:10.3-alpine'
restart: 'unless-stopped'
# Snipped volumes
environment:
- POSTGRES_PASSWORD=graphitedbpassword Do you see anything amiss? |
LGTM |
Excellent, works like a charm |
Coming from 1.0.2-2 and upgrading to 1.1.2-1, I see several errors related to tags:
These are the tables I see in graphite.db. Since I did no configuring on my end I'm assuming this includes the local tags db.
Is there a migration guide / am I missing something?
The text was updated successfully, but these errors were encountered: