Enterprise Distributed Application Service (EDAS) allows you to deploy applications in hybrid cloud clusters and provides complete solutions for scaling, networking, and centralized management in these clusters. You can connect instances from Alibaba Cloud and machines from on-premises data centers and other cloud service providers (CSPs) over Express Connect circuit, and add these instances or machines to hybrid cloud Elastic Compute Service (ECS) clusters in EDAS. Then, you can deploy High-Speed Service Framework (HSF), Dubbo, and Spring Cloud applications in a unified manner and manage these applications in a centralized manner in the EDAS console. EDAS supports auto scaling of ECS instances from Alibaba Cloud.
Application deployment architecture in a hybrid cloud cluster
You can deploy applications in a hybrid cloud cluster by using the architecture as shown in the following figure.
- Connect Alibaba Cloud to on-premises data centers or to the clouds of other CSPs over Express Connect.
- Create a hybrid cloud cluster. Then, add ECS instances from Alibaba Cloud and machines from on-premises data centers or other CSPs to this cluster.
- Deploy your applications to instances or machines in this cluster.
Your application system may have the following requirements and problems:
- The traffic on Alibaba Cloud has a certain degree of volatility and you may face traffic spikes in special scenarios. You can predict the traffic volumes in these scenarios, but deviations may exist. Knowing when to add ECS instances and how many ECS instances are needed is a challenge. Also, you must purchase ECS instances in advance.
- Some core business systems have high security requirements and you may want to deploy related applications in your own on-premises data center. However, you cannot centrally manage applications that are deployed in different environments. This is because instances from Alibaba Cloud, machines from on-premises data centers, and machines from other CSPs cannot communicate with each other.
- Based on your business needs and availability requirements, you may want to deploy your applications to machines from multiple CSPs. This is the multi-cloud mode. In this mode, manual processing is required because you cannot centrally manage these applications. This often leads to misoperations.
In an hybrid cloud environment, EDAS is used in the following scenarios:
- Manage applications in on-premises data centers by using Alibaba Cloud. After connecting your on-premises data center to Alibaba Cloud Virtual Private Cloud (VPC) over Express Connect circuit, you can manage the applications in your on-premises data center by using EDAS.
- Scale out applications deployed on instances from Alibaba Cloud. EDAS supports auto scaling of ECS instances from Alibaba Cloud and helps you automatically purchase and release ECS instances. You only need to associate EDAS with your billing account and do not need to purchase ECS instances in advance.
- Deploy and manage machines from other CSPs. EDAS allows you to deploy applications to machines from CSPs other than Alibaba Cloud and manage these machines in a centralized manner.
This topic describes how to manage machines from on-premises data centers by using EDAS in Alibaba Cloud. To deploy and manage machines from other CSPs, you only need to connect the target machines to VPCs in EDAS over Express Connect circuit. Then, you can manage these machines in the same way as Alibaba Cloud manages machines from on-premises data centers that have been connected to Alibaba Cloud. For more information about how to scale out off-premises applications, see Perform auto scaling on applications in ECS clusters.
- Create an IPv4 VPC network
- Activate Express Connect.
- Apply for Create a dedicated physical connection to connect your on-premises data center to Alibaba Cloud VPC.
Make sure that the machines in your on-premises data center meet the following requirements:
- Operating system: CentOS 7
- Physical machines or virtual machines (Docker is not supported.)
- Hardware: no special requirements for CPU and memory
Create a hybrid cloud cluster
Perform the following two steps to create a hybrid cloud cluster:
- Create a cluster.
- Add an instance.
Create a cluster
- In the left-side navigation pane, choose . The Clusters page appears.
- In the top navigation bar, select a region. On the top of the Clusters page, select a namespace. Then click Create Cluster.
- In the Create Cluster dialog box, enter related information and click Create.
Parameter field description
- Cluster Name: Enter a name for the cluster that you want to create. The name can contain only letters, numbers, underscores (_), and periods (.) and must be 1 to 64 characters in length.
- Cluster: Select Non-Alibaba Cloud.
- Cluster Type: The default value is ECS, which cannot be changed.
- Network Type: The default value is VPC, which cannot be changed.
- VPC Network: From the drop-down list, select the VPC where you want to create the cluster.
- Namespace: The namespace that you have selected for the hybrid cloud cluster on the Clusters page. The namespace cannot be edited.
After the cluster is created, Created successfully appears on the top of the Clusters page, and the created cluster appears in the cluster list.
Note: The created cluster is empty. You must add an instance to this cluster so that you can use an application.
Add an instance
To add ECS instances from Alibaba Cloud and machines from on-premises data centers or other CSPs, perform the following steps.
Note: You can add instances to a hybrid cloud cluster only by using the command line interface (CLI).
- On the Clusters page, click the name of the cluster that you just created.
- On the Cluster Details page, click Add an Existing ECS.
- In the Add ECS Instance dialog box, copy the install command for EDAS Agent.
- Use the root account to log on to your Alibaba Cloud ECS instance or the machines in your on-premises data center.
- Paste the install command for EDAS Agent and run this command.
After installation, the ECS instance or machine is added to the cluster.
Enable required ports
To ensure that features provided by EDAS are available for your applications in the hybrid cloud cluster, you must enable the following ports after adding the ECS instance:
- 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 are web ports.
You must enable the preceding ports based on the instance type.
- Alibaba Cloud ECS instances: For more information about how to enable relevant ports, see Add security group rules.
- Machines from on-premises data centers or other CSPs: For more information about how to enable relevant ports, see relevant solutions.
Verify the result
- Return to the Clusters page. In the cluster list, find the cluster that you just created and check the values
of Status and Instances.
If the cluster status is Normal, this cluster has been created. If the value of Instances is same as the number of instances that you added, the instance has been added.
- Click the name of the target cluster. On the Cluster Details page, check the value
of Instance ID/Name for the added instance in the ECS Instance section and check Cluster Status in the Cluster Information section.
If the cluster status is Running, the added instance is running properly.
Deploy an application
Currently, the hybrid cloud cluster can only be an ECS cluster. Therefore, you can deploy applications only in hybrid cloud ECS clusters.
The method for deploying an application in a hybrid cloud cluster is the same as the method for deploying an application in an ECS cluster. For more information, see Deploy a Java web application to an ECS cluster.
What to do next
After deploying an application in a hybrid cloud cluster, you can use EDAS to perform application lifecycle management, monitoring, diagnosis, auto scaling, and throttling and degradation on this application.