CN114301926B - Distributed data transmission method, system and storage medium between server nodes - Google Patents
Distributed data transmission method, system and storage medium between server nodes Download PDFInfo
- Publication number
- CN114301926B CN114301926B CN202111550205.3A CN202111550205A CN114301926B CN 114301926 B CN114301926 B CN 114301926B CN 202111550205 A CN202111550205 A CN 202111550205A CN 114301926 B CN114301926 B CN 114301926B
- Authority
- CN
- China
- Prior art keywords
- server node
- server
- test data
- data packet
- order
- 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.)
- Active
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 37
- 238000000034 method Methods 0.000 title claims abstract description 29
- 238000012360 testing method Methods 0.000 claims abstract description 77
- 230000015654 memory Effects 0.000 claims description 24
- 238000004590 computer program Methods 0.000 claims description 8
- 238000010276 construction Methods 0.000 claims description 4
- 230000003993 interaction Effects 0.000 claims description 3
- 238000004891 communication Methods 0.000 description 7
- 230000032683 aging Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000004048 modification Effects 0.000 description 5
- 238000004519 manufacturing process Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000005291 magnetic effect Effects 0.000 description 2
- 238000012827 research and development Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 101100498818 Arabidopsis thaliana DDR4 gene Proteins 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005294 ferromagnetic effect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000001902 propagating effect Effects 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Debugging And Monitoring (AREA)
Abstract
Description
技术领域technical field
本发明涉及数据传输技术领域,具体涉及一种服务器节点之间分布式数据传输方法、系统及存储介质。The invention relates to the technical field of data transmission, in particular to a distributed data transmission method, system and storage medium between server nodes.
背景技术Background technique
随着企业规模及客户规模的持续增大,企业订单呈现井喷之势。一天生产的机器数以千计,同时老化的机器数量也有几千台。由于各种新研发功能的产品和应用,各种新部件不断涌现,这些部件在产线需要经过各种测试,保证功能正常才能交给客户。有些部件测试包非常大,大到几十个G的容量,如果此时仍采取以往的diag主服务器向多台服务器节点集中式进行数据传输,在这种情况下,多大的网速都不够用,容易造成整个车间网卡大规模卡顿,严重影响服务器生产和交货速度。With the continuous increase of enterprise scale and customer scale, enterprise orders are showing a trend of blowout. Thousands of machines are produced a day, and thousands of machines are aging at the same time. Due to the products and applications of various new research and development functions, various new components are constantly emerging. These components need to undergo various tests in the production line to ensure that their functions are normal before they can be delivered to customers. Some component test packages are very large, with a capacity of dozens of gigabytes. If the previous diag master server is still used to transmit data to multiple server nodes in a centralized manner, in this case, no amount of network speed is enough. , It is easy to cause a large-scale freeze of the network card in the entire workshop, which seriously affects the production and delivery speed of servers.
发明内容Contents of the invention
为了解决上述背景技术中提到的至少一个问题,本发明提供了一种设备节点之间分布式数据传输方法、系统及存储介质,能够实现多个服务器之间相互传输数据包的方式来改善数据传输效率,使得在一个整体服务器节点的状态下,只需要一台服务器从主服务器下载该测试包,其他服务器可以依次从其他存储有测试包的服务器上下载到该测试包,大大提高了数据传输的效率。In order to solve at least one of the problems mentioned in the above-mentioned background technology, the present invention provides a distributed data transmission method, system and storage medium between device nodes, which can realize the mutual transmission of data packets between multiple servers to improve data transmission. Transmission efficiency, so that in the state of an overall server node, only one server needs to download the test package from the main server, and other servers can download the test package from other servers that store the test package in turn, which greatly improves data transmission. s efficiency.
本发明实施例提供的具体技术方案如下:The specific technical scheme that the embodiment of the present invention provides is as follows:
第一方面,一种服务器节点之间分布式数据传输方法,所述方法包括:In a first aspect, a distributed data transmission method between server nodes, the method comprising:
获取订单内的订单号,并根据所述订单号从订单信息表中获取该订单涉及的服务器节点,所述服务器节点包括至少一个第一服务器节点;Obtain the order number in the order, and obtain the server nodes involved in the order from the order information table according to the order number, and the server nodes include at least one first server node;
所述第一服务器节点向除所述第一服务器节点的其他服务器节点发送数据请求,并判断是否存在满足预设条件的至少一个第二服务器节点;The first server node sends a data request to other server nodes except the first server node, and determines whether there is at least one second server node that satisfies a preset condition;
若存在第二服务器节点,则所述第一服务器节点从所述第二服务器节点获取测试数据包;If there is a second server node, the first server node obtains a test data packet from the second server node;
若不存在第二服务器节点,则所述第一服务器节点从主服务器获取测试数据包。If there is no second server node, the first server node obtains the test data packet from the main server.
进一步的,据所述订单号从订单信息表中获取该订单涉及的服务器节点前,还包括构建基于所述订单号的订单信息表,具体包括:Further, before obtaining the server nodes involved in the order from the order information table according to the order number, it also includes building an order information table based on the order number, specifically including:
获取所述订单主体内的所述订单号;Obtain the order number in the order body;
根据所述订单号获取该订单号对应的所有服务器节点的序列号;Acquiring serial numbers of all server nodes corresponding to the order number according to the order number;
收集所有服务器节点的序列号对应的IP信息;Collect the IP information corresponding to the serial numbers of all server nodes;
结合所述订单号、所有服务器节点的序列号以及IP信息,构建所述订单信息表。Combining the order number, serial numbers and IP information of all server nodes, the order information table is constructed.
进一步的,所述根据所述订单号从订单信息表中获取该订单涉及的服务器节点,包括:Further, the acquiring the server nodes involved in the order from the order information table according to the order number includes:
根据所述订单号从订单信息表中获取该订单涉及的服务器节点的IP信息,服务器节点之间通过IP信息进行数据交互。The IP information of the server nodes involved in the order is obtained from the order information table according to the order number, and the server nodes perform data interaction through the IP information.
进一步的,所述预设条件包括:所述第二服务器节点与所述第一服务器节点互相通信、所述第二服务器节点包括所述测试数据包以及确认所述第二服务器节点中的测试数据包中数据是完整的。Further, the preset conditions include: the second server node communicates with the first server node, the second server node includes the test data packet and confirms the test data in the second server node The data in the package is complete.
进一步的,判断所述第二服务器节点与所述第一服务器节点是否ping通;Further, it is judged whether the second server node and the first server node are pinged through;
若ping通,所述第二服务器节点与所述第一服务器节点互相通信,则判断所述第二服务器节点是否存在所述测试数据包以及确认所述第二服务器节点中的测试数据包中数据是完整的;若所述第二服务器节点存在所述测试数据包以及确认所述第二服务器节点中的测试数据包中数据是完整的,则存在所述第二服务器节点;If the ping is successful, the second server node and the first server node communicate with each other, then judge whether the second server node has the test data packet and confirm the data in the test data packet in the second server node is complete; if the second server node has the test data packet and confirms that the data in the test data packet in the second server node is complete, then the second server node exists;
若不能ping通和/或所述第二服务器节点不存在所述测试数据包和/或所述第二服务器节点中的测试数据包中数据是不完整的,则不存在所述第二服务器节点。If it cannot be pinged and/or the test data packet does not exist in the second server node and/or the data in the test data packet in the second server node is incomplete, then the second server node does not exist .
进一步的,所述确认所述测试数据包中的数据是完整的,具体包括:Further, the confirming that the data in the test data packet is complete includes:
获取所述主服务器中的第一MD5值,并存储于所述第二服务器节点中;Obtain the first MD5 value in the main server, and store it in the second server node;
获取所述第二服务器节点中的测试数据包中的第二MD5值,判断所述第一MD5值与所述第二MD5值是否一致;Obtaining a second MD5 value in the test data packet in the second server node, and judging whether the first MD5 value is consistent with the second MD5 value;
若一致,则确认所述第二服务器节点中的测试数据包中数据是完整的,否则,所述第二服务器节点中的测试数据包中数据是不完整的。If they are consistent, it is confirmed that the data in the test data packet in the second server node is complete; otherwise, the data in the test data packet in the second server node is incomplete.
进一步的,所述主服务器中存储有所述测试数据包。Further, the test data packets are stored in the main server.
进一步的,在所述第一服务器节点上设置有执行脚本,通过所述执行脚本来判断是否存在满足条件的至少一个第二服务器节点。Further, an execution script is set on the first server node, and whether there is at least one second server node satisfying the condition is determined through the execution script.
第二方面,提供一种服务器节点之间分布式数据传输系统,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上所述的服务器节点之间分布式数据传输方法。In the second aspect, a distributed data transmission system between server nodes is provided, which includes a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the program, the above-mentioned The above-mentioned distributed data transmission method between server nodes.
第三方面,提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行如上所述的服务器节点之间分布式数据传输方法。In a third aspect, a computer-readable storage medium is provided, which stores computer-executable instructions, and the computer-executable instructions are used to execute the above-mentioned distributed data transmission method between server nodes.
本发明实施例具有如下有益效果:Embodiments of the present invention have the following beneficial effects:
1.通过订单信息表的构建,然后通过其他服务器节点中是否存在满足条件的第二服务器节点,如果找到第二服务器节点,则第一服务器节点从第二服务器节点下载获取测试数据包,使得在同个服务器主体中的服务器节点均可以作为一个数据源,在其他服务器节点需要获得测试数据包时,能够从第二服务器节点下载得到,大大提高了数据传输的效率,同时提高整个订单内服务器的老化效率,减少电能损失,且提升交货下效率,提升客户满意度;1. Through the construction of the order information table, and then whether there is a second server node that meets the conditions in other server nodes, if the second server node is found, the first server node downloads and obtains the test data package from the second server node, so that in All server nodes in the same server body can be used as a data source. When other server nodes need to obtain test data packets, they can be downloaded from the second server node. Aging efficiency, reduce power loss, improve delivery efficiency, and improve customer satisfaction;
2.通过预设条件的设置,确保第二服务器节点能够将测试数据包传输至第一服务器节点,条件包括第二服务器节点与第一服务器节点能够互相通信,第二服务器节点上包含有测试数据包,而且测试数据包的数据是完整的,由此,确保第一服务器节点能够从第二服务器节点下载到的测试数据包;2. Through the setting of preset conditions, ensure that the second server node can transmit the test data packet to the first server node, the conditions include that the second server node and the first server node can communicate with each other, and the second server node contains test data package, and the data of the test data package is complete, thereby ensuring that the first server node can download the test data package from the second server node;
3.利用主服务器的MD5值与第二服务器节点中的MD5值进行对比,判断第二服务器节点中的测试数据包中的数据的完整性,确保所有服务器能够完整进行测试。3. Using the MD5 value of the main server to compare with the MD5 value in the second server node, judge the integrity of the data in the test data packet in the second server node, and ensure that all servers can complete the test.
附图说明Description of drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.
图1示出本申请中的服务器节点之间分布式数据传输方法的示意图;FIG. 1 shows a schematic diagram of a distributed data transmission method between server nodes in the present application;
图2示出本申请中判断是否存在满足预设条件的至少一个第二服务器节点的示意图;FIG. 2 shows a schematic diagram of judging whether there is at least one second server node satisfying a preset condition in the present application;
图3示出可被用于实施本申请中的所述各个实施例的示例性系统示意图。FIG. 3 shows an exemplary system diagram that may be used to implement the various embodiments described in this application.
具体实施方式Detailed ways
为使本发明的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only Some, but not all, embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.
目前,随着企业规模及客户规模的持续增大,企业订单呈现井喷之势。一天生产的机器数以千计,同时老化的机器数量也有几千台。由于各种新研发功能的产品和应用,各种新部件不断涌现,这些部件在产线需要经过各种测试,保证功能正常才能交给客户。有些部件测试包非常大,大到几十个G的容量,如果此时仍采取以往的diag主服务器向多台服务器节点集中式进行数据传输,在这种情况下,多大的网速都不够用,容易造成整个车间网卡大规模卡顿,严重影响服务器生产和交货速度。基于以上问题,本申请发明人提出了一种服务器节点之间分布式数据传输方法及系统,能够实现多个服务器之间相互传输数据包的方式来改善数据传输效率,使得在一个整体服务器节点的状态下,只需要一台服务器从主服务器下载该测试包,其他服务器可以依次从其他存储有测试包的服务器上下载到该测试包,大大提高了数据传输的效率。At present, with the continuous increase of enterprise scale and customer scale, enterprise orders are showing a trend of blowout. Thousands of machines are produced a day, and thousands of machines are aging at the same time. Due to the products and applications of various new research and development functions, various new components are constantly emerging. These components need to undergo various tests in the production line to ensure that their functions are normal before they can be delivered to customers. Some component test packages are very large, with a capacity of dozens of gigabytes. If the previous diag master server is still used to transmit data to multiple server nodes in a centralized manner, in this case, no amount of network speed is enough. , It is easy to cause a large-scale freeze of the network card in the entire workshop, which seriously affects the production and delivery speed of servers. Based on the above problems, the inventor of the present application proposes a method and system for distributed data transmission between server nodes, which can realize the mutual transmission of data packets between multiple servers to improve the efficiency of data transmission, so that the entire server node In this state, only one server needs to download the test package from the main server, and other servers can download the test package from other servers storing the test package in turn, which greatly improves the efficiency of data transmission.
实施例一Embodiment one
提供一种服务器节点之间分布式数据传输方法,如图1所示,该方法具体包括:Provide a distributed data transmission method between server nodes, as shown in Figure 1, the method specifically includes:
步骤S1:获取订单内的订单号,并根据订单号从订单信息表中获取该订单涉及的服务器节点,服务器节点包括至少一个第一服务器节点,第一服务器节点为待下载数据测试包的服务器节点。Step S1: Obtain the order number in the order, and obtain the server node involved in the order from the order information table according to the order number. The server node includes at least one first server node, and the first server node is the server node of the data test package to be downloaded .
具体的,根据订单号从订单信息表中获取该订单涉及的服务器节点之前,还包括构建基于订单号的订单信息表,具体包括:获取订单内的所述订单号;根据所述订单号获取该订单号对应的所有服务器节点的序列号;收集所有服务器节点的序列号对应的IP信息;结合所述订单号、所有服务器节点的序列号以及IP信息,构建订单信息表。Specifically, before obtaining the server nodes involved in the order from the order information table according to the order number, it also includes building an order information table based on the order number, specifically including: obtaining the order number in the order; obtaining the order number according to the order number The serial numbers of all server nodes corresponding to the order number; collect the IP information corresponding to the serial numbers of all server nodes; combine the order number, serial numbers and IP information of all server nodes to build an order information table.
其中,在构建订单信息表之后,用于根据订单号从订单信息表中获取该订单涉及的服务器节点的IP信息,服务器节点之间通过IP信息进行数据交互。Wherein, after the order information table is constructed, it is used to obtain the IP information of the server nodes involved in the order from the order information table according to the order number, and the server nodes perform data interaction through the IP information.
首先,建立老化服务器订单数据库(testlog)和数据表(ping stuts),在每台服务器节点开机之后,存储上所有收集到的订单号、序列号和IP信息;当每台服务器节点开机后,用MYSQL(关系型数据库管理系统)插入语言和Shell脚本,向该数据库中插入服务器的序列号和对应的IP信息,用inset语句将获得服务器的序列号和对应的IP信息插入上述建立的数据库中,由此建立了基于订单号的订单信息表。其中,服务器的序列号通过Ipmitoolfru获取,通过ifconfig–a命令,获取服务器的IP地址,IP地址即IP信息。First, establish the aging server order database (testlog) and data table (ping stuts). After each server node is powered on, store all the collected order numbers, serial numbers and IP information; when each server node is powered on, use MYSQL (relational database management system) inserts language and Shell script, inserts the serial number of server and corresponding IP information in this database, inserts the serial number and corresponding IP information of obtaining server into the above-mentioned established database with the inset statement, Thus, an order information table based on the order number is established. Among them, the serial number of the server is obtained through Ipmitoolfru, and the IP address of the server is obtained through the ifconfig-a command, and the IP address is the IP information.
当多台服务器均通电开始老化后,服务器跑完上述插入数据库的脚本后,通过select查询语句,可以查询到多台服务器的序列号与其对应的IP信息的对应关系表,将上述存储的IP地址按照订单号搜索出所有的IP信息,然后保存在ip.txt里面,这里的每个IP均对应一台服务器节点,然后就形成了根据IP信息对应的订单信息表。订单信息表存储在包括第一服务器节点的所有服务器节点中。When multiple servers are powered on and start to age, after the server finishes running the above script inserted into the database, through the select query statement, you can query the correspondence table between the serial numbers of multiple servers and their corresponding IP information, and save the stored IP address Search all IP information according to the order number, and then save it in ip.txt, where each IP corresponds to a server node, and then forms an order information table corresponding to the IP information. The order information table is stored in all server nodes including the first server node.
步骤S2:如图1所示,第一服务器节点向除第一服务器节点的其他服务器节点发送数据请求,并判断是否存在满足预设条件的至少一个第二服务器节点。其中,主服务器中也存储有测试数据包。其中,第一服务器节点上设置执行脚本,通过执行脚本来判断是否存在满足条件的至少一个第二服务器节点。Step S2: As shown in FIG. 1 , the first server node sends a data request to other server nodes except the first server node, and judges whether there is at least one second server node satisfying the preset condition. Wherein, the test data packets are also stored in the main server. Wherein, an execution script is set on the first server node, and it is judged whether there is at least one second server node satisfying the condition by executing the script.
若其他服务器节点中存在第二服务器节点,则第一服务器节点从第二服务器节点下载获取测试数据包。若其他服务器节点中不存在第二服务器节点,则第一服务器节点从主服务器下载获取测试数据包,If there is a second server node among other server nodes, the first server node downloads and obtains the test data packet from the second server node. If there is no second server node in other server nodes, then the first server node downloads and obtains the test data packet from the master server,
具体的,采用循环语句对ip.txt里面的每台服务器节点进行ping操作,判断除了第一服务器节点以外的其他服务器节点中是否存在满足条件的第二服务器节点。其中,需要满足的条件包括,(1)第二服务器节点能够与第一服务器节点互相通信(即ping通);(2)第二服务器节点中存储有测试数据包;(3)确认所述第二服务器节点中的测试数据包中数据是完整的。第二服务器节点至少同时满足以上三种条件,才能被确认为第二服务器节点。Specifically, a loop statement is used to perform a ping operation on each server node in ip.txt, and determine whether there is a second server node satisfying the condition among other server nodes except the first server node. Wherein, the conditions that need to be satisfied include, (1) the second server node can communicate with the first server node (ie, ping through); (2) there is a test data packet stored in the second server node; (3) confirm that the first The data in the test data packet in the second server node is complete. Only when the second server node satisfies at least the above three conditions at the same time can it be confirmed as the second server node.
具体的,首先判断第二服务器节点与第一服务器节点是否ping通;若ping通,则说明第二服务器节点与第一服务器节点互相通信,则继续判断第二服务器节点是否存在数据测试包以及确认第二服务器节点中的测试包中数据是完整的。此时,若第二服务器节点存在测试数据包且确认第二服务器节点中的测试数据包中数据是完整的,则存在第二服务器节点。Specifically, at first judge whether the second server node and the first server node are pinged; The data in the test package in the second server node is complete. At this time, if the second server node has the test data packet and confirms that the data in the test data packet in the second server node is complete, then there is the second server node.
若以下三种情况:1)不能ping通;2)第二服务器节点不存在测试数据包;3)或者第二服务器节点中的测试数据包是不完整的;中出现一种或者多种均说明不存在第二服务器节点。If the following three situations: 1) can not be pinged; 2) the second server node does not have the test data packet; 3) or the test data packet in the second server node is incomplete; There is no second server node.
其中,基于MD5值确认测试数据包中的数据是完整的,MD5值是个散列函数,任何数据经过MD5将生成一个16位的值或者32位的值,MD5有两个重要的性质。第一是无法逆推,只有MD5值生成的值是无法逆推出原有数据的,第二是原来的数据只要有一点改动,MD5值就会有很大变动。基于此,MD5值可以用于文件的检验。Among them, the data in the test data packet is confirmed to be complete based on the MD5 value. The MD5 value is a hash function. Any data passing through MD5 will generate a 16-bit value or a 32-bit value. MD5 has two important properties. The first is that it cannot be reversed. Only the value generated by the MD5 value cannot be reversed to the original data. The second is that as long as there is a slight change in the original data, the MD5 value will change greatly. Based on this, the MD5 value can be used for file verification.
具体包括以下步骤:获取主服务器中的第一MD5值,并存储于第二服务器节点中;同时,获取所述第二服务器节点中的测试数据包中的第二MD5值,然后判断第一MD5值与第二MD5值是否一致。Specifically comprise the following steps: obtain the first MD5 value in the master server, and store in the second server node; meanwhile, obtain the second MD5 value in the test data packet in the second server node, and then judge the first MD5 Whether the value is consistent with the second MD5 value.
若第一MD5值与第二MD5值一致,则确认所述第二服务器节点中的测试数据包中数据是完整的。否则,所述第二服务器节点中的测试数据包中数据是不完整的,说明其他服务器节点中不存在第二服务器节点,此时,第一服务器节点从主服务获取测试数据包。If the first MD5 value is consistent with the second MD5 value, it is confirmed that the data in the test data packet in the second server node is complete. Otherwise, the data in the test data packet in the second server node is incomplete, indicating that there is no second server node in other server nodes. At this time, the first server node obtains the test data packet from the main service.
在实际操作过程中,容易出现第二服务器节点由于测试完成关机或者因为其他原因导致网络无法连通的状态,此时其他待测试的服务器可以从下载过测试数据包的第一服务器节点上下载获取测试数据包,以此类推,同一个整体服务器节点中的所有服务器均可以在满足条件的情况下,对其他待测试的服务器提供测试数据包的服务,从而实现多个服务器之间的分布式数据传输。In the actual operation process, it is easy for the second server node to be shut down due to the completion of the test or the network cannot be connected due to other reasons. At this time, other servers to be tested can download and obtain the test from the first server node that has downloaded the test data package. Data packets, and so on, all servers in the same overall server node can provide test data packet services to other servers to be tested if the conditions are met, so as to realize distributed data transmission between multiple servers .
例如,在一个订单中包含有200台的服务器,而且200台的服务器均属于同一个整体服务器主体。将需要测试的一号服务器设置为第一服务器节点,首先收集200台待测试的服务器的信息,构建基于IP信息对应的订单信息表,订单信息表存储于所有服务器节点中。然后基于订单信息表,判断除了一号服务器的其他服务器中是否存在满足了条件的第二服务器节点,通过对条件的一一验证;若存在第二服务器节点,此时,一号服务器从第二服务器节点上获取测试数据包;若不存在第二服务器节点,此时,一号服务器从主服务器上获取测试数据包。For example, an order contains 200 servers, and the 200 servers all belong to the same overall server body. Set the No. 1 server to be tested as the first server node, first collect the information of 200 servers to be tested, and build an order information table based on IP information, which is stored in all server nodes. Then, based on the order information table, it is judged whether there is a second server node that satisfies the conditions in other servers except the No. 1 server, and through the verification of the conditions one by one; Obtain the test data packet on the server node; if there is no second server node, at this time, the No. 1 server obtains the test data packet from the main server.
具体的,当存在第二服务器节点时,一号服务器从第二服务器节点下载获取了测试数据包后,此时一号服务器和第二服务器上均存储测试数据包。这时的,一号服务器和第二服务器可以作为一个数据源,对其他待测试的服务器进行数据传输。这种模式下,大大增加了数据传输的数据源,大大改善了车间内订单整体数据传输的效率,提高整个订单老化效率;减少了老化时间,降低了电能消耗的同时也提升了交货速度,客户的满意度也会大大增加。Specifically, when there is a second server node, after the No. 1 server downloads and obtains the test data package from the second server node, both the No. 1 server and the second server store the test data package. At this time, the first server and the second server can be used as a data source to transmit data to other servers to be tested. In this mode, the data source of data transmission is greatly increased, the efficiency of the overall data transmission of the order in the workshop is greatly improved, and the aging efficiency of the entire order is improved; the aging time is reduced, the power consumption is reduced, and the delivery speed is also improved. Customer satisfaction will also increase significantly.
实施例二Embodiment two
对应上述实施例,提供了一种服务器节点之间分布式数据传输系统,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如上所述的服务器节点之间分布式数据传输方法。Corresponding to the above-mentioned embodiments, a distributed data transmission system between server nodes is provided, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the program, it realizes The above-mentioned distributed data transmission method between server nodes.
具体包括,信息收集模块、信息构建模块、数据请求模块、数据判断模块和指令执行模块。Specifically, it includes an information collection module, an information construction module, a data request module, a data judgment module and an instruction execution module.
信息收集模块用于收集所有服务器节点的信息,包括订单号、序列号和IP信息等。The information collection module is used to collect information of all server nodes, including order number, serial number and IP information.
信息构建模块,用于根据收集的所有服务器节点的订单号、序列号和IP信息构建根据IP信息对应的订单信息表。The information construction module is used to construct an order information table corresponding to the IP information according to the collected order numbers, serial numbers and IP information of all server nodes.
数据请求模块,待测试的第一服务器节点发送数据请求,数据请求用于探寻第二服务器节点以及存储在第二服务器节点上的测试数据包。In the data request module, the first server node to be tested sends a data request, and the data request is used to search for the second server node and the test data packets stored on the second server node.
数据判断模块,基于所述订单信息表,判断除第一服务器节点以外的其他服务器节点中是否存在满足条件的至少一个第二服务器节点。The data judging module, based on the order information table, judges whether there is at least one second server node satisfying the condition among other server nodes except the first server node.
指令执行模块,根据数据判断模块的判断结果,执行对应的指令。若存在第二服务器节点,则第一服务器节点从第二服务器节点获取测试数据包;若不存在第二服务器节点,则第一服务器节点从第二服务器节点获取测试数据包。The command execution module executes the corresponding command according to the judgment result of the data judgment module. If there is a second server node, the first server node obtains the test data packet from the second server node; if there is no second server node, the first server node obtains the test data packet from the second server node.
如图3所示,可用于实施本申请中所述的各个实施例的示例性系统。An exemplary system that may be used to implement various embodiments described in this application is shown in FIG. 3 .
在一些实施例中,系统能够作为各所述实施例中的任意一个服务器节点之间分布式数据传输方法提供上述设备。在一些实施例中,系统可包括具有指令的一个或多个计算机可读介质(例如,系统存储器或NVM/存储设备)以及与该一个或多个计算机可读介质耦合并被配置为执行指令以实现模块从而执行本申请中所述的动作的一个或多个处理器(例如,(一个或多个)处理器)。In some embodiments, the system can provide the above-mentioned device as a distributed data transmission method between server nodes in any one of the above-mentioned embodiments. In some embodiments, a system may include one or more computer-readable media (e.g., system memory or NVM/storage devices) having instructions and coupled to the one or more computer-readable media and configured to execute the instructions to One or more processors (eg, processor(s)) that implement a module such that the actions described in this application are performed.
对于一个实施例,系统控制模块可包括任意适当的接口控制器,以向(一个或多个)处理器中的至少一个和/或与系统控制模块通信的任意适当的设备或组件提供任意适当的接口。For one embodiment, the system control module may include any suitable interface controller to provide any suitable interface.
系统控制模块可包括存储器控制器模块,以向系统存储器提供接口。存储器控制器模块可以是硬件模块、软件模块和/或固件模块。The system control module may include a memory controller module to provide an interface to the system memory. A memory controller module may be a hardware module, a software module and/or a firmware module.
系统存储器可被用于例如为系统加载和存储数据和/或指令。对于一个实施例,系统存储器可包括任意适当的易失性存储器,例如,适当的DRAM。在一些实施例中,系统存储器可包括双倍数据速率类型四同步动态随机存取存储器(DDR4SDRAM)。System memory may be used, for example, to load and store data and/or instructions for the system. For one embodiment, system memory may include any suitable volatile memory, such as suitable DRAM. In some embodiments, the system memory may include Double Data Rate Type Quad Synchronous Dynamic Random Access Memory (DDR4 SDRAM).
对于一个实施例,系统控制模块可包括一个或多个输入/输出(I/O)控制器,以向NVM/存储设备及(一个或多个)通信接口提供接口。For one embodiment, the system control module may include one or more input/output (I/O) controllers to provide interfaces to NVM/storage devices and communication interface(s).
例如,NVM/存储设备可被用于存储数据和/或指令。NVM/存储设备可包括任意适当的非易失性存储器(例如,闪存)和/或可包括任意适当的(一个或多个)非易失性存储设备(例如,一个或多个硬盘驱动器(HDD)、一个或多个光盘(CD)驱动器和/或一个或多个数字通用光盘(DVD)驱动器)。For example, NVM/storage devices may be used to store data and/or instructions. The NVM/storage device may include any suitable non-volatile memory (e.g., flash memory) and/or may include any suitable non-volatile storage device(s) (e.g., one or more hard disk drives (HDD ), one or more compact disc (CD) drives, and/or one or more digital versatile disc (DVD) drives).
NVM/存储设备可包括在物理上作为系统被安装在其上的设备的一部分的存储资源,或者其可被该设备访问而不必作为该设备的一部分。例如,NVM/存储设备可通过网络经由(一个或多个)通信接口进行访问。NVM/storage devices may include storage resources that are physically part of the device on which the system is installed, or may be accessed by the device without necessarily being part of the device. For example, NVM/storage devices may be accessed over a network via communication interface(s).
(一个或多个)通信接口可为系统提供接口以通过一个或多个网络和/或与任意其他适当的设备通信。系统可根据一个或多个无线网络标准和/或协议中的任意标准和/或协议来与无线网络的一个或多个组件进行无线通信。The communication interface(s) may provide the system with an interface to communicate over one or more networks and/or with any other suitable device. The system may communicate wirelessly with one or more components of the wireless network according to any of one or more wireless network standards and/or protocols.
在各个实施例中,系统可以但不限于是:服务器、工作站、台式计算设备或移动计算设备(例如,膝上型计算设备、手持计算设备、平板电脑、上网本等)。在各个实施例中,系统可具有更多或更少的组件和/或不同的架构。例如,在一些实施例中,系统包括一个或多个摄像机、键盘、液晶显示器(LCD)屏幕(包括触屏显示器)、非易失性存储器端口、多个天线、图形芯片、专用集成电路(ASIC)和扬声器。In various embodiments, a system may be, but is not limited to, a server, workstation, desktop computing device, or mobile computing device (eg, laptop computing device, handheld computing device, tablet computer, netbook, etc.). In various embodiments, the system may have more or fewer components and/or a different architecture. For example, in some embodiments, a system includes one or more cameras, a keyboard, a liquid crystal display (LCD) screen (including a touchscreen display), a non-volatile memory port, multiple antennas, a graphics chip, an application-specific integrated circuit (ASIC) ) and speakers.
另外,本申请的一部分可被应用为计算机程序产品,例如计算机程序指令,当其被计算机执行时,通过该计算机的操作,可以调用或提供根据本申请的方法和/或技术方案。本领域技术人员应能理解,计算机程序指令在计算机可读介质中的存在形式包括但不限于源文件、可执行文件、安装包文件等,相应地,计算机程序指令被计算机执行的方式包括但不限于:该计算机直接执行该指令,或者该计算机编译该指令后再执行对应的编译后程序,或者该计算机读取并执行该指令,或者该计算机读取并安装该指令后再执行对应的安装后程序。在此,计算机可读介质可以是可供计算机访问的任意可用的计算机可读存储介质或通信介质。In addition, a part of the present application can be applied as a computer program product, such as a computer program instruction. When it is executed by a computer, the method and/or technical solution according to the present application can be invoked or provided through the operation of the computer. Those skilled in the art should understand that computer program instructions exist in computer-readable media in forms including but not limited to source files, executable files, installation package files, etc. Limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding post-installation program program. Here, a computer readable medium may be any available computer readable storage medium or communication medium that can be accessed by a computer.
通信介质包括藉此包含例如计算机可读指令、数据结构、程序模块或其他数据的通信信号被从一个系统传送到另一系统的介质。通信介质可包括有导的传输介质(诸如电缆和线(例如,光纤、同轴等))和能传播能量波的无线(未有导的传输)介质,诸如声音、电磁、RF、微波和红外。计算机可读指令、数据结构、程序模块或其他数据可被体现为例如无线介质(诸如载波或诸如被体现为扩展频谱技术的一部分的类似机制)中的已调制数据信号。术语“已调制数据信号”指的是其一个或多个特征以在信号中编码信息的方式被更改或设定的信号。调制可以是模拟的、数字的或混合调制技术。Communication media includes the media whereby communication signals embodying, for example, computer readable instructions, data structures, program modules or other data are transmitted from one system to another. Communication media can include guided transmission media such as cables and wires (e.g., fiber optics, coaxial, etc.) and wireless (unguided transmission) media capable of propagating waves of energy, such as acoustic, electromagnetic, RF, microwave, and infrared . Computer readable instructions, data structures, program modules or other data may be embodied, for example, as a modulated data signal in a wireless medium such as a carrier wave or similar mechanism such as embodied as part of spread spectrum technology. The term "modulated data signal" means a signal that has one or more of its characteristics changed or set in such a manner as to encode information in the signal. Modulation can be analog, digital or mixed modulation techniques.
在此,根据本申请的一个实施例包括一个装置,该装置包括用于存储计算机程序指令的存储器和用于执行程序指令的处理器,其中,当该计算机程序指令被该处理器执行时,触发该装置运行基于前述根据本申请的多个实施例的方法和/或技术方案。Here, an embodiment according to the present application includes an apparatus comprising a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, triggering The operation of the device is based on the foregoing methods and/or technical solutions according to multiple embodiments of the present application.
实施例三Embodiment three
对应以上实施例,本申请还提供了一种计算机可读存储介质,存储有计算机可执行指令,计算机可执行指令用于执行如上所述的服务器节点之间分布式数据传输方法。Corresponding to the above embodiments, the present application further provides a computer-readable storage medium storing computer-executable instructions, and the computer-executable instructions are used to execute the above-mentioned distributed data transmission method between server nodes.
在本实施例中,计算机可读存储介质可包括以用于存储诸如计算机可读指令、数据结构、程序模块或其它数据的信息的任何方法或技术实现的易失性和非易失性、可移动和不可移动的介质。例如,计算机可读存储介质包括,但不限于,易失性存储器,诸如随机存储器(RAM,DRAM,SRAM);以及非易失性存储器,诸如闪存、各种只读存储器(ROM,PROM,EPROM,EEPROM)、磁性和铁磁/铁电存储器(MRAM,FeRAM);以及磁性和光学存储设备(硬盘、磁带、CD、DVD);或其它现在已知的介质或今后开发的能够存储供计算机系统使用的计算机可读信息/数据。In this embodiment, computer-readable storage media may include volatile and non-volatile, volatile, volatile, or Removable and non-removable media. For example, computer-readable storage media include, but are not limited to, volatile memories such as random access memories (RAM, DRAM, SRAM); and nonvolatile memories such as flash memory, various read-only memories (ROM, PROM, EPROM) , EEPROM), magnetic and ferromagnetic/ferroelectric memory (MRAM, FeRAM); and magnetic and optical storage devices (hard disks, tapes, CDs, DVDs); or other media known now or developed in the future capable of storing data for computer systems Computer readable information/data used.
尽管已描述了本发明实施例中的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例中范围的所有变更和修改。Having described the preferred ones of the embodiments of the present invention, additional changes and modifications can be made to these embodiments by those skilled in the art once the basic inventive concepts are apprehended. Therefore, the appended claims are intended to be interpreted to cover the preferred embodiment and all changes and modifications that fall within the scope of the embodiments of the present invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111550205.3A CN114301926B (en) | 2021-12-17 | 2021-12-17 | Distributed data transmission method, system and storage medium between server nodes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111550205.3A CN114301926B (en) | 2021-12-17 | 2021-12-17 | Distributed data transmission method, system and storage medium between server nodes |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114301926A CN114301926A (en) | 2022-04-08 |
CN114301926B true CN114301926B (en) | 2023-08-11 |
Family
ID=80968706
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111550205.3A Active CN114301926B (en) | 2021-12-17 | 2021-12-17 | Distributed data transmission method, system and storage medium between server nodes |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114301926B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101661396A (en) * | 2008-08-29 | 2010-03-03 | 佛山市顺德区顺达电脑厂有限公司 | Testing system and method thereof for quickly obtaining testing programs to test mainboard |
CN113254767A (en) * | 2021-05-24 | 2021-08-13 | 深圳和锐网络科技有限公司 | Big data searching method and device, computer equipment and storage medium |
-
2021
- 2021-12-17 CN CN202111550205.3A patent/CN114301926B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101661396A (en) * | 2008-08-29 | 2010-03-03 | 佛山市顺德区顺达电脑厂有限公司 | Testing system and method thereof for quickly obtaining testing programs to test mainboard |
CN113254767A (en) * | 2021-05-24 | 2021-08-13 | 深圳和锐网络科技有限公司 | Big data searching method and device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114301926A (en) | 2022-04-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112104663B (en) | Method and equipment for managing login user and user equipment | |
CN111325574B (en) | Method and device for providing presentation information | |
CN114924696B (en) | Method, apparatus, medium, and program product for storage management | |
CN110765395A (en) | A method and device for providing novel information | |
CN107332700B (en) | A method and device for configuring a wireless routing device | |
CN112311876B (en) | Method and device for determining back-end device of current session through load balancing device | |
CN112615929B (en) | A method and device for pushing messages | |
CN111162990B (en) | Method and device for presenting message notification | |
CN109947504A (en) | A method and device for executing a host program in a host program | |
CN110286920B (en) | Method and device for installing applications | |
CN109710280B (en) | A method and device for installing an application on a user equipment | |
WO2022134705A1 (en) | Method and device for providing video resource | |
CN112787831B (en) | Method and device for splitting conference group | |
CN111181864B (en) | Method and device for determining link congestion status from application to server | |
CN112866302B (en) | Method, apparatus, medium and program product for integrity checking of cluster data | |
CN114301926B (en) | Distributed data transmission method, system and storage medium between server nodes | |
WO2020228510A1 (en) | Schedule reminding method and device | |
CN114661593B (en) | A method, device, medium and program product for automated testing | |
CN114647549B (en) | Heterogeneous acceleration chip management method, heterogeneous acceleration chip management device, heterogeneous acceleration chip management equipment and medium | |
CN111092791A (en) | A method and apparatus for determining available network bandwidth from an application to a server | |
CN110765258A (en) | A method and device for providing electronic books | |
CN116013400A (en) | A data block testing method, device, system and medium | |
CN112559203B (en) | A method and device for realizing data exchange between business layer and so library | |
CN110321205B (en) | A method and device for managing a host program in a host program | |
CN112272213B (en) | An event registration method and equipment |
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 |