All Products
Search
Document Center

NAT Gateway:Manage NAT Gateway quotas

Last Updated:Feb 20, 2024

Alibaba Cloud allows you to view and manage quotas of your Alibaba Cloud services. You can obtain usage information, apply for increases on quotas, and create alert rules for quotas. This topic describes the prerequisites and procedures for managing service quotas.

Background information

Quota Center allows you to manage the quotas of various Alibaba Cloud services in a centralized manner. NAT Gateway and many other Alibaba Cloud services work with Quota Center. If you are using multiple Alibaba Cloud services and want to manage the quotas of all your cloud services in one console, you can use Quota Center.

Alternatively, you can individually manage VPN Gateway quotas by using the quota management feature provided in the VPC console console.

Limits

By default, only the Alibaba Cloud account is authorized to manage quotas in Quota Center. If you want to allow RAM users to manage quotas, you must first grant the RAM users the AliyunQuotasFullAccess permission. For more information, see Authorize a RAM user.

View quotas

You can view the quotas of NAT Gateway by using one of the following methods:

Procedure (Quota Center)

  1. Log on to the Quota Center console.

  2. In the left-side navigation pane, select a quota type in the Products section.

    • View general quotas

      1. In the left-side navigation pane, choose Products > General Quotas.

      2. On the Products with General Quotas page, click NAT Gateway in the Networking section.

      3. On the General Quotas page, you can view the name, description, and usage of each quota.

    • View API rate limits

      1. In the left-side navigation pane, choose Products > API Rate Limits.

      2. On the Products with API Rate Limits page, click NAT Gateway in the Networking section.

      3. On the API Rate Limits page, you can filter information about API versions and quota usage by Keyword and Region.

Procedure (VPC console)

  1. Log on to the VPC console.

  2. In the left-side navigation pane, choose O&M and Monitoring > Quota Management.

  3. On the Quota Management page, click the NAT Gateway tab in the Service section. You can select a quota type based on the following information.

    • View general quotas

      1. Click the General Quota tab in the Quota Type section.

      2. You can use keywords to search for quotas. Then, you can view the name, description, and usage of the quota.

    • View API rate limits

      1. In the Quota Type section, select API Rate Limit.

      2. You can use keywords and select a region to search for quotas. Then, you can view the version and rate limit of the API operation.

Adjust quotas

Most of the quotas provided are adjustable. If the default quota is unable to meet your business requirements, you can apply for a quota increase by using one of the following methods:

If the application is successful, the increased quota limit will be displayed in the Quota Center console and the service console.

Procedure (Quota Center console)

  1. Log on to the Quota Center console.

  2. Adjust a quota based on the following information.

    1. In the left-side navigation pane, choose Products > General Quotas.

    2. On the Products with General Quotas page, click NAT Gateway in the Networking section.

    3. On the General Quotas page, find the quota that you want to adjust and click Apply in the Actions column.

    4. In the Apply for Quotas dialog box, configure the Applied Quotas and Reason parameters, and click OK.

      Note
      • Applications are reviewed by the technical support team of the corresponding cloud service. When you apply for a quota increase, provide as much information as possible. The more justification provided, the more likely your application will be approved.

      • Application results are sent to you by text message and email.

      The application is usually processed within days.

    5. After you apply for a quota increase, you can click Application Records in the left-side navigation pane to view the status of the application.

      If the application is in the Approved state, the quota is adjusted.

Procedure (VPC console)

  1. Log on to the VPC console.
  2. In the left-side navigation pane, choose O&M and Monitoring > Quota Management.
  3. On the Quota Management page, click the NAT Gateway tab in the Service section. Adjust a quota based on the following information.

    1. Click the General Quota tab in the Quota Type section.

    2. Find the general quota that you want to increase and click Apply in the Actions column.

    3. In the Apply for Quotas dialog box, configure the Applied Quotas and Reason parameters, and click OK.

      Note
      • Applications are reviewed by the technical support team of the corresponding cloud service. When you apply for a quota increase, provide as much information as possible. The more justification provided, the more likely your application will be approved.

      • Application results are sent to you by text message and email.

      The application is usually processed within days.

    4. To view the status of the application, click Application Records or choose icon > Application Records in the Actions column.

      If an application is in the Approved state, the related quota is increased.

Create an alert rule for a quota item

You can create alert rules for some quota items by specifying a threshold for quota usage or available quota. If the usage of a quota reaches the specified threshold, the system sends an alert notification to the callback URL that you specified in the alert rule through an HTTP POST request. We recommend that you take the alerts into consideration and apply for a quota increase in advance to avoid unexpected business interruptions.

You can create alert rules for the following quota items:

Quota

Description

natgw_privilege_nat2_num_per_vpc

Maximum number of NAT gateways that can be created for each VPC

natgw_quota_eip_num_per_nat

Maximum number of EIPs that can be associated with each NAT gateway

natgw_quota_dnat_entry_num

Maximum number of DNAT entries supported by each NAT gateway

natgw_quota_snat_entry_num

Maximum number of SNAT entries supported by each NAT gateway

Procedure (Quota Center)

  1. Log on to the Quota Center console.

  2. In the left-side navigation pane, click Quota Alerts.

  3. On the Quota Alerts page, click Create Quota Alert Rule.

  4. On the Products with General Quotas page, choose Networking > NAT Gateway, find the quota, and then click Create Alert Rule in the Actions column.

  5. In the Create Quota Alert Rule panel, configure the parameters and click OK.

    Parameter

    Description

    Alert Rule Name

    The name of the alert rule.

    Alert Rule Type

    The type of the alert rule. Valid values:

    • Alert Rule for Used Quotas: The alert rule is created for quota usage.

    • Alert Rule for Available Quotas: The alert rule is created for the available quota.

    Threshold Type

    The type of the alert threshold. Valid values:

    • Numeric: The alert threshold is a numeric value.

    • Percentage: The alert threshold is a percentage.

    Threshold

    The alert threshold.

    You must set the threshold based on the settings of the Alert Rule Type and Threshold Type parameters.

    • If you set the Threshold Type parameter to Numeric Value, set the threshold based on the following requirements:

      • If you set the Alert Rule Type parameter to Alert Rule for Used Quotas, and the quota usage reaches the specified threshold, an alert notification is sent. The alert threshold must be greater than the current usage of the quota.

      • If you set the Alert Rule Type parameter to Alert Rule for Available Quotas, and the available quota is smaller than the specified threshold, an alert notification is sent. The alert threshold must be smaller than the current available quota.

    • If you set the Threshold Type parameter to Percentage, set the threshold based on the following requirements:

      • If you set the Alert Rule Type parameter to Alert Rule for Used Quotas, and the quota usage reaches the specified threshold, an alert notification is sent. Value range: (50%, 100%].

      • If you set the Alert Rule Type parameter to Alert Rule for Available Quotas, and the available quota is smaller than the specified threshold, an alert notification is sent. Value range: (0%, 50%].

    Alert Callback

    The webhook URL. Quota Center sends an alert notification to the specified URL by using an HTTP POST request.

    For more information about the examples and parameters of alert callback requests, see What is the request content of an alert callback?

    Note
    • By default, Quota Center sends an alert notification about 15 minutes after the specified alert threshold is reached.

    • If your alert callback is integrated with the webhook of a DingTalk chatbot, you must set the custom keyword of the DingTalk chatbot to Alert and then copy the webhook URL as the URL of the alert callback.

  6. In the left-side navigation pane, click Quota Alerts. On the Quota Alerts page, view the details about the alert rule.

  7. Optional. View the alert callback results.

    If you set the Alert Callback parameter, you can view the related alert callback records and applications after the alert callback succeeds. Applications are automatically submitted to increase the related quota.

    1. In the left-side navigation pane, click Alert History. On the Alert History page, view the alert callback records.

      If Alert Callback is displayed in the Notification Methods column of a record, the alert callback is successful.

    2. In the left-side navigation pane, click Application Records. On the Application Records page, view the applications that were automatically submitted to increase quotas.

