I'm not good at English. I'm sorry, but please understand.
We've installed our own custom plug-in in ElasticSearch.
We implemented the AbstractTokenFilterFactory.
the "incrementToken" method calls external APIs, with a delay of 20 ms.....
We, the fast index performance is important, so we looked at various ways.
"IncrementToken" reviewed the possibility of asynchronous processing of logic calling external API, but failed to find the correct answer.
It runs within the "Write Thread Pool," and we know that if our CPU is 16 cores, perhaps the maximum Thread Pool is 16+1.
My question is three.
Is it reasonable to set the "Write Thread Pool" to its maximum(core + 1)?
If our CPU is "Hyper-Threading" supported, can 16core CPUs operate as "Write Thread Pool" in "32+1"?
Is there a better way?