I’m using influxdb java client. When multiple requests are sent , org.influxdb.InfluxDBIOException: java.net.SocketTimeoutException: timeout error is seen.
The exception occurs at the below statement.
val q = Query(
“select sum(firstCount) as totalFirstCount, sum(secondCount) as totalSecondCount” +
" ,sum(thirdCount) as totalThirdCount, sum(fourthCount) as totalFourthCount " +
“from counters where time > now() - “1h” group by field1 , field2”,
“dbname”)
The explain statement returns
EXPRESSION: sum(firstCount::integer) NUMBER OF SHARDS: 123 NUMBER OF SERIES: 26568 CACHED VALUES: 105408 NUMBER OF FILES: 16200 NUMBER OF BLOCKS: 16200 SIZE OF BLOCKS: 76693173
EXPRESSION: sum(secondCount::integer) NUMBER OF SHARDS: 123 NUMBER OF SERIES: 26568 CACHED VALUES: 105408 NUMBER OF FILES: 16200 NUMBER OF BLOCKS: 16200 SIZE OF BLOCKS: 86133364
EXPRESSION: sum(thirdCount::integer) NUMBER OF SHARDS: 123 NUMBER OF SERIES: 26568 CACHED VALUES: 105408 NUMBER OF FILES: 16200 NUMBER OF BLOCKS: 16200 SIZE OF BLOCKS: 61967770
EXPRESSION: sum(fourthCount::integer) NUMBER OF SHARDS: 123 NUMBER OF SERIES: 26568 CACHED VALUES: 105408 NUMBER OF FILES: 16200 NUMBER OF BLOCKS: 16200 SIZE OF BLOCKS: 61967754
The exception occurs frequently with more data. Is this related to the size of the DB or any suggestions?