All Products
Search
Document Center

Key Management Service:Performance data for KMS

Last Updated:Mar 31, 2026

Key Management Service (KMS) enforces a quota on queries per second (QPS). Requests that exceed the quota are throttled.

KMS supports two access paths: a shared gateway and a dedicated gateway. The shared gateway has a fixed QPS quota per Alibaba Cloud account that cannot be increased. The dedicated gateway has no fixed upper limit—it processes requests on a best-effort basis up to the maximum capacity of the instance, and you can raise throughput by upgrading the instance's computing performance.

For SDK integration details, see SDK reference. For a comparison of the two gateway types, see Differences between shared gateways and dedicated gateways.

Shared gateway

The following quotas apply per Alibaba Cloud account in a single region. This quota is fixed and cannot be increased. To handle higher throughput, use a dedicated gateway instead.

Operation typeAPIQPS
Service activationOperations to activate KMS and query its status. The following APIs share this quota: OpenKmsService, DescribeAccountKmsStatus1
Instance management (write)Operations to connect a KMS instance or update its bound VPC. The following APIs share this quota: ConnectKmsInstance, UpdateKmsInstanceBindVpc, ReleaseKmsInstance10
Instance management (read)Operations to query KMS instance information. The following APIs share this quota: GetKmsInstance, ListKmsInstances, GetDefaultKmsInstance, GetKmsInstanceQuotaInfos50
Key management (read)Operations to query metadata, properties, or status of customer master keys (CMKs), aliases, and tags. The following APIs share this quota: GetParametersForImport, DescribeKey, ListKeys, DescribeKeyVersion, ListKeyVersions, GetPublicKey, ListAliases, ListAliasesByKeyId, ListTagResources, DescribeRegions50
Key tag queryListResourceTags300
CMK creationCreateKey10
Key management (write)Operations to create aliases or modify CMKs, aliases, and tags. The following APIs share this quota: ImportKeyMaterial, EnableKey, DisableKey, SetDeletionProtection, ScheduleKeyDeletion, CancelKeyDeletion, DeleteKeyMaterial, UpdateKeyDescription, UpdateRotationPolicy, CreateAlias, UpdateAlias, DeleteAlias, TagResources, UntagResources30
Symmetric cryptographic operationsOperations using a symmetric key to encrypt data, decrypt data, or generate data keys. The following APIs share this quota: Encrypt, Decrypt, GenerateDataKey, GenerateDataKeyWithoutPlaintext, GenerateAndExportDataKey, ExportDataKey, ReEncrypt1,000
Asymmetric cryptographic operationsOperations using an asymmetric key for encryption, decryption, signing, and signature verification. The following APIs share this quota: AsymmetricSign, AsymmetricVerify, AsymmetricDecrypt, AsymmetricEncrypt200
Secret create/deleteOperations to create or delete secrets. The following APIs share this quota: CreateSecret, DeleteSecret10
Secret query/retrieveOperations to query secret information or retrieve a secret value. The following APIs share this quota: DescribeSecret, GetSecretValue450
Secret operations (low-frequency)Operations to list secrets, manage secret versions, and update rotation policies. The following APIs share this quota: ListSecrets, ListSecretVersionIds, PutSecretValue, UpdateSecret, UpdateSecretVersionStage, GetRandomPassword, UpdateSecretRotationPolicy, RestoreSecret40
Secret rotationRotateSecret50 per hour
Resource policies (write)Operations to set a resource policy for a CMK or secret. The following APIs share this quota: SetKeyPolicy, SetSecretPolicy10
Resource policies (read)Operations to get the resource policy for a CMK or secret. The following APIs share this quota: GetKeyPolicy, GetSecretPolicy50
Application access point (AAP) readOperations to retrieve information about AAPs, including network rules, access policies, and client keys. The following APIs share this quota: DescribeNetworkRule, ListNetworkRules, DescribePolicy, ListPolicies, DescribeApplicationAccessPoint, ListApplicationAccessPoints, ListClientKeys, GetClientKey50
Application access point (AAP) writeOperations to create, delete, or update AAPs and related resources. The following APIs share this quota: CreateNetworkRule, DeleteNetworkRule, UpdateNetworkRule, CreatePolicy, DeletePolicy, UpdatePolicy, CreateApplicationAccessPoint, DeleteApplicationAccessPoint, UpdateApplicationAccessPoint, CreateClientKey, DeleteClientKey10

Dedicated gateway

Important

A dedicated gateway has no fixed upper limit for API requests. It processes requests on a best-effort basis using the maximum computing and storage resources of the instance. Select an appropriate computing performance plan when purchasing a KMS instance. To purchase a software key management instance with a computing performance of 10,000 QPS or 20,000 QPS, contact your account manager.

Test conditions

