Coder Social home page Coder Social logo

Comments (2)

iapaddler avatar iapaddler commented on August 20, 2024

Changing the period for the reporting thread has a drastic effect.
At the default 10 sec period we see 238340 lines captured. Fairly consistent with the reported test.
At a period of 1 sec we see 965003 lines captured. Much closer.
3 tests at 1 sec period: 981673, 981660, 978691

Changed the definition of the period in config from secs to milliseconds.
At a 1ms period we see 1000000 lines
At a 5ms period we see 661325 lines

from appscope.

iapaddler avatar iapaddler commented on August 20, 2024

We no longer drop log/console data.
All event data queues are emptied much more frequently.
The drop test returns 1M console events in all cases tested.

2 updates:

  1. All event queues are emptied every 1ms.
    This does not change the period at which summary/aggregation of metrics are emitted.
    The configured period is the definition for metric summaries.
    The configured period remains the delay for start of the periodic thread. This should change; need integ test for validation.
    This implies that it will be very rare to experience dropped events. Not guaranteed, very rare.

  2. The ring buffer is no longer used as in in-memory queue for log/console data.
    All log/console events can, in theory, create app back pressure.
    All log/console events are delivered to the periodic thread by means of a UNIX domain socket.
    The UNIX socket is non-blocking on the read side and blocking on the send side.
    The blocking approach implies that no log data will be lost. It also enables back pressure in very rare cases.
    Kernel buffers would have to back up before any back pressure was experienced.

from appscope.

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.