A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.alibabacloud.com/help/en/functioncompute/fc-2-0/user-guide/manage-services below:

how to manage services in Function Compute? - Function Compute

A service is a unit for resource management in Function Compute. Before you can create a function, you must create a service. Functions that belong to a service inherit attributes of the service, such as the permissions and log settings of the service. This topic describes the definition of a service and how to create and update a service in the Function Compute console.

What is a service?

From a business perspective, an application consists of multiple services. From a resource usage perspective, a service consists of multiple functions. For example, a data processing service consists of two functions: a data preparation function that requires less resources and a data processing function that requires more resources. You can configure an instance that has low specifications to run the data preparation function, and configure an instance that has high specifications to run the data processing function.

Create a service
  1. Log on to the Function Compute console. In the left-side navigation pane, click Services & Functions.

  2. In the top navigation bar, select a region. On the Services page, click Create Service.

  3. In the Create Service panel, enter the service name and description, configure other parameters, and then click OK. The following table describes the parameters.

    Parameter

    Description

    Example

    Logging

    Specifies whether to enable the logging feature. Valid values:

    Enable

    Advanced options

    Managed Service for OpenTelemetry

    Specify whether to enable Managed Service for OpenTelemetry. Valid values:

    Enable

    Server Role

    Configure the role for functions in the service. This way, functions can obtain the permissions of the role. For more information, see Grant Function Compute permissions to access other Alibaba Cloud services.

    AliyunFCDefaultRole

    Access to VPC

    Specifies whether to allow functions to access virtual private cloud (VPC) resources. For more information, see Configure network settings.

    Yes

    VPC

    This parameter is required if you set the Access to VPC parameter to Yes. Create a VPC or select the ID of an existing VPC that you want to access from the drop-down list.

    fc.auto.create.vpc.1632317****

    vSwitch

    This parameter is required if you set the Access to VPC parameter to Yes. Create a vSwitch or select the ID of an existing vSwitch from the drop-down list.

    fc.auto.create.vswitch.vpc-bp1p8248****

    Security Group

    This parameter is required if you set the Access to VPC parameter to Yes. Create a security group or select an existing security group from the drop-down list.

    fc.auto.create.SecurityGroup.vsw-bp15ftbbbbd****

    Access to Internet

    Specifies whether to allow functions in the service to access the Internet. If you set this parameter to No, functions in the service cannot access the Internet over the default network interface controller (NIC) in Function Compute.

    Important

    If you want to use a static public IP address to access the Internet, you must set the Access to Internet parameter to No. Otherwise, the configured static public IP address does not take effect. For more information, see Assign a static public IP address.

    Yes

    After the service is created, you can click Services & Functions to view the created service on the Services page.

Update a service
  1. Log on to the Function Compute console. In the left-side navigation pane, click Services & Functions.

  2. In the top navigation bar, select a region. On the Services page, find the desired service and click Configure in the Actions column.

  3. On the Modify Service page, configure the parameters based on your business requirements and click Save.

Important

You can delete services that you no longer require. Before you delete a service, make sure that the service has no functions, provisioned function instances, versions, or aliases. Otherwise, the service cannot be deleted.

More information References

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4