CN111143033B - Operation execution method and device based on scalable operation system - Google Patents

Operation execution method and device based on scalable operation system Download PDF

Info

Publication number
CN111143033B
CN111143033B CN201911329529.7A CN201911329529A CN111143033B CN 111143033 B CN111143033 B CN 111143033B CN 201911329529 A CN201911329529 A CN 201911329529A CN 111143033 B CN111143033 B CN 111143033B
Authority
CN
China
Prior art keywords
target
virtual container
preset
determining
virtual
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911329529.7A
Other languages
Chinese (zh)
Other versions
CN111143033A (en
Inventor
尹德帅
徐志方
刘超
王方前
唐洁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN201911329529.7A priority Critical patent/CN111143033B/en
Publication of CN111143033A publication Critical patent/CN111143033A/en
Application granted granted Critical
Publication of CN111143033B publication Critical patent/CN111143033B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/161Computing infrastructure, e.g. computer clusters, blade chassis or hardware partitioning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45579I/O management, e.g. providing access to device drivers or storage
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention provides an operation execution method and device based on a scalable operation system, comprising the following steps: determining a target operation indicated by the received target request; invoking a target virtual container for executing a target operation in a preset virtual container cluster, wherein the preset virtual container cluster comprises a plurality of virtual containers, and different virtual containers have the capability of executing different operations; the target operation is performed using a target virtual container. The invention solves the problems of high development cost and resource waste of the telescopic operating system in the prior art.

Description

Operation execution method and device based on scalable operation system
Technical Field
The present invention relates to the field of communications, and in particular, to a method and apparatus for performing operations based on a scalable operating system.
Background
For the Internet of things, the Internet of things is a huge network structure system, in the Internet of things, a plurality of equipment nodes exist, the nodes not only have different completed functions, but also have certain differences in hardware configuration, and if a unified operating system is adopted, the whole functional requirements are difficult to meet.
Therefore, the Internet of things has higher requirements on the operating system, and particularly, the operating system applied in the Internet of things can complete relevant functional configuration according to the task requirements of the equipment nodes. For a simple example, the detection sensor in the internet of things only needs to complete task scheduling and data communication, so that an operating system of the detection sensor does not need too complex functions, and a smaller kernel can meet requirements. In addition to scheduling tasks and communicating data, some important control devices exist in the internet of things, and recording of files and displaying of graphics are completed by the devices, so that an operating system of the devices cannot be too small, and usually, KB level or MB level should be achieved, and some devices even need more space.
For this purpose, the embedded operating system is required to be able to stretch, and this objective can be achieved by a modular design method, that is, an open architecture system with a stretching capability is adopted, and relevant modules are designed according to actual functional requirements.
In order to realize the telescopic requirement, the existing internet of things operating system needs to customize different component modules in advance according to the relevant requirements of versions and hardware, and some component modules may have only a few functions different in different versions, and in order to adapt to the requirements of different versions, the whole component module also needs to be developed and customized, so that the development of a telescopic operating system process can be caused, a large number of redundant component modules may exist, on one hand, the development cost of the operating system is increased, and on the other hand, the updating, upgrading and modifying difficulty of the operating system are also increased.
Aiming at the problems of high development cost and resource waste of a telescopic operating system in the prior art in the related art, no effective solution exists at present.
Disclosure of Invention
The embodiment of the invention provides an operation execution method and device based on a scalable operation system, which at least solve the problems of high development cost and resource waste of the scalable operation system in the prior art in the related art.
According to an embodiment of the present invention, there is provided an operation execution method based on a scalable operating system, including: determining a target operation indicated by the received target request; invoking a target virtual container for executing the target operation in a preset virtual container cluster, wherein the preset virtual container cluster comprises a plurality of virtual containers, and different virtual containers have the capability of executing different operations; and executing the target operation by using the target virtual container.
Optionally, before the target virtual container for executing the target operation is called in the preset virtual container cluster, the method further includes: determining a plurality of function codes obtained by splitting each preset function component in a preset operating system, wherein one function code is used for realizing one function of a plurality of functions included in the preset function component; and creating the virtual containers respectively corresponding to the functional codes in the plurality of functional codes to obtain the preset virtual container clusters.
Optionally, before the target virtual container for executing the target operation is called in the preset virtual container cluster, the method further includes: monitoring the use state of the local resources; and determining the number of the target virtual containers according to the monitoring result.
Optionally, determining the number of the target virtual containers according to the monitoring result includes: according to the historical flow data obtained by monitoring, predicting the flow data at the next moment by using a pre-established prediction model so as to obtain predicted flow data; determining a predicted service capability value corresponding to the predicted traffic data; determining that the number of target virtual containers invoked is a ratio of the predicted service capability value to a service capability value of a single virtual container.
Optionally, invoking the target virtual container for executing the target operation in the preset virtual container cluster includes: determining a target host system in which a target virtual container is located; and when the target interface on the target host system is determined to be in an idle state, calling the target virtual container on the target host system through the target interface.
Optionally, invoking the target virtual container for executing the target operation in the preset virtual container cluster includes: determining a container image of the target virtual container; pulling a container mirror image of the target virtual container in the preset virtual container cluster; performing the target operation using the target virtual container includes: running the container image based on the generated environmental parameters to perform the target operation.
According to another embodiment of the present invention, there is provided an operation performing apparatus based on a scalable operating system, including: a first determining module, configured to determine a target operation indicated by the received target request; the calling module is used for calling a target virtual container for executing the target operation in a preset virtual container cluster, wherein the preset virtual container cluster comprises a plurality of virtual containers, and different virtual containers have the capability of executing different operations; and the execution module is used for executing the target operation by using the target virtual container.
Optionally, the apparatus further comprises: a second determining module, configured to determine a plurality of function codes obtained by splitting each preset function component in a preset operating system, where one of the function codes is used to implement one of a plurality of functions included in the preset function component; the creation module is used for creating the virtual containers respectively corresponding to the functional codes in the plurality of functional codes so as to obtain the preset virtual container cluster.
According to a further embodiment of the invention, there is also provided a storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the invention, there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
By the invention, the target operation indicated by the received target request is determined; invoking a target virtual container for executing a target operation in a preset virtual container cluster, wherein the preset virtual container cluster comprises a plurality of virtual containers, and different virtual containers have the capability of executing different operations; the target operation is performed using the target virtual container. Therefore, the problems of high development cost and resource waste of the telescopic operating system in the prior art can be solved, and the effect of saving the development cost is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiments of the invention and together with the description serve to explain the invention and do not constitute a limitation on the invention. In the drawings:
FIG. 1 is a block diagram of a hardware architecture of a mobile terminal based on a scalable operating system operation execution method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a scalable operating system based operation execution in accordance with an embodiment of the present invention;
FIG. 3 is a specific flow diagram of a scalable Internet of things based operating system in accordance with an alternative embodiment of the present invention;
FIG. 4 is a diagram of a specific system architecture based on a scalable Internet of things operating system in accordance with an alternative embodiment of the present invention;
fig. 5 is a block diagram of an operation performing device based on a scalable operating system according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiment provided in the first embodiment of the present application may be executed in a mobile terminal, a computer terminal or a similar computing device. Taking a mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of a mobile terminal according to an operation execution method based on a scalable operation system according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal 10 may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, and optionally a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal 10 may also include more or fewer components than shown in FIG. 1 or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for performing an operation based on a scalable operating system in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 106 is arranged to receive or transmit data via a network. The specific examples of networks described above may include wireless networks provided by the communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet wirelessly.
In this embodiment, a method for performing operations based on a scalable operation system running on the mobile terminal is provided, and fig. 2 is a flowchart of performing operations based on a scalable operation system according to an embodiment of the present invention, as shown in fig. 2, where the flowchart includes the following steps:
step S202, determining a target operation indicated by the received target request;
the user inputs a request on the equipment node of the internet of things, wherein the request can be the request of the equipment node to execute operations such as data transmission, connection establishment, authority authentication, verification and the like.
Step S204, a target virtual container for executing the target operation is called in a preset virtual container cluster, wherein the preset virtual container cluster comprises a plurality of virtual containers, and different virtual containers have the capability of executing different operations;
the preset virtual container clusters may be pre-established on different hosts, and each virtual container may perform different operations, for example, each virtual container may perform one or more of data transmission, connection establishment, authority authentication, verification, and the like.
Step S206, executing the target operation using the target virtual container.
The invoked target virtual container may be one or more, and the operation requested by the user is executed through the virtual container with various capabilities.
Through the steps, the target operation indicated by the received target request is determined; invoking a target virtual container for executing a target operation in a preset virtual container cluster, wherein the preset virtual container cluster comprises a plurality of virtual containers, and different virtual containers have the capability of executing different operations; the target operation is performed using the target virtual container. Therefore, the problems of high development cost and resource waste of the telescopic operating system in the prior art can be solved, and the effect of saving the development cost is achieved.
Alternatively, the execution subject of the above steps may be a terminal or the like, but is not limited thereto.
As an optional embodiment, before the invoking the target virtual container for performing the target operation in the preset virtual container cluster, the method further includes: determining a plurality of function codes obtained by splitting each preset function component in a preset operating system, wherein one function code is used for realizing one function of a plurality of functions included in the preset function component; and creating the virtual containers respectively corresponding to the functional codes in the plurality of functional codes to obtain the preset virtual container clusters. In this embodiment, the operating system includes a plurality of functional components, each of which may implement a different function, for example, a data communication component in the operating system, and in order to implement a communication function, the component may be configured by: the system comprises a connection establishment function, a transmission function, a permission authentication function, a verification function and other sub-functions which are matched and coordinated together. The method comprises the steps of carrying out micro-service transformation on functional components of an operating system, abstracting atomic capabilities which are finest in granularity and cannot be split according to functions of the components, and constructing an atomic capability library by the atomic capabilities obtained by abstraction. For example, the data communication component may be split into: connection establishment capability, transmission capability, rights authentication capability, verification capability, etc. Firstly, each functional component required by an operating system can be subjected to micro-service splitting, functional codes corresponding to each atomic capability are split, an atomic capability library is formed by the atomic capabilities, and the atomic capability library contains the atomic capabilities corresponding to all functions of the operating system.
As an optional embodiment, before the invoking the target virtual container for performing the target operation in the preset virtual container cluster, the method further includes: monitoring the use state of the local resources; and determining the number of the target virtual containers according to the monitoring result. In this embodiment, after the operating system is started, the usage conditions of the physical hardware platform of the operating system and the virtual container cluster can be monitored through the telescopic control module. Compared with the virtual containers, the life cycle of the physical host is longer, so that resource optimization is required for the physical host, and particularly when a plurality of virtual containers run on the same physical host, the resource allocation problem is required to be fully considered, so that the related indexes of the physical host are required to be monitored. The relevant monitoring indexes of the physical host include host CPU usage, host memory usage, host network bandwidth, the number of containers running on the host, and the like. Because virtual containers share operating system physical hardware resources, containers are also required to be reasonably allocated according to the use condition of the container resources. The virtual cluster service condition is monitored by monitoring the indexes such as CPU occupancy rate, memory usage amount, disk input and output, network flow and the like of the virtual container.
As an alternative embodiment, determining the number of the target virtual containers according to the monitoring result includes: according to the historical flow data obtained by monitoring, predicting the flow data at the next moment by using a pre-established prediction model so as to obtain predicted flow data; determining a predicted service capability value corresponding to the predicted traffic data; determining that the number of target virtual containers invoked is a ratio of the predicted service capability value to a service capability value of a single virtual container. In this embodiment, the prediction module in the expansion control module models according to the collected historical flow data of the operating system through a prediction algorithm to predict the flow data at the next moment. Specifically, the flow data may be predicted using a quadratic exponential smoothing method, and the calculation formula of the quadratic exponential smoothing method is referred to as the following formula:
wherein,is the first exponential smoothing value of the t time, x t For the actual flow observation of time t, < >>The value is the second exponential smoothing value of the t th time, and alpha is the smoothing coefficient.
The predictive model of the quadratic exponential smoothing method is as follows: f (F) t+T =a t +b t T
Wherein F is t+T t+T is the predicted value of future prediction, a t And b t The calculation formulas of the model parameters are as follows:
and the expansion control module can determine the number of virtual containers to be started according to the flow data predicted value and the current use data of the CPU.
In the scheme, the number of virtual containers to be started can be calculated and determined according to the flow data. For example, assume that the service capability of a single container is C 0 And C, determining the number of virtual containers to be started by the telescopic control module as follows:
as an alternative embodiment, invoking the target virtual container for performing the target operation in the preset virtual container cluster includes: determining a target host system in which a target virtual container is located; and when the target interface on the target host system is determined to be in an idle state, calling the target virtual container on the target host system through the target interface. In this embodiment, the expansion control module may determine, according to the port occupation and the resource occupation, a node corresponding to the virtual container to be created on the host system. Specifically, the expansion control module may discard the port specified by the virtual container to be created by checking whether the port is already occupied on the host system, if so; the resource occupation is mainly to check whether the available resources on the host system can meet the resource use requirement of the virtual container to be created, and if not, the node is also abandoned. Through the screening of the steps, the telescopic control module can determine a host system corresponding to the virtual container to be created.
As an alternative embodiment, invoking the target virtual container for performing the target operation in the preset virtual container cluster includes: determining a container image of the target virtual container; pulling a container mirror image of the target virtual container in the preset virtual container cluster; performing the target operation using the target virtual container includes: running the container image based on the generated environmental parameters to perform the target operation. In this embodiment, the expansion control module creates virtual containers on the host system, instantiates atomic capabilities corresponding to the functional components by executing the functional components through the virtual containers, and utilizes the virtual container instances to implement the related functions of the functional components. The flexible control module downloads the virtual container mirror image from the virtual container cluster according to the scheduling information, and starts the virtual container, and the specific scheduling process is as follows: 1) The telescopic control module determines corresponding container mirror images and resource limitation conditions according to the virtual container information; 2) If the corresponding container mirror image does not exist on the current node, pulling the mirror image to the virtual container cluster; 3) Creating a working catalog corresponding to the virtual container and generating necessary environment variables and parameters of the virtual container; 4) The parameters required by the virtual container to run the command line are constructed and the virtual container creation interface is invoked to make the creation of the virtual container.
As an alternative embodiment, a specific flow based on the scalable Internet of things operating system is shown in FIG. 3, and mainly comprises the following steps:
step 1: according to the functions of each component, abstracting out the atomic capacity and forming an atomic capacity library by the atomic capacity;
step 2: acquiring the use requirement of the operating system, and determining a functional component corresponding to the requirement;
step 3: determining the number of virtual containers to be started according to the use condition of the operating system object;
step 4: scheduling and distributing the physical layer resources according to the physical layer resources, and determining a host system corresponding to the virtual container to be created;
step 5: creating a virtual container and instantiating atomic capabilities corresponding to the functional components through the virtual container.
The specific system architecture based on the scalable internet of things operating system provided in the present application is shown in fig. 4, and mainly includes: the system comprises a virtual container cluster, a telescopic control module, a host system and a physical hardware platform, wherein the telescopic control module counts the resource use condition of the physical hardware platform and the virtual container and the function requirement of an operating system, further judges whether the system needs to be expanded or contracted according to the acquired information, dispatches the corresponding virtual container from the virtual container cluster according to the expansion requirement when judging that the operating system needs to be expanded, and forms the corresponding functional component through the virtual container so as to realize the expansion of the operating system. On the contrary, when the operating system is judged to be required to shrink, the container can be destroyed through the shrink control system, so that the shrink of the operating system is realized.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present invention.
In this embodiment, an operation executing device based on a scalable operation system is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and will not be described again. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 5 is a block diagram of an operation performing apparatus based on a scalable operating system according to an embodiment of the present invention, as shown in fig. 5, the apparatus including: a first determining module 52, configured to determine a target operation indicated by the received target request; a calling module 54, configured to call a target virtual container for executing the target operation in a preset virtual container cluster, where the preset virtual container cluster includes a plurality of virtual containers, and different virtual containers have the capability of executing different operations; an execution module 56 for executing the target operation using the target virtual container.
As an alternative embodiment, the apparatus further comprises: a second determining module, configured to determine a plurality of function codes obtained by splitting each preset function component in a preset operating system, where one of the function codes is used to implement one of a plurality of functions included in the preset function component; the creation module is used for creating the virtual containers respectively corresponding to the functional codes in the plurality of functional codes so as to obtain the preset virtual container cluster.
As an optional embodiment, the foregoing apparatus is further configured to monitor, before the invoking, in the preset virtual container cluster, a target virtual container for performing the target operation, a usage status of a local resource; and determining the number of the target virtual containers according to the monitoring result.
As an optional embodiment, the apparatus is further configured to predict, according to the historical flow data obtained by monitoring, flow data at a next moment by using a pre-established prediction model, so as to obtain predicted flow data; determining a predicted service capability value corresponding to the predicted traffic data; determining that the number of target virtual containers invoked is a ratio of the predicted service capability value to a service capability value of a single virtual container.
As an optional embodiment, the calling module is further configured to determine a target host system where the target virtual container is located; and when the target interface on the target host system is determined to be in an idle state, calling the target virtual container on the target host system through the target interface.
As an optional embodiment, the calling module is further configured to determine a container image of the target virtual container; pulling a container mirror image of the target virtual container in the preset virtual container cluster; the execution module is further configured to execute the container image based on the generated environmental parameter to execute the target operation.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in the same processor; alternatively, the above modules may be located in different processors in any combination.
An embodiment of the invention also provides a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, determining a target operation indicated by a received target request;
s2, calling a target virtual container for executing the target operation in a preset virtual container cluster, wherein the preset virtual container cluster comprises a plurality of virtual containers, and different virtual containers have the capability of executing different operations;
s3, executing the target operation by using the target virtual container.
Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, determining a target operation indicated by a received target request;
s2, calling a target virtual container for executing the target operation in a preset virtual container cluster, wherein the preset virtual container cluster comprises a plurality of virtual containers, and different virtual containers have the capability of executing different operations;
s3, executing the target operation by using the target virtual container.
Alternatively, specific examples in this embodiment may refer to examples described in the foregoing embodiments and optional implementations, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may alternatively be implemented in program code executable by computing devices, so that they may be stored in a memory device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps within them may be fabricated into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A scalable operating system-based operation execution method, comprising:
determining a target operation indicated by the received target request;
invoking a target virtual container for executing the target operation in a preset virtual container cluster, wherein the preset virtual container cluster comprises a plurality of virtual containers, and different virtual containers have the capability of executing different operations;
wherein the different operations include at least one of: data transmission, connection establishment, authority authentication and verification;
performing the target operation using the target virtual container;
wherein, before the target virtual container for executing the target operation is called in the preset virtual container cluster, the method further comprises:
monitoring the use state of the local resources;
determining the number of the target virtual containers according to the monitoring result;
the method for determining the number of the target virtual containers according to the monitoring result comprises the following steps:
according to the historical flow data obtained by monitoring, predicting the flow data at the next moment by using a pre-established prediction model so as to obtain predicted flow data;
the prediction model at least comprises a prediction model of a secondary exponential smoothing method, and a prediction value obtained by the prediction model of the secondary exponential smoothing method according to future prediction period number and model parameters is the predicted flow data;
determining a predicted service capability value corresponding to the predicted traffic data;
determining that the number of target virtual containers invoked is a ratio of the predicted service capability value to a service capability value of a single virtual container.
2. The method of claim 1, wherein prior to the invoking the target virtual container for performing the target operation in the preset virtual container cluster, the method further comprises:
determining a plurality of function codes obtained by splitting each preset function component in a preset operating system, wherein one function code is used for realizing one function of a plurality of functions included in the preset function component;
and creating the virtual containers respectively corresponding to the functional codes in the plurality of functional codes to obtain the preset virtual container clusters.
3. The method of claim 1, wherein invoking the target virtual container for performing the target operation in the preset virtual container cluster comprises:
determining a target host system in which a target virtual container is located;
and when the target interface on the target host system is determined to be in an idle state, calling the target virtual container on the target host system through the target interface.
4. The method of claim 1, wherein invoking the target virtual container for performing the target operation in the preset virtual container cluster comprises:
determining a container image of the target virtual container; pulling a container mirror image of the target virtual container in the preset virtual container cluster;
performing the target operation using the target virtual container includes: running the container image based on the generated environmental parameters to perform the target operation.
5. An operation execution device based on a scalable operation system, comprising:
a first determining module, configured to determine a target operation indicated by the received target request;
the calling module is used for calling a target virtual container for executing the target operation in a preset virtual container cluster, wherein the preset virtual container cluster comprises a plurality of virtual containers, and different virtual containers have the capability of executing different operations;
wherein the different operations include at least one of: data transmission, connection establishment, authority authentication and verification;
an execution module for executing the target operation using the target virtual container;
the device is further used for monitoring the use state of the local resource before the target virtual container for executing the target operation is called in the preset virtual container cluster; determining the number of the target virtual containers according to the monitoring result;
the prediction model at least comprises a prediction model of a secondary exponential smoothing method, and a prediction value obtained by the prediction model of the secondary exponential smoothing method according to future prediction period number and model parameters is prediction flow data;
the device is also used for predicting the flow data at the next moment by using a pre-established prediction model according to the historical flow data obtained by monitoring so as to obtain predicted flow data; determining a predicted service capability value corresponding to the predicted traffic data; determining that the number of target virtual containers invoked is a ratio of the predicted service capability value to a service capability value of a single virtual container.
6. The apparatus of claim 5, wherein the apparatus further comprises:
a second determining module, configured to determine a plurality of function codes obtained by splitting each preset function component in a preset operating system, where one of the function codes is used to implement one of a plurality of functions included in the preset function component; the creation module is used for creating the virtual containers respectively corresponding to the functional codes in the plurality of functional codes so as to obtain the preset virtual container cluster.
7. A storage medium having a computer program stored therein, wherein the computer program is arranged to perform the method of any of claims 1 to 4 when run.
8. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the method of any of the claims 1 to 4.
CN201911329529.7A 2019-12-20 2019-12-20 Operation execution method and device based on scalable operation system Active CN111143033B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911329529.7A CN111143033B (en) 2019-12-20 2019-12-20 Operation execution method and device based on scalable operation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911329529.7A CN111143033B (en) 2019-12-20 2019-12-20 Operation execution method and device based on scalable operation system

