Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2588

ElasticSearch Index Provider. BindException

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 5.1.0.Final
    • 4.6.0.Final
    • Query
    • None

    Description

      ElasticSearch index provider cannot work under load because of http/socket limitations

      Configuration:

              EditableDocument indexProviders =     editor.getOrCreateDocument(FieldName.INDEX_PROVIDERS);
              indexProviders.getOrCreateDocument("local")
                      .set("directory", "/modeshape/index")
                      .set("classname", "org.modeshape.jcr.index.elasticsearch.EsIndexProvider")
                      .set("host", "localhost")
                      .set("port", "9200")
                      .set("cacheLRUEnable", true)
                      .set("mmapFileEnable", true)
                      .set("commitFileSyncDisable", true)
                      .set("transactionDisable", true)
                      .set("asyncWrite", true)
                      .set("cacheSize", 1000000);
      

      Under some load (many session.save calls) the exception occurs:

      org.modeshape.jcr.index.elasticsearch.EsIndexException: java.net.BindException: Address already in use: connect
      at org.modeshape.jcr.index.elasticsearch.EsIndex.commit(EsIndex.java:249)
      ...
      

      Attachments

        Activity

          People

            oleg.kulikov Oleg Kulikov (Inactive)
            predatorro666 Антон Борисов (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: