How can an SAE application be accessed over the Internet?
SAE supports the following types of Internet access: outbound access and inbound access, as shown in the following figure. For information about inbound access over the Internet, see the methods that are described in this section. For information about outbound access over the Internet, see How can an SAE application access the Internet?
We recommend that you enable Internet access for applications by configuring gateway routing based on ALB and CLB instances. If the gateway routing method cannot meet your requirements, see Configure application access based on CLB instances or Enable Internet access for SAE instances based on EIPs. The following table describes the differences between the preceding methods.
Item | Gateway routing (ALB or CLB) | Service (CLB) | EIP |
Item | Gateway routing (ALB or CLB) | Service (CLB) | EIP |
Routing | Supported. You can route traffic to different applications by <domain name>/<path> . | Not supported. Only one application of the specified port can be accessed. | Not supported. In most cases, you need to obtain the EIP list and manage the access policy. |
Layer 7 protocols | Supported. | Supported. | Supported. |
Layer 4 protocols | Not supported. | Supported. | Supported. |
Features such as cross-region and rewrite | Supported. | Not supported. You can implement the features based on your business requirements. | Not supported. You can implement the features based on your business requirements. |
Fixed IP address | Yes. | Yes. | No. |
Fee | | CLB billing | EIP billing |
[Back to Top]
How do I bind a public domain name to an SAE application?
SAE does not provide features that are related to domain names. To bind a domain name to an SAE application, perform the following operations: Configure an ALB instance or CLB instance for the SAE application, obtain the related public IP address or domain name, and then bind the IP address or domain name to the SAE application in the Alibaba Cloud DNS console.
[Back to Top]
What do I do if an SAE application cannot access an ECS instance?
To troubleshoot the issue, perform the following steps:
Check whether the SAE application and the ECS instance reside in the same VPC, and check whether the related ports are configured in the corresponding security group.
Run the ping <Service address> command or telnet <Service address> command in a container to check the connectivity. If the preceding commands are not available, install common commands.
For information about how to access a public ECS endpoint, see How can an SAE application access the Internet?
[Back to Top]
What do I do if an SAE application cannot access an ApsaraDB RDS instance or Tair (Redis OSS-Compatible) instance?
Check whether the endpoint of the ApsaraDB RDS instance or Tair (Redis OSS-Compatible) instance is a public endpoint or an internal endpoint. The SAE application accesses the ApsaraDB RDS instance or Tair (Redis OSS-Compatible) instance by using the corresponding endpoint. The network quality and latency of an internal endpoint are better than that of a public endpoint. If the SAE application resides in the same VPC as the ApsaraDB RDS instance or Tair (Redis OSS-Compatible) instance, we recommend that you use the internal endpoint of the ApsaraDB RDS instance or ApsaraDB for Redis instance. Network fees vary based on the types of resources that you create. For more information, see Billing. If the SAE application resides in a different VPC as the ApsaraDB RDS instance or Tair (Redis OSS-Compatible) instance, we recommend that you use a Cloud Enterprise Network (CEN) instance to connect the VPCs, and then use the internal endpoint of the ApsaraDB RDS instance or Tair (Redis OSS-Compatible) instance. Then, perform the following steps to troubleshoot the issue:
Check whether a whitelist is configured.
Note
To enable internal access, you must add the CIDR blocks of the VPC and vSwitch of the SAE application to a whitelist. To enable Internet access, you must add the EIP of the SAE application to the whitelist.
If no whitelist is configured, configure a whitelist based on the steps that are described in the following topics:
Run the ping <Service address> or telnet <Service address> command in a container. If the preceding commands are not available, install common commands.
If the output of the ping or telnet command indicates normal, you can install a MySQL client or Redis client to test whether the ApsaraDB RDS instance or ApsaraDB for Tair (Redis OSS-Compatible) instance can be connected. For more information, see Use a database client to connect to an RDS instance or Use a client to connect to a Tair (Redis OSS-Compatible) instance. If the instance can be connected, the SAE network environment is normal. In this case, you must check the configurations of your program.
[Back to Top]