Максимальное_соединение базы данных AWS Aurora

Я пытаюсь понять, что это такое и как рассчитывается max_connection для RDS Aurora DB. На данный момент мы пытаемся использовать db.t2.small, который на основе документации AWS допускает max_connections = 45

  1. 45 р/мес?
  2. Может кто-нибудь объяснить, что определяет 1 соединение? Это запрос к базе данных?
  3. Если это запрос, что, если запрос возвращает 100 значений? Считаются ли они связями?

Спасибо Джо


person Joe    schedule 19.09.2017    source источник


Ответы (1)


Я не эксперт по базам данных, но я могу попытаться ответить на ваши вопросы, исходя из того, что я понимаю.

1) 45 р/мес?

No, the max_connections is not per month but the number of concurrent
connections allowed simultaneously.

2) Может кто-нибудь объяснить, что определяет 1 соединение? Это запрос к базе данных?

Connection could either be a query or you trying to manually enter into the
database.

Since for a query to read/write into the database, it needs to open a
connection to the DB, hence it is also counted as one connection, as something
(read here as a piece of code)is connected to your database. It is the same thing
as you opening a client, typing username/password etc and entering into the DB.

3) Если это запрос, что, если запрос возвращает 100 значений? Считаются ли они связями?

The value returned by the query doesn't matter. It can return as many values as it 
like(you need to handle that in your code though). What happens in the code is that
you open a connection and then run a query after that you close that connection.
What happens between when the connection open and closes doesn't affect the number
of connection.

However you need to take care of other parameters while running a long query into a
database. As it could spike your CPU/memory utilization etc. but the number of
connection per query would still be 1.
person Manish Joshi    schedule 21.09.2017