2017-09-19 2 views
0

RDS 오로라 DB에 대해 max_connection이 무엇인지 계산하는 방법을 이해하려고합니다. AWS 문서를 기반으로 우리가 db.t2.small 사용하려고하는 순간에서 는AWS Aurora DB max_connection

  1. (45)는 45 페이지/월인가 = max_connections의 수?
  2. 누군가 1 연결을 정의하는 것에 대해 설명해 주실 수 있습니까? 데이터베이스에 대한 쿼리입니까?
  3. 쿼리 인 경우 쿼리에서 100 개의 값을 반환하면 어떻게됩니까? 그것들은 연결로 간주됩니까?

감사 조

답변

0

나는 데이터베이스 전문가가 아니지만, 내 이해가 무엇에서 귀하의 질문에 대답을 시도 할 수 있습니다.

1) 45p/월입니까?

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. 
관련 문제