US2025181375A1PendingUtilityA1

Cloud service implementation method and apparatus

Assignee: BEIJING VOLCANO ENGINE TECHNOLOGY CO LTDPriority: Jun 22, 2022Filed: May 22, 2023Published: Jun 5, 2025
Est. expiryJun 22, 2042(~15.9 yrs left)· nominal 20-yr term from priority
G06F 2009/45562G06F 9/45558G06F 8/63G06F 2009/4557G06F 2009/45595
52
PatentIndex Score
0
Cited by
0
References
0
Claims

Abstract

The present disclosure relates to a cloud service implementation method. The method includes: generating an application instance corresponding to a target service in response to a service request from a client; creating, in the application instance, an initialization container according to a first basic mirror image, starting the initialization container, and writing a binary executable file in the first basic mirror image into a shared directory disc corresponding to the application instance; creating, in the application instance, an application container based on an application mirror image, reading the binary executable file from the shared directory disc, and injecting the binary executable file into the application container; running the binary executable file in the application container, to start a RuntimeAgent process; and calling the RuntimeAgent process to control a runtime process in the application instance to execute a file in the application mirror image, to process the service request.

Claims

exact text as granted — not AI-modified
What is claimed is: 
     
         1 . A cloud service implementation method, comprising:
 generating an application instance corresponding to a target service in response to a service request sent from a client, wherein the target service is a cloud computing service requested by the service request;   creating, in the application instance, an initialization container according to a first basic mirror image, then starting the initialization container, and writing a binary executable file in the first basic mirror image into a shared directory disc corresponding to the application instance;   creating, in the application instance, an application container based on a corresponding application mirror image, reading the binary executable file from the shared directory disc, and injecting the binary executable file into the application container, wherein the application mirror image is obtained based on a native application uploaded to a cloud computing system by a user, and the native application comprises function code corresponding to the target service and configuration information of a configuration item corresponding to the target service;   running the binary executable file in the application container, to start a runtime agent process; and   calling the runtime agent process to control a runtime process in the application instance to execute a file in the application mirror image, to process the service request.   
     
     
         2 . The cloud service implementation method according to  claim 1 , wherein:
 the generating an application instance corresponding to a target service in response to a service request sent from a client, comprises: scheduling, from a plurality of idle application instances which are created based on a second preset mirror image and maintained by a cold start resource pool, an idle application instance as the application instance corresponding to the target service, in response to the service request being a cold start;   the creating, in the application instance, an application container based on a corresponding application mirror image, comprises: replacing a second basic mirror image in the service container corresponding to the idle application instance with the application mirror image, and restarting to obtain the application container.   
     
     
         3 . The cloud service implementation method according to  claim 1 , wherein the creating, in the application instance, an application container based on a corresponding application mirror image, comprises:
 pulling meta-information of the application mirror image from an image repository; and   creating the application container based on the meta-information of the application mirror image.   
     
     
         4 . The cloud service implementation method according to  claim 1 , wherein the configuration item corresponding to the target service comprises: one or more of monitor port, startup command, health check interface, or function life cycle. 
     
     
         5 . The cloud service implementation method according to  claim 1 , further comprising, before the creating, in the application instance, an initialization container according to a first basic mirror image:
 calling a traffic call port in the cloud computing system to schedule traffic corresponding to the service request to the application instance; and   calling a data request port in the cloud computing system to forward the service request to the application instance.   
     
     
         6 . The cloud service implementation method according to  claim 5 , wherein the calling a data request port in the cloud computing system to forward the service request to the application instance, comprises:
 calling, from data request ports respectively corresponding to running application instances, a target data request port corresponding to the application instance corresponding to the service request, to forward the service request to the application instance, wherein a communication protocol supported by the target data request port is consistent with a communication protocol adopted by the service request.   
     
     
         7 . The cloud service implementation method according to  claim 6 , further comprising:
 before the calling a data request port in the cloud computing system to forward the service request to the application instance, identifying the communication protocol adopted by the service request to obtain an identification result, and controlling the service request to be transmitted to a gate way of a plurality of gateways that is consistent with the communication protocol of the service request based on the identification result, and forwarding the service request to a corresponding data request port through the gateway, wherein the plurality of gateways are respectively configured to forward service requests of different communication protocols.   
     
     
         8 . The cloud service implementation method according to  claim 7 , wherein the forwarding the service request to a corresponding data request port through the gateway, comprises:
 parsing a request header of the service request through the gateway to obtain meta-information of the service, and determining a target data request port from connected data request ports based on the meta-information of the service; and   forwarding the service request to the target data request port.   
     
     
         9 . The cloud service implementation method according to  claim 7 , further comprising:
 before the identifying the communication protocol adopted by the service request to obtain an identification result, and controlling the service request to be transmitted to a gate way of a plurality of gateways that is consistent with the communication protocol of the service request based on the identification result, converting the service request of a first specified communication protocol into a service request of a second specified communication protocol in response to identifying that the service request sent from the client adopts the first specified communication protocol.   
     
     
         10 . The cloud service implementation method according to  claim 1 , further comprising:
 before the generating an application instance corresponding to a target service in response to a service request sent from the client, receiving the service request sent from the client, and determining, from multiple kinds of interface definition language, a target interface definition language corresponding to a communication protocol adopted by the service request; and   generating an event object corresponding to the service request based on the target interface definition language, and sending the event object corresponding to the service request to the target service, to trigger the target service to generate the application instance in response to the service request.   
     
     
         11 . (canceled) 
     
     
         12 . An electronic device comprising:
 a memory configured to store computer program instructions; and   a processor configured to execute the computer program instructions, to cause the electronic device to implement a cloud service implementation method comprising:   generating an application instance corresponding to a target service in response to a service request sent from a client, wherein the target service is a cloud computing service requested by the service request;   creating, in the application instance, an initialization container according to a first basic mirror image, then starting the initialization container, and writing a binary executable file in the first basic mirror image into a shared directory disc corresponding to the application instance;   creating, in the application instance, an application container based on a corresponding application mirror image, reading the binary executable file from the shared directory disc, and injecting the binary executable file into the application container, wherein the application mirror image is obtained based on a native application uploaded to a cloud computing system by a user, and the native application comprises function code corresponding to the target service and configuration information of a configuration item corresponding to the target service;   running the binary executable file in the application container, to start a runtime agent process; and   calling the runtime agent process to control a runtime process in the application instance to execute a file in the application mirror image, to process the service request.   
     
     
         13 . A non-transitory computer readable storage medium having thereon stored computer program instructions, which when executed by a processor, implement a cloud service implementation method comprising:
 generating an application instance corresponding to a target service in response to a service request sent from a client, wherein the target service is a cloud computing service requested by the service request;   creating, in the application instance, an initialization container according to a first basic mirror image, then starting the initialization container, and writing a binary executable file in the first basic mirror image into a shared directory disc corresponding to the application instance;   creating, in the application instance, an application container based on a corresponding application mirror image, reading the binary executable file from the shared directory disc, and injecting the binary executable file into the application container, wherein the application mirror image is obtained based on a native application uploaded to a cloud computing system by a user, and the native application comprises function code corresponding to the target service and configuration information of a configuration item corresponding to the target service;   running the binary executable file in the application container, to start a runtime agent process; and   calling the runtime agent process to control a runtime process in the application instance to execute a file in the application mirror image, to process the service request.   
     
     
         14 . (canceled) 
     
     
         15 . The electronic device according to  claim 12 , wherein:
 the generating an application instance corresponding to a target service in response to a service request sent from a client, comprises: scheduling, from a plurality of idle application instances which are created based on a second preset mirror image and maintained by a cold start resource pool, an idle application instance as the application instance corresponding to the target service, in response to the service request being a cold start;   the creating, in the application instance, an application container based on a corresponding application mirror image, comprises: replacing a second basic mirror image in the service container corresponding to the idle application instance with the application mirror image, and restarting to obtain the application container.   
     
     
         16 . The electronic device according to  claim 12 , wherein the creating, in the application instance, an application container based on a corresponding application mirror image, comprises:
 pulling meta-information of the application mirror image from an image repository; and   creating the application container based on the meta-information of the application mirror image.   
     
     
         17 . The electronic device according to  claim 12 , wherein the configuration item corresponding to the target service comprises: one or more of monitor port, startup command, health check interface, or function life cycle. 
     
     
         18 . The electronic device according to  claim 12 , further comprising, before the creating, in the application instance, an initialization container according to a first basic mirror image:
 calling a traffic call port in the cloud computing system to schedule traffic corresponding to the service request to the application instance; and   calling a data request port in the cloud computing system to forward the service request to the application instance.   
     
     
         19 . The non-transitory computer readable storage medium according to  claim 13 , wherein:
 the generating an application instance corresponding to a target service in response to a service request sent from a client, comprises: scheduling, from a plurality of idle application instances which are created based on a second preset mirror image and maintained by a cold start resource pool, an idle application instance as the application instance corresponding to the target service, in response to the service request being a cold start;   the creating, in the application instance, an application container based on a corresponding application mirror image, comprises: replacing a second basic mirror image in the service container corresponding to the idle application instance with the application mirror image, and restarting to obtain the application container.   
     
     
         20 . The non-transitory computer readable storage medium according to  claim 13 , wherein the creating, in the application instance, an application container based on a corresponding application mirror image, comprises:
 pulling meta-information of the application mirror image from an image repository; and   creating the application container based on the meta-information of the application mirror image.   
     
     
         21 . The non-transitory computer readable storage medium according to  claim 13 , wherein the configuration item corresponding to the target service comprises: one or more of monitor port, startup command, health check interface, or function life cycle.

Join the waitlist — get patent alerts

Track US2025181375A1 — get alerts on status changes and closely related new filings.

We store only your email — no account needed. See our privacy policy.