Hi Ken,
The formula for calculating the graph size looks correct:
Total Graph Size (GB) = 1.1 * (dimension * 4 + 8 * M) * (num_documents * (1 + Number of Replicas)) / 1024 / 1024 / 1024
Regarding the cache capacity being reached and the eviction count of 39,453, here’s what’s happening:
By default, the circuit breaker is set to 50% of available memory (as outlined in this documentation). Since 32GB is allocated for JVM and out of Remaining 32GB, 16GB is available for graph caching. As the memory usage approaches this threshold, frequent evictions occur because the circuit breaker is being triggered, resulting in constant loading and unloading of graphs.
To mitigate this, one approach is to increase the circuit breaker percentage to 60%. This would allow approximately 19.2GB for caching, ensuring that a graph of 15.7GB can be loaded into memory without the circuit breaker being triggered.
Please let me know if you any further questions.
Thanks