Procedure (VPC console)

  1. Log on to the VPC console.
  2. In the left-side navigation pane, choose O&M and Monitoring > Quota Management.
  3. On the Quota Management page, click the NAT Gateway tab in the Service section.

  4. Click the General Quota tab in the Quota Type section.

  5. Find the quota and click Create Alert Rule in the Actions column.

  6. In the Create Quota Alert Rule panel, configure the parameters and click OK.

    Parameter

    Description

    Alert Rule Name

    The name of the alert rule.

    Alert Rule Type

    The type of the alert rule. Valid values:

    • Alert Rule for Used Quotas: The alert rule is created for quota usage.

    • Alert Rule for Available Quotas: The alert rule is created for the available quota.

    Threshold Type

    The type of the alert threshold. Valid values:

    • Numeric: The alert threshold is a numeric value.

    • Percentage: The alert threshold is a percentage.

    Threshold

    The alert threshold.

    You must set the threshold based on the settings of the Alert Rule Type and Threshold Type parameters.

    • If you set the Threshold Type parameter to Numeric Value, set the threshold based on the following requirements:

      • If you set the Alert Rule Type parameter to Alert Rule for Used Quotas, and the quota usage reaches the specified threshold, an alert notification is sent. The alert threshold must be greater than the current usage of the quota.

      • If you set the Alert Rule Type parameter to Alert Rule for Available Quotas, and the available quota is smaller than the specified threshold, an alert notification is sent. The alert threshold must be smaller than the current available quota.

    • If you set the Threshold Type parameter to Percentage, set the threshold based on the following requirements:

      • If you set the Alert Rule Type parameter to Alert Rule for Used Quotas, and the quota usage reaches the specified threshold, an alert notification is sent. Value range: (50%, 100%].

      • If you set the Alert Rule Type parameter to Alert Rule for Available Quotas, and the available quota is smaller than the specified threshold, an alert notification is sent. Value range: (0%, 50%].

    Alert Callback

    The webhook URL. Quota Center sends an alert notification to the specified URL by using an HTTP POST request.

    For more information about the examples and parameters of alert callback requests, see What is the request content of an alert callback?

    Note
    • By default, Quota Center sends an alert notification about 15 minutes after the specified alert threshold is reached.

    • If your alert callback is integrated with the webhook of a DingTalk chatbot, you must set the custom keyword of the DingTalk chatbot to Alert and then copy the webhook URL as the URL of the alert callback.

  7. After you create an alert rule, you can choose icon > Alert Settings in the Actions column of the quota.

  8. In the Alerts dialog box, you can view, modify, or delete the quota alerts in the Actions column.

Create a quota template

If a quota template is enabled and the management account adds a member to the resource directory, the quota template automatically submits a quota increase request for the member. The quota values for existing members remain unchanged. You can use a quota template to apply for increases on multiple quotas at a time. This automated approach can improve the efficiency of quota management across your organization.

Prerequisites:

Enable a quota template

  1. Log on to the Quota Center console.

  2. In the left-side navigation pane, click Quota Templates. On the Quota Templates page, click Enable Quota Template.

  3. In the Enable Quota Template message, click OK.

Procedure (Quota Center)

Before you add a quota to a quota template in Quota Center, make sure that the quota template is enabled. For more information, see Enable a quota template.

  1. Log on to the Quota Center console.

  2. In the left-side navigation pane, choose Products > General Quotas.

  3. On the Products with General Quotas page, click NAT Gateway.

  4. On the General Quotas page, find the quota that you want to manage and click Create Quota Template in the Actions column.

  5. In the Create Quota Template dialog box, configure the Applied Quotas parameter and click OK.

Procedure (VPC console)

Before you add a quota to a quota template in the VPC console, make sure that the quota template is enabled. For more information, see Enable the quota template feature.

  1. Log on to the VPC console.
  2. In the left-side navigation pane, choose O&M and Monitoring > Quota Management.
  3. On the Quota Management page, click the NAT Gateway tab in the Service section.

  4. Click the General Quota tab in the Quota Type section.

  5. Find the quota and click Create Quota Template in the Actions column.

  6. In the Create Quota Template dialog box, configure the Applied Quotas parameter and click OK.