检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
If the function and the ECS to be started or stopped are in the same region, perform the preceding operations.
Step 1: Buying an ECS Go to the Buy ECS page. The instance type and whether to enable public access can be selected based on service requirements. Follow the instructions below. For details about other parameters, see Setting ECS Purchase Parameters.
File system/ECS name: Name of the file system or ECS to create. Ensure that you have specified a VPC and agency that you have been authorized to access. Shared directory: To configure a remote shared directory for the mounted ECS, see Creating an NFS Shared Directory on an ECS.
json_k = ['nonce', 'header', 'ciphertext', 'tag'] json_v = [b64encode(x).decode('utf-8') for x in [cipher.nonce, header, ciphertext, tag]] result = json.dumps(dict(zip(json_k, json_v))) print(result) To execute the script, run the following command on an ECS
Using FunctionGraph to Deploy Stable Diffusion for AI Drawing Introduction Resource and Cost Planning Procedure Deploying and Using the Stable Diffusion Application (Optional) Binding a Custom Domain Name (Optional) Uploading a Custom Model (Advanced) Using ECS as an NFS Server to
Using FunctionGraph to Periodically Start and Stop ECSs Configure a function to periodically enable or disable the ECS function of Huawei public cloud VMs.
Import the ECS configured in Preparing an Environment, enter the ECS username, password, and SSH port 22, read and agree to the agreement, and add the ECS. Wait till the connectivity test is successful. Parent topic: Hosting Function Code with DevCloud
The network configuration must be the same as that of the ECS where Kafka is deployed, including the VPC and subnet. Enabling a Kafka Trigger By default, open-source Kafka triggers are disabled. To use such a trigger, click Enable on the Trigger page.
(Advanced) Using ECS as an NFS Server to Isolate Resources of Multiple Users To isolate resources among multiple users, you can mount an ECS as the source of a file system. You can set a shared NFS path to manage resources of multiple users.
Mandatory for uploading and using a custom model Elastic Cloud Server (ECS) Region: CN East-Shanghai1 OS: Public image EulerOS 2.5 64bit (40 GiB) Number of security groups: 1 Quantity: 1 Billing mode: Pay-per-use Creating a security group: Free The instance type, storage specifications
Advanced usage: For more scenarios, see (Advanced) Mounting an SFS File System to Multiple Users, (Advanced) Using ECS as an NFS Server to Isolate Resources of Multiple Users, (Advanced) Accessing Applications Using APIs, and (Advanced) Enabling WebUI Authentication.
Periodically Starting or Stopping Huawei Cloud ECSs To start or stop your ECSs at specified time, use FunctionGraph to call the corresponding ECS APIs. Nodes to start: VMs that need to be started periodically. Nodes to stop: VMs that need to be stopped periodically.
Function Storage Comparison FunctionGraph provides various storage types, including Elastic Cloud Server (ECS), Scalable File Service (SFS) Turbo, Object Storage Service (OBS), Ephemeral Storage, and Dependency. For details about the storage comparison, see Table 1.
Minimal permissions You need to configure an agency and permissions (for accessing other Huawei Cloud services, such as ECS and OBS) compliant with the minimum permissions to reduce security risks caused by authorization token leakage. Parent Topic: Security
ECS A directory on an ECS is specified as a shared file system (see Mounting an ECS Shared Directory) by using the network file system (NFS) service.
Log in to your ECS on the ECS console (ensure that the GCC and Make tools have been installed), and run the following command to download the source code package: wget source code path If you downloaded a .zip file, run the following command to decompress it: unzip xxx/xx.zip If you
Mounting an ECS shared directory ECS ReadOnlyAccess ecs:cloudServers:get (Query details about an ECS) ECS ReadOnlyAccess: read-only permissions for ECS. ecs:cloudServers:get: permission for querying an ECS.
Buy a EulerOS ECS on Huawei Cloud by referring to Purchasing and Logging In to a Linux ECS. On the Configure Basic Settings page, select Public Image, and select Huawei Cloud EulerOS and an image version.
Figure 4 Adding an inbound rule Return to the ECS console, click the ECS name, and change the security group to functions-deploy.