CN114442523A - Control method of distributed redundant control system actuator - Google Patents
Control method of distributed redundant control system actuator Download PDFInfo
- Publication number
- CN114442523A CN114442523A CN202111681055.XA CN202111681055A CN114442523A CN 114442523 A CN114442523 A CN 114442523A CN 202111681055 A CN202111681055 A CN 202111681055A CN 114442523 A CN114442523 A CN 114442523A
- Authority
- CN
- China
- Prior art keywords
- executor
- result
- main
- control system
- executors
- 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
- 238000000034 method Methods 0.000 title claims abstract description 44
- 230000005856 abnormality Effects 0.000 claims description 5
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0421—Multiprocessor system
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/20—Pc systems
- G05B2219/24—Pc safety
- G05B2219/24182—Redundancy
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Hardware Redundancy (AREA)
Abstract
Description
技术领域technical field
本发明涉及一种应用于工业控制领域的控制系统执行器,具体涉及一种分布式冗余控制系统执行器的控制方法。The invention relates to a control system executor applied in the field of industrial control, in particular to a control method of a distributed redundant control system executor.
背景技术Background technique
在工业控制领域,人们对于工业软件的安全性、可靠性的要求非常之高。控制系统执行器作为一种直接操控控制系统的软件,其安全性与可靠性的直接影响着整个车间甚至整个工程的安全生产。独立运行的执行器可能受网络环境、设备状态、人为因素影响出现离线、故障等不可用状态,从而对生产造成影响。In the field of industrial control, people have very high requirements for the security and reliability of industrial software. As a software that directly controls the control system, the safety and reliability of the control system actuator directly affects the safety production of the entire workshop and even the entire project. Actuators running independently may be offline, faulty and other unavailable states due to network environment, equipment status, and human factors, thus affecting production.
目前常用的主从冗余的技术方案,实现控制系统执行器的稳定和安全运行,运行数据在主从两个执行器上保持同步,在异常发生时根据第三者裁决切换。The commonly used technical solution of master-slave redundancy at present realizes the stable and safe operation of the actuators of the control system. The operating data is kept synchronized on the two actuators of the master and slave, and the switch is made according to the judgment of a third party when an abnormality occurs.
但是,采用上述主从冗余的技术方案,不可避免依赖第三者进行裁决,当第三者失联或故障时会导致失效。另一方面,由于使用数据库同步运行数据,意味着数据由主执行器产生,当主执行器连接的数据源不稳定或主执行器受到攻击时,从执行器无法提供验证或纠错功能。However, with the above-mentioned master-slave redundancy technical solution, it is inevitable to rely on a third party for adjudication, which will lead to failure when the third party loses contact or fails. On the other hand, using the database to run data synchronously means that the data is generated by the master executor. When the data source connected to the master executor is unstable or the master executor is attacked, the slave executor cannot provide verification or error correction functions.
发明内容SUMMARY OF THE INVENTION
本发明为了提升执行器的稳定性和安全性,提供了一种可靠、安全的分布式冗余控制系统执行器的控制方法,通过对分布式冗余控制执行器的执行结果进行投票和选举,可以使控制系统的执行器运行更加稳定安全,提高了执行器的抗干扰能力与鲁棒性。In order to improve the stability and safety of the actuator, the present invention provides a reliable and safe control method for the actuator of the distributed redundant control system. By voting and electing the execution result of the distributed redundant control actuator, It can make the actuator of the control system run more stably and safely, and improve the anti-interference ability and robustness of the actuator.
本发明克服其技术问题所采用的技术方案是:一种分布式冗余控制系统执行器的控制方法,应用于至少包括三个执行器的控制系统,其中,所述执行器包括至多一个主执行器和不少于两个从执行器,具体包括:主执行器广播第一命令或第一数据;若主执行器广播第一命令,则系统内所有执行器基于第一命令得到执行结果,并将执行结果作为第一结果;若主执行器广播第一数据,则系统内所有执行器基于收到的第一数据和自身新增数据进行对比,并将对比结果作为第一结果;每个执行器分别向其他执行器广播所述第一结果,所有执行器基于收到的第一结果分别进行投票;主执行器收集投票结果,并基于投票结果判断投票是否通过,若投票通过,则将第一结果作为最终执行结果。The technical solution adopted by the present invention to overcome its technical problems is: a method for controlling actuators in a distributed redundant control system, which is applied to a control system including at least three actuators, wherein the actuators include at most one main actuator. It includes: the master executor broadcasts the first command or the first data; if the master executor broadcasts the first command, all the executors in the system obtain the execution result based on the first command, and Take the execution result as the first result; if the main executor broadcasts the first data, all the executors in the system compare the received first data with their own newly added data, and use the comparison result as the first result; each execution The executor broadcasts the first result to other executors respectively, and all executors vote based on the received first result; the main executor collects the voting results, and judges whether the vote is passed based on the voting results. A result as the final execution result.
第一命令用于分布式冗余控制系统执行器的分布式执行,第一数据用于据同步。The first command is used for distributed execution of the actuators of the distributed redundant control system, and the first data is used for data synchronization.
进一步的,若投票结果通过,还包括增加投通过票的执行器的权重。Further, if the voting result is passed, it also includes increasing the weight of the executors that voted.
执行器的权重影响的选举和投票的结果。The weights of executors affect the outcome of elections and voting.
进一步的,还包括若主执行器发生异常时,则从执行器基于检测到的异常更改为候选执行器,并重新发起主执行器的选举。Further, if an exception occurs in the master executor, the slave executor is changed to a candidate executor based on the detected exception, and the election of the master executor is re-initiated.
进一步的,所述从执行器基于检测到的异常更改为候选执行器,并重新发起主执行器的选举,具体包括:候选执行器将任期ID自增后发起主执行器的选举,以及为自身投票,并广播投票请求后收集投票结果;基于收集的投票结果确定自身是否赢得选举;若选举成功,则新的主执行器发布赢得选举和任期ID,其余执行器转为从执行器;若选举失败,则间隔预设时间,候选执行器重新发起主执行器的选举。Further, the slave executor is changed to a candidate executor based on the detected abnormality, and the election of the master executor is re-initiated, which specifically includes: the candidate executor initiates the election of the master executor after the term ID is auto-incremented, and for itself Vote, and collect the voting results after broadcasting the voting request; determine whether it has won the election based on the collected voting results; if the election is successful, the new master executor publishes the election winning and term ID, and the remaining executors become slave executors; if the election is successful If it fails, the candidate executor re-initiates the election of the main executor at a preset time interval.
进一步的,若主执行器在选举过程中恢复正常,则其变为候选执行器参与主执行器的选举,若主执行器在选出新的主执行器后恢复正常,则变为从执行器。Further, if the master executor returns to normal during the election process, it becomes a candidate executor to participate in the election of the master executor. If the master executor returns to normal after electing a new master executor, it becomes a slave executor. .
进一步的,若主执行器广播第一命令,则还包括主执行器将最终结果写入控制器。Further, if the main executor broadcasts the first command, it also includes the main executor writing the final result to the controller.
进一步的,若主执行器广播第一数据,则还包括所有执行器将最终结果写入数据库或缓存中。Further, if the main executor broadcasts the first data, it also includes that all executors write the final result into the database or cache.
进一步的,所有执行器基于收到的第一结果进行投票,具体包括:所有执行器收集其他执行器的执行结果,以及,对应的每个执行器的权重,若未能收集到的执行器的执行结果,则将其忽略,若未能收集到执行器的权重,则采用上一次收集到的权重;若收集的符合结果的执行器权重和总权重的比值大于第一预设阈值,则该执行器投通过票。Further, all executors vote based on the received first result, which specifically includes: all executors collect the execution results of other executors, and the corresponding weight of each executor. The execution result is ignored. If the weight of the executor cannot be collected, the weight collected last time is used; if the ratio of the collected weight of the executor that matches the result to the total weight is greater than the first preset Actuator voted.
进一步的,所述主执行器收集投票结果,并基于投票结果判断投票是否通过,具体包括:若主执行器收集到所有执行器的投票后,若投票数和总投票数的比值大于第二预设阈值,则判断投票结果通过。Further, the main executor collects the voting results, and judges whether the voting is passed based on the voting results, which specifically includes: if the main executor collects the votes of all executors, if the ratio of the number of votes to the total number of votes is greater than the second pre-determined number of votes. If the threshold is set, the voting result is judged to pass.
进一步的,若投票结果未通过,则重复执行主执行器广播第一命令或第一数据。Further, if the voting result fails, the main executor broadcasts the first command or the first data repeatedly.
本发明的有益效果是:The beneficial effects of the present invention are:
1、采用控制系统执行器采用更加灵活的分布式冗余架构,使每一个执行器在正常情况下均参与到执行过程中,由此提供了更好的数据可靠性、安全性与鲁棒型。1. The control system actuator adopts a more flexible distributed redundant architecture, so that each actuator participates in the execution process under normal circumstances, thus providing better data reliability, security and robustness. .
2、通过执行器的选举和投票,使执行器的执行更加可靠、安全。2. Through the election and voting of the executor, the execution of the executor is more reliable and safe.
附图说明Description of drawings
图1为本发明实施例的分布式冗余控制系统执行器的控制方法的流程图;1 is a flowchart of a method for controlling an actuator of a distributed redundant control system according to an embodiment of the present invention;
图2为本发明实施例的分布式冗余控制系统执行器的分布式执行方法流程示意图;2 is a schematic flowchart of a distributed execution method for an executor of a distributed redundant control system according to an embodiment of the present invention;
图3为本发明实施例的分布式冗余控制系统执行器的数据同步方法流程示意图;3 is a schematic flowchart of a data synchronization method for an executor of a distributed redundant control system according to an embodiment of the present invention;
图4为本发明实施例的分布式冗余控制系统执行器的选举方法流程示意图。FIG. 4 is a schematic flowchart of a method for electing an executor of a distributed redundant control system according to an embodiment of the present invention.
具体实施方式Detailed ways
为了便于本领域人员更好的理解本发明,下面结合附图和具体实施例对本发明做进一步详细说明,下述仅是示例性的不限定本发明的保护范围。In order to facilitate those skilled in the art to better understand the present invention, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments. The following are only exemplary and do not limit the protection scope of the present invention.
在描述本发明的分布式冗余控制系统执行器的技术方案之前,首先对涉及到本方案的一些专有名词进行解释:Before describing the technical solution of the actuator of the distributed redundant control system of the present invention, some proper terms related to this solution are first explained:
分布式:将一个系统分散地多台计算机上以实现更高的性能和更好的可靠性Distributed: Distributing a system across multiple computers for higher performance and better reliability
冗余:出于安全可靠性要求提供的备用系统,通常具有热切换功能Redundancy: A backup system provided for safety and reliability requirements, usually with hot-swap capability
执行器:一种执行某一过程或逻辑的硬件或软件,位于控制系统上层,拥有直接操控控制系统能力。其功能可以表示为:执行器(上一状态,事件)=下一状态。Actuator: A piece of hardware or software that executes a process or logic. It is located at the upper level of the control system and has the ability to directly control the control system. Its function can be expressed as: executor (previous state, event) = next state.
状态:特指系统的状态,通常一个系统可以由一个状态模型描述。State: The state of the system in particular, usually a system can be described by a state model.
为了便于本领域人员更好的理解本发明,下面结合附图和具体实施例对本发明做进一步详细说明,下述仅是示例性的不限定本发明的保护范围。In order to facilitate those skilled in the art to better understand the present invention, the present invention will be described in further detail below with reference to the accompanying drawings and specific embodiments. The following are only exemplary and do not limit the protection scope of the present invention.
如图1所示,本发明提出的一种分布式冗余控制系统执行器的控制方法,应用于至少包括一个主执行器和两个从执行器的控制系统中,分布式冗余控制系统执行器的控制方法具体包括:主执行器广播第一命令或第一数据,若主执行器广播第一命令,则系统内所有执行器基于第一命令执行命令得到执行结果,并将执行结果作为第一结果;若主执行器广播第一数据,则系统内所有执行器基于收到的第一数据和自身新增数据进行对比,并将对比结果作为第一结果。每个执行器分别向其他执行器广播所述第一结果,所有执行器基于收到的第一结果分别进行投票。主执行器收集投票结果,并基于投票结果判断投票是否通过,若投票结果通过,则将第一结果作为最终执行结果。As shown in FIG. 1 , a method for controlling an actuator of a distributed redundant control system proposed by the present invention is applied to a control system including at least one master actuator and two slave actuators. The distributed redundant control system executes The control method of the executor specifically includes: the main executor broadcasts the first command or the first data, if the main executor broadcasts the first command, all the executors in the system execute the command to obtain the execution result based on the first command, and use the execution result as the first command. One result: if the main executor broadcasts the first data, all the executors in the system compare the received first data with their own newly added data, and use the comparison result as the first result. Each executor broadcasts the first result to other executors, and all the executors vote respectively based on the received first result. The main executor collects the voting results, and judges whether the voting is passed based on the voting results. If the voting results are passed, the first result is used as the final execution result.
在一些实施方式中,第一命令用于执行器分布式执行的控制方法,第一数据用于执行器进行数据同步的控制方法。In some embodiments, the first command is used for the control method for distributed execution of the executors, and the first data is used for the control method for the executors to perform data synchronization.
下面以图2所示对分布式控制系统的分布式执行的控制方法进行说明,分布式冗余控制系统包括一个主执行器和3个从执行器,分别为从执行器1、从执行器2和从执行器3。主执行器执行命令a,在命令a开始执行后,主执行器广播开始执行命令a,使得所有的执行器接收命令a。各个执行器接收命令a后,读取程序数据与控制程序,并尝试执行命令a,并将尝试得到的执行结果广播到系统内。如图2所示,主执行器尝试执行得到的执行结果为结果A,从执行器1尝试执行得到的执行结果是结果A,从执行器2的执行结果是A,从执行器3的执行结果是B。The following describes the control method for distributed execution of the distributed control system as shown in FIG. 2 . The distributed redundant control system includes a master executor and three slave executors, which are slave executor 1 and slave executor 2 respectively. and
在一些实施方式中,由于不同的执行器连接的数据源可能不同,不同的数据源有不同的数据读写权限,因此不同的执行器对于同样的执行命令,有不同的执行结果。In some embodiments, since different executors may be connected to different data sources, and different data sources have different data read and write permissions, different executors have different execution results for the same execution command.
另外的一些实施方式中,由于网络状态、数据延迟等都会使执行器有不同的结果,不排除执行器存在异常的结果。In other embodiments, the executor may have different results due to network status, data delay, etc., and it is not excluded that the executor has abnormal results.
每个执行器向其他执行器广播执行结果,所有的执行器基于收集的执行结果和权重,投票主执行器的执行结果A是否正确。主执行器收集结果并判断是否通过投票,若未通过,则重新执行命令a,并重复上述过程,如果通过,则收集最终执行结果A,并由主执行器完成后续控制,例如图2所示的写入控制器或数据库。如果不通过,则返回主执行器开始执行命令的过程重新开始分布式执行。Each executor broadcasts the execution result to other executors, and all executors vote whether the execution result A of the main executor is correct based on the collected execution results and weights. The main executor collects the results and judges whether the vote is passed. If it fails, execute command a again and repeat the above process. If it passes, collect the final execution result A and complete the subsequent control by the main executor, as shown in Figure 2. of the write controller or database. If it does not pass, the process of returning to the main executor to start executing the command restarts the distributed execution.
在一些实施方式中,执行器投票前收集所有执行器的结果R以及对应的执行权重p,则投通过票的要求为即符合结果的执行器权重之和除以总权重之和大于等于0.5,则投通过票。如果存在未能及时收集到执行器的结果,则将其即为空,如果未能及时收集到执行器的权重,则使用上一次收集到的权重。In some implementations, the results R of all executors and the corresponding execution weight p are collected before the executors vote, and the requirement for passing the vote is: That is, if the sum of the weights of the actuators that meet the results divided by the total weights is greater than or equal to 0.5, the vote is passed. If there is a result that the executor cannot be collected in time, it will be empty. If the weight of the executor cannot be collected in time, the weight collected last time will be used.
在一些实施方式中,主执行器收集的投通过的票数量大于总投票数的一半,则确定投票通过,则将之前尝试执行的结果转换为实际执行结果。In some implementations, if the number of approved votes collected by the main executor is greater than half of the total number of votes, it is determined that the vote is passed, and the result of the previous attempted execution is converted into the actual execution result.
在一些实施方式中,对于所有投通过票的执行器提升其对应的执行权重。在本发明的实施例中,由于从执行器1和从执行器2针对于主执行器的执行结果为A投了通过票,则从执行器1和从执行器2提高了执行权重。In some implementations, for all executors that voted, their corresponding execution weights are increased. In the embodiment of the present invention, since the slave executor 1 and the slave executor 2 cast a pass vote for the execution result of the master executor, A, the slave executor 1 and the slave executor 2 increase the execution weight.
在一些实施方式中,如果存在多次执行或者长时间执行无法通过,则将主执行器的执行权重降低,降级为候选者并重新发起选举。In some embodiments, if there are multiple executions or if the execution fails for a long time, the execution weight of the main executor is lowered, demoted to a candidate, and the election is re-initiated.
本发明的分布式冗余控制系统执行器的控制方法还适用于数据同步,下面以图3所示对分布式冗余控制系统的数据同步方法进行说明。The control method of the actuator of the distributed redundant control system of the present invention is also suitable for data synchronization. The data synchronization method of the distributed redundant control system will be described below with reference to FIG. 3 .
控制器的数据直接由各个执行器读取,不涉及同步问题。但是在一些情况下,比如步执行结束后,特殊事件触发后,执行器的状态发生变化,执行器需要同步当前执行的程序的数据。数据同步在命令执行开始The data of the controller is directly read by each actuator, and there is no synchronization problem involved. However, in some cases, for example, after the step execution ends, after a special event is triggered, the state of the executor changes, and the executor needs to synchronize the data of the currently executing program. Data synchronization starts at command execution
在一些实施方式中,执行器需要同步的执行的程序的数据,如变量、参数、计时器、触发器等。In some embodiments, the executor needs data of the synchronously executed program, such as variables, parameters, timers, triggers, and the like.
数据同步的过程由主执行器触发,如图3所示,主执行器首先自增事务ID,并计算得到第一数据,并将第一数据广播。The process of data synchronization is triggered by the main executor. As shown in FIG. 3 , the main executor first increments the transaction ID, calculates the first data, and broadcasts the first data.
其中,事务ID代表数据更新的次序,执行器记录事务ID防止某些情况丢失数据。第一数据为两个事务ID之间的数据变化,即为图3中的新增数据。Among them, the transaction ID represents the order of data update, and the executor records the transaction ID to prevent data loss in some cases. The first data is the data change between the two transaction IDs, that is, the newly added data in FIG. 3 .
从执行器将接收的新增数据和自身两次事务ID之间的数据变化进行对比,判断自身的数据改变是否和新增数据匹配。从执行器1和2通过比对数据结果向主执行器投票。主执行器收集投票结果并觉得是否通过投票,如果未通过,则返回图3所示的事务ID自增过程重新开始同步。如果通过投票,则将收集的最终结果发送到所有执行器,然后执行器进行数据同步,将最终结果写入数据库和数据缓存。The slave executor compares the received new data with the data changes between its two transaction IDs, and determines whether its own data changes match the new data. Slave executors 1 and 2 vote to the master executor by comparing the data results. The main executor collects the voting results and decides whether to pass the vote. If not, it returns to the transaction ID auto-increment process shown in Figure 3 to start the synchronization again. If it passes the vote, the collected final result is sent to all executors, and the executors then perform data synchronization and write the final result to the database and data cache.
如图3所示的从执行器1和2参与数据同步,但是从执行器3由于之前的状态异常,不参与数据同步过程。因此也未进行比对数据和投票的过程。As shown in Figure 3, the slave executors 1 and 2 participate in the data synchronization, but the
在图3所示的实施例中,由于从执行器1比对新增数据符合自身的数据变化,则向主执行器投了通过票,而从执行器2比对新增数据不符合自身的数据变化,则向主执行器投了不通过票。In the embodiment shown in FIG. 3 , since the newly added data of the slave executor 1 matches its own data changes, it casts a pass vote to the master executor, while the slave executor 2 compares the newly added data and does not conform to its own data. If the change is changed, a vote of rejection is cast to the main executor.
需要说明的是,匹配时候允许存在一定的误差,在误差范围内都算符合。投通过票的执行器提升了数据权重。若多次执行或长时间执行不通过,主执行器的数据权重降低,可能会降级为候选执行器,触发重新选举。It should be noted that a certain error is allowed when matching, and it is considered to be consistent within the error range. Executors that voted boost data weight. If it is executed multiple times or fails for a long time, the data weight of the main executor will decrease, and it may be downgraded to a candidate executor, triggering a re-election.
选举过程如图4所示,如果在分布式冗余控制系统中,出现主执行器离线,或者主执行器多次或者长时间无法完成分布式执行或数据同步任务,则主执行器降级,如图4所示的主执行器出现故障,从执行器1和从执行器2检测到主执行器超时或者主执行器故障,则升级变为候选执行器,从执行器3可能还未检测到主执行器出现故障,则不参与发起选举投票的过程。The election process is shown in Figure 4. In the distributed redundant control system, if the main executor is offline, or the main executor cannot complete the distributed execution or data synchronization tasks for many times or for a long time, the main executor is degraded, such as The master executor shown in Figure 4 is faulty, and the slave executor 1 and slave executor 2 detect that the master executor times out or the master executor fails, and then upgrade to a candidate executor, and
候选执行器1和候选执行器2将任期ID自增,候选执行器首先投票给自己,并且广播其他执行器投票请求,同时发送权重给其他从执行器。如图4所示,候选执行器1的发送权重为P=1.1,候选执行器2发送权重为P=1.8,并收集投票结果。Candidate executor 1 and candidate executor 2 auto-increment the term ID. The candidate executor first votes for itself, broadcasts voting requests from other executors, and sends weights to other slave executors. As shown in FIG. 4 , the sending weight of candidate executor 1 is P=1.1, and the sending weight of candidate executor 2 is P=1.8, and the voting results are collected.
候选执行器通过收集的投票结果确定自身是否赢得选举,由于在本发明的实施例中,从执行器3投票给候选执行器2,则候选执行器2成功成为主执行器,候选执行器1失败等待选举结果。成为主执行器的候选执行器发布选举结果以及更新了任期,其余执行器接收到更新的任期,说明原来的从执行器2变为主执行器,那么其余的执行器,不管之前是候选执行器还是从执行器还是主执行器,都会变成新的从执行器。The candidate executor determines whether it wins the election through the collected voting results. Since in the embodiment of the present invention, the
如果所有候选执行器都无法赢得选举,那么需要等待一段时间后,候选执行器重新发起投票。候选执行器获得超过所有选票的一半则视为赢得选举;If all candidate executors fail to win the election, after a period of time, the candidate executor re-initiates voting. A candidate executor who obtains more than half of all votes is deemed to have won the election;
需要说明的是,从执行器3在短暂接收时间内收到候选执行器1和候选执行器2的投票请求,由于候选执行器2的权重更高,则投票给了候选执行器2。It should be noted that the voting request of candidate executor 1 and candidate executor 2 is received from
在一些实施方式中,选举时的权重为数据权重与执行权重共同决定,也可以采用两者较小值作为选举时的权重。权重初始为1且最低为1,权重最高不会超过总数除以二。权重P=N/πarctan(M),其中N为执行器数量,M是近20次操作成功的次数。In some embodiments, the weight in the election is determined jointly by the data weight and the execution weight, and the smaller value of the two can also be used as the weight in the election. The weight is initially 1 and the lowest is 1, and the highest weight will not exceed the total number divided by two. Weight P=N/πarctan(M), where N is the number of executors, and M is the number of successful operations in the past 20 times.
需要说明的是:在其他实施例中并不一定按照本说明书示出和描述的顺序来执行相应方法的步骤。在一些其他实施例中,其方法所包括的步骤可以比本说明书所描述的更多或更少。此外,本说明书中所描述的单个步骤,在其他实施例中可能被分解为多个步骤进行描述;而本说明书中所描述的多个步骤,在其他实施例中也可能被合并为单个步骤进行描述。It should be noted that: in other embodiments, the steps of the corresponding methods are not necessarily performed in the order shown and described in this specification. In some other embodiments, the method may include more or fewer steps than described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may also be combined into a single step in other embodiments. describe.
以上仅描述了本发明的基本原理和优选实施方式,本领域人员可以根据上述描述做出许多变化和改进,这些变化和改进应该属于本发明的保护范围。The above only describes the basic principles and preferred embodiments of the present invention, and those skilled in the art can make many changes and improvements based on the above description, and these changes and improvements should belong to the protection scope of the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111681055.XA CN114442523B (en) | 2021-12-28 | 2021-12-28 | A control method for actuators of distributed redundant control systems |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111681055.XA CN114442523B (en) | 2021-12-28 | 2021-12-28 | A control method for actuators of distributed redundant control systems |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114442523A true CN114442523A (en) | 2022-05-06 |
CN114442523B CN114442523B (en) | 2025-01-07 |
Family
ID=81366122
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111681055.XA Active CN114442523B (en) | 2021-12-28 | 2021-12-28 | A control method for actuators of distributed redundant control systems |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114442523B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170201590A1 (en) * | 2016-01-12 | 2017-07-13 | Politechnika Poznanska | Fault-tolerant data processing computer system and method for implementing a distributed two-tier state machine |
CN107105032A (en) * | 2017-04-20 | 2017-08-29 | 腾讯科技(深圳)有限公司 | node device operation method and node device |
CN107458172A (en) * | 2016-06-02 | 2017-12-12 | 通用汽车环球科技运作有限责任公司 | The system for for social controlling the vehicle climate of the autonomous vehicles |
CN111447096A (en) * | 2020-04-20 | 2020-07-24 | 国网甘肃省电力公司信息通信公司 | Election method and election system based on cloud platform communication system |
CN111527477A (en) * | 2017-12-27 | 2020-08-11 | 美光科技公司 | Determining reliability of vehicle control commands using voting mechanism |
-
2021
- 2021-12-28 CN CN202111681055.XA patent/CN114442523B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170201590A1 (en) * | 2016-01-12 | 2017-07-13 | Politechnika Poznanska | Fault-tolerant data processing computer system and method for implementing a distributed two-tier state machine |
CN107458172A (en) * | 2016-06-02 | 2017-12-12 | 通用汽车环球科技运作有限责任公司 | The system for for social controlling the vehicle climate of the autonomous vehicles |
CN107105032A (en) * | 2017-04-20 | 2017-08-29 | 腾讯科技(深圳)有限公司 | node device operation method and node device |
CN111527477A (en) * | 2017-12-27 | 2020-08-11 | 美光科技公司 | Determining reliability of vehicle control commands using voting mechanism |
CN111447096A (en) * | 2020-04-20 | 2020-07-24 | 国网甘肃省电力公司信息通信公司 | Election method and election system based on cloud platform communication system |
Also Published As
Publication number | Publication date |
---|---|
CN114442523B (en) | 2025-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6806727B2 (en) | A device with a method for providing control redundancy and a first existing component and an upgrade module. | |
US7464378B1 (en) | System and method for allowing multiple sub-clusters to survive a cluster partition | |
EP2434729A2 (en) | Method for providing access to data items from a distributed storage system | |
CA2657676C (en) | Failure tolerant transaction processing system | |
EP3553669B1 (en) | Failure recovery method and device, and system | |
US7953890B1 (en) | System and method for switching to a new coordinator resource | |
CA2853465A1 (en) | Split brain resistant failover in high availability clusters | |
KR19990082867A (en) | Method and apparatus for correct and complete transactions in a fault tolerant distributed database system | |
Zhou et al. | {Fault-Tolerant} replication with {Pull-Based} consensus in {MongoDB} | |
CN113646749B (en) | IOT partition management and load balancing | |
US7171581B2 (en) | Fault-tolerant match-and-set locking mechanism for multiprocessor systems | |
CN112486740B (en) | Master-slave relationship confirmation method and system among multiple controllers and related device | |
JPS6398002A (en) | Automatic equalization method and apparatus for redundant channel system | |
CN114442523A (en) | Control method of distributed redundant control system actuator | |
Ailijiang et al. | Multileader WAN paxos: Ruling the archipelago with fast consensus | |
CN114726867A (en) | Hot standby multi-master method based on Raft | |
KR102294048B1 (en) | Method and system for replicating blockchain application service | |
CN114546724A (en) | Two-center deployed data center level disaster recovery method and system | |
CN114610545A (en) | Method, system, device and medium for reducing single point of failure of private cloud computing | |
CN115202925A (en) | Common identification method and system supporting fine-grained fault tolerance based on RDMA | |
US9110850B2 (en) | Method for accelerating start up of a computerized system | |
US7546171B2 (en) | Method, apparatus and system for recovery of a controller with known-compatible configuration and run-time data | |
JP2004046356A (en) | Highly reliable cluster system and program for realizing it | |
JP7340956B2 (en) | Redundant system and data synchronization method | |
US12229163B2 (en) | High availability with consensus in database systems |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Country or region after: China Address after: No. 309 Liuhe Road, Binjiang District, Hangzhou City, Zhejiang Province (High tech Zone) Applicant after: Zhongkong Technology Co.,Ltd. Address before: No. six, No. 309, Binjiang District Road, Hangzhou, Zhejiang Applicant before: ZHEJIANG SUPCON TECHNOLOGY Co.,Ltd. Country or region before: China |
|
GR01 | Patent grant | ||
GR01 | Patent grant |