# INFLUXDB performance

**URL:** https://community.influxdata.com/t/influxdb-performance/5361
**Category:** Systems
**Created:** [May 30, 2018, 6:19am UTC](https://community.influxdata.com/t/influxdb-performance/5361 "2018-05-30T06:19:18Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![jassi](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jassi](https://community.influxdata.com/u/jassi)
#### Post date: [May 30, 2018, 6:19am UTC](https://community.influxdata.com/t/influxdb-performance/5361/1 "2018-05-30T06:19:18Z")

</div>

Hello,  
I have issue related to influxdb performance. version(1.5)  
writes are 3 to 4 thousand per seconds.  
Series cardinality is high.  
Machine configuration is 8 cores and 32 gb RAM.  
retention policy is of 4 weeks and shard duration is 1 day.

when i refresh the grafana( version 4.6) dasboard it takes more than 2 minutes to load the dashboard.  
i want to reduce the dashboard loading time from munutes to couple of seconds.  
what changes can be made in influx config file to achieve such level of performance.  
or any other changes which could help me to come out of this problem.  
Please help.

---

<div class="post-metadata">

### Author: ![anatolijd](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anatolijd/32/2827_2.png) [@anatolijd](https://community.influxdata.com/u/anatolijd)
#### Post date: [May 30, 2018, 1:30pm UTC](https://community.influxdata.com/t/influxdb-performance/5361/2 "2018-05-30T13:30:32Z")

</div>

Hi Jassi, did you try to identify all the queries Grafana dashboard makes to influxdb ?  
If you execute them all one-by-one - how long it takes ?  
How much data they return ?

---

<div class="post-metadata">

### Author: ![jassi](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jassi](https://community.influxdata.com/u/jassi)
#### Post date: [June 1, 2018, 7:05am UTC](https://community.influxdata.com/t/influxdb-performance/5361/3 "2018-06-01T07:05:13Z")

</div>

Hi Anatolijd  
Thank you for the reply

The following information is only for one day data  
question asked by you : 1.How much data they return ?  
query returns 5 millions of points per day.  
2. If you execute them all one-by-one - how long it takes ?  
graph panel query takes 40 to 50 seconds on grafana as well as on influx and singlestat panels takes 10 to 15 seconds.

As i have only 24 hours data in my measurement. due to slow response i deleted database and gave a fresh start.  
in 24 hours i have 10 million points.  
series count = 271616  
my dashboard has 1 graph panel , 8 singlestat apnel and 7 pie chart. the dasboard takes 60 to 70 seconds to load.

---

<div class="post-metadata">

### Author: ![jassi](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jassi](https://community.influxdata.com/u/jassi)
#### Post date: [June 12, 2018, 6:27am UTC](https://community.influxdata.com/t/influxdb-performance/5361/4 "2018-06-12T06:27:47Z")

</div>

Any help on this issue …PLEASE…

---

<div class="post-metadata">

### Author: ![katy](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/katy/32/855_2.png) [@katy](https://community.influxdata.com/u/katy)
#### Post date: [June 12, 2018, 9:49pm UTC](https://community.influxdata.com/t/influxdb-performance/5361/5 "2018-06-12T21:49:50Z")

</div>

Hey @jassi. Do you have [tsi](https://docs.influxdata.com/influxdb/v1.5/concepts/tsi-details/) enabled?

---

<div class="post-metadata">

### Author: ![jassi](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jassi](https://community.influxdata.com/u/jassi)
#### Post date: [June 14, 2018, 5:22am UTC](https://community.influxdata.com/t/influxdb-performance/5361/6 "2018-06-14T05:22:11Z")

</div>

Hi katy  
thanks for the reply.  
TSI is enabled in my configuration.

---

<div class="post-metadata">

### Author: ![Pawan](https://avatars.discourse-cdn.com/v4/letter/p/e0b2c6/32.png) [@Pawan](https://community.influxdata.com/u/Pawan)
#### Post date: [June 15, 2018, 5:46am UTC](https://community.influxdata.com/t/influxdb-performance/5361/7 "2018-06-15T05:46:22Z")

</div>

what is the dashboard refresh time ? have you tried changing that ?

---

<div class="post-metadata">

### Author: ![jassi](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jassi](https://community.influxdata.com/u/jassi)
#### Post date: [June 15, 2018, 6:28am UTC](https://community.influxdata.com/t/influxdb-performance/5361/8 "2018-06-15T06:28:54Z")

</div>

Hi pawan  
Thanks for the reply.  
we have not set any dashboard refresh time i.e. auto refresh.  
time filter is set to “today so far”.  
changing “dashboard refresh time” does not help out.  
dashboard takes less time to load “last 15 minutes” comparative to “today so far” .

---

<div class="post-metadata">

### Author: ![katy](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/katy/32/855_2.png) [@katy](https://community.influxdata.com/u/katy)
#### Post date: [June 18, 2018, 5:07pm UTC](https://community.influxdata.com/t/influxdb-performance/5361/9 "2018-06-18T17:07:55Z")

</div>

If you’re series cardinality is about 270,000 InfluxDB performance should be fine. I’d recommend trying to run the query in the CLI tool for InfluxDB so we can see whether it’s a Grafana issue or a query issue.

---

<div class="post-metadata">

### Author: ![jjensen](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jjensen/32/2039_2.png) [@jjensen](https://community.influxdata.com/u/jjensen)
#### Post date: [June 18, 2018, 7:42pm UTC](https://community.influxdata.com/t/influxdb-performance/5361/10 "2018-06-18T19:42:21Z")

</div>

You say that in 24 hours you have 10 million points. This seems less like an influxdb issue and more like a “my browser is choking on the amount of data that Influx is giving me” issue

When you go to the query inspector in your Grafana panel and expand the JSON data, how many points are being rendered?

Here’s an example from one of my dashboards:

```
xhrStatus:"complete"
request:Object
  method:"GET"
    url:REDACTED
    params:Object
      u:REDACTED
      p:REDACTED
      db:REDACTED
      q:"SELECT sum("ifHCInOctets") FROM "30d"."ifMIB_basics" WHERE ("carrier_name" =~ /^Hurricane 
        Electric$/) AND time >= now() - 3h GROUP BY time(1m) fill(null);SELECT sum("ifHCOutOctets") FROM 
        "30d"."ifMIB_basics" WHERE ("carrier_name" =~ /^Hurricane Electric$/) AND time >= now() - 3h 
        GROUP BY time(1m) fill(null)"
        epoch:"ms"
      data:null
      precision:"ms"
    response:Object
      results:Array[2]
      0:Object
        statement_id:0
        series:Array[1]
      1:Object
        statement_id:1
        series:Array[1]
          0:Object
          name:"ifMIB_basics"
          columns:Array[2]
          values:Array[181] <---- look here

```

If that number above is high, then you need to tweak your dashboard/panel so that you’re not returning so many results in the series (you already noted that loading 15 minutes takes less time - this is because the points returned would be in the tens of thousands, rather than the hundreds of thousands or millions), or you need to create RPs/CQs so that the data you want to graph isn’t so vast. 10 million points in a 24 hour period is a huge amount of data. Influx will happily return it all, but that doesn’t mean your browser will like it.

---

<div class="post-metadata">

### Author: ![jassi](https://avatars.discourse-cdn.com/v4/letter/j/b5ac83/32.png) [@jassi](https://community.influxdata.com/u/jassi)
#### Post date: [June 21, 2018, 7:53am UTC](https://community.influxdata.com/t/influxdb-performance/5361/11 "2018-06-21T07:53:06Z")

</div>

Hi jjensen3d  
Thanks for reply.  
i will create CQs and hope that issue will be resolved.  
the pointed array value in JSON data is not high in my case.  
I will share the results after i set CQs and will continue the conversation if issue doesn’t get resolved.

---

<div class="post-metadata">

### Author: ![jjensen](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/jjensen/32/2039_2.png) [@jjensen](https://community.influxdata.com/u/jjensen)
#### Post date: [June 21, 2018, 1:11pm UTC](https://community.influxdata.com/t/influxdb-performance/5361/12 "2018-06-21T13:11:11Z")

</div>

How many values is your query returning in the JSON?
