influxdata / influxdata/influxdb

Write Delays in measurements

Open
#23,204 1 comment 0 reactions 0 assignees View on GitHub
needs repro
Dominant language
Rust
Stars
31.7k
Forks
3.7k
Avg merge
13h 37m
Merged PRs (30d)
8

Description

We have a django rest framework running with Influxdb as DB.
Sometimes, when request is posted to the server, InfluxDB is taking more than 10 secs to insert records in one of my measurement (Records are received at the same time, but got inserted after 13 secs as seen in below log lines).

**2022-02-10 09:11:34,268** : INFO: Record [{'measurement': '', 'fields':{'timestamp': '2022-02-10 09:11:34', 'authorized': False, 'enabled': True}, 'tags': {'agentName': ''}}] inserted successfully to default.agentChangeInfo!!

**2022-02-10 09:11:47,900** : INFO: Record [{'measurement': '', 'fields':{'timestamp': '2022-02-10 09:11:34', 'authorized': True, 'enabled': True, 'splitState': False, 'stateChange': 'active'}

_Originally posted by @arvindsam96 in https://github.com/influxdata/influxdb/issues/3595#issuecomment-1068835044_

Contributor guide

Open the contributing guide

Research direction

No files, tests, versions, or entry points are named. Start by tracing the POST request through its InfluxDB write call and correlating the logged timestamps with client, server, and database behavior; done means identifying a reproducible cause for the 13-second delay or documenting why it cannot yet be isolated.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
api, backend, databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.