The reference QPS values in the following tables are based on these test conditions:

  • Symmetric algorithms: A CMK with the Aliyun_AES_256 key specification encrypts or decrypts 32-byte data in GCM mode.

  • Asymmetric algorithms: A CMK with the RSA_2048 key specification generates a signature for 32-byte data.

  • Secret value retrieval: The secret value is 32 bytes.

  • Hardware key management instances: The KMS instance must be connected to a hardware security module (HSM) cluster that contains at least two HSMs.

QPS for software key management instances

The following table lists reference QPS values for software key management instances.

Operation typeAPIInstance API1,000 QPS2,000 QPS4,000 QPS10,000 QPS20,000 QPS
Symmetric algorithmsOperations using a symmetric key to encrypt data, decrypt data, or generate data keys. APIs: Encrypt, Decrypt, GenerateDataKey, GenerateDataKeyWithoutPlaintextOperations using a symmetric key to encrypt data, decrypt data, or generate data keys. APIs: AdvanceEncrypt, AdvanceDecrypt, AdvanceGenerateDataKey, Encrypt, Decrypt, GenerateDataKey1,0002,0004,00010,00020,000
Asymmetric algorithmsOperations using an asymmetric key for encryption, decryption, signing, and signature verification. APIs: AsymmetricEncrypt, AsymmetricDecrypt, AsymmetricSign, AsymmetricVerifyOperations using an asymmetric key for encryption, decryption, signing, and signature verification. APIs: Encrypt, Decrypt, Sign, Verify2003005001,3002,500
Get public keyGetPublicKeyGetPublicKey1,0002,0004,00010,00020,000
Get secret valueGetSecretValueGetSecretValue5001,0002,0004,0004,000
Generate random numbersN/AGenerateRandom1,0002,0004,00010,00020,000
Generate data key pairsN/AOperations to generate a data key pair. APIs: GenerateDataKeyPair, GenerateDataKeyPairWithoutPlaintext, AdvanceGenerateDataKeyPair, AdvanceGenerateDataKeyPairWithoutPlaintext11111

QPS for hardware key management instances

The following table lists reference QPS values for hardware key management instances.

Operation type

API

Instance API

2,000 QPS

4,000 QPS

6,000 QPS

8,000 QPS

Operations that use symmetric algorithms

Operations that use a symmetric key to encrypt data, decrypt data, or generate data keys. The following APIs share this quota:

Operations that use a symmetric key to encrypt data, decrypt data, or generate data keys. The following APIs share this quota:

2,000

4,000

6,000

8,000

Operations that use asymmetric algorithms

Operations that use an asymmetric key for encryption, decryption, signing, and signature verification. The following APIs share this quota:

Operations that use an asymmetric key for encryption, decryption, signing, and signature verification. The following APIs share this quota:

300

500

700

900

Get public key

Retrieves the public key of a specified asymmetric key.

GetPublicKey

Retrieves the public key of a specified asymmetric key.

GetPublicKey

2,000

4,000

6,000

8,000

Use secrets

Retrieves a secret value.

GetSecretValue

Retrieves a secret value.

GetSecretValue

1,000

2,000

3,000

4,000

Generate random numbers

N/A

Generates a random number.

GenerateRandom

2,000

4,000

6,000

8,000

Generate data key pairs

N/A

Operations to generate a data key pair. The following APIs share this quota:

1

1

1

1

Operation typeAPIInstance API2,000 QPS4,000 QPS6,000 QPS8,000 QPS
Symmetric algorithmsOperations using a symmetric key to encrypt data, decrypt data, or generate data keys. APIs: Encrypt, Decrypt, GenerateDataKey, GenerateDataKeyWithoutPlaintextOperations using a symmetric key to encrypt data, decrypt data, or generate data keys. APIs: AdvanceEncrypt, AdvanceDecrypt, AdvanceGenerateDataKey, Encrypt, Decrypt, GenerateDataKey2,0004,0006,0008,000
Asymmetric algorithmsOperations using an asymmetric key for encryption, decryption, signing, and signature verification. APIs: AsymmetricEncrypt, AsymmetricDecrypt, AsymmetricSign, AsymmetricVerifyOperations using an asymmetric key for encryption, decryption, signing, and signature verification. APIs: Encrypt, Decrypt, Sign, Verify300500700900
Get public keyGetPublicKeyGetPublicKey2,0004,0006,0008,000
Get secret valueGetSecretValueGetSecretValue1,0002,0003,0004,000
Generate random numbersN/AGenerateRandom2,0004,0006,0008,000
Generate data key pairsN/AOperations to generate a data key pair. APIs: GenerateDataKeyPair, GenerateDataKeyPairWithoutPlaintext, AdvanceGenerateDataKeyPair, AdvanceGenerateDataKeyPairWithoutPlaintext1111