Elasticsearch Retry Mechanism for Spring Boot 2.2.5

I need a retry mechanism for elastic search java client since I am getting 30,000 milliseconds timeout on connection http-outgoing-1 error. I don't want to increase the read-timeout value.

I have found this https://stackoverflow.com/a/61612875/9601690 answer but unfortunately my spring-boot version is 2.2.5 which is lower than the solution supports. So, I could not apply it.

My ES version: 7.8.0

Is there another way to achieve this?

Read more here: https://stackoverflow.com/questions/67215535/elasticsearch-retry-mechanism-for-spring-boot-2-2-5

Content Attribution

This content was originally published by csel at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: