Package your PHP application into a ZIP file that meets Serverless App Engine (SAE) requirements, and then deploy the application to SAE.
Procedure
Log on to the SAE console, choose in the left-side navigation pane, select a deployment region at the top, and then click Create Application.
If is not in the navigation bar, choose .
Select an application version.
ImportantLightweight Edition and Professional Edition are currently in the invitation-only testing phase. For users who are not participating in invitation-only testing, the created application is Standard Edition, and you do not need to select an application version.
Lightweight Edition: Provides the minimum set of functions required for application operation, does not support Application Monitoring and Microservice Governance functions.
Standard Edition: Comes with Basic Application Monitoring functions, Advanced Application Monitoring and Microservice Governance functions require additional activation and purchase.
Professional Edition: Comes with Advanced Application Monitoring and Microservice Governance functions, no additional activation or purchase required.
On the Create Application page, enter an Application Name and configure the following parameters.
Select the Namespace to which the application belongs. Namespace is equivalent to K8s Namespace and can be used for resource isolation in different environments. After an application is created, you cannot change its namespace.
System Created: Use the default namespace, vSwitch, and security group created by the system in the current region.
Existing Namespace: Select the namespace, vSwitch, and security group that you created in advance.
For Application Deployment Method, select Code Package Deployment, and click Configure Code Package Deployment on the right. For Technology Stack Language, select PHP and a PHP environment that is compatible with your code. Set the following parameters, and then click OK.
In the Capacity Settings section, configure Single Instance Type, and Instances.
(Optional) Click Next: Advanced Settings to configure advanced features.
Click Create Application.
Creating an application takes about 1-2 minutes. You can determine whether the application is deployed successfully by viewing the change records. If the deployment fails, no application instance will be generated. Troubleshoot faults based on the error information in Change History.
You can view the created applications in . If you need to change the application configuration after deployment, click the target application to enter its details page, and then click Deploy Application. Note that the application will automatically restart to make the new configuration take effect. Perform operations during off-peak hours to minimize impacts on your business.
You can log on to application instances through Webshell to interact with application instances through console commands.
After creating an application, you can manually adjust the number of instances and instance specifications, or automatically adjust the number of instances by configuring Auto Scaling policies. You can also reduce costs by enabling idle mode.