How do I set a different storage path and move the whisper database ?
I added a new virtual disk formatted with "ext4" and mounted on "/data". I modified the following settings:
File - /etc/carbon/
STORAGE_DIR = /data
LOCAL_DATA_DIR = /data/whisper/
File - /etc/graphite/
STORAGE_DIR = '/data/whisper'
WHISPER_DIR = '/data/whisper'
I'm running graphite on Ubuntu 14.04.05 LTS and I installed graphite-carbon version 10.9.12-3, graphite-web version 0.9.12 and apache2 version 2.4.7-1.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Graphite Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Tom
- Solved:
- 2017-02-14
- Last query:
- 2017-02-14
- Last reply:
- 2017-02-14
Denis Zhdanov (deniszhdanov) said : | #1 |
STORAGE_DIR should be the same for both configs. E.g. set it to /data.
Rest is fine - set LOCAL_DATA_DIR and WHISPER_DIR to same location. Do not forget to check permissions - that dir should be writable for carbon daemon, and readable by your webserver user (www-data)
Tom (cailan) said : | #2 |
It works, thank you.
Sup3r1 (salient) said : | #3 |
Hi, I'm having the same issue. Data is successfully being written to the new location however my web apps are still looking in the old location.
My STORAGE_DIR's in my carbon.conf for each machine matches and LOCAL_DATA_DIR and WHISPER_DIR point to the same spot as you mentioned. As my webapp is on a different machine I have set the whisper files to 755.
Is there anything else you did please?
Piotr Popieluch (piotr1212) said : | #4 |
make sure the local_settings.py has the same settings.
ps. the webapp needs to access the files from disk or through another webapp. (so configure the local_settings.py on the webapp which runs on the same system as carbon).
Sup3r1 (salient) said : | #5 |
Correct, I completely forgot about the webapps on the cache machines. Thanks a lot!