# Max\_open\_conn for mysql datasource

**URL:** <https://community.grafana.com/t/max-open-conn-for-mysql-datasource/8080>\
**Category:** Configuration\
**Tags:** mysql\
**Created:** [June 14, 2018, 10:06am UTC](https://community.grafana.com/t/max-open-conn-for-mysql-datasource/8080 "2018-06-14T10:06:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mvalsasna](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@mvalsasna](https://community.grafana.com/u/mvalsasna)\
**Post date:** [June 14, 2018, 10:06am UTC](https://community.grafana.com/t/max-open-conn-for-mysql-datasource/8080/1 "2018-06-14T10:06:31Z")

</div>

Hi

I have a dashboard with 3 graphs, each with 3 metrics.  
all queries are quite heavy on the DB (~5 each when run with no other load on the DB), but they become much worse when executed in parallel.

is there a way to instruct grafana to perform those queries one after the other instead of in parallel?

ini grafana.ini, [database].max\_open\_conn limits the number of connections to the configuration database.  
is there a way to do the same for a mysql datasource?

thanks

MAtteo

---

<div class="post-metadata">

**Author:** ![anon34853223](https://avatars.discourse-cdn.com/v4/letter/a/71c47a/32.png) [@anon34853223](https://community.grafana.com/u/anon34853223)\
**Post date:** [July 2, 2018, 10:57am UTC](https://community.grafana.com/t/max-open-conn-for-mysql-datasource/8080/2 "2018-07-02T10:57:47Z")

</div>

> [@mvalsasna](#):
>
> is there a way to instruct grafana to perform those queries one after the other instead of in parallel?

No, that’s not supported.

> [@mvalsasna](#):
>
> ini grafana.ini, [database].max\_open\_conn limits the number of connections to the configuration database.  
> is there a way to do the same for a mysql datasource?

No, not now but there are an open [issue](https://github.com/grafana/grafana/issues/11711) for it.

Marcus
