Internet capability platform service management method, internet capability platform and medium
Patent Information
- Application Number
- CN202211698684.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-28
- Publication Date
- 2026-10-30
- Estimated Expiration
- 2042-12-28
AI Technical Summary
[0003]本发明所要解决的技术问题是针对现有技术的上述不足,提供一种能力服务管理方法、互联网能力平台及计算机可读存储介质,以解决如何统一管理互联网能力平台服务,使得应用程序的能力在互联网能力平台有序运行,有效实现应用程序的对外通信服务的问题
[0046]本发明提供一种互联网能力平台服务管理方法、互联网能力平台及计算机可读存储介质,使用互联网能力平台作为统一的资源底座,承载应用程序的能力并提供对外通信,通过不同的容器分工合作,对互联网能力平台服务进行统一管理,对应用程序的能力进行适配发布,使得应用程序的能力在互联网能力平台有序运行,对应用程序的对外通信进行监测,有效实现应用程序的对外通信,有助于提高应用程序的发布效率和服务质量。
Smart Images

Figure CN115981787B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of network technology, and in particular to an Internet capability platform service management method, an Internet capability platform, and a computer-readable storage medium. Background Technology
[0002] With the development of the internet and the expansion of cloud computing applications, the volume of mainstream internet services and the number of users are constantly increasing. Microservice architecture technology provided by internet capability platforms is being used by more and more people, leading to a continuous increase in the services managed by these platforms. Therefore, how to uniformly manage internet capability platform services, ensuring the orderly operation of application capabilities on the platform and effectively realizing external communication services for applications, remains a problem that current technologies have not yet solved. Summary of the Invention
[0003] The technical problem to be solved by the present invention is to address the above-mentioned shortcomings of the prior art by providing a capability service management method, an Internet capability platform, and a computer-readable storage medium, so as to solve the problem of how to uniformly manage Internet capability platform services, so that the capabilities of applications can run in an orderly manner on the Internet capability platform and effectively realize the external communication services of applications.
[0004] In a first aspect, the present invention provides an Internet capability platform service management method, applied to an Internet capability platform, the method comprising:
[0005] Receive the application's compressed package and capability requirements through the server container;
[0006] Capability identification containers match capability adaptation solutions based on capability requirements;
[0007] The capability launcher publishes the capabilities in the compressed package to the capability runtime container according to the capability adaptation scheme.
[0008] Containers enable capabilities to provide external communication for applications;
[0009] The service matching monitoring system monitors the container's external communication capabilities.
[0010] Optionally, receiving the application's compressed package and capability requirements through the server container specifically includes:
[0011] Receive compressed packages from the application via the servo container;
[0012] The server container receives a capability template filled with the application's capability requirements, which include the number of capabilities and the category of capabilities.
[0013] The capability identification container is launched through the servo container, and a capability template filled with the application's capability requirements is sent to the capability identification container.
[0014] Optionally, the process of matching a capability adaptation scheme based on capability requirements using a capability identification container specifically includes:
[0015] The capability identification container receives a capability template filled with the application's capability requirements.
[0016] The capability identification container identifies the quantity and category requirements of capabilities within the capability requirements.
[0017] The container identifies capabilities and matches resource requirements based on the quantity of capabilities, and matches script and configuration file requirements based on the category of capabilities.
[0018] The capability identification container automatically fills in the capability template with resource requirements, script and configuration file requirements to obtain a capability adaptation solution.
[0019] The capability identification container sends the capability adaptation scheme to the server container.
[0020] Optionally, after sending the matched capability adaptation scheme to the server container via the capability identification container, the method further includes:
[0021] The ability to obtain the application from the compressed package via the server container;
[0022] The service container starts the capability launch container according to the capability adaptation scheme.
[0023] Optionally, the step of publishing the capabilities in the compressed package to the capability runtime container through the capability launch container according to the capability adaptation scheme specifically includes:
[0024] The number of containers to run a capability is determined by launching containers based on the resource requirements in the capability adaptation scheme.
[0025] Launch containers using capabilities to start the appropriate number of capability running containers according to the script and configuration file requirements in the capability adaptation scheme;
[0026] The capability launcher publishes the capabilities in the compressed package to the appropriate number of capability run containers.
[0027] Optionally, the capability requirements also include external communication requirements;
[0028] The provision of external communication capabilities for applications through container runtime capabilities specifically includes:
[0029] Each of the corresponding number of capability-running containers runs its own capabilities, including capability-running containers that provide external communication capabilities.
[0030] Containers enable applications to communicate with the outside world by providing the ability to do so.
[0031] Optionally, before monitoring the external communication of the container running the service matching monitoring container, the method further includes:
[0032] Each service container is used to start a corresponding service matching and monitoring container for each container that provides the ability to communicate externally.
[0033] The external communication of the container running the monitoring capability through service matching monitoring specifically includes:
[0034] By monitoring each service matching container, we can monitor the external communication capabilities of each corresponding running container.
[0035] Optionally, the step of monitoring the external communication of each corresponding running container that provides the ability to communicate externally through each service matching monitoring container specifically includes:
[0036] By matching and monitoring each service container according to the capability adaptation scheme, the container running each capability that provides external communication capabilities is obtained;
[0037] By matching each service with the monitoring container, the service behavior template for each capability of the container that provides external communication is automatically filled in. The service behavior template includes the interface type, interface name, security information, and traffic rules for external communication.
[0038] By monitoring each service matching container according to the service behavior template, the traffic of each capability running the corresponding capability running container that provides external communication is monitored for the traffic used for external communication by each corresponding capability running container.
[0039] Secondly, the present invention provides an internet capability platform, comprising:
[0040] A server container is used to receive compressed packages and capability requirements from applications.
[0041] A capability identification container, connected to the servo container, is used to match capability adaptation schemes according to capability requirements;
[0042] A capability launch container, connected to the capability identification container, is used to publish the capabilities in the compressed package to the capability runtime container according to the capability adaptation scheme.
[0043] A capability runtime container, connected to the capability launch container, is used to run the capability to provide external communication for the application;
[0044] A service matching monitoring container is connected to the capability running container to monitor the external communication of the capability running container.
[0045] Thirdly, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the Internet capability platform service management method as described above.
[0046] This invention provides an Internet capability platform service management method, an Internet capability platform, and a computer-readable storage medium. It uses the Internet capability platform as a unified resource foundation to support application capabilities and provide external communication. Through the collaborative work of different containers, it achieves unified management of Internet capability platform services, adapts and publishes application capabilities, enabling the orderly operation of application capabilities on the Internet capability platform. It also monitors the external communication of applications, effectively realizing external communication and helping to improve application release efficiency and service quality. Attached Figure Description
[0047] Figure 1 This is a flowchart of an Internet capability platform service management method according to an embodiment of the present invention;
[0048] Figure 2 This is a schematic diagram of the structure of an Internet capability platform according to an embodiment of the present invention;
[0049] Figure 3 This is a schematic diagram of the structure of another Internet capability platform according to an embodiment of the present invention. Detailed Implementation
[0050] To enable those skilled in the art to better understand the technical solution of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0051] It is understood that the specific embodiments and accompanying drawings described herein are merely for explaining the invention and are not intended to limit the invention.
[0052] It is understood that, without conflict, the various embodiments and features in the embodiments of the present invention can be combined with each other.
[0053] It is understood that, for ease of description, only the parts related to the present invention are shown in the accompanying drawings, while the parts unrelated to the present invention are not shown in the drawings.
[0054] It is understood that each unit or module involved in the embodiments of the present invention may correspond to only one entity structure, or may be composed of multiple entity structures, or multiple units or modules may be integrated into one entity structure.
[0055] It is understood that, without conflict, the functions and steps marked in the flowcharts and block diagrams of this invention may occur in a different order than that marked in the accompanying drawings.
[0056] It is understood that the flowcharts and block diagrams of this invention illustrate the possible architecture, functions, and operations of systems, apparatuses, devices, and methods according to various embodiments of the invention. Each block in the flowchart or block diagram may represent a unit, module, program segment, or code, containing executable instructions for implementing the specified function. Furthermore, each block or combination of blocks in the block diagram and flowchart can be implemented using a hardware-based system to achieve the specified function, or using a combination of hardware and computer instructions.
[0057] It is understood that the units and modules involved in the embodiments of the present invention can be implemented by software or by hardware. For example, the units and modules can be located in a processor.
[0058] To facilitate understanding of this invention, the Internet capability platform will be introduced first.
[0059] The internet capability platform, through systematic integration, unified support, and unified external services, forms an industry digital capability foundation based on the integrated core capability components of the platform. It can provide cross-industry and cross-scenario capability management, providing necessary full-process digital capabilities for industries such as low-altitude airspace, industrial internet, and buildings. It strengthens the accumulation of core technology capabilities, horizontally connects and operates on a platform-based basis, and builds a general internet platform capability for scenario-based application demonstrations. First, it breaks down "capability silos" and overcomes the shortcomings of traditional application development in terms of systematicness, agility, standardization, and replicability. It promotes the upgrading of capability building from specialized domains to full-domain reuse and empowerment, deepens the integration and openness of new-generation information technology innovation applications, and helps top-level applications form a close collaborative application model of end-network-edge-industry. It transforms technical capabilities into a complete 2B connectivity, computing, data, application, and security business empowerment system according to business scenarios.
[0060] Currently, some business systems within the industry have adopted a microservice architecture based on an internet capability platform. However, on the one hand, the architecture mostly uses Spring Cloud (an ordered collection of frameworks), but the versions differ, and the registry centers also vary: Eureka (a service discovery framework developed by Netflix), Nacos (an open-source project from Alibaba, used in microservices), etc., are not unified. Multiple registry centers manage their own microservice applications, and they cannot communicate with each other. This also involves other microservice management components, such as configuration-related, monitoring-related, and logging-related components, which are not uniformly designed and built. On the other hand, due to different enterprise IT development paths and industry development paths, various microservice frameworks have emerged based on different programming languages, such as Spring MVC (a lightweight web development framework based on the MVC design pattern provided by Spring) and Django (an open-source web application framework). Applications developed using the Spring MVC framework cannot run independently; they require middleware such as Tomcat (a free, open-source web application server) to function. Tomcat only works after specifying a port. The concept of microservices, taking the most popular Spring Boot (a brand new open-source framework built on top of Spring) project as an example, provides services to the outside world independently by embedding middleware components in each microservice.
[0061] Therefore, it is necessary to further optimize the service management of the Internet capability platform, adopt the concept of containers to minimize services, provide a unified resource base for the release and operation of applications, realize one-click operation and release of application capabilities, and improve the release efficiency and service quality of applications.
[0062] Example 1:
[0063] like Figure 1 As shown, the present invention provides an Internet capability platform service management method, which is applied to an Internet capability platform. The method includes steps S01-S05.
[0064] Specifically, in this embodiment, the Internet capability platform can be as follows: Figure 2 The structure shown includes: a service container 01, a capability identification container 02, a capability activation container 03, a capability operation container 04, and a service matching monitoring container 05; it can also be as follows: Figure 3 The structure shown includes, in addition to the five containers mentioned above, a pre-defined capability template 06 and a service behavior template 07; the steps of the method are as follows:
[0065] S01, Receive the application's compressed package and capability requirements through the servo container 01;
[0066] S02, Match capability adaptation solutions to capability requirements through capability identification container 02;
[0067] S03. Launch the container using the capability. 03. Publish the capabilities in the compressed package to the capability runtime container according to the capability adaptation scheme. 04.
[0068] S04, Run the container 04 with capabilities to provide external communication for the application;
[0069] S05, Monitor the external communication capabilities of container 04 by monitoring container 05 through service matching.
[0070] The method adopts a platform + capability model, using an internet capability platform as a unified resource foundation to carry application capabilities and provide external communication. Through the division of labor and cooperation of different containers, the internet capability platform services are uniformly managed, and the application capabilities are adapted and released, so that the application capabilities run in an orderly manner on the internet capability platform. The external communication of the application is monitored, effectively realizing the external communication of the application, which helps to improve the release efficiency and service quality of the application.
[0071] Optionally, receiving the application's compressed package and capability requirements through the server container 01 specifically includes:
[0072] Receive the application's compressed package through servo container 01;
[0073] The servo container 01 receives the capability template 06, which contains the capability requirements of the application. The capability requirements include the capability quantity requirements and the capability category requirements.
[0074] The capability identification container 02 is started by the servo container 01, and the capability template 06, which is filled with the capability requirements of the application, is sent to the capability identification container 02.
[0075] Specifically, in this embodiment, the service container 01 serves as the interface for the Internet capability platform to receive application execution tasks. It waits for application developers to upload compressed packages containing the application to the platform, requires application developers to fill in a preset capability template 06, automatically generates a serial number for the application execution task, and adds the capability template 06 to the identification queue before submitting it to the capability identification container 02. The compressed package contains the application image and runtime configuration files. Capability Template 06 can include the following fields: application name; application icon, such as an SVG (Scalable Vector Graphic) icon; application content, i.e., application description or introduction; external adaptation platforms, including web (World Wide Web), PC (personal computer), mobile, etc.; capability quantity requirements, such as the number of microservice components; capability category requirements, including seven capability categories: native Kubernetes application, monolithic application, composite application, Spring Cloud application, Python application, Docker-compose application, and Spring Boot application; data integration requirements, including dependencies between capabilities within the platform; external communication requirements, such as network requests; resource requirements, including memory, CPU (central processing unit), hard disk resources, number of virtual machines, etc.; user logic; business process; and responsible person information, including the responsible person's name and contact information.
[0076] Optionally, the process of matching a capability adaptation scheme based on capability requirements using the capability identification container 02 specifically includes:
[0077] The capability identification container 02 receives the capability template 06, which contains the capability requirements of the application.
[0078] The capability identification container 02 identifies the quantity and category requirements of capabilities within the capability requirements.
[0079] The capability identification container 02 matches resource requirements based on the quantity of capabilities and script and configuration file requirements based on the category of capabilities.
[0080] The capability identification container 02 automatically fills in the resource requirements, script and configuration file requirements into the capability template 06 to obtain a capability adaptation solution.
[0081] The capability adaptation scheme is sent to the service container 01 through the capability identification container 02.
[0082] Specifically, in this embodiment, the capability identification container 02 automatically matches a preset capability adaptation scheme based on the capability template information. The capability identification container 02 then fills the identification result back into the capability template 06 and returns it to the service container 01. An example of the capability template 06 after being filled in is shown in Table 1 below:
[0083] Table 1 Example of a Capability Template
[0084]
[0085]
[0086] Optionally, after sending the matched capability adaptation scheme to the server container 01 through the capability identification container 02, the method further includes:
[0087] The ability to obtain the application from the compressed package is achieved through server container 01;
[0088] The capability startup container 03 is started by servo container 01 according to the capability adaptation scheme.
[0089] Specifically, in this embodiment, after the service container 01 receives the capability template 06 with the identification result, it activates the corresponding capability activation container 03 according to the capability adaptation scheme. The capability activation container 03 is specifically designed for parsing, matching, and generating adaptation schemes for management capabilities. It should be noted that the capability activation container 03 at this time is specifically as follows: Figure 3 The device shown is directly connected to the service container 01, but still has an indirect connection to the capability identification container 02. Figure 2 The structures shown do not conflict.
[0090] Optionally, the step of publishing the capabilities in the compressed package to the capability runtime container 04 via the capability launch container 03 according to the capability adaptation scheme specifically includes:
[0091] The number of capability running containers 04 is determined by starting container 03 based on the resource requirements in the capability adaptation scheme.
[0092] 03. Launch containers using capabilities: Start the corresponding number of capability running containers according to the script and configuration file requirements in the capability adaptation scheme. 04.
[0093] The capability launch container 03 publishes the capabilities in the compressed package to the corresponding number of capability run containers 04.
[0094] Specifically, in this embodiment, the capability launch container 03 operates according to a preset capability adaptation scheme, publishing capabilities to the capability runtime container 04. The number of capability runtime containers 04 is matched according to the capability adaptation scheme and has a certain capacity limit. Capabilities can be shared (low traffic) or exclusively used (high traffic) in the capability runtime container 04. That is, one application can correspond to multiple capability runtime containers 04, and one capability runtime container 04 can correspond to multiple capabilities. The capability launch container 03 publishes capabilities to the corresponding capability runtime container 04 according to the requirements of the "script and configuration file" field.
[0095] Optionally, the capability requirements also include external communication requirements;
[0096] The capability to run container 04 to provide external communication for applications specifically includes:
[0097] Each of the corresponding number of capacity-operating containers 04 has its own operational capabilities, including the capacity-operating containers 04 that provide external communication capabilities.
[0098] Container 04 provides the ability for applications to communicate with the outside world by providing the ability to communicate with the outside world.
[0099] Specifically, in this embodiment, the capability requirements also include data docking requirements. The corresponding number of capability operation containers 04 may also include capability operation containers 04 that provide data docking. Data docking between different capabilities is achieved through the capability operation containers 04 that provide data docking. The capability operation containers 04 that provide external communication are started according to the external communication requirements, and the capability operation containers 04 that provide data docking are started according to the data docking requirements.
[0100] Optionally, before monitoring the external communication of container 04 by monitoring the capability of container 05 through service matching, the method further includes:
[0101] By using servo container 01 to run container 04 for each service providing external communication capabilities, a corresponding service matching monitoring container 05 is started;
[0102] The monitoring of external communication between container 04 and container 05 via service matching monitoring of container 05 specifically includes:
[0103] By monitoring each service, container 05 monitors the external communication capabilities of each corresponding container 04 that provides external communication.
[0104] Specifically, in this embodiment, the capability startup container 03 requests the servo container 01 to start the corresponding service matching monitoring container 05 according to the capability adaptation scheme requirements and the number of capability operation containers 04 that need to provide services to the outside world. The service matching monitoring container 05 corresponds one-to-one with the capability operation containers 04 that are running on the capability platform and need to provide services to the outside world. It is responsible for the sending, receiving, management and monitoring of the external communication of these capability operation containers 04. The capability platform realizes complex, rich and fine-grained traffic control through the service matching monitoring container 05.
[0105] Optionally, the step of monitoring the external communication of each corresponding service-matching monitoring container 04 that provides the capability for external communication through each service-matching monitoring container 05 specifically includes:
[0106] Each service matching monitoring container 05 obtains each capability that provides external communication capabilities from each corresponding capacity running container 04 according to the capability adaptation scheme;
[0107] By automatically filling in the service behavior template 07 for each capability of the corresponding outward communication capability running container 04 through each service matching monitoring container 05, the service behavior template 07 includes the interface type, interface name, security information, and traffic rules for outward communication;
[0108] By monitoring each service matching container 05 according to the service behavior template 07, the traffic of each capability running container 04 that provides external communication is monitored for the traffic used by each corresponding capability running container 04 for external communication.
[0109] Specifically, in this embodiment, when the service matching monitoring container 05 starts, it needs to generate a corresponding service behavior template 07 based on the capability adaptation scheme (i.e., capability template 06). This template can be automatically filled in based on the information in the pre-filled capability template 06 using a preset empty service behavior template. The service behavior template 07 is used to control and manage services. Each capability logically corresponds to an advanced service matching monitoring container, responsible for the distribution of communication and management signals under that capability. The capability and the automatically filled service behavior template 07 have a one-to-one relationship. The advanced service matching monitoring container corresponding to the capability monitors and manages traffic at the capability level, including monitoring traffic routing paths, routing allocation, and API (Application Program Interface) call relationships. The advanced service matching monitoring containers constitute the service matching monitoring container 05. The service matching monitoring container 05 and the capability running container 04 have a one-to-one relationship, with the latter only responsible for monitoring the corresponding container. The service behavior template 07 is stored in the advanced service matching monitoring container and includes information such as the service interface type, interface name, security information, and traffic rules. An example of a service behavior template 07 is shown in Table 2 below.
[0110] Table 2 Examples of Service Behavior Templates
[0111]
[0112] The Internet capability platform service management method described in Example 1 can be applied to industrial Internet capability platforms based on IoT and container technologies in production areas of the process industry. Using the Internet capability platform as a unified resource base, it carries the capabilities of applications and provides external communication, which helps to improve the efficiency of application release and service quality. By matching the source code, image package, etc. of the application capabilities planned to run on the platform with predefined "templates", it can realize one-click release and operation of capabilities, which helps to solve the compatibility problems of different technology stacks, architectures, programming languages, and deployment methods.
[0113] Example 2:
[0114] like Figure 2 and 3 As shown, Embodiment 2 of the present invention provides an Internet capability platform, including:
[0115] Servo container 01 is used to receive the application's compressed package and capability requirements;
[0116] Capability identification container 02 is connected to the servo container 01 and is used to match capability adaptation schemes according to capability requirements.
[0117] Capability launch container 03 is connected to capability identification container 02 and is used to publish the capabilities in the compressed package to capability runtime container 04 according to the capability adaptation scheme.
[0118] Capability runtime container 04, connected to the capability launch container 03, is used to run capabilities to provide external communication for applications;
[0119] Service matching monitoring container 05 is connected to the capability operation container 04 and is used to monitor the external communication of the capability operation container 04.
[0120] Optionally, servo container 01 is specifically used for:
[0121] Receive the application's compressed file;
[0122] Receive Capability Template 06, which contains the application's capability requirements, including the quantity and category of capabilities.
[0123] Start the capability identification container 02 and send the capability template 06, which contains the application's capability requirements, to the capability identification container 02.
[0124] Optionally, the capability identification container 02 is specifically used for:
[0125] Receive Capability Template 06, which contains the application's capability requirements.
[0126] Identify the quantity and category requirements of capabilities within the capability requirements;
[0127] Match resource requirements based on the quantity of capabilities required, and match script and configuration file requirements based on the category of capabilities required;
[0128] Automatically fill in the resource requirements, script and configuration file requirements into capability template 06 to obtain a capability adaptation solution;
[0129] Send the capability adaptation solution to server container 01.
[0130] Optionally, servo container 01 is also used for:
[0131] The ability to obtain the application from the compressed file;
[0132] Start the capability startup container 03 according to the capability adaptation scheme.
[0133] Optionally, the capability to launch container 03 is specifically used for:
[0134] The number of capacity operation containers 04 is determined based on the resource requirements in the capacity adaptation scheme.
[0135] Start the corresponding number of capability running containers 04 according to the script and configuration file requirements in the capability adaptation scheme;
[0136] Publish the capabilities in the compressed package to the appropriate number of capability runtime containers 04.
[0137] Optionally, the capability requirements also include data integration requirements and external communication requirements;
[0138] Capability Run Container 04, specifically used for:
[0139] Each of the corresponding number of capacity-operating containers 04 has its own operational capabilities, including the capacity-operating containers 04 that provide external communication capabilities.
[0140] Container 04 provides the ability for applications to communicate with the outside world by providing the ability to communicate with the outside world.
[0141] Optionally, servo container 01 is also specifically used for:
[0142] For each container that provides external communication capabilities, start a corresponding service matching and monitoring container 05;
[0143] Service matching monitoring container 05 is specifically used for:
[0144] By monitoring each service, container 05 monitors the external communication capabilities of each corresponding container 04 that provides external communication.
[0145] Optionally, the service matches monitoring container 05, specifically for:
[0146] Each service matching monitoring container 05 obtains each capability that provides external communication capabilities from each corresponding capacity running container 04 according to the capability adaptation scheme;
[0147] By automatically filling in the service behavior template 07 for each capability of the corresponding outward communication capability running container 04 through each service matching monitoring container 05, the service behavior template 07 includes the interface type, interface name, security information, and traffic rules for outward communication;
[0148] By monitoring each service matching container 05 according to the service behavior template 07, the traffic of each capability running container 04 that provides external communication is monitored for the traffic used by each corresponding capability running container 04 for external communication.
[0149] The Internet capability platform described in Example 2 can be an industrial Internet capability platform based on IoT and container technology in the production area of the process industry. Using the Internet capability platform as a unified resource base, it carries the capabilities of applications and provides external communication, which helps to improve the efficiency of application release and service quality. By matching the source code, image package, etc. of the application capabilities planned to run on the platform with predefined "templates", one-click release and operation of capabilities can be achieved, which helps to solve the compatibility problems of different technology stacks, architectures, programming languages and deployment methods.
[0150] Example 3:
[0151] Embodiment 3 of the present invention provides a computer-readable storage medium storing a computer program. When the computer program is run by a processor, it implements the Internet capability platform service management method as described in Embodiment 1.
[0152] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules, or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory or other memory technologies, CD-ROM (Compact Disc Read-Only Memory), DVD or other optical disc storage, cartridges, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer.
[0153] In addition, the present invention may also provide a computer device including a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the Internet capability platform service management method as described in Embodiment 1.
[0154] The memory is connected to the processor. The memory can be flash memory, read-only memory or other types of memory. The processor can be a central processing unit or a microcontroller.
[0155] Embodiments 1-3 of this invention provide an Internet capability platform service management method, an Internet capability platform, and a computer-readable storage medium. The Internet capability platform is used as a unified resource base to carry the capabilities of applications and provide external communication. Through the division of labor and cooperation of different containers, the Internet capability platform services are managed in a unified manner, and the capabilities of applications are adapted and released, so that the capabilities of applications run in an orderly manner on the Internet capability platform. The external communication of applications is monitored, and the external communication of applications is effectively realized, which helps to improve the release efficiency and service quality of applications.
[0156] It is understood that the above embodiments are merely exemplary implementations used to illustrate the principles of the present invention, and the present invention is not limited thereto. For those skilled in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.
Claims
1. A method for managing internet capability platform services, characterized in that, Applied to an internet capability platform, the method includes: The server container receives the application's compressed package and capability requirements, specifically including: The compressed package from the application is received via the server container. The server container receives a capability template containing the application's capability requirements, including the required number of capabilities and the required categories of capabilities. The capability identification container is launched through the servo container, and a capability template filled with the application's capability requirements is sent to the capability identification container. The capability identification container matches capability adaptation solutions based on capability requirements, specifically including: The capability identification container receives a capability template containing the application's capability requirements. The capability identification container identifies the quantity and category of capabilities required within the capability requirements. The container identifies capabilities and matches resource requirements based on the quantity of capabilities needed, and matches script and configuration file requirements based on the type of capabilities needed. The capability identification container automatically fills in the capability template with resource requirements, script and configuration file requirements to obtain a capability adaptation solution. The capability launcher publishes the capabilities in the compressed package to the capability runtime container according to the capability adaptation scheme. Containers enable capabilities to provide external communication for applications; The service matching monitoring system monitors the container's external communication capabilities.
2. The method according to claim 1, characterized in that, The process of matching capability adaptation schemes based on capability requirements through capability identification containers further includes: The capability identification container sends the capability adaptation scheme to the server container.
3. The method according to claim 2, characterized in that, After sending the capability adaptation scheme to the server container via the capability identification container, the method further includes: The ability to obtain the application from the compressed package via the server container; The service container starts the capability launch container according to the capability adaptation scheme.
4. The method according to claim 3, characterized in that, The step of publishing the capabilities in the compressed package to the capability runtime container through the capability launch container according to the capability adaptation scheme specifically includes: The number of containers to run a capability is determined by launching containers based on the resource requirements in the capability adaptation scheme. Launch containers using capabilities to start the appropriate number of capability running containers according to the script and configuration file requirements in the capability adaptation scheme; The capability launcher publishes the capabilities in the compressed package to the appropriate number of capability run containers.
5. The method according to claim 4, characterized in that, The capability requirements also include external communication requirements; The provision of external communication capabilities for applications through container runtime capabilities specifically includes: Each of the corresponding number of capability-running containers runs its own capabilities, including capability-running containers that provide external communication capabilities. Containers enable applications to communicate with the outside world by providing the ability to do so.
6. The method according to claim 5, characterized in that, Before monitoring the external communication of the container running the service matching monitoring container, the method further includes: Each service container is used to start a corresponding service matching and monitoring container for each container that provides the ability to communicate externally. The external communication of the container running the monitoring capability through service matching monitoring specifically includes: By monitoring each service matching container, we can monitor the external communication capabilities of each corresponding running container.
7. The method according to claim 6, characterized in that, The process of monitoring the external communication capabilities of each corresponding running container by matching each service with the monitoring container specifically includes: By matching and monitoring each service container according to the capability adaptation scheme, the container running each capability that provides external communication capabilities is obtained; By matching each service with the monitoring container, the service behavior template for each capability of the container that provides external communication is automatically filled in. The service behavior template includes the interface type, interface name, security information, and traffic rules for external communication. By monitoring each service matching container according to the service behavior template, the traffic of each capability running the corresponding capability running container that provides external communication is monitored for the traffic used for external communication by each corresponding capability running container.
8. An Internet capability platform service management device, characterized in that, include: The server container is used to receive the application's compressed package and capability requirements, specifically including: The compressed package from the application is received via the server container. The server container receives a capability template containing the application's capability requirements, including the required number of capabilities and the required categories of capabilities. The capability identification container is launched through the servo container, and a capability template filled with the application's capability requirements is sent to the capability identification container. A capability identification container, connected to the service container, is used to match a capability adaptation scheme according to capability requirements, specifically including: The capability identification container receives a capability template containing the application's capability requirements. The capability identification container identifies the quantity and category of capabilities required within the capability requirements. The container identifies capabilities and matches resource requirements based on the quantity of capabilities needed, and matches script and configuration file requirements based on the type of capabilities needed. The capability identification container automatically fills in the capability template with resource requirements, script and configuration file requirements to obtain a capability adaptation solution. A capability launch container, connected to the capability identification container, is used to publish the capabilities in the compressed package to the capability runtime container according to the capability adaptation scheme. A capability runtime container, connected to the capability launch container, is used to run the capability to provide external communication for the application; A service matching monitoring container is connected to the capability running container to monitor the external communication of the capability running container.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the Internet capability platform service management method as described in any one of claims 1-7.
Citation Information
Patent Citations
Application deployment method, device and equipment
CN108182095A
A container service hosting system and a method for providing container service
CN109032755A