How good is to clear the field data cache on a regular basis

I have big daily indices and sometimes the indexing get stopped or delayed. When i clear the cache, everything goes back to normal. So I was thinking of clearing the cache , especially field cache in every 20-30 minutes by running a cronjob.
We have some 100 requests per 5 minutes on the cluster, from Elastalert.
I am on 7.10 cluster.
Is it a good practice to clear the cache (at least field data cache) that often?

No. It sounds like you might be working around a deeper problem by clearing the cache, but you'd do better to investigate and fix the deeper problem instead. Why is indexing slowing down? Why are you using fielddata so heavily? Would it be better to use docvalues instead?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.