Enterprise Distributed Application Service (EDAS) allows you to deploy applications in hybrid cloud Elastic Compute Service (ECS) clusters and provides complete solutions for scale-out, networking, and centralized management in these clusters. You can connect Alibaba Cloud ECS instances, servers from data centers, and servers from other cloud service providers (CSPs) by using Express Connect circuits, and add the instances and servers to hybrid cloud ECS clusters in EDAS. This way, you can host applications to these clusters and use application hosting capabilities that are provided by EDAS.
Your application system may have the following requirements and problems:
- The traffic on Alibaba Cloud has a specific degree of volatility and you may face traffic spikes in special scenarios. You can predict the traffic volumes in specific scenarios, but deviations may exist. You cannot determine when to add ECS instances and how many ECS instances are needed. In addition, you must purchase ECS instances in advance.
- Some core business systems have high security requirements and you want to deploy relevant applications in your data center. However, you cannot centrally manage applications that are deployed in different environments because Alibaba Cloud ECS instances, servers from data centers, and servers from other CSPs cannot communicate with each other.
- Based on your business needs and availability requirements, you want to deploy your applications in the hybrid cloud environment. However, you cannot centrally manage these applications. Manual processing is required and misoperations may occur.
Hybrid cloud clusters can meet these requirements and solve these problems.
The following figure shows the architecture of a hybrid cloud ECS cluster.
- A hybrid cloud cluster contains Alibaba Cloud ECS instances, servers from data centers, and servers from other CSPs.
- Alibaba Cloud ECS instances, servers from data centers, and servers from other CSPs are connected by using Express Connect circuits.
- Applications can be deployed in hybrid cloud ECS clusters.
In the hybrid cloud environment, EDAS is used in the following scenarios:
- Manage applications in data centers by using EDAS on Alibaba Cloud: After you connect your data center to a virtual private cloud (VPC) of Alibaba Cloud by using an Express Connect circuit, you can manage the applications in your data center by using EDAS on Alibaba Cloud.
- Deploy and manage servers from other CSPs: EDAS allows you to deploy applications to servers from CSPs other than Alibaba Cloud and manage these servers in a centralized manner.
This topic describes how to manage servers from data centers by using EDAS on Alibaba Cloud. To deploy and manage servers from other CSPs, you only need to connect the servers to a VPC of Alibaba Cloud in EDAS by using Express Connect circuits. Then, you can manage these servers in the same way as Alibaba Cloud manages servers from the data centers that are connected to Alibaba Cloud.
Before you begin
- Create an IPv4 VPC network.
- Activate Express Connect. For more information, see Express Connect.
- Apply for a dedicated connection over Express Connect to connect your data center to a VPC of Alibaba Cloud. For more information, see Create a dedicated connection over an Express Connect circuit.
Make sure the servers in your data center meet the following requirements:
- Operating system: CentOS 7
- Physical or virtual machines: Docker is not supported.
- Hardware: no special requirements for CPU and memory
Step 1: Create a hybrid cloud cluster
- Log on to the EDAS console.
- In the left-side navigation pane, choose .
- On the ECS Cluster page, select the region where you want to create a cluster from the Region drop-down list in the top navigation bar, and select the namespace where you want
to create a cluster from the Namespace drop-down list in the upper part. Then, click Create Cluster.You can select a namespace on this page or in the Create Cluster dialog box.
- If environment isolation is required, select the namespace that you create.
- If environment isolation is not required, select Default from the Namespace drop-down list.
- In the Create Cluster dialog box, set the cluster parameters and click Create.
Parameter Description Cluster Name The name of the cluster. The name can be up to 64 characters in length and can contain letters, digits, underscores (_), and periods (.). Cluster Select Non-Alibaba Cloud. Cluster Type This parameter can be set only to ECS, and you cannot change the value. Cluster Network Type When Cluster is set to Non-Alibaba Cloud, this parameter can be set only to VPC. VPC Network After you select VPC, you must select a created VPC. Namespace The namespace to which the cluster belongs. By default, the namespace selected on the Clusters page is displayed. If no namespace is selected, Default is displayed in the Namespace drop-down list. Set this parameter as needed. Resource Groups The resource group to which the cluster belongs. The resource group is created by the current Alibaba Cloud account in the Resource Management console. This group is not an EDAS resource group. If no resource groups are available, click Create Resource Group to go to the Resource Management console and create a resource group. For more information, see Create a resource group.After a cluster is created, Created. appears on the top of the page, and the cluster appears in the cluster list.Note The created cluster is only an empty cluster. You must add ECS instances and servers from your data center to the cluster.
Step 2: Add instances to the hybrid cloud cluster
You must add ECS instances, servers from your data center, and servers from other CSPs to the newly created empty hybrid cloud cluster.
- On the ECS Cluster page, click the ID of the newly created cluster.
- On the Cluster Details page, click Add Existing ECS in the upper-right corner of the ECS Instance section.
- In the Add ECS Instance dialog box, copy the command that is used to install the EDAS agent.Note To add instances to a hybrid cloud cluster, you can only manually install the EDAS agent by using the command-line interface (CLI).
- Use the root account to log on to your ECS instance or a server in your data center,
and copy and run the command that is used to install the EDAS agent.
Then, the ECS instance or server is added to the cluster.
Step 3: Enable required ports
To ensure that related capabilities provided by EDAS are available for your applications in the hybrid cloud cluster, you must enable the following ports for the instances after you add them to the cluster:
- 8182: This port is used to capture basic monitoring and trace monitoring logs.
- 12200 to 12300: These ports are used for remote procedure calls (RPCs).
- 65000 to 65535: These ports are web ports.
The methods of enabling ports vary based on the instance types in the cluster.
- ECS instances: For more information about how to enable the ports, see Add security group rules.
- Servers from data centers or other CSPs: For more information about how to enable the ports, see the corresponding solutions.
Verify the result
- Return to the ECS Cluster page. In the cluster list, view the values of Cluster Type, Cluster Status, and Instances of the newly created cluster.
- If the value of Cluster Type is ECS Clusters (Non-Alibaba Cloud) and the value of Cluster Status is Normal, the cluster is created.
- If the value of Instances is the same as the number of added instances, the instances are added.
- Click the ID of the cluster that you want to view. The Cluster Details page appears.
In the ECS Instance section, view the Instance Name and Cluster Status parameters of the added instance. If the value of Health Check of an instance is Running, the status of the instance is normal.
What to do next
After a hybrid cloud ECS cluster is created, you can deploy applications in the cluster. The method of deploying applications in a hybrid cloud ECS cluster is the same as that in an ECS cluster. For more information, see Overview.