Purpose of search index and build-index.sh

Asked by Kevin

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:
Last query:
Last reply:
Revision history for this message
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.

Revision history for this message
Kevin (kevkev) said :
#2

Thanks Jason Dixon, that solved my question.