CN111143033A - Operation execution method and device based on scalable operating system - Google Patents

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

Info

Publication number
CN111143033A
CN111143033A CN201911329529.7A CN201911329529A CN111143033A CN 111143033 A CN111143033 A CN 111143033A CN 201911329529 A CN201911329529 A CN 201911329529A CN 111143033 A CN111143033 A CN 111143033A
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.)
Granted
Application number
CN201911329529.7A
Other languages
Chinese (zh)
Other versions
CN111143033B (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

Images

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 operating system, which comprises the following steps: determining a target operation indicated by the received target request; calling a target virtual container for executing 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 capacity of executing different operations; performing the target operation using a target virtual container. By the method and the device, the problems of high development cost and resource waste of the telescopic operating system in the prior art are solved.

Description

Operation execution method and device based on scalable operating system
Technical Field
The present invention relates to the field of communications, and in particular, to an operation execution method and apparatus based on a scalable os.
Background
For the internet of things, the network architecture is a relatively large network architecture system, in the internet of things, a large number of equipment nodes exist, the nodes not only complete different functions, but also have certain difference in hardware configuration, and if a uniform operating system is adopted, all functional requirements are difficult to meet.
Therefore, the internet of things puts high requirements on the operating system, and particularly, the operating system applied to the internet of things must be capable of completing related function configuration according to task requirements of the equipment nodes. As a simple example, the detection sensor in the Internet of things only needs to complete task scheduling and data communication, so that the operating system of the detection sensor does not need excessively complex functions, and a smaller kernel can meet the requirement. The internet of things has some important control devices, such devices need to complete recording of files and displaying of graphics in addition to scheduling and data communication of tasks, and an operating system of the devices cannot be too small, usually reaches a KB level or an MB level, and some devices even need more space.
Therefore, the embedded operating system needs to be scalable, and this goal can be achieved by a modular design method, that is, an open architecture system with scalability is adopted to design related modules according to actual functional requirements.
In order to meet the requirements of scalability of an existing operating system of the internet of things, different component modules need to be customized in advance according to relevant requirements of versions and hardware, some component modules may have only a few functions different in different versions, and in order to adapt to different version requirements, the whole component module also needs to be developed and customized, so that development of a large number of redundant component modules may exist in the process of developing the scalable operating system, on one hand, development cost of the operating system is increased, and on the other hand, updating, upgrading and modification difficulty of the operating system are increased.
Aiming at the problems of high development cost and resource waste of a scalable operating system in the prior art in the related art, an effective solution does not exist at present.
Disclosure of Invention
The embodiment of the invention provides an operation execution method and device based on a scalable operating system, which are used for at least solving the problems of high development cost and resource waste of the scalable operating 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; 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 capacity of executing different operations; performing the target operation using the target virtual container.
Optionally, before the calling 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 in a plurality of functions included in the preset function component; and creating the virtual container corresponding to each function code in the plurality of function codes to obtain the preset virtual container cluster.
Optionally, before the calling the target virtual container for performing the target operation in the preset virtual container cluster, the method further includes: monitoring the use state of 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: predicting the flow data at the next moment by using a pre-established prediction model according to the historical flow data obtained by monitoring to obtain predicted flow data; determining a predicted service capability value corresponding to the predicted flow data; determining the number of the target virtual containers invoked as a ratio of the predicted service capability value to a service capability value of a single virtual container.
Optionally, invoking a target virtual container for executing the target operation in a preset virtual container cluster, including: determining a target host system where 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 a target virtual container for executing the target operation in a preset virtual container cluster, including: 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 comprises: and running the container image based on the generated environment parameters to execute the target operation.
According to another embodiment of the present invention, there is provided an operation execution apparatus based on a scalable operating system, including: the first determination module is used for determining 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 capacity of executing different operations; an execution module to execute the target operation 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 functional component in a preset operating system, where one function code is used to implement one function of a plurality of functions included in the preset functional component; a creating module, configured to create the virtual container corresponding to each of the plurality of function codes, so as to obtain the preset virtual container cluster.
According to a further embodiment of the present invention, there is also provided a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
By the invention, the target operation indicated by the received target request is determined; calling a target virtual container for executing 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 capacity 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 embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a mobile terminal according to an embodiment of the present invention, which is based on an operation execution method of a scalable os;
FIG. 2 is a flow diagram of scalable operating system based operation execution according to an embodiment of the present invention;
fig. 3 is a detailed flowchart of a scalable internet of things based operating system according to an alternative embodiment of the present invention;
FIG. 4 is a detailed system architecture diagram of a scalable IOT based operating system in accordance with an alternative embodiment of the present invention;
fig. 5 is a block diagram illustrating an operation execution apparatus based on a scalable os according to an embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the example of the operation on the mobile terminal, fig. 1 is a block diagram of a hardware structure of the mobile terminal according to an operation execution method based on the scalable os of the embodiment of the present invention. As shown in fig. 1, the mobile terminal 10 may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and optionally may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. 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 for storing computer programs, for example, software programs and modules of application software, such as a computer program corresponding to the scalable os-based operation execution method according to the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The 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 instances, 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 device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, a method for performing operations based on the scalable os running in the mobile terminal is provided, and fig. 2 is a flowchart for performing operations based on the scalable os 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 internet of things device node, where the request may be to request the device node to perform operations such as data transmission, connection establishment, authorization authentication, and verification.
Step S204, 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 capacity of executing different operations;
the preset virtual container cluster 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 by using the target virtual container.
One or more target virtual containers may be called, and the operation requested by the user is executed by the virtual container having various capabilities.
Through the steps, the target operation indicated by the received target request is determined; calling a target virtual container for executing 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 capacity 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 of 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 in a plurality of functions included in the preset function component; and creating the virtual container corresponding to each function code in the plurality of function codes to obtain the preset virtual container cluster. In this embodiment, the operating system includes a plurality of functional components, each of which may implement different functions, for example, a data communication component in the operating system, and in order to implement the communication function, the component may be formed by: the system is formed by jointly coordinating and coordinating a plurality of sub-functions such as a connection establishing function, a transmission function, an authority authentication function, a verification function and the like. Performing micro-service transformation on functional components of an operating system, abstracting atomic capability with the finest granularity and incapable of being split according to the functions of each component, and forming an atomic capability library by the abstracted atomic capability. For example, the data communication component may be split out: connection establishment capability, transmission capability, authority authentication capability, verification capability, and other atomic capabilities. Firstly, each functional component required by the operating system can be subjected to microservice splitting, functional codes corresponding to each atomic capability are split, the atomic capabilities form an atomic capability library, and at the moment, the atomic capability library comprises the atomic capabilities corresponding to all functions of the operating system.
As an optional embodiment, before the invoking of the target virtual container for performing the target operation in the preset virtual container cluster, the method further includes: monitoring the use state of 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 use conditions of the physical hardware platform and the virtual container cluster of the operating system can be monitored through the flexible control module. Compared with a virtual container, the life cycle of a physical host is longer, so that resource optimization needs to be performed on the physical host, and particularly when a plurality of virtual containers run on the same physical host, the resource allocation problem needs to be fully considered, so that related indexes of the physical host need to be monitored. The relevant monitoring indexes of the physical host comprise the use condition of a host CPU, the use condition of a host memory, the network bandwidth of the host, the number of containers running on the host and the like. Since the virtual containers share the physical hardware resources of the operating system, the containers also need to be appropriately allocated according to the use conditions of the container resources. The monitoring of the use condition of the virtual cluster is realized by monitoring the indexes of the virtual container, such as CPU occupancy rate, memory usage amount, disk input and output, network flow and the like.
As an alternative embodiment, determining the number of the target virtual containers according to the monitoring result includes: predicting the flow data at the next moment by using a pre-established prediction model according to the historical flow data obtained by monitoring to obtain predicted flow data; determining a predicted service capability value corresponding to the predicted flow data; determining the number of the target virtual containers invoked as a ratio of the predicted service capability value to a service capability value of a single virtual container. In this embodiment, a prediction module in the scaling control module performs modeling according to collected historical flow data of the operating system by using a prediction algorithm to predict flow data at the next time. Specifically, the flow data may be predicted by using a quadratic exponential smoothing method, and a calculation formula of the quadratic exponential smoothing method is shown in the following formula:
Figure BDA0002329233540000071
wherein the content of the first and second substances,
Figure BDA0002329233540000081
is the first exponential smoothing value of the t-th order, xtFor the actual flow observations at time t,
Figure BDA0002329233540000082
the second exponential smoothing value at the t-th time is α a smoothing coefficient.
The prediction model of the quadratic exponential smoothing method is as follows: ft+T=at+btT
Wherein, Ft+TIs the predicted value of T + T times, T is the period number of future prediction, atAnd btThe model parameters are respectively, and the calculation formula is as follows:
Figure BDA0002329233540000083
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 CPU use data.
In the scheme, the number of virtual containers to be started can be determined according to the flow data calculation. For example, assume that a single container has a service capability of C0And if the service requirement corresponding to the currently received flow data is C, the telescopic control module determines that the number of the virtual containers to be started is:
Figure BDA0002329233540000084
as an optional embodiment, invoking a target virtual container for performing the target operation in a preset virtual container cluster includes: determining a target host system where 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 scaling 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 node by checking whether a port specified by the virtual container to be created is already occupied on the host system, and if the port is already occupied; 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 discarded. Through the screening of the steps, the flexible control module can determine the host system corresponding to the virtual container to be created.
As an optional embodiment, invoking a target virtual container for performing the target operation in a 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 comprises: and running the container image based on the generated environment parameters to execute the target operation. In this embodiment, the scaling control module creates virtual containers on the host system, instantiates the atomic capability corresponding to the functional component by executing the virtual containers, and implements the related functions of the functional component by using the virtual container instances. 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 a corresponding container mirror image and a resource limitation condition according to the virtual container information; 2) if the corresponding container mirror image does not exist on the current node, pulling the mirror image from the virtual container cluster; 3) creating a work catalog corresponding to the virtual container and generating necessary environment variables and parameters of the virtual container; 4) and constructing parameters required by a virtual container operation command line and calling a virtual container creation interface to create the virtual container.
As an alternative embodiment, a specific process based on the scalable internet of things operating system is shown in fig. 3, and mainly includes the following steps:
step 1: abstracting atomic capability according to functions of each component, and forming an atomic capability library by the atomic capability;
step 2: collecting the use requirements aiming at the operating system, and determining the functional components corresponding to the requirements;
and step 3: determining the number of virtual containers to be started according to the service condition of an operating system object;
and 4, step 4: scheduling and distributing the physical layer resources, and determining a host system corresponding to the virtual container to be created;
and 5: and creating a virtual container, and instantiating the atomic capability corresponding to the functional component through the virtual container.
The specific system architecture based on the scalable internet of things operating system provided by the 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 resource use conditions of the physical hardware platform and a virtual container and function requirements of an operating system, further judges whether the system needs to be expanded or contracted according to the acquired information, schedules a corresponding virtual container from the virtual container cluster according to the expansion requirement when the operating system needs to be expanded, and forms a corresponding functional component through the virtual containers so as to realize expansion of the operating system. On the contrary, when the operating system is judged to need to be contracted, the container can be destroyed through the contraction control system, so that the contraction of the operating system is realized.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, an operation execution device based on a scalable os is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and the description of the device that has been already made is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 5 is a block diagram of an operation execution apparatus based on a scalable os according to an embodiment of the present invention, as shown in fig. 5, the apparatus including: a first determining module 52 for determining 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 multiple virtual containers, and different virtual containers have different operation execution capabilities; an execution module 56, configured to execute 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 functional component in a preset operating system, where one function code is used to implement one function of a plurality of functions included in the preset functional component; a creating module, configured to create the virtual container corresponding to each of the plurality of function codes, so as to obtain the preset virtual container cluster.
As an optional embodiment, the apparatus is further configured to monitor a usage state of a local resource before the target virtual container for executing the target operation is called in the preset virtual container cluster; 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 the flow data at the next time by using a pre-established prediction model according to the monitored historical flow data, so as to obtain predicted flow data; determining a predicted service capability value corresponding to the predicted flow data; determining the number of the target virtual containers invoked as 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 in which 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 environment parameter to execute the target operation.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, determining the target operation indicated by the 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 capacity of executing different operations;
s3, executing the target operation by using the target virtual container.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, determining the target operation indicated by the 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 capacity of executing different operations;
s3, executing the target operation by using the target virtual container.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An operation execution method based on a scalable operating system, comprising:
determining a target operation indicated by the received target request;
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 capacity of executing different operations;
performing the target operation using the target virtual container.
2. The method of claim 1, wherein prior to said invoking a target virtual container for performing said target operation in a pre-defined virtual container cluster, said 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 in a plurality of functions included in the preset function component;
and creating the virtual container corresponding to each function code in the plurality of function codes to obtain the preset virtual container cluster.
3. The method of claim 1, wherein prior to said invoking a target virtual container for performing said target operation in a pre-defined virtual container cluster, said method further comprises:
monitoring the use state of local resources;
and determining the number of the target virtual containers according to the monitoring result.
4. The method of claim 3, wherein determining the number of target virtual containers based on the monitoring comprises:
predicting the flow data at the next moment by using a pre-established prediction model according to the historical flow data obtained by monitoring to obtain predicted flow data;
determining a predicted service capability value corresponding to the predicted flow data;
determining the number of the target virtual containers invoked as a ratio of the predicted service capability value to a service capability value of a single virtual container.
5. The method of claim 1, wherein invoking a target virtual container for performing the target operation in a preset virtual container cluster comprises:
determining a target host system where 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.
6. The method of claim 1,
calling a target virtual container for executing the target operation in a preset virtual container cluster, wherein the target virtual container 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 comprises: and running the container image based on the generated environment parameters to execute the target operation.
7. An operation execution apparatus based on a scalable operating system, comprising:
the first determination module is used for determining 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 capacity of executing different operations;
an execution module to execute the target operation using the target virtual container.
8. The apparatus of claim 7, further comprising:
a second determining module, configured to determine a plurality of function codes obtained by splitting each preset functional component in a preset operating system, where one function code is used to implement one function of a plurality of functions included in the preset functional component;
a creating module, configured to create the virtual container corresponding to each of the plurality of function codes, so as to obtain the preset virtual container cluster.
9. A storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 6 when executed.
10. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 6.
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 true CN111143033A (en) 2020-05-12
CN111143033B 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)

Cited By (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》 *

Cited By (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

Also Published As

Publication number Publication date
CN111143033B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
US11018979B2 (en) System and method for network slicing for service-oriented networks
US9442760B2 (en) Job scheduling using expected server performance information
CN115328663B (en) Method, device, equipment and storage medium for scheduling resources based on PaaS platform
US10360024B2 (en) Method and apparatus for execution of distributed workflow processes
CN114257599A (en) Adaptive finite duration edge resource management
US8104038B1 (en) Matching descriptions of resources with workload requirements
US11734073B2 (en) Systems and methods for automatically scaling compute resources based on demand
CN108572845B (en) Upgrading method of distributed micro-service cluster and related system
US9244737B2 (en) Data transfer control method of parallel distributed processing system, parallel distributed processing system, and recording medium
CN110069341B (en) Method for scheduling tasks with dependency relationship configured according to needs by combining functions in edge computing
JPWO2007072544A1 (en) Information processing apparatus, computer, resource allocation method, and resource allocation program
CN115858083A (en) Container CPU resource scheduling and isolating method and device, storage medium and electronic equipment
CN115033340A (en) Host selection method and related device
CN113886069A (en) Resource allocation method and device, electronic equipment and storage medium
US11848983B2 (en) Remotely discover and map a network resource model in a cloud environment
US20050089063A1 (en) Computer system and control method thereof
CN114546587A (en) Capacity expansion and reduction method of online image recognition service and related device
CN110933178A (en) Method for adjusting node configuration in cluster system and server
CN111143033B (en) Operation execution method and device based on scalable operation system
CN112631994A (en) Data migration method and system
Garg et al. Heuristic and reinforcement learning algorithms for dynamic service placement on mobile edge cloud
US20190286494A1 (en) Dynamically provisioning virtual machines from remote, multi-tier pool
US10248459B2 (en) Operating system support for game mode
CN114924888A (en) Resource allocation method, data processing method, device, equipment and storage medium
CN113301087B (en) Resource scheduling method, device, computing equipment and 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