- 필수 기능
- 시작하기
- Glossary
- 표준 속성
- Guides
- Agent
- 통합
- 개방형텔레메트리
- 개발자
- API
- Datadog Mobile App
- CoScreen
- Cloudcraft
- 앱 내
- 서비스 관리
- 인프라스트럭처
- 애플리케이션 성능
- APM
- Continuous Profiler
- 스팬 시각화
- 데이터 스트림 모니터링
- 데이터 작업 모니터링
- 디지털 경험
- 소프트웨어 제공
- 보안
- AI Observability
- 로그 관리
- 관리
It is recommended to check the user connections
option for a GCP SQL Server instance to
ensure that it is not artificially limiting connections.
The user connections
option specifies the maximum number of simultaneous user
connections that are allowed on an instance of SQL Server. The actual number of user
connections allowed also depends on the version of SQL Server that you are using, and also
the limits of your application(s) and hardware. SQL Server allows a maximum
of 32,767 user connections. Because user connections is by default a self-configuring value,
SQL Server adjusts the maximum number of user connections automatically as
needed, up to the maximum value allowed. For example, if only 10 users are logged in, then 10
user connection objects are allocated. In most cases, you do not have to change the value
for this option. The default is 0
, which means that the maximum (32,767) user connections
are allowed. However, if there is a number defined here that limits connections, SQL Server
will not allow any connections above this limit. If the connections are at the limit, any new
requests will be dropped, potentially causing lost data or outages for those using the
database.
Setting custom flags using the command line on certain instances will cause all omitted flags to be reset to defaults. This may cause you to lose custom flags and could result in unforeseen complications or instance restarts. Because of this, it is recommended you apply these flag changes during a period of low usage.
user connections
from the drop-down menu, and set its value to your organization’s recommended value.user connections
database flag for every GCP SQL Server
database instance using the below command.gcloud sql instances patch <INSTANCE_NAME> --database-flags "userconnections=[0-32,767]"
Note: This command will overwrite all database flags previously set. To keep the flags previously set and add new ones, include the values for all flags you want set on the instance; any flag not specifically included is set to its default value. For flags that do not take a value, specify the flag name followed by an equals sign (=).
By default user connections
is set to ‘0’, which does not limit the number of connections
and allows the server to facilitate a maximum of 32,767 connections.
WARNING: This patch modifies database flag values, which may require your instance to be restarted. Check the list of supported flags to see if your instance will be restarted when this patch is submitted.
Note: Some database flag settings can affect instance availability or stability, and remove the instance from the Cloud SQL SLA. For information about these flags, see Operational Guidelines.
Note: Configuring the above flag does not restart the GCP SQL instance.