Application Service Instances

更新时间:
复制 MD 格式

An application service instance is a model that acts as an intermediary between an application and its resources. In a workspace, an application can have multiple service instances. You can run multiple service instances at the same time to provide services. Technologies such as security groups, whitelists, and VPC networks are used to isolate different service instances.

Previously, applications were associated directly with resources. With application service instances, applications no longer associate directly with resources. Instead, service instances are associated with resources. When you deploy a release, the operation targets the service instance, not the application. Service instances can also be associated with cells, which allows for more flexible release policies.

Create an application service instance

  1. Go to the CAS console. In the navigation pane on the left, click App service > Service instance list. Then, click Create a service Instance.

  2. Fill in the following configuration information and click OK.

    • Application: Select a previously created application.

    • Service instance name: The name must start with a letter and end with a letter or number. It can contain letters, numbers, hyphens (-), and underscores (_). The name cannot exceed 60 characters in length. For example, sofabootdemo.

    • Package: Select the deployment package for the application.

    • Owner:Select the owner of the instance.

    • Description: The description cannot exceed 500 characters.

    • Buildpack: This field is automatically populated based on the selected application.

    • Buildpack version: Select the required version.

    • Deployment unit: Select the deployment units where you want to publish the application.

View application service instance details

The application service instance details page displays detailed information about the service instance and its associated resources.

  1. On the Service instance list page, click the name of a service instance or click Details in its row to go to the application service instance details page.

  2. On the details page, you can view the detailed information and resource information for the current application service instance.

The application service instance details page includes the following information:

  • Part one: The basic information area for the application service instance. This includes the basic information, an Application Details button, and a Operations button.

    • The basic information for the application service instance includes Instance Name, Application, Status, Creation Time, Owner, Deployment Package Version, Alias, Technology Stack, and Description.

    • Click the App details button to view the detailed information of the application.

    • The Operations drop-down button provides shortcuts to perform Deploy, Restart app, Online, and Offline operations for the current application service instance.

  • Part two: Displays resource usage and environment parameters.

    • The resources for the application service instance include ECS, SLB, RDS and Redis. Click a resource type name, such as ECS, to switch between the lists for different resources. For information about how to use features such as searching for and adding resources, see What is Resource Management.

    • Environment parameters: Includes system parameters and custom parameters. You can add custom environment parameters and attach them to the application service instance. The system parameters include the following:

      • bp.-Drpc_enabled_ip_range: The network interface controller (NIC) configuration for Remote Procedure Calls (RPCs) in a SOFA application. The default is

        10:11, 172.16, 192.168.

      • ac.is_dsr_dependent: Specifies whether the application depends on a dedicated configuration center. The default value is false.

      • ac.is_bg_deployment_supported: Specifies whether the application supports blue-green deployment. The default value is true.

      • ac.is_ldc_supported: Specifies whether the application supports the LDC deployment mode. The default value is true.