influxdata / influxdata/influxdb

How to reuse tcp connection

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

Description

How to reuse tcp connection

I am choosing a time series database with excellent performance, and I have chosen influxdb as my first choice.But I encountered a situation
I use the java sdk client to write data to influxdb2, but I find that every time I write a piece of data, there will be a tcp connection in the state of time_wait, which is too strange
Why does this happen and how can I avoid it, or achieve tcp connection multiplexing
influxdb version is 2.6.1 and use default config

java demo:
![image](https://user-images.githubusercontent.com/57038615/230054294-0ec363b0-b40f-44c9-80bb-bcc88028bbf9.png)

sdk version: influxdb-client-java:6.7.0

happened
![image](https://user-images.githubusercontent.com/57038615/230054225-32c8b3c3-183a-4b90-afad-20b1910294eb.png)

Contributor guide

Open the contributing guide

Research direction

Start with the Java demo in the issue and the influxdb-client-java 6.7.0 behavior against InfluxDB 2.6.1 using the default configuration. Investigate whether each write creates a TCP connection and determine the documented or expected way to reuse connections; done when the cause and a reproducible resolution are established.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
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.