On 3/15/23 06:35, Mark H. Wood wrote:
I'm always flummoxed by this question:  what is the total index size?

It's easy to get 'numDocs' from the admin. interface, but there's
nothing I can find there that I would interpret as "index size".

Does this mean the sum of sizes of all files in $CORE/data/index?  Can
I just report the output of 'du $CORE/data/index'?  We have a lot of
sizable 'stored' fields, and I suspect that those data are not to be
included.

IOW when someone asks me for the total index size of a Solr instance,
how should I calculate it?

The size of a core is shown in the admin UI when you choose the core from the dropdown. Add up all the values you find there to get the total.

To get the total all at once from the commandline, do:

du -hsc ${solr.solr.home}/*/data/index

The solr home is the directory where all your cores live. If you have defined the solr data home, you should use that instead of the solr home.

Thanks,
Shawn

Reply via email to