If I change the model to all-MiniLM-L6-v2, I don't have timeout issue.
I cannot find a way to increase the timeout.
Can show me how to change timeout settings?
10 seconds is a long time, the timeout is probably occurring because something else has gone wrong with the model deployment. I'm not sure increasing the timeout will help in this case.
Do you see any errors in the Elasticsearch logs relating to the all-mpnet-base-v2 model. Can you share the logs please
Hi David,
Thanks for quick response.
After further investigation, it seems happened when reindexing not completed.
So when reindex runs on background, I try to query dest index and it is timeout after 10s.
Is it expected behavior?
Does it mean say reindex is completed and I query it while I am inserting new record to the index, it will be timeout as well? Cannot query during inserting?
Take a look a the Trained Models UI in Kibana, its displays a number of stats that will be helpful for you to understand what is going on. Particularly the inference count field which you will see increasing as documents are ingested. Average inference time is another useful stat as it will help you understand the throughput.
When inserting records and querying at the same time the query requests have a higher priority and will execute before the reindex requests, (see Deploy the model in your cluster | Machine Learning in the Elastic Stack [master] | Elastic). If you are still getting timeouts consider creating two model deployments one for ingest and another for search. That will ensure your search requests are not affected by ingest work
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.