This topic describes how to select a network type when you use Logtail to collect logs.
Network types
Alibaba Cloud internal network: An Alibaba Cloud internal network provides gigabits of shared bandwidth. Transmission of log data over an internal network is stable and fast. Alibaba Cloud internal networks include virtual private clouds (VPCs) and the classic network.
Internet: Transmission of log data over the Internet is limited by the network bandwidth. Network issues such as jitters, latency, and packet loss may also occur. This affects the speed and stability of data transmission.
Transfer acceleration: This network type can be used to accelerate log collection by using the edge nodes of Alibaba Cloud CDN (CDN). Compared with log collection over the Internet, log collection based on transfer acceleration is more stable, and the transmission latency is lower.
Select a network type
Internal network: Make sure that your Elastic Compute Service (ECS) instance resides in the same region as your Simple Log Service project.
NoteWe recommend that you create your Simple Log Service project in the region where your ECS instance resides. This way, Simple Log Service can collect logs from the ECS instance over an Alibaba Cloud internal network without consuming public bandwidth.
Internet: You can select this network type in the following scenarios:
Your ECS instance and Simple Log Service project reside in different regions.
You use a server from a third-party cloud service provider or in a data center.
Transfer acceleration
If your server and Simple Log Service reside in different regions, such as in and outside China, network latency is high and transmission is unstable when data is transmitted over the Internet. In this case, you can select transfer acceleration as the network type.
Scenario | Network type |
Your ECS instance and Simple Log Service project reside in the same region. | Internal network |
Your ECS instance and Simple Log Service project reside in different regions. | Internet or transfer acceleration |
You use a server from a third-party cloud service provider or in a data center. | Internet or transfer acceleration |
Examples
Scenario | Network type |
The Simple Log Service project and ECS instance reside in the same region.
| Internal network |
The Simple Log Service project and ECS instance reside in different regions.
| Internet |
A server in a data center is used.
| Internet |
A server in a data center is used.
| Internet or transfer acceleration Note If your Simple Log Service project is located in China and your server is located outside China, we recommend that you use transfer acceleration to collect logs from the server. In this scenario, log collection based on transfer acceleration is more stable and provides higher performance than log collection over the Internet. |