Publications (2)

Publication Number Publication Date
CN111143033A CN111143033A (en) 2020-05-12
CN111143033B true CN111143033B (en) 2024-03-22

Family

ID=70519214

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911329529.7A Active CN111143033B (en) 2019-12-20 2019-12-20 Operation execution method and device based on scalable operation system

Country Status (1)

Country Link
CN (1) CN111143033B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992525A (en) * 2021-10-12 2022-01-28 支付宝(杭州)信息技术有限公司 Method and device for adjusting number of applied containers

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408067A (en) * 2018-10-22 2019-03-01 浙江明度智控科技有限公司 A kind of data managing method and server based on monomer applications
CN110035147A (en) * 2019-03-19 2019-07-19 华为技术有限公司 A kind of method and electronic equipment for protecting the movable part of electronic equipment
CN110073301A (en) * 2017-08-02 2019-07-30 强力物联网投资组合2016有限公司 The detection method and system under data collection environment in industrial Internet of Things with large data sets

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110073301A (en) * 2017-08-02 2019-07-30 强力物联网投资组合2016有限公司 The detection method and system under data collection environment in industrial Internet of Things with large data sets
CN109408067A (en) * 2018-10-22 2019-03-01 浙江明度智控科技有限公司 A kind of data managing method and server based on monomer applications
CN110035147A (en) * 2019-03-19 2019-07-19 华为技术有限公司 A kind of method and electronic equipment for protecting the movable part of electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"奇蛙联合ServiceComb微服务化,打造无人机智慧控制大脑";微服务ServiceComb社区;《CSDN》;全文 *

