Package your Python application into a ZIP file that is compatible with SAE, and then deploy the file to SAE.
Procedure
On the SAE Application List page, select the target region and namespace in the top navigation bar, and then click Create Application.
Select an application edition.
ImportantThe Lightweight Edition and Professional Edition are currently in an invite-only beta phase. For users not participating in the beta test, applications are created as the Standard Edition by default.
-
Lightweight Edition: Provides the minimum feature set required to run an application. It does not support the Application Monitoring and Microservices Governance features.
-
Standard Edition: Includes the Basic Application Monitoring feature. The Advanced Application Monitoring and Microservices Governance features must be enabled and purchased separately.
-
Professional Edition: Includes the Advanced Application Monitoring and Microservices Governance features, which do not need to be enabled or purchased separately.
-
On the Create Application page, enter a custom Application Name and configure the following parameters.
Select the namespace type for the application. A namespace is equivalent to a Kubernetes namespace and can be used to isolate resources in different environments. You cannot change the namespace of an application after it is created. Plan accordingly.
-
System Created: Use the default namespace, vSwitch, and security group created by the system in the current region.
-
Existing Namespace: Select a namespace, vSwitch, and security group that you created in advance.
-
For Application Deployment Method, select Code Package-based Deployment, and click Configure Code Package-based Deployment on the right. For Technology Stack Programming Language, select Python. Select a Python environment that is compatible with your code. Configure the following parameters and click OK.
In the Capacity Settings section, set Resource Type, Single Instance Type, and Instances.
(Optional) Click Next: Advanced Settings to configure advanced features.
Click Create Application with One Click or Create Application.
-
Creating the application takes about 1 to 2 minutes. You can view change records to verify that the deployment was successful. If the deployment fails, no application instance is created. You can troubleshoot the issue based on the error message in Change Details.
-
You can view the created application on the page. To change the application configuration after deployment, click the target application to go to its details page. Then, click Deploy Application or Modify Application Configurations at the top. The application automatically restarts to apply the new configuration. Perform this operation during off-peak hours.
-
You can log on to an application instance by using Webshell and interact with the instance by using console commands.
-
After you create an application, you can manually adjust the number of instances and the instance specification, or automatically adjust the number of instances by configuring an auto scaling policy. You can also reduce costs by enabling idle mode.
-