Edge computing-oriented state information determination method and device, and electronic device

By receiving and matching operation information and virtual machine resource information, the virtual machine status information is determined, which solves the problem of high cost and low efficiency of requiring multiple monitoring nodes in the existing technology, and realizes accurate and efficient status monitoring.

CN115658223BActive Publication Date: 2025-11-11BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211263234.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-14
Publication Date
2025-11-11
Estimated Expiration
2042-10-14

AI Technical Summary

Technical Problem

Existing technologies require setting up multiple monitoring nodes on edge devices to monitor the status information of virtual machines, resulting in high costs and low efficiency.

Method used

By receiving the first operation information, the virtual machine resource information of the edge device is obtained. The virtual machine status information is determined by using the matching result of the pre-stored second operation information and the first operation information, combined with the virtual machine resource information, without the need to set up multiple monitoring nodes in the edge device.

Benefits of technology

It enables accurate determination of virtual machine status information, reduces usage costs, and improves the security and efficiency of resource information acquisition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115658223B_ABST
    Figure CN115658223B_ABST
Patent Text Reader

Abstract

This disclosure provides a method, apparatus, and electronic device for determining state information in edge computing, relating to the fields of cloud servers, virtual machines, and edge computing technology, and applicable to cloud computing scenarios. The method for determining state information in edge computing includes: receiving first operation information and obtaining resource information of a virtual machine on an edge device based on the first operation information; obtaining pre-stored second operation information and determining a first matching result between the second operation information and the first operation information, wherein the second operation information is the operation information whose reception time is most recent than the first operation information in historical received information, and the historical received information is operation information received before the first operation information; both the first operation information and the second operation information are used to update the resource information of the virtual machine; and determining the state information of the virtual machine based on the first matching result and the resource information of the virtual machine.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of artificial intelligence, and more particularly to the fields of cloud servers, virtual machines, and edge computing technologies, applicable to cloud computing scenarios. Specifically, it relates to a method, apparatus, and electronic device for determining state information in edge computing. Background Technology

[0002] Currently, with the continuous development of artificial intelligence, cloud computing is playing an increasingly important role in people's lives. In order to monitor the status information of virtual machines on edge devices, it is usually necessary to set up multiple monitoring nodes on the edge devices. Summary of the Invention

[0003] This disclosure provides a method, apparatus, and electronic device for determining state information for edge computing.

[0004] According to a first aspect of this disclosure, a method for determining state information for edge computing is provided, comprising:

[0005] Receive first operation information and obtain the resource information of the virtual machine of the edge device based on the first operation information;

[0006] Obtain pre-stored second operation information and determine a first matching result between the second operation information and the first operation information. The second operation information is the operation information whose reception time is closest to the first operation information in the historical received information. The historical received information is the operation information received before the first operation information. Both the first operation information and the second operation information are used to update the resource information of the virtual machine.

[0007] Based on the first matching result and the virtual machine's resource information, the virtual machine's status information is determined.

[0008] According to a second aspect of this disclosure, a state information determination apparatus for edge computing is provided, comprising:

[0009] A receiving module is used to receive first operation information and obtain the resource information of the virtual machine of the edge device based on the first operation information;

[0010] The acquisition module is used to acquire pre-stored second operation information and determine a first matching result between the second operation information and the first operation information. The second operation information is the operation information whose reception time is closest to the first operation information in the historical received information. The historical received information is the operation information received before the first operation information. Both the first operation information and the second operation information are used to update the resource information of the virtual machine.

[0011] The first determining module is used to determine the status information of the virtual machine based on the first matching result and the resource information of the virtual machine.

[0012] According to a third aspect of this disclosure, an electronic device is provided, comprising:

[0013] At least one processor; and

[0014] A memory that is communicatively connected to at least one processor; wherein,

[0015] The memory stores instructions that can be executed by at least one processor to enable the at least one processor to perform any of the methods in the first aspect.

[0016] According to a fourth aspect of this disclosure, a non-transitory computer-readable storage medium is provided storing computer instructions for causing a computer to perform any of the methods in the first aspect.

[0017] According to a fifth aspect of this disclosure, a computer program product is provided, including a computer program that, when executed by a processor, implements any of the methods in the first aspect.

[0018] In this embodiment of the disclosure, the virtual machine's status information is determined based on the first matching result of the second operation information and the first operation information, as well as the virtual machine's resource information. That is, the virtual machine's status information can be accurately determined based on the first matching result and the virtual machine's resource information, without the need to set up multiple monitoring nodes in the edge device, thereby saving usage costs.

[0019] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0020] Figure 1 This is a flowchart illustrating the state information determination method for edge computing provided in this embodiment of the disclosure;

[0021] Figure 2 This is a schematic diagram of the application network architecture of the edge computing-oriented state information determination method provided in the embodiments of this disclosure;

[0022] Figure 3 This is one of the structural schematic diagrams of the edge computing-oriented state information determination device provided in the embodiments of this disclosure;

[0023] Figure 4 This is the second schematic diagram of the state information determination device for edge computing provided in this embodiment of the present disclosure;

[0024] Figure 5 This is the third schematic diagram of the state information determination device for edge computing provided in this embodiment of the present disclosure;

[0025] Figure 6 This is the fourth schematic diagram of the state information determination device for edge computing provided in this embodiment of the present disclosure;

[0026] Figure 7 This is the fifth schematic diagram of the state information determination device for edge computing provided in this embodiment of the present disclosure;

[0027] Figure 8 This is a schematic block diagram of an example electronic device used to implement embodiments of the present disclosure. Detailed Implementation

[0028] The exemplary embodiments of this disclosure are described below with reference to the accompanying drawings, including various details of the embodiments to aid understanding, and should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this disclosure. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0029] See Figure 1 , Figure 1 A flowchart of a state information determination method for edge computing provided in this disclosure embodiment is shown below. Figure 1 As shown, the method for determining state information for edge computing includes the following steps:

[0030] Step S101: Receive first operation information and obtain the resource information of the virtual machine of the edge device according to the first operation information.

[0031] It should be noted that the embodiments of this disclosure can be applied to servers, and the servers can adopt a Kubernetes architecture. That is, the execution entity of the embodiments of this disclosure can be a server, and the relationship between the server and edge devices can be found in [reference needed]. Figure 2 As shown. Figure 2As shown, the edge device includes at least two edge Kubernetes clusters, and each edge Kubernetes cluster may include an Edge Agent, an API server, and an ETCD (database). The aforementioned Kubernetes clusters may also include virtual machines. The Edge Agent may include an Edge Hub. The server can be referred to as the cloud or cloud server. The cloud server may include a server Kubernetes cluster, a state machine (which can transition between states 1, 2, 3, and 4), a database (DB), and functional modules (which may include billing and alarm modules). The server Kubernetes cluster may include an Edge Controller, an API server, and an ETCD (database, which can be understood as the first database in the following text). The state machine can monitor the API server through a list watch mechanism to obtain changes in resource information. The database (DB) can be understood as the second database in the following text. The Edge Controller may include a Cloud Hub. The functional modules can query information about virtual machines stored in the ETCD through the API server.

[0032] It's worth noting that when the state machine monitors the API server via a list watch mechanism, it achieves the listening of virtual machine resource information change events, decoupling user operations (i.e., the first operation information) from virtual machine state information, resulting in high scalability. This decoupling also makes the division of labor among the modules clearer.

[0033] In addition, by utilizing the list watch mechanism and subscribing to resource update events, resource information becomes more accurate, enhancing real-time performance.

[0034] The first operation information can be operation information input by the user. Optionally, the user can input the first operation information through an external device connected to the server. The first operation information can also be referred to as the input information corresponding to the user's operation.

[0035] As an optional implementation, the server may include a state machine that receives first operation information and obtains resource information of the virtual machine of the edge device based on the first operation information, including:

[0036] Receive the first operation information;

[0037] If the first operation information is verified, the resource information of the virtual machine of the edge device is obtained according to the first operation information.

[0038] The verification of the first operation information, also known as the verification of the legality of the first operation information, is performed only when the verification is successful. In this way, the resource information of the virtual machine is obtained based on the first operation information, thus improving the security of resource information acquisition.

[0039] The specific operation for verifying the legality of the first operation information is not limited here. Optionally, the user information carried in the first operation information can be verified, or the tag information carried in the first operation information can be verified. Only when the user information or tag information matches the preset information is the first operation information verified as passed.

[0040] In this embodiment of the disclosure, when the first operation information is verified, the resource information of the virtual machine of the edge device is obtained according to the first operation information, which reduces the occurrence of the phenomenon that the resource information is mistakenly obtained due to the incorrect input of operation information, thereby improving the security of resource information acquisition.

[0041] It should be noted that the specific method for obtaining virtual machine resource information based on the first operation information is not limited here.

[0042] As an optional implementation, receiving first operation information and obtaining resource information of the virtual machine of the edge device based on the first operation information includes:

[0043] Receive the first operation information;

[0044] Send the first operation information to the edge device;

[0045] Receive the virtual machine's resource information returned by the edge device in response to the first operation information.

[0046] In this embodiment of the disclosure, the server can send first operation information to the edge device, and the virtual machine on the edge device can execute the first operation information and generate corresponding resource information. The edge device can then send the resource information to the server, enabling the server to obtain the resource information. This allows for higher accuracy of the resource information obtained by the server.

[0047] As another optional implementation, the step of receiving first operation information and obtaining the virtual machine resource information of the edge device according to the first operation information includes:

[0048] Receive the first operation information;

[0049] The resource information of the virtual machine, which is stored in advance, is obtained based on the first operation information.

[0050] The difference between this embodiment and the above embodiment is that in the above embodiment, when the server receives the first operation information, it can send the first operation information to the edge device so that the edge device can return the resource information of the virtual machine according to the first operation information; while in this embodiment, when the server receives the first operation information, it can obtain the pre-stored resource information of the virtual machine according to the first operation information.

[0051] In other words, in this embodiment of the disclosure, the storage location of the virtual machine's resource information is located locally on the server, while in the above embodiments, the edge device needs to generate the virtual machine's resource information based on the first operation information, that is, the virtual machine's resource information is generated in real time.

[0052] In this embodiment of the disclosure, the resource information of the virtual machine is obtained from the pre-stored information based on the first operation information. This reduces the interaction between the server and the edge device and improves the efficiency of obtaining the resource information of the virtual machine.

[0053] It should be noted that the edge device can collect the virtual machine's resource information at preset intervals and synchronize the above resource information to the server, that is, send the above resource information to the server, and the above resource information can be stored locally on the server.

[0054] It should be noted that the specific content of the resource information is not limited here. As an optional implementation method, the resource information includes the following information: virtual machine status information and configuration information, etc.

[0055] As an optional implementation, receiving the first operation information includes:

[0056] If it fails to obtain the first target operation information from the first database, but obtains the second target operation information from the second database, the first operation information is received. The first database is connected to the edge device, and the second database is connected to the first database. Both the first target operation information and the second target operation information are used to update the resource information of the virtual machine, and the first target operation information and the second target operation information correspond to each other.

[0057] After determining the virtual machine's status information based on the first matching result and the virtual machine's resource information, the method further includes:

[0058] The virtual machine's state information is stored in the second database, and the second target operation information is updated according to the first operation information.

[0059] It should be noted that the server may include two databases, a first database and a second database, both of which can be used to store operation information and virtual machine resource information. The storage format of the resource information in the first and second databases may differ, but the actual content can be the same.

[0060] Furthermore, the second database can be referred to as the business database. Virtual machine status information can also be stored in the second database, and target processing can be performed based on this virtual machine status information. Target processing can include at least one of the following: alarm notification, billing, and execution. It should be noted that the business information stored in the second database can include at least one of the following: intermediate business status information and final business status information.

[0061] The failure to retrieve the first target operation information from the first database can be understood as follows: the first database does not store the first target operation information, or the first target operation information stored in the first database is invalid, or the first target operation information stored in the first database is in the wrong format. However, if the second target operation information can be retrieved from the second database, and the first and second target operation information correspond, it means that the first and second target operation information are mutually matching operation information. In this case, if the second target operation information is only stored in the second database, and the first target operation information stored in the first database is invalid, missing, or in the wrong format, it cannot be confirmed whether the second target operation information stored in the second database is accurate.

[0062] In this embodiment of the disclosure, when it fails to obtain the first target operation information from the first database, but obtains the second target operation information from the second database, the first operation information is received, and the second target operation information is updated according to the first operation information. This can improve the accuracy of the second target operation information, reduce the differences between the second target operation information, the first target operation information, and the first operation information, and enhance stability.

[0063] It should be noted that this implementation method can also be referred to as the server's state machine, which reduces the differences between the second target operation information, the first target operation information, and the first operation information through a full synchronization mechanism, thereby enhancing stability.

[0064] As an optional implementation, it also includes:

[0065] If the first target operation information is obtained from the first database and the second target operation information is obtained from the second database, a third matching result of the first target operation information and the second target operation information is determined;

[0066] Based on the third matching result, update the second target operation information.

[0067] In this embodiment of the disclosure, when first target operation information is obtained from the first database and second target operation information is obtained from the second database, the second target operation information can be updated according to the third matching result of the first target operation information and the second target operation information. In this way, the accuracy of the second target operation information can be further guaranteed.

[0068] As an optional implementation, updating the second target operation information based on the third matching result includes:

[0069] If the third matching result is that the first target operation information and the second target operation information do not match, the second target operation information is updated according to the first target operation information.

[0070] Wherein, if the third matching result is a match between the first target operation information and the second target operation information, the second target operation information remains unchanged.

[0071] In this embodiment of the disclosure, when the first target operation information and the second target operation information do not match, the second target operation information is updated according to the first target operation information. That is, the content of the second target operation information is replaced with the content of the first target operation information, or the content in the second target operation information that is different from the first target operation information is replaced with the content corresponding to the first target operation information. In other words, the content of the first target operation information is taken as the standard, and the consistency between the first target operation information and the second target operation information is maintained. Since the first database is connected to the edge device, the accuracy of the first target operation information is higher than that of the second target operation information. In this way, the consistency and accuracy of the first target operation information and the second target operation information can be improved.

[0072] Step S102: Obtain the pre-stored second operation information and determine the first matching result between the second operation information and the first operation information. The second operation information is the operation information whose reception time is closest to the first operation information in the historical received information. The historical received information is the operation information received before the first operation information. Both the first operation information and the second operation information are used to update the resource information of the virtual machine.

[0073] The second operation information can also be referred to as the operation information received by the server at the last time. In other words, the second operation information is the operation information received by the server before the first operation information.

[0074] Step S103: Determine the status information of the virtual machine based on the first matching result and the resource information of the virtual machine.

[0075] It should be noted that the virtual machine's state information can also be referred to as the intermediate state of the business. After determining the virtual machine's state information, the final state of the business can be determined based on the intermediate state and the virtual machine's resource information. The intermediate state and the final state of the business can be the same or different.

[0076] In addition, the final state of the above services can be determined based on information such as user operation information, virtual machine resource information, state update time, and user operation time, thereby ensuring the accuracy of virtual machine state information.

[0077] It's important to note that virtual machine status information can be understood as display information. By showcasing the virtual machine's operational status through this information, the virtual machine's condition can be represented more intuitively, improving the user experience. In this way, the true state of the virtual machine can be accurately monitored using the aforementioned status information.

[0078] The actual state information of the virtual machine may differ from the state information of the virtual machine mentioned above. Furthermore, depending on the usage scenario, the state information can be specifically changed based on the user's first operation information, thereby enhancing the diversity and flexibility of the state information and improving the user experience. During the above changes, the actual state information of the virtual machine remains unchanged, and only the state information of the virtual machine is changed by the user's first operation information.

[0079] In this embodiment of the disclosure, through steps S101 to S103, the status information of the virtual machine is determined based on the first matching result of the second operation information and the first operation information, as well as the resource information of the virtual machine. That is, the status information of the virtual machine can be accurately determined based on the first matching result and the resource information of the virtual machine, without the need to set up multiple monitoring nodes in the edge device, thereby saving usage costs.

[0080] The first operation information and the second operation information may or may not match.

[0081] As an optional implementation, determining the virtual machine's state information based on the first matching result and the virtual machine's resource information includes:

[0082] If the first matching result indicates that the second operation information does not match the first operation information, the virtual machine's status information is updated based on the first operation information and the virtual machine's resource information; or,

[0083] If the first matching result is that the second operation information matches the first operation information, a second matching result with a first occurrence time and a second occurrence time is determined, and the state information of the virtual machine is determined based on the second matching result and the resource information of the virtual machine. The first occurrence time is the time when the first operation information updates the resource information of the virtual machine, and the second occurrence time is the time when the second operation information updates the resource information of the virtual machine.

[0084] The first operation information can be referred to as the new operation information, while the second operation information can be referred to as the existing operation information.

[0085] The first occurrence time and the second occurrence time can be understood as the effective time. That is, the first occurrence time can be understood as the effective time when the first operation information updates the resource information of the virtual machine, and the second occurrence time can be understood as the effective time when the second operation information updates the resource information of the virtual machine.

[0086] In this embodiment of the disclosure, when the first matching result is that the second operation information does not match the first operation information, the virtual machine status information can be directly updated based on the first operation information and the virtual machine resource information; when the first matching result is that the second operation information matches the first operation information, the virtual machine status information is determined based on the second matching result of the first occurrence time and the second occurrence time and the virtual machine resource information. In this way, different methods for determining the virtual machine status information can be determined according to different first matching results, thereby improving the diversity and flexibility of the methods for determining the virtual machine status information.

[0087] Meanwhile, when the first matching result is that the second operation information matches the first operation information, it is necessary to determine the virtual machine's status information based on the second matching result of the first occurrence time and the second occurrence time and the virtual machine's resource information, thereby further improving the accuracy of determining the virtual machine's status information.

[0088] As an optional implementation, determining the virtual machine's state information based on the second matching result and the virtual machine's resource information includes:

[0089] If the second matching result indicates a mismatch between the first occurrence time and the second occurrence time, the virtual machine's status information is updated based on the first operation information and the virtual machine's resource information; or,

[0090] If the second matching result is a match between the first occurrence time and the second occurrence time, the virtual machine's state information is kept unchanged based on the first operation information and the virtual machine's resource information.

[0091] In this embodiment of the disclosure, when the first occurrence time and the second occurrence time do not match, the virtual machine's state information can be updated. When the first occurrence time and the second occurrence time match, the virtual machine's state information remains unchanged. This further increases the diversity and flexibility of the way the virtual machine's state information is determined.

[0092] like Figure 3 As shown in the diagram, this disclosure provides a structural schematic of a state information determination device for edge computing. Figure 3 As shown, the state information determination device 300 for edge computing includes:

[0093] The receiving module 301 is used to receive first operation information and obtain the resource information of the virtual machine of the edge device according to the first operation information;

[0094] The acquisition module 302 is used to acquire pre-stored second operation information and determine a first matching result between the second operation information and the first operation information. The second operation information is the operation information whose reception time is closest to the first operation information in the historical received information. The historical received information is the operation information received before the first operation information. Both the first operation information and the second operation information are used to update the resource information of the virtual machine.

[0095] The first determining module 303 is used to determine the status information of the virtual machine based on the first matching result and the resource information of the virtual machine.

[0096] Optionally, see Figure 4 The first determining module 303 includes:

[0097] The update submodule 3031 is used to update the virtual machine's status information based on the first operation information and the virtual machine's resource information when the first matching result indicates that the second operation information does not match the first operation information; or,

[0098] The determination submodule 3032 is used to determine a second matching result with a first occurrence time and a second occurrence time when the first matching result is that the second operation information matches the first operation information, and to determine the status information of the virtual machine based on the second matching result and the resource information of the virtual machine. The first occurrence time is the time when the first operation information updates the resource information of the virtual machine, and the second occurrence time is the time when the second operation information updates the resource information of the virtual machine.

[0099] Optionally, the determining submodule 3032 includes:

[0100] The update unit is configured to update the virtual machine's status information based on the first operation information and the virtual machine's resource information when the second matching result indicates a mismatch between the first occurrence time and the second occurrence time; or,

[0101] The maintenance unit is configured to maintain the virtual machine's state information unchanged based on the first operation information and the virtual machine's resource information, when the second matching result is a match between the first occurrence time and the second occurrence time.

[0102] Optionally, see Figure 5 The receiving module 301 includes:

[0103] The first receiving submodule 3011 is used to receive the first operation information;

[0104] The sending submodule 3012 is used to send the first operation information to the edge device;

[0105] The second receiving submodule 3013 is used to receive the virtual machine resource information returned by the edge device in response to the first operation information.

[0106] Optionally, the receiving module 301 is further configured to: receive the first operation information when it fails to obtain the first target operation information from the first database and obtains the second target operation information from the second database, wherein the first database is communicatively connected to the edge device, the second database is connected to the first database, and both the first target operation information and the second target operation information are used to update the resource information of the virtual machine, and the first target operation information and the second target operation information correspond to each other;

[0107] See Figure 6 The edge computing-oriented state information determination device 300 further includes:

[0108] The storage module 304 is used to store the virtual machine's state information in the second database and update the second target operation information according to the first operation information.

[0109] Optionally, see Figure 7 The edge computing-oriented state information determination device 300 further includes:

[0110] The second determining module 305 is used to determine a third matching result of the first target operation information and the second target operation information when the first target operation information is obtained from the first database and the second target operation information is obtained from the second database.

[0111] The update module 306 is used to update the second target operation information based on the third matching result.

[0112] Optionally, the updating module 306 is further configured to update the second target operation information according to the first target operation information when the third matching result is that the first target operation information and the second target operation information do not match;

[0113] Wherein, if the third matching result is a match between the first target operation information and the second target operation information, the second target operation information remains unchanged.

[0114] The edge computing-oriented state information determination device 300 provided in this disclosure can implement all the processes implemented in the edge computing-oriented state information determination method embodiment, and can achieve the same beneficial effects. To avoid repetition, it will not be described again here.

[0115] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0116] Figure 8 A schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0117] like Figure 8 As shown, device 800 includes a computing unit 801, which can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) 802 or a computer program loaded from storage unit 808 into random access memory (RAM) 803. RAM 803 may also store various programs and data required for the operation of device 800. The computing unit 801, ROM 802, and RAM 803 are interconnected via bus 804. Input / output (I / O) interface 805 is also connected to bus 804.

[0118] Multiple components in device 800 are connected to I / O interface 805, including: input unit 806, such as keyboard, mouse, etc.; output unit 807, such as various types of monitors, speakers, etc.; storage unit 808, such as disk, optical disk, etc.; and communication unit 809, such as network card, modem, wireless transceiver, etc. Communication unit 809 allows device 800 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0119] The computing unit 801 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the various methods and processes described above, such as the edge computing-oriented state information determination method. For example, in some embodiments, the edge computing-oriented state information determination method can be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program can be loaded and / or installed on device 800 via ROM 802 and / or communication unit 809. When the computer program is loaded into RAM 803 and executed by the computing unit 801, one or more steps of the edge computing-oriented state information determination method described above can be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform a state information determination method for edge computing by any other suitable means (e.g., by means of firmware).

[0120] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0121] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0122] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0123] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0124] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0125] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.

[0126] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.

[0127] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.

Claims

1. A method for determining state information for edge computing, comprising: Receive first operation information and obtain the resource information of the virtual machine of the edge device based on the first operation information; Obtain pre-stored second operation information and determine a first matching result between the second operation information and the first operation information. The second operation information is the operation information whose reception time is closest to the first operation information in the historical received information. The historical received information is the operation information received before the first operation information. Both the first operation information and the second operation information are used to update the resource information of the virtual machine. Based on the first matching result and the virtual machine's resource information, determine the virtual machine's status information; The receiving of the first operation information includes: If it fails to obtain the first target operation information from the first database, but obtains the second target operation information from the second database, the first operation information is received. The first database is connected to the edge device, and the second database is connected to the first database. Both the first target operation information and the second target operation information are used to update the resource information of the virtual machine, and the first target operation information and the second target operation information correspond to each other. After determining the virtual machine's status information based on the first matching result and the virtual machine's resource information, the method further includes: The virtual machine's state information is stored in the second database, and the second target operation information is updated according to the first operation information.

2. The method according to claim 1, wherein, Determining the virtual machine's status information based on the first matching result and the virtual machine's resource information includes: If the first matching result indicates that the second operation information does not match the first operation information, the virtual machine's status information is updated based on the first operation information and the virtual machine's resource information; or, If the first matching result is that the second operation information matches the first operation information, a second matching result with a first occurrence time and a second occurrence time is determined, and the state information of the virtual machine is determined based on the second matching result and the resource information of the virtual machine. The first occurrence time is the time when the first operation information updates the resource information of the virtual machine, and the second occurrence time is the time when the second operation information updates the resource information of the virtual machine.

3. The method according to claim 2, wherein, The step of determining the virtual machine's status information based on the second matching result and the virtual machine's resource information includes: If the second matching result indicates a mismatch between the first occurrence time and the second occurrence time, the virtual machine's status information is updated based on the first operation information and the virtual machine's resource information; or, If the second matching result is a match between the first occurrence time and the second occurrence time, the virtual machine's state information is kept unchanged based on the first operation information and the virtual machine's resource information.

4. The method according to claim 1, wherein, The step of receiving first operation information and obtaining resource information of the virtual machine of the edge device based on the first operation information includes: Receive the first operation information; Send the first operation information to the edge device; Receive the virtual machine's resource information returned by the edge device in response to the first operation information.

5. The method according to claim 1, further comprising: If the first target operation information is obtained from the first database and the second target operation information is obtained from the second database, a third matching result of the first target operation information and the second target operation information is determined; Based on the third matching result, update the second target operation information.

6. The method according to claim 5, wherein, The step of updating the second target operation information based on the third matching result includes: If the third matching result is that the first target operation information and the second target operation information do not match, the second target operation information is updated according to the first target operation information. Wherein, if the third matching result is a match between the first target operation information and the second target operation information, the second target operation information remains unchanged.

7. A state information determination device for edge computing, comprising: A receiving module is used to receive first operation information and obtain the resource information of the virtual machine of the edge device based on the first operation information; The acquisition module is used to acquire pre-stored second operation information and determine a first matching result between the second operation information and the first operation information. The second operation information is the operation information whose reception time is closest to the first operation information in the historical received information. The historical received information is the operation information received before the first operation information. Both the first operation information and the second operation information are used to update the resource information of the virtual machine. The first determining module is used to determine the status information of the virtual machine based on the first matching result and the resource information of the virtual machine; The receiving module is further configured to: receive the first operation information when it fails to obtain the first target operation information from the first database and obtains the second target operation information from the second database, wherein the first database is communicatively connected to the edge device, the second database is connected to the first database, and both the first target operation information and the second target operation information are used to update the resource information of the virtual machine, and the first target operation information and the second target operation information correspond to each other; The state information determination device for edge computing further includes: The storage module is used to store the virtual machine's state information in the second database and update the second target operation information according to the first operation information.

8. The apparatus according to claim 7, wherein, The first determining module includes: An update submodule is configured to, when the first matching result indicates that the second operation information does not match the first operation information, update the virtual machine's status information based on the first operation information and the virtual machine's resource information; or, The determination submodule is used to determine a second matching result with a first occurrence time and a second occurrence time when the first matching result is that the second operation information matches the first operation information, and to determine the status information of the virtual machine based on the second matching result and the resource information of the virtual machine. The first occurrence time is the time when the first operation information updates the resource information of the virtual machine, and the second occurrence time is the time when the second operation information updates the resource information of the virtual machine.

9. The apparatus according to claim 8, wherein, The determining submodule includes: The update unit is configured to update the virtual machine's status information based on the first operation information and the virtual machine's resource information when the second matching result indicates a mismatch between the first occurrence time and the second occurrence time; or, The maintenance unit is configured to maintain the virtual machine's state information unchanged based on the first operation information and the virtual machine's resource information, when the second matching result is a match between the first occurrence time and the second occurrence time.

10. The apparatus according to claim 7, wherein, The receiving module includes: The first receiving submodule is used to receive the first operation information; A sending submodule is used to send the first operation information to the edge device; The second receiving submodule is used to receive the resource information of the virtual machine returned by the edge device in response to the first operation information.

11. The apparatus according to claim 7, wherein, The state information determination device for edge computing further includes: The second determining module is used to determine a third matching result between the first target operation information and the second target operation information when the first target operation information is obtained from the first database and the second target operation information is obtained from the second database. The update module is used to update the second target operation information based on the third matching result.

12. The apparatus according to claim 11, wherein, The updating module is further configured to update the second target operation information according to the first target operation information when the third matching result is that the first target operation information and the second target operation information do not match; Wherein, if the third matching result is a match between the first target operation information and the second target operation information, the second target operation information remains unchanged.

13. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.

14. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-6.

15. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Method and device for achieving virtual machine synchronization and storage medium

    CN107357630A