Purpose of search index and build-index.sh

Asked by Kevin on 2016-11-01

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

English Edit question
Graphite Edit question
No assignee Edit question
Solved by:
Jason Dixon
Last query:
Last reply:
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.