grafana / grafana/xk6-sql

How to share the DB connection manager

Open
#169 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
190
Forks
65
Avg merge
2d 11h
Merged PRs (30d)
10

Description

Hi,

Sorry if this is not the right way to ask for support from you but I think it would be nice if the documentation would provide a little more clarity on the topic. The problem I have and to which I'm still to get any kind of solution is https://community.grafana.com/t/k6-xk6-sql-how-to-pass-one-connection-manager-instance-to-all-vus/159848.

1. So do you guys have an idea on how to achieve this?
2. From the way the driver is designed as a connection manager it suggests that you expected it to be shared. Now, did you expect it to be shared only within the VU? Cause it feels like it waits for one query to finish before it starts the next one so it does not look like, within one VU, it would need to use more than one connection. And if it is not just within one VU, then it would be my scenario, so hopefully you have a suggestion on how to share it around :D?

Thank you very much,
Sebastian

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.