After you develop an application, you can deploy the application in the application hosting platform SAE. This topic describes how to deploy a Java web application by using a WAR package in the SAE console.
Prerequisites
- A namespace is created. For more information, see Create a namespace.
- A virtual private cloud (VPC) is created. For more information, see Create a VPC.
Procedure
- Log on to the SAE console.
- In the left-side navigation pane, click Applications. In the top navigation bar, select a region and click Create Application.
- In the Basic Information step, configure the parameters and click Next: Application Deployment Configurations.
Parameter Description Application Name Enter a custom application name.
VPC Select a configuration method for the VPC. Valid values:
- Custom Configuration: If you select this option, you must manually specify the namespace, VPC, vSwitch, and security group for the application that you want to create.
- Automatic Configuration: If you select this option, SAE automatically specifies the namespace, VPC, vSwitch, and security group for the application.
Namespace This parameter is required only if the VPC parameter is set to Custom Configuration. Select an existing namespace from the drop-down list.
Note Namespaces and VPCs are in one-to-one mapping relationships. For information about how to modify a VPC, see Create and manage a VPC.vSwitch This parameter is required only if the VPC parameter is set to Custom Configuration. Click Select vSwitch. In the Select vSwitch dialog box, configure the parameters.
You must specify at least one vSwitch. We recommend that you specify no more than three vSwitches. Each vSwitch must match at least one application instance.
Security Group This parameter is required only if the VPC parameter is set to Custom Configuration. Select a security group from the drop-down list.
Note If you have not created a security group in your VPC, click Create Security Group to create a security group as prompted. For more information, see Create a security group.Application Instances Select the number of instances that you want to create. VCPU Select the CPU specification for the instances that you want to create. Memory Select the memory specification for the instances that you want to create. Application Description Enter the basic information about the application. - In the Deployment Configurations step, configure the parameters.
- Click Next: Confirm Specifications.
- In the Specification Confirmation step, view the details of the application and the fee for the selected specifications. Then, click Confirm. The Creation Completed step appears. You can click Application Details to go to the Basic Information page of the application.
Verify the deployment result
After an application is deployed, you can use one of the following methods to verify the deployment result for the application.
- View the running status of application instances.
- Log on to the SAE console.
- In the left-side navigation pane, click Applications. On the Applications page, click the name of the application that you want to manage.
- On the Basic Information page, click the Instance Deployment Information tab to view the running status of the instances.
If Running or Completed is displayed in the Status column, the application is deployed.
- Add an Internet-facing Server Load Balancer instance to the application.
After an application is deployed, you can configure an SLB instance to allow access to the application within a specified period of time for other applications.
SLB instances are classified into the following types:
- Internal-facing SLB instance: provides an access portal in the VPC where the application resides to ensure that the application can be accessed by other applications in the same VPC.
- Internet-facing SLB instance: SAE can automatically purchase an Internet-facing SLB instance for an application, or you can use an Internet-facing SLB instance that you purchased in the SLB console. This helps ensure that the application can be accessed by other applications over the Internet.
Note You can allow access to an application by using an Internet-facing SLB instance the same way you allow access to an application by using an internal-facing SLB instance. For more information, see Bind an SLB instance to an application. After an SLB instance is bound to an application, you can enter a URL that consists of the IP address, port, and access path of the SLB instance in the address bar of your browser to access the application. Example: 192.168.XX.XX:80/image.
View application metrics
After an application is deployed, you can view the key performance metrics of the application in the Application Monitoring module.
- Log on to the SAE console.
- In the left-side navigation pane, click Applications. In the top navigation bar, select a region. Then, click the name of the application that you want to manage.
- In the left-side navigation pane, view application monitoring data as needed.
- Application Overview: Choose . The Application Overview page displays the key performance metrics of the application, such as the total number of requests and the average response time.
- Application Details: Choose . The Application Details page displays more comprehensive application monitoring data, such as the data for JVM monitoring and exception analysis.
- API Operation Calls: Choose . The API Operation Calls page displays the monitoring data by API operation, such as the call topology, upstream and downstream links.
- Advanced Monitoring: Choose . The Advanced Monitoring page displays higher-performance monitoring and management data, such as global application topology, data of SQL exception analysis, and local call stack.
References
- After you deploy an application on SAE, you can manage the lifecycle of the application. For example, you can update, start, stop, and delete the application. You can also scale in or scale out the instances for the application. For more information, see Manage the lifecycle of an application.
- After you deploy an application on SAE, you can configure auto scaling policies for the application and bind Server Load Balancer (SLB) instances to the application. You can also start or stop applications in batches. These features can help you improve the performance of your applications. For more information, see the following topics:
- After you deploy an application on SAE, you can manage the application based on its running status. For example, you can manage logs, configure monitoring, view application events, and view change records. For more information, see the following topics: