Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-3026

Improve retrying in ElasticSearch client

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: io-java-elasticsearch
    • Labels:
      None

      Description

      Currently an overloaded ES server will result in clients failing fast.
      I suggest implementing backoff pauses. Perhaps something like this:

          ElasticsearchIO.ConnectionConfiguration conn = ElasticsearchIO.ConnectionConfiguration
            .create(new String[]{"http://...:9200"}, "test", "test")
            .retryWithWaitStrategy(WaitStrategies.exponentialBackoff(1000, TimeUnit.MILLISECONDS)
            .retryWithStopStrategy(StopStrategies.stopAfterAttempt(10)
          );
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aalbatross Ravi Pathak
                Reporter:
                timrobertson100 Tim Robertson
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 15h 20m
                  15h 20m