All Products
Search
Document Center

NAT Gateway:Manage NAT Gateway quotas

最終更新日:Sep 29, 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.

Prerequisites

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 user 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_quota_nat_num_per_vpc

Maximum number of NAT gateways that can be created in 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

    Alarm Rule Name

    The name of the alert rule.

    Alarm Metric

    The metric used by the alert rule. You can select Used Quotas, Percentage of Used Quotas, Available Quotas, or Percentage of Available Quotas.

    Threshold

    The alert threshold. Configure this parameter based on the Alarm Metric parameter.

    • When the Alarm Metric parameter is set to Used Quotas, alert notifications are sent to the current Alibaba Cloud account if the quota usage of the specified quota item reaches or exceeds the threshold.

    • When the Alarm Metric parameter is set to Percentage of Used Quotas, alert notifications are sent to the current Alibaba Cloud account if the quota usage of the specified quota item in percentage reaches or exceeds the threshold. Valid values: [50%,100%].

    • When the Alarm Metric parameter is set to Available Quotas, alert notifications are sent to the current Alibaba Cloud account if the remaining quota of the specified quota item is less than or equal to the threshold.

    • When the Alarm Metric parameter is set to Percentage of Available Quotas, alert notifications are sent to the current Alibaba Cloud account if the percentage of the remaining quota of the specified quota item is less than or equal to the threshold. Valid values: (0%,50%].

    Alarm Callback

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

    For more information about the examples of alert callback requests and parameters in an alert callback request, 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 callbacks are 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 to receive alert callbacks.

  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

    Alarm Rule Name

    The name of the alert rule.

    Alarm Metric

    The metric used by the alert rule. You can select Used Quotas, Percentage of Used Quotas, Available Quotas, or Percentage of Available Quotas.

    Threshold

    The alert threshold. Configure this parameter based on the Alarm Metric parameter.

    • When the Alarm Metric parameter is set to Used Quotas, alert notifications are sent to the current Alibaba Cloud account if the quota usage of the specified quota item reaches or exceeds the threshold.

    • When the Alarm Metric parameter is set to Percentage of Used Quotas, alert notifications are sent to the current Alibaba Cloud account if the quota usage of the specified quota item in percentage reaches or exceeds the threshold. Valid values: [50%,100%].

    • When the Alarm Metric parameter is set to Available Quotas, alert notifications are sent to the current Alibaba Cloud account if the remaining quota of the specified quota item is less than or equal to the threshold.

    • When the Alarm Metric parameter is set to Percentage of Available Quotas, alert notifications are sent to the current Alibaba Cloud account if the percentage of the remaining quota of the specified quota item is less than or equal to the threshold. Valid values: (0%,50%].

    Alarm Callback

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

    For more information about the examples of alert callback requests and parameters in an alert callback request, 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 callbacks are 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 to receive alert callbacks.

  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.