Replies: 1 comment 3 replies
-
|
Currently, there is no sync logging mode implemented. Implementing this is not straightforward because everything is built to run asynchronously :( Some Suggestions
Example: Manually Waking Up the Backend Worker ThreadHere is an example where you manually wake up the backend worker thread. You could call this, for example, after logging in a non-critical application or after issuing some logs. Example: Let me know if any of these suggestions were helpful! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The use case is the following:
I have different applications all using quill for logging. Some of them are latency sensitive and others aren't. In the latter case there could be many processes of the same application running on a single server (e.g. 50 copies of the same application run on a server with 8 cores and they share resources).
I wonder if there is any way to switch quill to the naive mode: where logging happens in the same thread or there is no spin lock in the queue? The issue is I'm facing is that the server is always 100% loaded though applications themselves are lightweight and they don't log much.
The option QUILL_IMMEDIATE_FLUSH doesn't really help here since spinning SPSC queue is still there.
Beta Was this translation helpful? Give feedback.
All reactions