Also Published As

Publication number Publication date
CN111143033A (en) 2020-05-12

Similar Documents

Publication Publication Date Title
CN112153700B (en) Network slice resource management method and equipment
CN110704186B (en) Computing resource allocation method and device based on hybrid distribution architecture and storage medium
US10719343B2 (en) Optimizing virtual machines placement in cloud computing environments
CN115328663B (en) Method, device, equipment and storage medium for scheduling resources based on PaaS platform
CN111966500B (en) Resource scheduling method and device, electronic equipment and storage medium
CN108431796B (en) Distributed resource management system and method
CN112789832B (en) Dynamic slice priority handling
KR100998391B1 (en) Method, system and computer program for dynamic resources allocation
CN112363813A (en) Resource scheduling method and device, electronic equipment and computer readable medium
CN108572845B (en) Upgrading method of distributed micro-service cluster and related system
CN111464659A (en) Node scheduling method, node pre-selection processing method, device, equipment and medium
CN111880936A (en) Resource scheduling method and device, container cluster, computer equipment and storage medium
CN113886069A (en) Resource allocation method and device, electronic equipment and storage medium
CN115033340A (en) Host selection method and related device
CN110933178B (en) Method for adjusting node configuration in cluster system and server
Incerto et al. Symbolic performance adaptation
CN111143033B (en) Operation execution method and device based on scalable operation system
CN115686805A (en) GPU resource sharing method and device, and GPU resource sharing scheduling method and device
CN112788112A (en) Automatic publishing method, device and platform for equipment health management micro-service
CN115756822A (en) Method and system for optimizing performance of high-performance computing application
CN114675954A (en) Task scheduling method and device
CN113742646A (en) Compiling a single language compound function into a single entity
CN113301087A (en) Resource scheduling method, device, computing equipment and medium
CN113127289A (en) Resource management method based on YARN cluster, computer equipment and storage medium
CN116483546B (en) Distributed training task scheduling method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant