Giter Site home page Giter Site logo

Comments (5)

rfoltyns avatar rfoltyns commented on May 23, 2024

Couple of things worth mentioning:

  • AsyncBatchDelivery has default batchSize set to 1000 and deliveryInterval set to 1000; at 100k/sec that you mentioned in previous issue, I'd not recommend sending 100 bulks every second as the ES ingestion process may start to suffer; see performance-related articles referenced here; also JestHttp connection pools and timeouts may need some adjustments
  • io.searchbox.Bulk.Builder uses LinkedList under the hood and there's already an issue created for this in Jest project; however, org.appenders.log4j2.elasticsearch.jest.BufferedBulk.Builder uses ConcurrentLinkedQueue instead; you can switch to JestBufferedHttp until I have a fix for the ConcurrentModificationException; switch may lead to partial log loss when conditions for mentioned exceptions occur, instead of losing the whole batch
  • consider using AsyncLogger; it offers much higher logging throughput (regardless of appender used underneath); see Log4j2 docs for more info
  • eventual switch to JestBufferedHttp mentioned before, would require BufferedSource as input; currently, it can be created only by JacksonJsonLayout:PooledItemSourceFactory, which would make your KeyValuePair decoration impossible (I'll probably add support for additionalProperties in future releases)

from log4j2-elasticsearch.

rfoltyns avatar rfoltyns commented on May 23, 2024

This bug was a mix of io.searchbox.core.Bulk being backed by LinkedList and issues in BulkEmitter batch delivery - lack of AsyncLogger exposed them instantly.

@execretor Could you retest with the latest release (1.3.2)? Also, could you try the AsyncLogger? It will vastly improve the logging throughput and latency.

from log4j2-elasticsearch.

rfoltyns avatar rfoltyns commented on May 23, 2024

@execretor This issue was fixed in 1.3.2. Did you manage to retest it yet?

from log4j2-elasticsearch.

hellcats88 avatar hellcats88 commented on May 23, 2024

Sorry but our code Is now in uat testing environment and for now we are not planning a new release before some months.

If we will find the error another time we will try the new fix

from log4j2-elasticsearch.

rfoltyns avatar rfoltyns commented on May 23, 2024

Closing due to lack of activity.

from log4j2-elasticsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.