tarantool / jepsen.tarantool

Jepsen tests for Tarantool
https://www.tarantool.io/en/
Other
7 stars 0 forks source link

Don't create a new connection for each request #96

Open Totktonada opened 2 years ago

Totktonada commented 2 years ago

Since our tests are time bounded, creating a connection eats a time that can be used to give more dense workload to tarantool.

I didn't investigated the code much against this question, but I see the problem in the bank-lua test:

https://github.com/tarantool/jepsen.tarantool/blob/6165e6e5752e37c04e8a0e221412ac8151a48940/src/tarantool/bank.clj#L54-L64

(Consider cl/open.)

Moreover, the (db/primaries test) call also creates its own connection and performs a request:

https://github.com/tarantool/jepsen.tarantool/blob/6165e6e5752e37c04e8a0e221412ac8151a48940/src/tarantool/client.clj#L63-L68

How it should work, I think: