Skip to content

Delay of ~20s before ingested log message is returned via web UI #598

Open
@Girgitt

Description

@Girgitt

Hi there, this is rather a question on possible fine-tuning rather than issue report.

observed behavior
After log message is pushed e.g. via:

curl -X POST -H "Content-Type: application/json" -d '{"streams":[{"stream":{"job":"example-job","level":"info"},"values":[["'$(date +%s%N)'", "This is a log message with current timestamp: '$(date +%Y-%m-%dT%H:%M:%S%:z)'"]]}]}' http://127.0.0.1:3100/loki/api/v1/push

It takes about 20s to retrieve it in the web UI.
Record related to such log entry appears in sampls_v3 table almost immediately
Also label related to such log entry is avaiable in he web UI without noticeable delay; just the message itself is not available for some time.

expected behavior
Once log gets into samples_v3 table it should be returned by the web UI without delay.

additional information
qryn version: v3.2.36
qryn settings:

    PATH="/opt/qryn:%(ENV_PATH)s",
    CLICKHOUSE_SERVER="127.0.0.1",
    CLICKHOUSE_PORT=8123,
    CLICKHOUSE_PROTO="http",
    CLICKHOUSE_AUTH="dd_qryn:***",
    CLICKHOUSE_DB="edo_test_qryn",
    PORT=3100,
    BULK_MAXAGE=200

clickhouse version: 24.5.3.5 (official build)

acceptance criteria
Maybe there is some caching going on in the web client ? If so - is it configurable to limit the delay?

Or maybe there are some operations done on clickhouse database before data is retrievable (earlier versions of qryn around v3.1 were using different schema with samples_v2 table and there were some periodic operations performed on the database - maybe in v.3.2 this process still exists and affects retrieval delay) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.xbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions