CN110674153A - A data consistency detection method, device and electronic device - Google Patents
A data consistency detection method, device and electronic device Download PDFInfo
- Publication number
- CN110674153A CN110674153A CN201910913285.0A CN201910913285A CN110674153A CN 110674153 A CN110674153 A CN 110674153A CN 201910913285 A CN201910913285 A CN 201910913285A CN 110674153 A CN110674153 A CN 110674153A
- Authority
- CN
- China
- Prior art keywords
- instance
- state
- task
- cloud computing
- resource
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 36
- 238000000034 method Methods 0.000 claims abstract description 35
- 238000004891 communication Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 12
- 230000008859 change Effects 0.000 claims description 4
- 230000002159 abnormal effect Effects 0.000 abstract description 4
- 238000007726 management method Methods 0.000 description 9
- 230000003213 activating effect Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 3
- 238000012545 processing Methods 0.000 description 3
- 230000004913 activation Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000005856 abnormality Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2365—Ensuring data consistency and integrity
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2455—Query execution
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1097—Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computational Linguistics (AREA)
- Computer Security & Cryptography (AREA)
- Debugging And Monitoring (AREA)
Abstract
本发明实施例提供了一种数据一致性检测方法、装置及电子设备。其中,方法包括:获取云平台中状态发生变化的资源实例的实例标识和实例状态;获取与所述实例标识对应的云计算任务的任务状态;确定所述实例状态和所述任务状态是否匹配;如果所述实例状态和所述任务状态不匹配,确定所述资源实例与所述云计算任务不一致。可以无需通过异步接口获取云平台是否成功创建资源实例,因此即使云平台中用于收发异步消息的异步消息队列发生异常,依然可以准确检测出资源实例与云计算任务是否一致。
Embodiments of the present invention provide a data consistency detection method, device, and electronic device. Wherein, the method includes: acquiring the instance identifier and instance state of the resource instance whose state has changed in the cloud platform; acquiring the task state of the cloud computing task corresponding to the instance identifier; determining whether the instance state and the task state match; If the instance state and the task state do not match, it is determined that the resource instance is inconsistent with the cloud computing task. It is not necessary to obtain whether the cloud platform has successfully created a resource instance through the asynchronous interface. Therefore, even if the asynchronous message queue used for sending and receiving asynchronous messages in the cloud platform is abnormal, it is still possible to accurately detect whether the resource instance is consistent with the cloud computing task.
Description
技术领域technical field
本发明涉及云平台技术领域,特别是涉及一种数据一致性检测方法、装置及电子设备。The invention relates to the technical field of cloud platforms, in particular to a data consistency detection method, device and electronic equipment.
背景技术Background technique
云平台的上级管理系统可以针对用户的云计算请求创建相应的云计算任务,该云计算任务可以采用订单的形式表示。并且,上级管理系统可以通过调用云平台的接口,控制云平台创建相应的资源实例,以执行该云计算任务。为了便于对云平台的管理,云计算任务与资源实例之间应当具有一致性,即一个云计算任务对应于一个资源实例,一个资源实例对应于一个云计算任务,并且资源实例与订单的状态应当一致。因此相关技术中,上级管理系统可以在创建云计算任务后,将云计算任务的状态设置为创建中,并等待云平台反馈的资源实例创建结果,如果云平台成功创建资源实例,则将云计算任务的状态更改为运行中,如果云平台资源实例创建失败,则将云计算任务的状态更改为撤销。The upper-level management system of the cloud platform can create a corresponding cloud computing task according to the user's cloud computing request, and the cloud computing task can be expressed in the form of an order. In addition, the upper management system can control the cloud platform to create corresponding resource instances by calling the interface of the cloud platform, so as to execute the cloud computing task. In order to facilitate the management of the cloud platform, there should be consistency between cloud computing tasks and resource instances, that is, a cloud computing task corresponds to a resource instance, a resource instance corresponds to a cloud computing task, and the status of resource instances and orders should be Consistent. Therefore, in the related art, after the cloud computing task is created, the upper-level management system can set the status of the cloud computing task to being created, and wait for the creation result of the resource instance fed back by the cloud platform. If the cloud platform successfully creates the resource instance, the cloud computing task will be The status of the task is changed to Running. If the cloud platform resource instance fails to be created, the status of the cloud computing task is changed to Cancel.
但是,上级管理系统控制云平台创建资源实例所调用的接口为异步接口,因此如果云平台中用于收发异步消息的异步消息队列发生异常,导致云平台无法发送和/或接收异步消息,则可能导致资源实例与云计算任务间的不一致性。However, the interface called by the superior management system to control the cloud platform to create a resource instance is an asynchronous interface. Therefore, if the asynchronous message queue used for sending and receiving asynchronous messages in the cloud platform is abnormal, causing the cloud platform to fail to send and/or receive asynchronous messages, it may be Causes inconsistency between resource instances and cloud computing tasks.
发明内容SUMMARY OF THE INVENTION
本发明实施例的目的在于提供一种数据一致性检测方法、装置及电子设备,以实现在云平台的异步消息队列发生异常时,仍能够准确检测云计算任务与资源实例间的一致性。具体技术方案如下:The purpose of the embodiments of the present invention is to provide a data consistency detection method, device and electronic device, so as to accurately detect the consistency between cloud computing tasks and resource instances when an abnormality occurs in the asynchronous message queue of the cloud platform. The specific technical solutions are as follows:
在本发明实施例的第一方面,提供了一种数据一致性检测方法,所述方法包括:In a first aspect of the embodiments of the present invention, a data consistency detection method is provided, and the method includes:
获取云平台中状态发生变化的资源实例的实例标识和实例状态;Obtain the instance identifier and instance state of the resource instance whose state has changed in the cloud platform;
获取与所述实例标识对应的云计算任务的任务状态;obtaining the task status of the cloud computing task corresponding to the instance identifier;
确定所述实例状态和所述任务状态是否匹配;determining whether the instance state and the task state match;
如果所述实例状态和所述任务状态不匹配,确定所述资源实例与所述云计算任务不一致。If the instance state and the task state do not match, it is determined that the resource instance is inconsistent with the cloud computing task.
在一种可能的实现方式中,所述确定所述实例状态和所述任务状态是否匹配,包括:In a possible implementation manner, the determining whether the instance state matches the task state includes:
当所述实例状态表示所述资源实例正在运行中,并且所述任务状态表示所述云计算任务正在开通中或者已经撤销时,确定所述实例状态和所述任务状态不匹配。When the instance state indicates that the resource instance is running, and the task state indicates that the cloud computing task is being provisioned or has been revoked, it is determined that the instance state and the task state do not match.
在一种可能的实现方式中,所述确定所述实例状态和所述任务状态是否匹配,包括:In a possible implementation manner, the determining whether the instance state matches the task state includes:
当所述实例状态表示所述资源实例已经删除,并且所述任务状态表示所述云计算任务没有撤销或删除时,确定所述实例状态和所述任务状态不匹配。When the instance status indicates that the resource instance has been deleted, and the task status indicates that the cloud computing task has not been revoked or deleted, it is determined that the instance status and the task status do not match.
在一种可能的实现方式中,所述确定所述实例状态和所述任务状态是否匹配,包括:In a possible implementation manner, the determining whether the instance state matches the task state includes:
当所述实例状态表示所述资源实例正在运行中,并且所述任务状态表示所示云计算任务不存在时,确定所述实例状态和所述任务状态不匹配。When the instance status indicates that the resource instance is running, and the task status indicates that the cloud computing task does not exist, it is determined that the instance status and the task status do not match.
在一种可能的实现方式中,在所述确定所述资源实例与所述云计算任务不一致之后,所述方法还包括:In a possible implementation manner, after the determining that the resource instance is inconsistent with the cloud computing task, the method further includes:
向预设终端发送告警信息,所述告警信息包括所述实例标识、所述云计算任务的任务标识。Sending alarm information to a preset terminal, where the alarm information includes the instance identifier and the task identifier of the cloud computing task.
在一种可能的实现方式中,所述获取云平台中状态发生变化的资源实例的实例标识和实例状态,包括:In a possible implementation manner, the obtaining the instance identifier and instance state of the resource instance whose state has changed in the cloud platform includes:
周期性地获取云平台中,在本周期内状态发生变化的资源实例的实例标识和实例状态。Periodically obtain the instance identifier and instance state of the resource instance whose state has changed in the cloud platform during this period.
在一种可能的实现方式中,所述方法应用于独立于云平台层和订单服务端的检测服务端;In a possible implementation, the method is applied to a detection server independent of the cloud platform layer and the order server;
所述获取云平台中状态发生变化的资源实例的实例标识和实例状态,包括:The obtaining the instance identifier and instance state of the resource instance whose state has changed in the cloud platform includes:
通过调用云平台层的接口,获取云平台中状态发生变化的资源实例的实例标识和实例状态;Obtain the instance identifier and instance state of the resource instance whose state has changed in the cloud platform by calling the interface of the cloud platform layer;
所述获取与所述实例标识对应的云计算任务的任务状态,包括:The acquiring the task status of the cloud computing task corresponding to the instance identifier includes:
通过调用订单服务端的接口,获取与所述实例标识对应的云计算任务的任务状态。By calling the interface of the order server, the task status of the cloud computing task corresponding to the instance identifier is acquired.
在本发明实施例的第二方面,提供了一种数据一致性检测装置,所述装置包括:In a second aspect of the embodiments of the present invention, a data consistency detection device is provided, the device comprising:
实例查询模块,用于获取云平台中状态发生变化的资源实例的实例标识和实例状态;The instance query module is used to obtain the instance identifier and instance state of the resource instance whose state has changed in the cloud platform;
任务查询模块,用于获取与所述实例标识对应的云计算任务的任务状态;a task query module, configured to obtain the task status of the cloud computing task corresponding to the instance identifier;
状态匹配模块,用于确定所述实例状态和所述任务状态是否匹配;a state matching module for determining whether the instance state and the task state match;
一致性确定模块,用于如果所述实例状态和所述任务状态不匹配,确定所述资源实例与所述云计算任务不一致。A consistency determination module, configured to determine that the resource instance is inconsistent with the cloud computing task if the instance state and the task state do not match.
在一种可能的实现方式中,所述状态匹配模块,具体用于当所述实例状态表示所述资源实例正在运行中,并且所述任务状态表示所述云计算任务正在开通中或者已经撤销时,确定所述实例状态和所述任务状态不匹配。In a possible implementation manner, the status matching module is specifically configured to, when the instance status indicates that the resource instance is running, and the task status indicates that the cloud computing task is being activated or has been cancelled , it is determined that the instance state and the task state do not match.
在一种可能的实现方式中,所述状态匹配模块,具体用于当所述实例状态表示所述资源实例已经删除,并且所述任务状态表示所述云计算任务没有撤销或删除时,确定所述实例状态和所述任务状态不匹配。In a possible implementation manner, the state matching module is specifically configured to, when the instance state indicates that the resource instance has been deleted, and the task state indicates that the cloud computing task has not been revoked or deleted, determine the The instance state and the task state do not match.
在一种可能的实现方式中,所述状态匹配模块,具体用于当所述实例状态表示所述资源实例正在运行中,并且所述任务状态表示所示云计算任务不存在时,确定所述实例状态和所述任务状态不匹配。In a possible implementation manner, the state matching module is specifically configured to, when the instance state indicates that the resource instance is running, and the task state indicates that the cloud computing task does not exist, determine the The instance state and the task state do not match.
在一种可能的实现方式中,所述装置还包括告警模块,用于在所述确定所述资源实例与所述云计算任务不一致之后,向预设终端发送告警信息,所述告警信息包括所述实例标识、所述云计算任务的任务标识。In a possible implementation manner, the apparatus further includes an alarm module, configured to send alarm information to a preset terminal after it is determined that the resource instance is inconsistent with the cloud computing task, where the alarm information includes all The instance identifier and the task identifier of the cloud computing task.
在一种可能的实现方式中,所述实例查询模块,具体用于周期性地获取云平台中,在本周期内状态发生变化的资源实例的实例标识和实例状态。In a possible implementation manner, the instance query module is specifically configured to periodically acquire the instance identifier and instance state of the resource instance whose state changes in the current period in the cloud platform.
在一种可能的实现方式中,所述装置应用于独立于云平台层和订单服务端的检测服务端;In a possible implementation, the device is applied to a detection server independent of the cloud platform layer and the order server;
所述实例查询模块,具体用于通过调用云平台层的接口,获取云平台中状态发生变化的资源实例的实例标识和实例状态;The instance query module is specifically configured to obtain the instance identifier and instance state of the resource instance whose state has changed in the cloud platform by invoking the interface of the cloud platform layer;
所述任务查询模块,具体用于通过调用订单服务端的接口,获取与所述实例标识对应的云计算任务的任务状态。The task query module is specifically configured to acquire the task status of the cloud computing task corresponding to the instance identifier by invoking the interface of the order server.
在本发明实施例的第三方面,提供了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,处理器,通信接口,存储器通过通信总线完成相互间的通信;In a third aspect of the embodiments of the present invention, an electronic device is provided, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus;
存储器,用于存放计算机程序;memory for storing computer programs;
处理器,用于执行存储器上所存放的程序时,实现上述第一方面任一所述的方法步骤。The processor is configured to implement any one of the method steps described in the first aspect above when executing the program stored in the memory.
在本发明实施例的第四方面,提供了一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面任一所述的方法步骤。In a fourth aspect of the embodiments of the present invention, a computer-readable storage medium is provided, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any one of the above-mentioned first aspects is implemented. described method steps.
本发明实施例提供的数据一致性检测方法、装置及电子设备,无需通过异步接口获取云平台是否成功创建资源实例,因此即使云平台中用于收发异步消息的异步消息队列发生异常,依然可以准确检测出资源实例与云计算任务是否一致。当然,实施本发明的任一产品或方法并不一定需要同时达到以上所述的所有优点。The data consistency detection method, device and electronic device provided by the embodiments of the present invention do not need to obtain through an asynchronous interface whether the cloud platform has successfully created a resource instance. Therefore, even if the asynchronous message queue used for sending and receiving asynchronous messages in the cloud platform is abnormal, it can still be accurate. It is detected whether the resource instance is consistent with the cloud computing task. Of course, it is not necessary for any product or method of the present invention to achieve all of the advantages described above at the same time.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.
图1为本发明实施例提供的数据一致性检测方法的一种流程示意图;1 is a schematic flowchart of a data consistency detection method provided by an embodiment of the present invention;
图2为本发明实施例提供的云平台系统的一种结构示意图;2 is a schematic structural diagram of a cloud platform system provided by an embodiment of the present invention;
图3为本发明实施例提供的应用于检测服务端的数据一致性检测方法的一种流程示意图3 is a schematic flowchart of a data consistency detection method applied to a detection server according to an embodiment of the present invention
图4a为本发明实施例提供的数据一致性检测装置的一种结构示意图;4a is a schematic structural diagram of a data consistency detection apparatus provided by an embodiment of the present invention;
图4b为本发明实施例提供的数据一致性检测装置的另一种结构示意图;FIG. 4b is another schematic structural diagram of a data consistency detection apparatus provided by an embodiment of the present invention;
图5为本发明实施例提供的电子设备的一种结构示意图。FIG. 5 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
参见图1,图1所示为本发明实施例提供的数据一致性检测方法的一种流程示意图,可以应用于任一具有数据一致性检测功能的电子设备,方法包括:Referring to FIG. 1, FIG. 1 shows a schematic flowchart of a data consistency detection method provided by an embodiment of the present invention, which can be applied to any electronic device with a data consistency detection function. The method includes:
S101,获取云平台中状态发生变化的资源实例的实例标识和实例状态。S101: Obtain an instance identifier and an instance state of a resource instance whose state has changed in the cloud platform.
根据应用场景的不同,资源实例所指代的资源种类可以不同,示例性的,资源实例可以指代计算资源、存储资源以及网络资源中的一种或多种资源。其中,计算资源可以包括虚拟机、容器,存储资源可以包括磁盘(可以是机器硬盘,也可以是固态硬盘)、云盘,网络资源可以是弹性公网(Elastic Internet Protocol)。According to different application scenarios, the resource types referred to by the resource instance may be different. Exemplarily, the resource instance may refer to one or more resources among computing resources, storage resources, and network resources. The computing resources may include virtual machines and containers, the storage resources may include disks (may be machine hard disks or solid state disks) and cloud disks, and network resources may be Elastic Internet Protocol.
实例标识用于唯一标识资源实例,即不同的资源实例具有不同的实例标识,相同的实例标识表示相同的资源实例。实例状态根据应用场景的不同,可以有多种划分方式。示例性的,在一种可能的实施例中,实例状态可以包括:创建中(creating)、运行中(active)、失败(failed)、关机(stopped)、删除(deleted)。创建中,用于表示资源实例正在创建。运行中,用于表示资源实例已经成功创建。失败,用于表示资源实例创建失败。关机,用于表示资源实例已经停止运行。删除,用于表示所创建的资源实例已经被删除。The instance identifier is used to uniquely identify the resource instance, that is, different resource instances have different instance identifiers, and the same instance identifier represents the same resource instance. The instance state can be divided in multiple ways according to different application scenarios. Exemplarily, in a possible embodiment, the instance status may include: creating (creating), running (active), failed (failed), shutdown (stopped), and deleted (deleted). Creating, which indicates that the resource instance is being created. In running, it is used to indicate that the resource instance has been created successfully. Failed to indicate that the resource instance creation failed. Shutdown, used to indicate that the resource instance has stopped running. Delete, used to indicate that the created resource instance has been deleted.
可以是利用数据库查询脚本,查询指定起始时间和结束时间内,云平台中状态发生变化的资源实例的实例标识和实例状态。对于已经创建的资源实例,状态发生变化可以是指从一种实例状态变化至另一种实例状态。对于新创建的资源实例,由于原先不存在,因此可以视为是状态发生变化的资源实例。在一种可能的实施例中,可以是周期性地获取本周期内,云平台中状态发生变化的资源实例的实例标识和实例状态,周期的长短可以根据用户的经验或者需求进行设置,例如周期可以为5分钟。The database query script can be used to query the instance identifier and instance state of the resource instance whose state has changed in the cloud platform at the specified start time and end time. For a resource instance that has been created, a state change may refer to a change from one instance state to another instance state. For a newly created resource instance, since it does not exist before, it can be regarded as a resource instance whose state has changed. In a possible embodiment, the instance identifier and instance state of the resource instance whose state has changed in the cloud platform can be obtained periodically during the current cycle. The length of the cycle can be set according to the user's experience or needs. For example, the cycle Can be 5 minutes.
可以理解的是,假设在某一时刻所有资源实例和云计算任务之间具有一致性。则对于状态没有发生变化的资源实例,理论上在该时刻之后,仍然与云计算任务之间具有一致性。对于状态发生变化的资源实例,如果相应的云计算任务的任务状态没有对应变化,则可能导致资源实例与云计算任务间不一致。因此只需要对状态发生变化的资源实例进行检测即可。Understandably, it is assumed that there is consistency between all resource instances and cloud computing tasks at a certain moment. Then, for a resource instance whose state has not changed, theoretically, after this moment, there is still consistency with the cloud computing task. For a resource instance whose state changes, if the task state of the corresponding cloud computing task does not change correspondingly, it may cause inconsistency between the resource instance and the cloud computing task. Therefore, it is only necessary to detect the resource instance whose state has changed.
S102,获取与实例标识对应的云计算任务的任务状态。S102: Acquire the task status of the cloud computing task corresponding to the instance identifier.
实例状态根据应用场景的不同,可以有多种划分方式。示例性的,在一种可能的实施例中,任务状态可以包括:开通中、开通成功、开通失败、到期关停、撤销、删除。开通中,用于表示云计算任务正在开通。开通成功,用于表示云计算任务已经成功开通。开通失败,用于表示云计算任务已经开通失败。到期关停,用于表示云计算任务已经因为超期而停止。撤销,用于表示云计算任务已经撤销。删除,用于表示云计算任务已经被删除。The instance state can be divided in multiple ways according to different application scenarios. Exemplarily, in a possible embodiment, the task status may include: activating, activating successfully, activating failure, closing due to expiration, revoking, and deleting. Activating, it is used to indicate that the cloud computing task is being activated. Activation is successful, indicating that the cloud computing task has been successfully activated. Activation failed, which indicates that the cloud computing task has failed to be activated. Shutdown due to expiration is used to indicate that the cloud computing task has been stopped due to overdue. Cancel, used to indicate that the cloud computing task has been canceled. Delete, used to indicate that the cloud computing task has been deleted.
当云计算任务是以订单形式表示时,云计算任务可以是由上级管理系统中的订单服务端进行管理的,因此可以通过调用订单服务端的instance/info接口,获取每个实例标识对应的云计算任务的任务状态。When the cloud computing task is represented in the form of an order, the cloud computing task can be managed by the order server in the upper management system, so the cloud computing corresponding to each instance ID can be obtained by calling the instance/info interface of the order server The task status of the task.
S103,确定实例状态和任务状态是否匹配。S103, determine whether the instance state and the task state match.
根据实例状态和任务状态的划分方式不同,匹配的规则也可以不同。示例性的,以实例状态包括创建中、运行中、失败、关机、删除,任务状态包括开通中、开通成功、开通失败、到期关停、撤销以及删除为例。则匹配规则可以是,当实例状态和任务状态存在如下表所示的对应关系时,实例状态和任务状态匹配:The matching rules can also be different according to the way the instance state and the task state are divided. Exemplarily, the instance status includes creating, running, failed, shutting down, and deleting, and the task status includes activating, activating successfully, activating failed, shutting down due to expiration, revoking, and deleting as an example. Then the matching rule can be, when the instance state and the task state have the corresponding relationship as shown in the following table, the instance state and the task state match:
例如,当任务状态为开通中,实例状态为创建中时,则可以确定实例状态与任务状态匹配。又例如,当任务状态为开通中,实例状态为运行中时,则可以确定实例状态与任务状态不匹配。For example, when the task status is activating and the instance status is creating, it can be determined that the instance status matches the task status. For another example, when the task status is active and the instance status is running, it can be determined that the instance status does not match the task status.
在一种可能的实施例中,可以是在以下三种情况中的任意一种或多种情况下,确定实例状态和任务状态不匹配:In a possible embodiment, it may be determined that the instance state and the task state do not match in any one or more of the following three situations:
情况1,实例状态表示资源实例正在运行中,并且任务状态表示云计算任务正在开通中或者已经撤销。可以理解的是,如果资源实例已经在运行中,理论上云计算任务应当已经开通成功,因此如果云计算任务正在开通中或者已经撤销,则可以确定实例状态和任务状态不匹配。In case 1, the instance status indicates that the resource instance is running, and the task status indicates that the cloud computing task is being activated or has been cancelled. It can be understood that if the resource instance is already running, theoretically, the cloud computing task should have been successfully activated. Therefore, if the cloud computing task is being activated or has been cancelled, it can be determined that the instance status and the task status do not match.
情况2,实例状态表示资源实例已经删除,并且任务状态表示云计算任务没有撤销或删除。可以理解的是,如果资源实例已经删除,则无法继续执行云计算任务,因此理论上云计算任务应当已经撤销或删除。因此如果云计算任务没有撤销或删除,则可以确定实例状态和任务状态不匹配。In case 2, the instance status indicates that the resource instance has been deleted, and the task status indicates that the cloud computing task has not been revoked or deleted. It can be understood that if the resource instance has been deleted, the cloud computing task cannot continue to be executed, so theoretically the cloud computing task should have been revoked or deleted. Therefore, if the cloud computing task is not revoked or deleted, it can be determined that the instance state and the task state do not match.
情况3,实例状态表示资源实例正在运行中,并且任务状态表示云计算任务不存在。可以理解的是,如果云计算任务不存在,则理论上不应当创建相应的资源实例并运行。因此如果资源实例正在运行中,并且任务状态表示云计算任务不存在,则可以确定实例状态和任务状态不匹配。Case 3, the instance status indicates that the resource instance is running, and the task status indicates that the cloud computing task does not exist. It can be understood that if the cloud computing task does not exist, theoretically, the corresponding resource instance should not be created and run. So if the resource instance is running and the task state indicates that the cloud computing task does not exist, it can be determined that the instance state and the task state do not match.
S104,如果实例状态与任务状态不匹配,确定资源实例与云计算任务不一致。S104, if the instance state does not match the task state, it is determined that the resource instance is inconsistent with the cloud computing task.
选用该实施例,无需通过异步接口获取云平台是否成功创建资源实例,因此即使云平台中用于收发异步消息的异步消息队列发生异常,依然可以准确检测出资源实例与云计算任务是否一致。With this embodiment, it is not necessary to obtain whether the cloud platform successfully creates a resource instance through an asynchronous interface. Therefore, even if the asynchronous message queue used for sending and receiving asynchronous messages in the cloud platform is abnormal, it is still possible to accurately detect whether the resource instance is consistent with the cloud computing task.
另一方面,相关技术中,云计算任务和和资源实例是通过云平台的上级管理系统实现一致性的。因此,如果资源实例不是通过上级管理系统,而是直接在云平台的服务器本地,通过云平台的接口创建的资源实例,则无法实现一致性。而选用该实施例,由于通过获取云平台中的实例状态,以及对应的任务状态,判断资源实例和云计算任务是否具有一致性的,因此即使资源实例是在服务器本地,通过调用云平台的接口创建的,本实施例也能够从云平台中获取到该资源实例的实例状态,进而判断资源实例和云计算任务是否具有一致性,因此可以解决该技术问题。On the other hand, in the related art, cloud computing tasks and resource instances are consistent through the upper-level management system of the cloud platform. Therefore, if the resource instance is not created through the upper management system, but is created locally on the server of the cloud platform through the interface of the cloud platform, consistency cannot be achieved. In this embodiment, since the instance state in the cloud platform and the corresponding task state are obtained, it is judged whether the resource instance and the cloud computing task are consistent, so even if the resource instance is local on the server, by calling the interface of the cloud platform Created, this embodiment can also obtain the instance state of the resource instance from the cloud platform, and then determine whether the resource instance and the cloud computing task are consistent, so the technical problem can be solved.
相关技术中,是通过同步云计算任务和资源实例的创建,以使得云计算任务和资源实例保持一致性。因此,相关技术中保持一致性的过程,与云计算任务的创建、资源实例的创建的过程存在较强的耦合性。而云计算任务的创建、资源实例的创建是云平台系统的业务流程。因此,导致云平台系统的业务流程较为复杂,不利于云平台系统的运维。In the related art, cloud computing tasks and resource instances are kept consistent by synchronizing the creation of cloud computing tasks and resource instances. Therefore, the process of maintaining consistency in the related art has strong coupling with the process of creating cloud computing tasks and creating resource instances. The creation of cloud computing tasks and the creation of resource instances are the business processes of the cloud platform system. Therefore, the business process of the cloud platform system is complicated, which is not conducive to the operation and maintenance of the cloud platform system.
有鉴于此,可以参见图2,图2所示为本发明实施例提供的云平台系统的一种结构示意图,可以包括:检测服务端210、订单服务端220以及云平台层230。其中,订单服务端用于创建和管理表示云计算任务的订单。云平台层用于创建和管理资源实例。In view of this, please refer to FIG. 2 , which is a schematic structural diagram of a cloud platform system provided by an embodiment of the present invention, which may include a
检测服务端独立于云平台层和订单服务端,检测服务端可以是应用程序接口(Application Programming Interface,API)。检测服务端用于对订单服务端管理的订单和云平台层的资源实例进行一致性检测。检测服务端的执行逻辑可以如图3所示,包括:The detection server is independent of the cloud platform layer and the order server, and the detection server may be an Application Programming Interface (API). The detection server is used to perform consistency detection on the order managed by the order server and the resource instances of the cloud platform layer. The execution logic of the detection server can be shown in Figure 3, including:
S301,通过调用云平台层的接口,获取云平台中状态发生变化的资源实例的实例标识和实例状态。S301 , by invoking an interface of the cloud platform layer, obtain an instance identifier and an instance state of a resource instance whose state has changed in the cloud platform.
S302,通过调用订单服务端的接口,获取与实例标识对应的云计算任务的任务状态。S302, by invoking the interface of the order server, obtain the task status of the cloud computing task corresponding to the instance identifier.
在该应用场景中,云计算任务的任务状态即为订单的订单状态。In this application scenario, the task status of the cloud computing task is the order status of the order.
S303,确定实例状态和任务状态是否匹配。S303, determine whether the instance state and the task state match.
该步骤与S103相同,可以参见前述关于S103的相关描述,在此不再赘述。This step is the same as that of S103, and reference may be made to the foregoing related description of S103, and details are not repeated here.
S304,如果实例状态和任务状态不匹配,确定资源实例与云计算任务不一致。S304, if the instance state and the task state do not match, it is determined that the resource instance is inconsistent with the cloud computing task.
选用该实施例,可以通过独立于订单服务端和云平台层的检测服务端进行数据一致性检测,并且检测服务端是通过调用订单服务端和云平台层的接口获取实例状态和任务状态,因此数据一致性检测不会影响到订单服务端和云平台层自身的业务。即云平台系统中,业务逻辑与数据一致性检测间不耦合,可以有效降低云平台系统的运维成本。By choosing this embodiment, data consistency detection can be performed through the detection server independent of the order server and the cloud platform layer, and the detection server obtains the instance status and task status by calling the interface of the order server and the cloud platform layer. Therefore, Data consistency detection will not affect the business of the order server and the cloud platform layer itself. That is, in the cloud platform system, business logic and data consistency detection are not coupled, which can effectively reduce the operation and maintenance cost of the cloud platform system.
在一种可能的实施例中,为在检测到云计算任务和资源实例不匹配后,及时通知相关人员,可以向预设终端发送告警信息,告警信息中包括实例标识以及云计算任务的任务标识。In a possible embodiment, in order to notify relevant personnel in time after detecting that the cloud computing task does not match the resource instance, alarm information may be sent to the preset terminal, and the alarm information includes the instance identifier and the task identifier of the cloud computing task. .
根据预设终端的类型的不同,告警信息的形式可以不同。例如,如果预设终端为手机,则告警信息可以是以短信的形式发送的。又例如,如果预设终端为具有接收邮件功能的用户终端,则告警信息也可以是以邮件的形式发送的。According to different types of preset terminals, the form of the alarm information can be different. For example, if the preset terminal is a mobile phone, the alarm information may be sent in the form of a short message. For another example, if the preset terminal is a user terminal with a function of receiving emails, the alarm information may also be sent in the form of emails.
告警信息中除实例标识以及云计算任务的任务标识外,还可以包括其他信息。例如,还可以包括云计算任务所对应的用户的用户标识、云计算任务所对应的产品的产品类型、资源实例所对应的机房的机房信息、资源实例的任务状态、实例状态、资源实例更新时间、云计算任务来源、云计算任务所包括的各个子任务的标识中的一个或多个,本实施例对此不做限制。In addition to the instance identifier and the task identifier of the cloud computing task, the alarm information may also include other information. For example, it may also include the user ID of the user corresponding to the cloud computing task, the product type of the product corresponding to the cloud computing task, the computer room information of the computer room corresponding to the resource instance, the task status of the resource instance, the instance status, and the update time of the resource instance. , the source of the cloud computing task, and one or more of the identifiers of each subtask included in the cloud computing task, which is not limited in this embodiment.
告警信息可以是以表格形式表示的,也可以是以图片形式、纯文本等其他形式表示的,示例性的,在一种可能的应用场景中,告警信息可以如下表所示:The alarm information can be expressed in the form of a table, or can be expressed in other forms such as pictures, plain text, etc. Exemplarily, in a possible application scenario, the alarm information can be shown in the following table:
参见图4a,图4a所示为本发明实施例提供的数据一致性检测装置的一种结构示意图,可以包括:Referring to FIG. 4a, FIG. 4a is a schematic structural diagram of a data consistency detection apparatus provided by an embodiment of the present invention, which may include:
实例查询模块401,用于获取云平台中状态发生变化的资源实例的实例标识和实例状态;The
任务查询模块402,用于获取与实例标识对应的云计算任务的任务状态;A
状态匹配模块403,用于确定实例状态和任务状态是否匹配;The
一致性确定模块404,用于如果实例状态和任务状态不匹配,确定资源实例与云计算任务不一致。The
在一种可能的实施例中,状态匹配模块403,具体用于当实例状态表示资源实例正在运行中,并且任务状态表示云计算任务正在开通中或者已经撤销时,确定实例状态和任务状态不匹配。In a possible embodiment, the
在一种可能的实施例中,状态匹配模块403,具体用于当实例状态表示资源实例已经删除,并且任务状态表示云计算任务没有撤销或删除时,确定实例状态和任务状态不匹配。In a possible embodiment, the
在一种可能的实施例中,状态匹配模块403,具体用于当实例状态表示资源实例正在运行中,并且任务状态表示所示云计算任务不存在时,确定实例状态和任务状态不匹配。In a possible embodiment, the
在一种可能的实施例中,如图4b所示,装置还包括告警模块405,用于在确定资源实例与云计算任务不一致之后,向预设终端发送告警信息,告警信息包括实例标识、云计算任务的任务标识。In a possible embodiment, as shown in FIG. 4b, the apparatus further includes an
在一种可能的实施例中,实例查询模块401,具体用于周期性地获取云平台中,在本周期内状态发生变化的资源实例的实例标识和实例状态。In a possible embodiment, the
在一种可能的实施中,装置应用于独立于云平台层和订单服务端的检测服务端;In a possible implementation, the device is applied to a detection server independent of the cloud platform layer and the order server;
实例查询模块401,具体用于通过调用云平台层的接口,获取云平台中状态发生变化的资源实例的实例标识和实例状态;The
任务查询模块402,具体用于通过调用订单服务端的接口,获取与实例标识对应的云计算任务的任务状态。The
本发明实施例还提供了一种电子设备,如图5所示,包括处理器501、通信接口502、存储器503和通信总线504,其中,处理器501,通信接口502,存储器503通过通信总线504完成相互间的通信,An embodiment of the present invention further provides an electronic device, as shown in FIG. 5 , including a processor 501 , a communication interface 502 , a memory 503 and a communication bus 504 , wherein the processor 501 , the communication interface 502 , and the memory 503 pass through the communication bus 504 complete communication with each other,
存储器503,用于存放计算机程序;a memory 503 for storing computer programs;
处理器501,用于执行存储器503上所存放的程序时,实现如下步骤:When the processor 501 is used to execute the program stored in the memory 503, the following steps are implemented:
获取云平台中状态发生变化的资源实例的实例标识和实例状态;Obtain the instance identifier and instance state of the resource instance whose state has changed in the cloud platform;
获取与实例标识对应的云计算任务的任务状态;Obtain the task status of the cloud computing task corresponding to the instance identifier;
确定实例状态和任务状态是否匹配;Determine if instance state and task state match;
如果实例状态和任务状态不匹配,确定资源实例与云计算任务不一致。If the instance state and the task state do not match, it is determined that the resource instance is inconsistent with the cloud computing task.
在一种可能的实施例中,确定实例状态和任务状态是否匹配,包括:In a possible embodiment, determining whether the instance state and the task state match, including:
当实例状态表示资源实例正在运行中,并且任务状态表示云计算任务正在开通中或者已经撤销时,确定实例状态和任务状态不匹配。When the instance status indicates that the resource instance is running, and the task status indicates that the cloud computing task is being provisioned or has been cancelled, it is determined that the instance status and the task status do not match.
在一种可能的实施例中,确定实例状态和任务状态是否匹配,包括:In a possible embodiment, determining whether the instance state and the task state match, including:
当实例状态表示资源实例已经删除,并且任务状态表示云计算任务没有撤销或删除时,确定实例状态和任务状态不匹配。When the instance status indicates that the resource instance has been deleted, and the task status indicates that the cloud computing task has not been revoked or deleted, it is determined that the instance status and the task status do not match.
在一种可能的实施例中,确定实例状态和任务状态是否匹配,包括:In a possible embodiment, determining whether the instance state and the task state match, including:
当实例状态表示资源实例正在运行中,并且任务状态表示所示云计算任务不存在时,确定实例状态和任务状态不匹配。When the instance status indicates that the resource instance is running, and the task status indicates that the indicated cloud computing task does not exist, it is determined that the instance status and the task status do not match.
在一种可能的实施例中,在确定资源实例与云计算任务不一致之后,方法还包括:In a possible embodiment, after determining that the resource instance is inconsistent with the cloud computing task, the method further includes:
向预设终端发送告警信息,告警信息包括实例标识、云计算任务的任务标识。Send alarm information to the preset terminal, where the alarm information includes instance identifiers and task identifiers of cloud computing tasks.
在一种可能的实施例中,获取云平台中状态发生变化的资源实例的实例标识和实例状态,包括:In a possible embodiment, acquiring the instance identifier and instance state of the resource instance whose state has changed in the cloud platform includes:
周期性地获取云平台中,在本周期内状态发生变化的资源实例的实例标识和实例状态。Periodically obtain the instance identifier and instance status of the resource instance whose status has changed in the cloud platform during this period.
在一种可能的实施例中,方法应用于独立于云平台层和订单服务端的检测服务端;In a possible embodiment, the method is applied to a detection server independent of the cloud platform layer and the order server;
获取云平台中状态发生变化的资源实例的实例标识和实例状态,包括:Obtain the instance ID and instance status of the resource instance whose status has changed in the cloud platform, including:
通过调用云平台层的接口,获取云平台中状态发生变化的资源实例的实例标识和实例状态;Obtain the instance identifier and instance state of the resource instance whose state has changed in the cloud platform by calling the interface of the cloud platform layer;
获取与实例标识对应的云计算任务的任务状态,包括:Get the task status of the cloud computing task corresponding to the instance ID, including:
通过调用订单服务端的接口,获取与实例标识对应的云计算任务的任务状态。Obtain the task status of the cloud computing task corresponding to the instance ID by calling the interface of the order server.
上述电子设备提到的通信总线可以是外设部件互连标准(Peripheral ComponentInterconnect,PCI)总线或扩展工业标准结构(Extended Industry StandardArchitecture,EISA)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。为便于表示,图中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus mentioned in the above electronic device may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, EISA) bus or the like. The communication bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
通信接口用于上述电子设备与其他设备之间的通信。The communication interface is used for communication between the above electronic device and other devices.
存储器可以包括随机存取存储器(Random Access Memory,RAM),也可以包括非易失性存储器(Non-Volatile Memory,NVM),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。The memory may include random access memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-Volatile Memory, NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
上述的处理器可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(Digital SignalProcessing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。The above-mentioned processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; may also be a digital signal processor (Digital Signal Processing, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
在本发明提供的又一实施例中,还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行上述实施例中任一数据一致性检测方法。In yet another embodiment provided by the present invention, a computer-readable storage medium is also provided, where instructions are stored in the computer-readable storage medium, when the computer-readable storage medium is run on a computer, the computer is made to execute any one of the above-mentioned embodiments. Data consistency detection method.
在本发明提供的又一实施例中,还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行上述实施例中任一数据一致性检测方法。In yet another embodiment provided by the present invention, there is also provided a computer program product including instructions, which, when running on a computer, enables the computer to execute any of the data consistency detection methods in the foregoing embodiments.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本发明实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。In the above-mentioned embodiments, it may be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented in software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present invention are generated. The computer may be a general purpose computer, special purpose computer, computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be downloaded from a website site, computer, server, or data center Transmission to another website site, computer, server, or data center is by wire (eg, coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (eg, infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that includes an integration of one or more available media. The usable media may be magnetic media (eg, floppy disks, hard disks, magnetic tapes), optical media (eg, DVD), or semiconductor media (eg, Solid State Disk (SSD)), among others.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this document, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any relationship between these entities or operations. any such actual relationship or sequence exists. Moreover, the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device that includes a list of elements includes not only those elements, but also includes not explicitly listed or other elements inherent to such a process, method, article or apparatus. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in a process, method, article or apparatus that includes the element.
本说明书中的各个实施例均采用相关的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置、电子设备、计算机可读存储介质以及计算机程序产品的实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a related manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiments of the apparatus, electronic equipment, computer-readable storage medium, and computer program product, since they are basically similar to the method embodiments, the description is relatively simple, and for relevant details, please refer to the partial description of the method embodiments. .
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本发明的保护范围内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims (16)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910913285.0A CN110674153B (en) | 2019-09-25 | 2019-09-25 | Data consistency detection method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910913285.0A CN110674153B (en) | 2019-09-25 | 2019-09-25 | Data consistency detection method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110674153A true CN110674153A (en) | 2020-01-10 |
CN110674153B CN110674153B (en) | 2023-02-07 |
Family
ID=69079047
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910913285.0A Active CN110674153B (en) | 2019-09-25 | 2019-09-25 | Data consistency detection method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110674153B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111431985A (en) * | 2020-03-18 | 2020-07-17 | 紫光云技术有限公司 | Method for resource state synchronization between heterogeneous subsystems of cloud service |
CN111639984A (en) * | 2020-05-11 | 2020-09-08 | 紫光云技术有限公司 | Method for real-time refund of database products |
CN113395307A (en) * | 2020-03-13 | 2021-09-14 | 华为技术有限公司 | Method, apparatus and computer equipment for task synchronization |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104102544A (en) * | 2014-06-30 | 2014-10-15 | 武汉理工大学 | Multi QoS (quality of service)-constrained parallel task scheduling cost optimizing method under mixed cloud environment |
US20160112497A1 (en) * | 2014-10-16 | 2016-04-21 | Amazon Technologies, Inc. | On-demand delivery of applications to virtual desktops |
CN107204965A (en) * | 2016-03-18 | 2017-09-26 | 阿里巴巴集团控股有限公司 | The hold-up interception method and system of a kind of password cracking behavior |
CN107872499A (en) * | 2016-09-28 | 2018-04-03 | 北京金山云网络技术有限公司 | Service creation method, device and system |
CN108270865A (en) * | 2018-01-22 | 2018-07-10 | 成都汇智远景科技有限公司 | The job scheduling method of high-performance cloud computing platform |
CN108833131A (en) * | 2018-04-25 | 2018-11-16 | 北京百度网讯科技有限公司 | System, method, device and computer storage medium for distributed database cloud service |
CN108900386A (en) * | 2018-08-10 | 2018-11-27 | 北京金山云网络技术有限公司 | Production method, device and the electronic equipment of warning information |
US20190079751A1 (en) * | 2017-09-08 | 2019-03-14 | Accenture Global Solutions Limited | Infrastructure Instantiation, Collaboration, and Validation Architecture for Serverless Execution Frameworks |
CN109861994A (en) * | 2019-01-17 | 2019-06-07 | 安徽云探索网络科技有限公司 | The vulnerability scanning method and its scanning means that cloud is invaded |
-
2019
- 2019-09-25 CN CN201910913285.0A patent/CN110674153B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104102544A (en) * | 2014-06-30 | 2014-10-15 | 武汉理工大学 | Multi QoS (quality of service)-constrained parallel task scheduling cost optimizing method under mixed cloud environment |
US20160112497A1 (en) * | 2014-10-16 | 2016-04-21 | Amazon Technologies, Inc. | On-demand delivery of applications to virtual desktops |
CN107204965A (en) * | 2016-03-18 | 2017-09-26 | 阿里巴巴集团控股有限公司 | The hold-up interception method and system of a kind of password cracking behavior |
CN107872499A (en) * | 2016-09-28 | 2018-04-03 | 北京金山云网络技术有限公司 | Service creation method, device and system |
US20190079751A1 (en) * | 2017-09-08 | 2019-03-14 | Accenture Global Solutions Limited | Infrastructure Instantiation, Collaboration, and Validation Architecture for Serverless Execution Frameworks |
CN108270865A (en) * | 2018-01-22 | 2018-07-10 | 成都汇智远景科技有限公司 | The job scheduling method of high-performance cloud computing platform |
CN108833131A (en) * | 2018-04-25 | 2018-11-16 | 北京百度网讯科技有限公司 | System, method, device and computer storage medium for distributed database cloud service |
CN108900386A (en) * | 2018-08-10 | 2018-11-27 | 北京金山云网络技术有限公司 | Production method, device and the electronic equipment of warning information |
CN109861994A (en) * | 2019-01-17 | 2019-06-07 | 安徽云探索网络科技有限公司 | The vulnerability scanning method and its scanning means that cloud is invaded |
Non-Patent Citations (2)
Title |
---|
孟飙 等: "云制造资源服务化封装与服务发现研究", 《航空制造技术》 * |
陈明强 等: "基于语义的机加工服务智能匹配", 《机械工程与自动化》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113395307A (en) * | 2020-03-13 | 2021-09-14 | 华为技术有限公司 | Method, apparatus and computer equipment for task synchronization |
CN111431985A (en) * | 2020-03-18 | 2020-07-17 | 紫光云技术有限公司 | Method for resource state synchronization between heterogeneous subsystems of cloud service |
CN111431985B (en) * | 2020-03-18 | 2023-04-21 | 紫光云技术有限公司 | Method for synchronizing resource states among cloud service heterogeneous subsystems |
CN111639984A (en) * | 2020-05-11 | 2020-09-08 | 紫光云技术有限公司 | Method for real-time refund of database products |
Also Published As
Publication number | Publication date |
---|---|
CN110674153B (en) | 2023-02-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021180025A1 (en) | Message processing method and apparatus, electronic device and medium | |
CN108600029B (en) | A configuration file updating method, device, terminal device and storage medium | |
US10313183B2 (en) | Network function virtualization NFV fault management apparatus, device, and method | |
US9253265B2 (en) | Hot pluggable extensions for access management system | |
CN110851471B (en) | Distributed log data processing method, device and system | |
CN109426510B (en) | Software processing method and device, electronic equipment and computer readable storage medium | |
CN110674153B (en) | Data consistency detection method and device and electronic equipment | |
CN110851290A (en) | A data synchronization method, device, electronic device and storage medium | |
CN114328029B (en) | A backup method, device, electronic device and storage medium for application resources | |
CN113220433A (en) | Agent program operation management method and system | |
US12063166B1 (en) | Resource management for services | |
CN114185804B (en) | Interface testing method and device and terminal equipment | |
CN115580522A (en) | Method and device for monitoring running state of container cloud platform | |
CN110955460B (en) | Service process starting method and device, electronic equipment and storage medium | |
CN112395194A (en) | Method and device for accessing test platform | |
CN110795211A (en) | Method and device for upgrading configuration of virtual machine, electronic equipment and readable storage medium | |
CN113010365A (en) | System running state monitoring method, system running state detection device, electronic equipment and storage medium | |
CN116737662A (en) | Method, device, electronic equipment and storage medium for processing business data | |
CN112463616B (en) | A chaos testing method and device for Kubernetes container platform | |
CN110768834B (en) | Method, system, device and medium for notifying upgrading result of virtual machine configuration | |
CN115167769A (en) | Method, device and system for writing data | |
CN114896082A (en) | Message processing method, apparatus, electronic device and storage medium | |
CN110868477A (en) | Task scheduling method, device and system | |
CN111324386A (en) | Method and device for starting personal application program, electronic equipment and storage medium | |
CN115994132A (en) | Data cleaning method and device, electronic 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 |