Purpose of search index and build-index.sh

Asked by Kevin on 2016-11-01

Hi
Is it somewhere documented or does anyone could explain what is the purpose of the "index" file in carbon data directory, and the script that is used to build it (build-index.sh)? Is it required to update the index regularly? If so - how often? Which components rely on existence or contents of this index?

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Jason Dixon
Solved:
2016-11-04
Last query:
2016-11-04
Last reply:
2016-11-01
Best Jason Dixon (jason-dixongroup) said : #1

The INDEX_FILE is used by the /browser/search and /metrics/index.json routes. It's a faster alternative to walking all of the metrics directories every time. If you don't update it regularly your search and index.json results will be stale, but if you don't use those features much then it's not hurting anything to ignore it.

Kevin (kevkev) said : #2

Thanks Jason Dixon, that solved my question.