WO2018161342A1 - Election method and system for distributed system of monitoring cloud platform - Google Patents
Election method and system for distributed system of monitoring cloud platform Download PDFInfo
- Publication number
- WO2018161342A1 WO2018161342A1 PCT/CN2017/076280 CN2017076280W WO2018161342A1 WO 2018161342 A1 WO2018161342 A1 WO 2018161342A1 CN 2017076280 W CN2017076280 W CN 2017076280W WO 2018161342 A1 WO2018161342 A1 WO 2018161342A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- election
- distributed system
- master device
- votes
- processing
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 238000012544 monitoring process Methods 0.000 title claims abstract description 21
- 238000010586 diagram Methods 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07C—TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- G07C13/00—Voting apparatus
- G07C13/02—Ballot boxes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
Definitions
- the present invention relates to the field of monitoring, and in particular, to an election method and system for monitoring a cloud platform distributed system.
- the monitoring system consists of 5 parts: camera, transmission, control, display, and record registration.
- the camera transmits the video image to the control host through the coaxial video cable, and the control host distributes the video signal to each monitor and recording device, and simultaneously records the voice signal to be transmitted into the recorder.
- the operator can issue commands to control the up, down, left, and right movements of the pan/tilt and focus the zoom on the lens, and can be implemented in the multi-channel camera and the pan/tilt by the control host. Switch between. With special recording processing mode, images can be recorded, played back, processed, etc., so that the recording effect is optimal.
- the electoral method of the distributed system of the existing monitoring system is inefficient and affects the user experience.
- the application provides an election method for monitoring a distributed platform of a cloud platform. It solves the shortcomings of the prior art technical solutions.
- a method for monitoring a cloud platform distributed system comprising the steps of: a first device in a distributed system broadcasting an election message to other devices in the distributed system, the election message including, The processing capability of the first device; the first device of the distributed system receives other election messages broadcast by the other device, the other election messages include: processing capabilities of other devices; the first device of the distributed system determines the first device processing When the strongest is possible, the election vote is voted for the first device; the distributed system counts the number of votes, and the device with the highest number of votes is used as the master device.
- the method further includes:
- the distributed system uses the device with the second highest number of votes as the standby master device.
- the method further includes:
- the distributed system configures the standby master device as a new master device.
- an election system for monitoring a cloud platform distributed system comprising:
- a transceiver unit configured to broadcast an election message to other devices in the distributed system, where the election message includes: processing capability of the first device; receiving other election messages broadcast by the other device, where the other election messages include: Equipment processing capacity;
- the processing unit is configured to: when the first device processing is the strongest, vote the election vote to the first device; count the number of votes, and use the device with the highest number of votes as the master device.
- system further includes:
- the processing unit is configured to use the device with the second highest voting number as the standby master device.
- system further includes:
- the processing unit is configured to configure the standby master device as a new master device, such as a master device failure.
- a monitoring system including: a processor, a wireless transceiver, a memory, and a bus, wherein the processor, the wireless transceiver, and the memory are connected by a bus.
- the wireless transceiver is configured to broadcast an election message to other devices in the distributed system, where the election message includes: processing capability of the first device; receiving other election messages broadcast by the other device, the other election message Including: the processing power of other equipment;
- the processor is configured to: when the processing of the first device is the strongest, vote for the election to the first device; count the number of votes, and use the device with the highest number of votes as the master device.
- the processor is specifically configured to use the device with the second highest number of votes as the standby master device.
- the processor is configured to configure the standby master device as a new master device, such as a master device failure.
- the technical solution provided by the present invention improves efficiency by a new election method, so it has the advantage of high user experience.
- FIG. 1 is a flowchart of an election method for monitoring a cloud platform distributed system according to a first preferred embodiment of the present invention
- FIG. 2 is a structural diagram of an election system for monitoring a cloud platform distributed system according to a second preferred embodiment of the present invention.
- FIG. 3 is a hardware structural diagram of a monitoring system according to a second preferred embodiment of the present invention.
- FIG. 1 is a method for electing a distributed cloud platform distributed system according to a first preferred embodiment of the present invention. The method is as shown in FIG. 1 and includes the following steps:
- Step S101 The first device in the distributed system broadcasts an election message to other devices in the distributed system, where the election message includes a processing capability of the first device.
- Step S102 The first device of the distributed system receives other election messages broadcast by the other device, where the other election messages include: processing capabilities of other devices.
- Step S103 The first device of the distributed system determines that the first device processing is the strongest, and the election vote is voted for the first device; the distributed system counts the number of votes, and the device with the highest number of votes is used as the master device.
- the technical solution provided by the present invention improves efficiency by a new election method, so it has the advantage of high user experience.
- the distributed system uses the device with the second highest number of votes as the standby master device.
- the distributed system configures the standby master device as a new master device.
- FIG. 2 is an electoral system for monitoring a cloud platform distributed system according to a second preferred embodiment of the present invention.
- the system is as shown in FIG. 2, and includes:
- the transceiver unit 201 is configured to broadcast an election message to other devices in the distributed system, where the election message includes: processing capability of the first device; and receiving other election messages broadcast by the other device, where the other election messages include: Processing capacity of other equipment;
- the processing unit 202 is configured to: when the first device processing is the strongest, vote the election vote to the first device; count the number of votes, and use the device with the highest number of votes as the master device.
- the technical solution provided by the present invention improves efficiency by a new election method, so it has the advantage of high user experience.
- the system may further include: a processing unit 202, where the device with the second highest number of votes is used as the standby master device.
- the processing unit 202 is configured to configure the standby master device as a new master device, such as a master device failure.
- FIG. 3 is a monitoring system 30, including: a processor 301, a wireless transceiver 302, a memory 303, and a bus 304.
- the wireless transceiver 302 is configured to transmit and receive data with and from an external device.
- the number of processors 301 can be one or more.
- processor 301, memory 302, and transceiver 303 may be connected by bus 304 or other means.
- Monitoring system 30 can be used to perform the steps of FIG. For the meaning and examples of the terms involved in the embodiment, reference may be made to the corresponding embodiment of FIG. 1. I will not repeat them here.
- the wireless transceiver 302 is configured to broadcast an election message to other devices in the distributed system, where the election message includes: processing capability of the first device; receiving other election messages broadcast by the other device, where the other election messages include : The processing power of other devices.
- the program code is stored in the memory 303.
- the processor 901 is configured to call the program code stored in the memory 903 for performing the following operations:
- the processor 301 is configured to: when the first device processing is the strongest, vote the election vote to the first device; count the number of votes, and use the device with the highest number of votes as the master device.
- the processor 301 herein may be a processing component or a general term of multiple processing components.
- the processing element can be a central processor (Central) Processing Unit, CPU), or a specific integrated circuit (Application Specific Integrated) Circuit, ASIC), or one or more integrated circuits configured to implement embodiments of the present application, such as one or more microprocessors (digital singnal Processor, DSP), or one or more Field Programmable Gate Arrays (FPGAs).
- CPU central processor
- ASIC Application Specific Integrated Circuit
- DSP digital singnal Processor
- FPGAs Field Programmable Gate Arrays
- the memory 303 may be a storage device or a collective name of a plurality of storage elements, and is used to store executable program code or parameters, data, and the like required for the application running device to operate. And the memory 303 may include random access memory (RAM), and may also include non-volatile memory (non-volatile memory) Memory), such as disk storage, flash (Flash), etc.
- RAM random access memory
- non-volatile memory non-volatile memory
- flash flash
- Bus 304 can be an industry standard architecture (Industry Standard Architecture, ISA) bus, Peripheral Component (PCI) bus or extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc.
- the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 3, but it does not mean that there is only one bus or one type of bus.
- the terminal may further include input and output means connected to the bus 304 for connection to other parts such as the processor 301 via the bus.
- the input/output device can provide an input interface for the operator, so that the operator can select the control item through the input interface, and can also be other interfaces through which other devices can be externally connected.
- the program may be stored in a computer readable storage medium, and the storage medium may include: Flash drive, read-only memory (English: Read-Only Memory, referred to as: ROM), random accessor (English: Random Access Memory, referred to as: RAM), disk or CD.
- ROM Read-Only Memory
- RAM Random Access Memory
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Alarm Systems (AREA)
Abstract
Disclosed in the present invention is an election method for a distributed system of a monitoring cloud platform, the method comprising the following steps: a first equipment in a distributed system broadcasts an election message to other equipment in the distributed system, the election message comprising the processing capacity of the first equipment; the first equipment of the distributed system receives other election messages broadcasted by the other equipment, the other election messages comprising: the processing capacities of the other equipment; when the first equipment of the distributed system determines that the first equipment has the strongest processing capacity, an election vote is cast for the first equipment; and the distributed system counts the votes, and the equipment with the most votes serves as the master control equipment. The technical solution provided in the present invention has the advantage of a great user experience.
Description
本发明涉及监控领域,尤其涉及一种监控云平台分布式系统的选举方法及系统。The present invention relates to the field of monitoring, and in particular, to an election method and system for monitoring a cloud platform distributed system.
监控系统是由摄像、传输、控制、显示、记录登记5大部分组成。摄像机通过同轴视频电缆将视频图像传输到控制主机,控制主机再将视频信号分配到各监视器及录像设备,同时可将需要传输的语音信号同步录入到录像机内。
通过控制主机,操作人员可发出指令,对云台的上、下、左、右的动作进行控制及对镜头进行调焦变倍的操作,并可通过控制主机实现在多路摄像机及云台之间的切换。利用特殊的录像处理模式,可对图像进行录入、回放、处理等操作,使录像效果达到最佳。The monitoring system consists of 5 parts: camera, transmission, control, display, and record registration. The camera transmits the video image to the control host through the coaxial video cable, and the control host distributes the video signal to each monitor and recording device, and simultaneously records the voice signal to be transmitted into the recorder.
By controlling the host, the operator can issue commands to control the up, down, left, and right movements of the pan/tilt and focus the zoom on the lens, and can be implemented in the multi-channel camera and the pan/tilt by the control host. Switch between. With special recording processing mode, images can be recorded, played back, processed, etc., so that the recording effect is optimal.
现有的监控系统的分布式系统的选举方法效率低,影响用户的体验度。The electoral method of the distributed system of the existing monitoring system is inefficient and affects the user experience.
本申请提供一种监控云平台分布式系统的选举方法。其解决现有技术的技术方案效率低的缺点。The application provides an election method for monitoring a distributed platform of a cloud platform. It solves the shortcomings of the prior art technical solutions.
一方面,提供一种监控云平台分布式系统的选举方法,所述方法包括如下步骤:分布式系统中的第一设备向所述分布式系统内的其他设备广播选举消息,该选举消息包含,第一设备的处理能力;分布式系统的第一设备接收所述其他设备广播的其他选举消息,所述其他选举消息包括:其他设备的处理能力;分布式系统的第一设备确定第一设备处理能够最强时,将选举投票投给第一设备;分布式系统统计投票数,将投票数最高的设备作为主控设备。In one aspect, a method for monitoring a cloud platform distributed system is provided, the method comprising the steps of: a first device in a distributed system broadcasting an election message to other devices in the distributed system, the election message including, The processing capability of the first device; the first device of the distributed system receives other election messages broadcast by the other device, the other election messages include: processing capabilities of other devices; the first device of the distributed system determines the first device processing When the strongest is possible, the election vote is voted for the first device; the distributed system counts the number of votes, and the device with the highest number of votes is used as the master device.
可选的,所述方法还包括:Optionally, the method further includes:
分布式系统将投票数第二高的设备作为备用主控设备。The distributed system uses the device with the second highest number of votes as the standby master device.
可选的,所述方法还包括:Optionally, the method further includes:
如主控设备故障,分布式系统将所述备用主控设备配置成新的主控设备。If the master device fails, the distributed system configures the standby master device as a new master device.
第二方面,提供一种监控云平台分布式系统的选举系统,所述系统包括:In a second aspect, an election system for monitoring a cloud platform distributed system is provided, the system comprising:
收发单元,用于向所述分布式系统内的其他设备广播选举消息,该选举消息包含,第一设备的处理能力;接收所述其他设备广播的其他选举消息,所述其他选举消息包括:其他设备的处理能力;a transceiver unit, configured to broadcast an election message to other devices in the distributed system, where the election message includes: processing capability of the first device; receiving other election messages broadcast by the other device, where the other election messages include: Equipment processing capacity;
处理单元,用于确定第一设备处理能够最强时,将选举投票投给第一设备;统计投票数,将投票数最高的设备作为主控设备。The processing unit is configured to: when the first device processing is the strongest, vote the election vote to the first device; count the number of votes, and use the device with the highest number of votes as the master device.
可选的,所述系统还包括:Optionally, the system further includes:
处理单元,用于将投票数第二高的设备作为备用主控设备。The processing unit is configured to use the device with the second highest voting number as the standby master device.
可选的,所述系统还包括:Optionally, the system further includes:
处理单元,用于如主控设备故障,将所述备用主控设备配置成新的主控设备。The processing unit is configured to configure the standby master device as a new master device, such as a master device failure.
第三方面,提供一种监控系统,包括:处理器、无线收发器、存储器和总线,所述处理器、无线收发器、存储器通过总线连接, In a third aspect, a monitoring system is provided, including: a processor, a wireless transceiver, a memory, and a bus, wherein the processor, the wireless transceiver, and the memory are connected by a bus.
所述无线收发器,用于向所述分布式系统内的其他设备广播选举消息,该选举消息包含,第一设备的处理能力;接收所述其他设备广播的其他选举消息,所述其他选举消息包括:其他设备的处理能力;The wireless transceiver is configured to broadcast an election message to other devices in the distributed system, where the election message includes: processing capability of the first device; receiving other election messages broadcast by the other device, the other election message Including: the processing power of other equipment;
所述处理器,用于确定第一设备处理能够最强时,将选举投票投给第一设备;统计投票数,将投票数最高的设备作为主控设备。The processor is configured to: when the processing of the first device is the strongest, vote for the election to the first device; count the number of votes, and use the device with the highest number of votes as the master device.
可选的,所述处理器,具体用于将投票数第二高的设备作为备用主控设备。Optionally, the processor is specifically configured to use the device with the second highest number of votes as the standby master device.
可选的,所述处理器,用于如主控设备故障,将所述备用主控设备配置成新的主控设备。Optionally, the processor is configured to configure the standby master device as a new master device, such as a master device failure.
本发明提供的技术方案通过新的选举方法提高效率,所以其具有用户体验度高的优点。The technical solution provided by the present invention improves efficiency by a new election method, so it has the advantage of high user experience.
为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without paying any creative work.
图1为本发明第一较佳实施方式提供的一种监控云平台分布式系统的选举方法的流程图;1 is a flowchart of an election method for monitoring a cloud platform distributed system according to a first preferred embodiment of the present invention;
图2为本发明第二较佳实施方式提供的一种监控云平台分布式系统的选举系统的结构图。2 is a structural diagram of an election system for monitoring a cloud platform distributed system according to a second preferred embodiment of the present invention.
图3为本发明第二较佳实施方式提供的一种监控系统的硬件结构图。FIG. 3 is a hardware structural diagram of a monitoring system according to a second preferred embodiment of the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
请参考图1,图1是本发明第一较佳实施方式提出的一种监控云平台分布式系统的选举方法,该方法如图1所示,包括如下步骤:Please refer to FIG. 1. FIG. 1 is a method for electing a distributed cloud platform distributed system according to a first preferred embodiment of the present invention. The method is as shown in FIG. 1 and includes the following steps:
步骤S101、分布式系统中的第一设备向所述分布式系统内的其他设备广播选举消息,该选举消息包含,第一设备的处理能力。Step S101: The first device in the distributed system broadcasts an election message to other devices in the distributed system, where the election message includes a processing capability of the first device.
步骤S102、分布式系统的第一设备接收所述其他设备广播的其他选举消息,所述其他选举消息包括:其他设备的处理能力。Step S102: The first device of the distributed system receives other election messages broadcast by the other device, where the other election messages include: processing capabilities of other devices.
步骤S103、分布式系统的第一设备确定第一设备处理能够最强时,将选举投票投给第一设备;分布式系统统计投票数,将投票数最高的设备作为主控设备。Step S103: The first device of the distributed system determines that the first device processing is the strongest, and the election vote is voted for the first device; the distributed system counts the number of votes, and the device with the highest number of votes is used as the master device.
本发明提供的技术方案通过新的选举方法提高效率,所以其具有用户体验度高的优点。The technical solution provided by the present invention improves efficiency by a new election method, so it has the advantage of high user experience.
可选的,分布式系统将投票数第二高的设备作为备用主控设备。Optionally, the distributed system uses the device with the second highest number of votes as the standby master device.
可选的,如主控设备故障,分布式系统将所述备用主控设备配置成新的主控设备。Optionally, if the master device fails, the distributed system configures the standby master device as a new master device.
请参考图2,图2是本发明第二较佳实施方式提出的一种监控云平台分布式系统的选举系统,该系统如图2所示,包括:Please refer to FIG. 2. FIG. 2 is an electoral system for monitoring a cloud platform distributed system according to a second preferred embodiment of the present invention. The system is as shown in FIG. 2, and includes:
收发单元201,用于向所述分布式系统内的其他设备广播选举消息,该选举消息包含,第一设备的处理能力;接收所述其他设备广播的其他选举消息,所述其他选举消息包括:其他设备的处理能力;The transceiver unit 201 is configured to broadcast an election message to other devices in the distributed system, where the election message includes: processing capability of the first device; and receiving other election messages broadcast by the other device, where the other election messages include: Processing capacity of other equipment;
处理单元202,用于确定第一设备处理能够最强时,将选举投票投给第一设备;统计投票数,将投票数最高的设备作为主控设备。The processing unit 202 is configured to: when the first device processing is the strongest, vote the election vote to the first device; count the number of votes, and use the device with the highest number of votes as the master device.
本发明提供的技术方案通过新的选举方法提高效率,所以其具有用户体验度高的优点。The technical solution provided by the present invention improves efficiency by a new election method, so it has the advantage of high user experience.
可选的,系统还可以包括:处理单元202,将投票数第二高的设备作为备用主控设备。Optionally, the system may further include: a processing unit 202, where the device with the second highest number of votes is used as the standby master device.
可选的,处理单元202,用于如主控设备故障,将所述备用主控设备配置成新的主控设备。Optionally, the processing unit 202 is configured to configure the standby master device as a new master device, such as a master device failure.
参阅图3,图3为一种监控系统30,包括:处理器301、无线收发器302、存储器303和总线304,无线收发器302用于与外部设备之间收发数据。处理器301的数量可以是一个或多个。本申请的一些实施例中,处理器301、存储器302和收发器303可通过总线304或其他方式连接。监控系统30可以用于执行图1的步骤。关于本实施例涉及的术语的含义以及举例,可以参考图1对应的实施例。此处不再赘述。Referring to FIG. 3, FIG. 3 is a monitoring system 30, including: a processor 301, a wireless transceiver 302, a memory 303, and a bus 304. The wireless transceiver 302 is configured to transmit and receive data with and from an external device. The number of processors 301 can be one or more. In some embodiments of the present application, processor 301, memory 302, and transceiver 303 may be connected by bus 304 or other means. Monitoring system 30 can be used to perform the steps of FIG. For the meaning and examples of the terms involved in the embodiment, reference may be made to the corresponding embodiment of FIG. 1. I will not repeat them here.
无线收发器302,用于向所述分布式系统内的其他设备广播选举消息,该选举消息包含,第一设备的处理能力;接收所述其他设备广播的其他选举消息,所述其他选举消息包括:其他设备的处理能力。The wireless transceiver 302 is configured to broadcast an election message to other devices in the distributed system, where the election message includes: processing capability of the first device; receiving other election messages broadcast by the other device, where the other election messages include : The processing power of other devices.
其中,存储器303中存储程序代码。处理器901用于调用存储器903中存储的程序代码,用于执行以下操作:The program code is stored in the memory 303. The processor 901 is configured to call the program code stored in the memory 903 for performing the following operations:
处理器301,用于确定第一设备处理能够最强时,将选举投票投给第一设备;统计投票数,将投票数最高的设备作为主控设备。The processor 301 is configured to: when the first device processing is the strongest, vote the election vote to the first device; count the number of votes, and use the device with the highest number of votes as the master device.
需要说明的是,这里的处理器301可以是一个处理元件,也可以是多个处理元件的统称。例如,该处理元件可以是中央处理器(Central
Processing Unit,CPU),也可以是特定集成电路(Application Specific Integrated
Circuit,ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路,例如:一个或多个微处理器(digital singnal
processor,DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array, FPGA)。It should be noted that the processor 301 herein may be a processing component or a general term of multiple processing components. For example, the processing element can be a central processor (Central)
Processing Unit, CPU), or a specific integrated circuit (Application Specific Integrated)
Circuit, ASIC), or one or more integrated circuits configured to implement embodiments of the present application, such as one or more microprocessors (digital singnal
Processor, DSP), or one or more Field Programmable Gate Arrays (FPGAs).
存储器303可以是一个存储装置,也可以是多个存储元件的统称,且用于存储可执行程序代码或应用程序运行装置运行所需要参数、数据等。且存储器303可以包括随机存储器(RAM),也可以包括非易失性存储器(non-volatile
memory),例如磁盘存储器,闪存(Flash)等。The memory 303 may be a storage device or a collective name of a plurality of storage elements, and is used to store executable program code or parameters, data, and the like required for the application running device to operate. And the memory 303 may include random access memory (RAM), and may also include non-volatile memory (non-volatile memory)
Memory), such as disk storage, flash (Flash), etc.
总线304可以是工业标准体系结构(Industry Standard
Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(Extended
Industry Standard
Architecture,EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图3中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Bus 304 can be an industry standard architecture (Industry Standard
Architecture, ISA) bus, Peripheral Component (PCI) bus or extended industry standard architecture (Extended
Industry Standard
Architecture, EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 3, but it does not mean that there is only one bus or one type of bus.
该终端还可以包括输入输出装置,连接于总线304,以通过总线与处理器301等其它部分连接。该输入输出装置可以为操作人员提供一输入界面,以便操作人员通过该输入界面选择布控项,还可以是其它接口,可通过该接口外接其它设备。The terminal may further include input and output means connected to the bus 304 for connection to other parts such as the processor 301 via the bus. The input/output device can provide an input interface for the operator, so that the operator can select the control item through the input interface, and can also be other interfaces through which other devices can be externally connected.
需要说明的是,对于前述的各个方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本发明并不受所描述的动作顺序的限制,因为依据本发明,某一些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本发明所必须的。It should be noted that, for the foregoing various method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should understand that the present invention is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present invention. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present invention.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。In the above embodiments, the descriptions of the various embodiments are different, and the parts that are not described in detail in a certain embodiment can be referred to the related descriptions of other embodiments.
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(英文:Read-Only
Memory ,简称:ROM)、随机存取器(英文:Random Access Memory,简称:RAM)、磁盘或光盘等。A person skilled in the art may understand that all or part of the various steps of the foregoing embodiments may be performed by a program to instruct related hardware. The program may be stored in a computer readable storage medium, and the storage medium may include: Flash drive, read-only memory (English: Read-Only
Memory, referred to as: ROM), random accessor (English: Random Access Memory, referred to as: RAM), disk or CD.
以上对本发明实施例所提供的内容下载方法及相关设备、系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The content downloading method and the related device and system provided by the embodiments of the present invention are described in detail above. The principles and implementation manners of the present invention are described in the specific examples. The description of the above embodiments is only used to help understand the present invention. The method of the invention and its core idea; at the same time, for the person of ordinary skill in the art, according to the idea of the present invention, there are some changes in the specific embodiment and the scope of application. In summary, the content of the specification should not be understood. To limit the invention.
Claims (9)
- 一种监控云平台分布式系统的选举方法,其特征在于,所述方法包括如下步骤: An election method for monitoring a distributed system of a cloud platform, characterized in that the method comprises the following steps:分布式系统中的第一设备向所述分布式系统内的其他设备广播选举消息,该选举消息包含,第一设备的处理能力;The first device in the distributed system broadcasts an election message to other devices in the distributed system, where the election message includes: a processing capability of the first device;分布式系统的第一设备接收所述其他设备广播的其他选举消息,所述其他选举消息包括:其他设备的处理能力;The first device of the distributed system receives other election messages broadcast by the other device, where the other election messages include: processing capabilities of other devices;分布式系统的第一设备确定第一设备处理能够最强时,将选举投票投给第一设备;When the first device of the distributed system determines that the first device processing can be the strongest, the election vote is voted for the first device;分布式系统统计投票数,将投票数最高的设备作为主控设备。The distributed system counts the number of votes, and the device with the highest number of votes is used as the master device.
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:分布式系统将投票数第二高的设备作为备用主控设备。The distributed system uses the device with the second highest number of votes as the standby master device.
- 根据权要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:如主控设备故障,分布式系统将所述备用主控设备配置成新的主控设备。If the master device fails, the distributed system configures the standby master device as a new master device.
- 一种监控云平台分布式系统的选举系统,其特征在于,所述系统包括:An election system for monitoring a distributed system of a cloud platform, characterized in that the system comprises:收发单元,用于向所述分布式系统内的其他设备广播选举消息,该选举消息包含,第一设备的处理能力;接收所述其他设备广播的其他选举消息,所述其他选举消息包括:其他设备的处理能力;a transceiver unit, configured to broadcast an election message to other devices in the distributed system, where the election message includes: processing capability of the first device; receiving other election messages broadcast by the other device, where the other election messages include: Equipment processing capacity;处理单元,用于确定第一设备处理能够最强时,将选举投票投给第一设备;统计投票数,将投票数最高的设备作为主控设备。The processing unit is configured to: when the first device processing is the strongest, vote the election vote to the first device; count the number of votes, and use the device with the highest number of votes as the master device.
- 根据权利要求4所述的系统,其特征在于,所述系统还包括:The system of claim 4, wherein the system further comprises:处理单元,用于将投票数第二高的设备作为备用主控设备。The processing unit is configured to use the device with the second highest voting number as the standby master device.
- 根据权利要求5所述的系统,其特征在于,所述系统还包括:The system of claim 5, wherein the system further comprises:处理单元,用于如主控设备故障,将所述备用主控设备配置成新的主控设备。The processing unit is configured to configure the standby master device as a new master device, such as a master device failure.
- 一种监控系统,包括:处理器、无线收发器、存储器和总线,所述处理器、无线收发器、存储器通过总线连接,其特征在于,A monitoring system includes: a processor, a wireless transceiver, a memory, and a bus, wherein the processor, the wireless transceiver, and the memory are connected by a bus, wherein所述无线收发器,用于向所述分布式系统内的其他设备广播选举消息,该选举消息包含,第一设备的处理能力;接收所述其他设备广播的其他选举消息,所述其他选举消息包括:其他设备的处理能力;The wireless transceiver is configured to broadcast an election message to other devices in the distributed system, where the election message includes: processing capability of the first device; receiving other election messages broadcast by the other device, the other election message Including: the processing power of other equipment;所述处理器,用于确定第一设备处理能够最强时,将选举投票投给第一设备;统计投票数,将投票数最高的设备作为主控设备。The processor is configured to: when the processing of the first device is the strongest, vote for the election to the first device; count the number of votes, and use the device with the highest number of votes as the master device.
- 根据权利要求7所述的监控系统,其特征在于,所述处理器,具体用于将投票数第二高的设备作为备用主控设备。The monitoring system according to claim 7, wherein the processor is specifically configured to use the device with the second highest number of votes as the standby master device.
- 根据权利要求7所述的监控系统,其特征在于,所述处理器,用于如主控设备故障,将所述备用主控设备配置成新的主控设备。The monitoring system according to claim 7, wherein the processor is configured to configure the standby master device as a new master device, such as a master device failure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2017/076280 WO2018161342A1 (en) | 2017-03-10 | 2017-03-10 | Election method and system for distributed system of monitoring cloud platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2017/076280 WO2018161342A1 (en) | 2017-03-10 | 2017-03-10 | Election method and system for distributed system of monitoring cloud platform |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018161342A1 true WO2018161342A1 (en) | 2018-09-13 |
Family
ID=63448088
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/076280 WO2018161342A1 (en) | 2017-03-10 | 2017-03-10 | Election method and system for distributed system of monitoring cloud platform |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2018161342A1 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080168182A1 (en) * | 2007-01-05 | 2008-07-10 | Silicon Graphics, Inc. | System and Method of Synchronizing Real Time Clock Values in Arbitrary Distributed Systems |
CN103634375A (en) * | 2013-11-07 | 2014-03-12 | 华为技术有限公司 | Method, device and equipment for cluster node expansion |
CN104679796A (en) * | 2013-12-03 | 2015-06-03 | 方正信息产业控股有限公司 | Selecting method, selecting device and database mirror image cluster node |
CN104753994A (en) * | 2013-12-27 | 2015-07-01 | 杭州海康威视系统技术有限公司 | Method and device for data synchronization based on cluster server system |
CN106952207A (en) * | 2017-03-10 | 2017-07-14 | 深圳市博信诺达经贸咨询有限公司 | Monitor the electoral machinery and system of cloud platform distributed system |
-
2017
- 2017-03-10 WO PCT/CN2017/076280 patent/WO2018161342A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080168182A1 (en) * | 2007-01-05 | 2008-07-10 | Silicon Graphics, Inc. | System and Method of Synchronizing Real Time Clock Values in Arbitrary Distributed Systems |
CN103634375A (en) * | 2013-11-07 | 2014-03-12 | 华为技术有限公司 | Method, device and equipment for cluster node expansion |
CN104679796A (en) * | 2013-12-03 | 2015-06-03 | 方正信息产业控股有限公司 | Selecting method, selecting device and database mirror image cluster node |
CN104753994A (en) * | 2013-12-27 | 2015-07-01 | 杭州海康威视系统技术有限公司 | Method and device for data synchronization based on cluster server system |
CN106952207A (en) * | 2017-03-10 | 2017-07-14 | 深圳市博信诺达经贸咨询有限公司 | Monitor the electoral machinery and system of cloud platform distributed system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2013165088A1 (en) | Distributed transcoding apparatus and method using multiple servers | |
WO2018176390A1 (en) | Safety precaution method and system for winding machine | |
WO2018223354A1 (en) | Positioning-based attendance recording method and system | |
WO2018161342A1 (en) | Election method and system for distributed system of monitoring cloud platform | |
WO2018170684A1 (en) | Fault location method and system for cloud monitoring platform | |
CN113377329B (en) | Virtual audio equipment, audio data processing method and device | |
WO2018161219A1 (en) | Method and system for managing big data of monitoring videos | |
WO2018170683A1 (en) | Task allocation method and system for cloud service in monitoring system | |
WO2018161220A1 (en) | Cloud platform grouping task distribution method and system in monitoring system | |
WO2018161218A1 (en) | Big data sequencing recommendation method and system with monitoring system | |
WO2018170685A1 (en) | Video stitching method and system for monitoring cloud platform | |
WO2018223375A1 (en) | Controlling and reminding method and system for terminal traffic | |
WO2019061384A1 (en) | Method and system for electing task manager in distributed crawler system | |
CN220511167U (en) | Audio-video device and electronic equipment | |
CN213461982U (en) | Information flow integrated processing platform | |
WO2018209586A1 (en) | Bluetooth positioning method and system | |
WO2018176225A1 (en) | Decoding method and system for audio and video data | |
CN115550601B (en) | Multifunctional commanding and scheduling system adopting audio and video | |
CN213126279U (en) | Audio and video transcoding blade device | |
WO2018176449A1 (en) | Method and system for performing statistics and distribution on progress of winding machine | |
CN108306836A (en) | Data transmission device, intelligent interactive panel and data transmission method | |
WO2018218615A1 (en) | Method and system for determining priorities of multiple apps in terminal | |
WO2023024014A1 (en) | Docking station | |
WO2023024015A1 (en) | Multifunctional electronic device | |
WO2018209549A1 (en) | Terminal video interval division method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17899483 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22/01/2020) |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17899483 Country of ref document: EP Kind code of ref document: A1 |