简体   繁体   中英

How do I make sure I can keep ingestion client running if I have heavy read operations on a table?

I am using influx line to insert records into a table in Questdb at a constant and high rate. I have multiple postgres clients attached performing read operations, some are Grafana dashboards which do some heavy aggregations across the table. It looks like when I refresh the dashboards, I'm hitting some issues:

... t.LineTcpConnectionContext [31] queue full, consider increasing queue size or number of writer jobs

Is there a way to make sure I don't kick the kick the insert client out or increase the queue like mentioned in the error?

If you have one client writing Influx line protocol over TCP, it's possible to have a dedicated worker thread for this purpose. The config key that you can set this with is line.tcp.worker.count and this should be set in a configuration file or via environment variable. Setting one dedicated thread in server.conf would look like the following:

line.tcp.worker.count=1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM