CN109426559A - Order delivery method and device, storage medium, processor - Google Patents

Order delivery method and device, storage medium, processor Download PDF

Info

Publication number
CN109426559A
CN109426559A CN201710721247.6A CN201710721247A CN109426559A CN 109426559 A CN109426559 A CN 109426559A CN 201710721247 A CN201710721247 A CN 201710721247A CN 109426559 A CN109426559 A CN 109426559A
Authority
CN
China
Prior art keywords
order
server
list
kind server
server list
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
Application number
CN201710721247.6A
Other languages
Chinese (zh)
Other versions
CN109426559B (en
Inventor
高阳
刘凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201710721247.6A priority Critical patent/CN109426559B/en
Publication of CN109426559A publication Critical patent/CN109426559A/en
Application granted granted Critical
Publication of CN109426559B publication Critical patent/CN109426559B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system

Abstract

The invention discloses a kind of order delivery method and device, storage medium, processors.Wherein, this method comprises: obtaining first kind server list, wherein first kind server list lists all online first kind servers;Obtain multiple first orders, wherein the first order is the order for needing to be handed down to the second class server by the first kind server in first kind server list;First kind server list is traversed, is successively ordered to first kind server push first, wherein every time to first kind server push one first order.The present invention solve in more master frameworks server it is idle caused by the wasting of resources the technical issues of.

Description

Order delivery method and device, storage medium, processor
Technical field
The present invention relates to internet areas, in particular to a kind of order delivery method and device, storage medium, place Manage device.
Background technique
Salt official provides the HA framework of master more than one, and minion can be allowed to receive under multiple and different master Task/order of hair, can be improved the availability of master in this way, and when working normally, operator only uses one Master does task/order and issues, other master are without operation.But if commonly master occurs unavailable suddenly, Then operator can also use other master to carry out order and issue.
In more master frameworks, if the same order is not only sent out on masterA, but also sent out on masterB, Minion can execute two subcommands, will lead to execution order and repeat.
In order to avoid minion repeats the same order, in more master frameworks, the master of same time service There can only be one.And this operating mode efficiency is lower, and especially when thering is large batch of order to issue, low efficiency Under.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The embodiment of the invention provides a kind of order delivery method and device, storage medium, processors, more at least to solve The technical issues of wasting of resources caused by server is idle in master framework.
According to an aspect of an embodiment of the present invention, a kind of order delivery method is provided, comprising: obtain first kind service Device list, wherein the first kind server list lists all online first kind servers;Obtain multiple first lives It enables, wherein first order is to need to be handed down to the by the first kind server in the first kind server list The order of two class servers;The first kind server list is traversed, successively to first described in the first kind server push Order, wherein every time to first order of a first kind server push one.
Further, obtaining multiple first orders includes: the second order for obtaining and needing to issue, wherein second life Enable the identification information for carrying multiple second class servers;Each second order is split as multiple first orders, In, the identification information of the second class server is carried in each first order.
Further, there is N number of first kind server in the first kind server list, first order has M It is a, the first kind server in the first kind server list is traversed, successively to the first kind server push institute State the first order, comprising: M first orders are ranked up, the 1st first order, the 2nd the first life are obtained Enable ..., i-th first order ..., m-th first order;I-th first into the first kind server list I-th first orders described in class server push, wherein i successively takes 1 to M.
Further, obtaining first kind server list includes: the IP in first kind server list described in poll;To mesh It marks server and sends test command, obtain test result, wherein the destination server is the IP that is polled to corresponding described the A kind of server;Determined whether to update the first kind server list according to the test result.
Further, determined whether to update the first kind server list according to the test result, comprising: if institute It states test result and indicates that the destination server can work normally, then keep the first kind server list constant;If The test result indicates that the destination server working condition is abnormal, then by the destination server from the first kind service It is deleted in device list.
According to another aspect of an embodiment of the present invention, additionally provide transmitting apparatus under a kind of order, comprising: first obtain it is single Member, for obtaining first kind server list, wherein the first kind server list lists all online first kind clothes Business device;Second acquisition unit, for obtaining multiple first orders, wherein first order is to need to be taken by the first kind The first kind server in business device list is handed down to the order of the second class server;Traversal Unit, for traversing described A kind of server list, successively to the first order described in the first kind server push, wherein every time to one described first Class server push one first order.
Further, the second acquisition unit includes: acquisition subelement, for obtaining the need to issue second order, Wherein, second order carries the identification information of multiple second class servers;Subelement is split, described in will be each Second order is split as multiple first orders, wherein carries the second class server in each first order Identification information.
Further, there is N number of first kind server in the first kind server list, first order has M A, the Traversal Unit includes: sorting subunit, for being ranked up M first orders, obtains the 1st first life Enable, the 2nd first order ..., i-th first orders ..., m-th first orders;Subelement is pushed, is used for described I-th first orders described in i-th of first kind server push in first kind server list, wherein i successively takes 1 to M.
Further, the first acquisition unit includes: poll subelement, for first kind server list described in poll In IP;Transmission sub-unit obtains test result, wherein the destination service for sending test command to destination server Device is the corresponding first kind server of IP being polled to;Subelement is updated, for determining whether according to the test result Update the first kind server list.
Further, if the test result indicates that the destination server can work normally, update Unit keeps the first kind server list constant;If the test result indicates that the destination server working condition is different Often, then the update subelement deletes the destination server from the first kind server list.
According to another aspect of an embodiment of the present invention, a kind of storage medium is additionally provided, the storage medium includes storage Program, wherein described program executes above-mentioned order delivery method.
According to another aspect of an embodiment of the present invention, a kind of processor is additionally provided, the processor is used to run program, Wherein, above-mentioned order delivery method is executed when described program is run.
In embodiments of the present invention, the first order is to need to be issued by the first kind server in first kind server list To the order of the second class server, first kind server list lists all online first kind servers, traverses the first kind Server list is successively ordered to first kind server push first, wherein every time to one first kind server push one First order, after first kind server receives the first order, issues the first order to the second class server, due to each First order of a first kind server push is different, and therefore, each first kind server is issued to the second class server First order the problem of being also different, repeating identical order avoiding problems the second class server, and it is multiple First kind server works at the same time, and avoids first kind server and leaves unused, has reached the working efficiency of the more master frameworks of raising Technical effect, and then solve in more master frameworks server it is idle caused by the wasting of resources the technical issues of.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes a part of the invention, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of optional order delivery method according to an embodiment of the present invention;
Fig. 2 is a kind of optional schematic diagram for ordering lower transmitting apparatus according to an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, " Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product Or other step or units that equipment is intrinsic.
According to embodiments of the present invention, a kind of embodiment of order delivery method is provided, it should be noted that in attached drawing The step of process illustrates can execute in a computer system such as a set of computer executable instructions, although also, Logical order is shown in flow chart, but in some cases, it can be to be different from shown by sequence execution herein or retouch The step of stating.
Fig. 1 is a kind of flow chart of optional order delivery method according to an embodiment of the present invention.As shown in Figure 1, the party Method the following steps are included:
Step S102 obtains first kind server list, wherein first kind server list lists all online the A kind of server.
Step S104 obtains multiple first orders, wherein the first order is needed by the in first kind server list A kind of server is handed down to the order of the second class server.
Step S106 traverses first kind server list, successively orders to first kind server push first, wherein every It is secondary to be ordered to one first kind server push one first.
First kind server and the function of the second class server are different, and first kind server can be master, the Two class servers can be minion.
In embodiments of the present invention, the first order is to need to be issued by the first kind server in first kind server list To the order of the second class server, first kind server list lists all online first kind servers, traverses the first kind Server list is successively ordered to first kind server push first, wherein every time to one first kind server push one First order, after first kind server receives the first order, issues the first order to the second class server, due to each First order of a first kind server push is different, and therefore, each first kind server is issued to the second class server First order the problem of being also different, repeating identical order avoiding problems the second class server, and it is multiple The problem of first kind server works at the same time, and avoids the wasting of resources caused by first kind server leaves unused, it is more to have reached raising The technical effect of the working efficiency of master framework.
Optionally, obtaining multiple first orders includes: the second order for obtaining and needing to issue, wherein the second order carries The identification information of multiple second class servers;Each second order is split as multiple first orders, wherein each first order The middle identification information for carrying a second class server.
Split the quantity and the quantity of the identification information of the second class server of the second order carrying of the first obtained order It is equal.
Second order can be the order of operation maintenance personnel input.
Assuming that carry the identification information of R the second class server in the second order, then the second order is split as R the One orders, and the identification information of a second class server is carried in each first order.
It is exemplified below:
Second order: Salt-L ' minion1, minion2, minion3 ' cmd.run " ipconfig "
Above-mentioned second order is meant, the order for executing shell is issued to minion1, minion2, minion3.
Second order is split as 3 first orders:
1st first order: Salt ' minion1 ' cmd.run " ipconfig ".
2nd first order: Salt ' minion2 ' cmd.run " ipconfig ".
3rd first order: Salt ' minion3 ' cmd.run " ipconfig ".
Wherein, the identification information of a second class server (minion1) is carried in the 1st first order;2nd The identification information of a second class server (minion2) is carried in one order;One the is carried in 3rd first order The identification information of two class servers (minion3).
Optionally, there is N number of first kind server in first kind server list, the first order there are M, traversal first kind clothes Business device list, is successively ordered to first kind server push first, comprising: is ranked up M first order, is obtained the 1st First order, the 2nd first order ..., i-th first orders ..., m-th first orders;It is arranged to first kind server I-th first of i-th of first kind server push in table orders, wherein i successively takes 1 to M.
It is divided into two kinds of situations below to be illustrated.
Situation one: N is more than or equal to M, that is, the quantity of first kind server is more than or equal to the quantity of the first order.Such In the case of, first kind server list is traversed, in order, orders, is divided to each first kind server push one first Hair.
For example, as shown in table 1, there is 5 first kind servers in first kind server list, the first order has 4.Then to The 1st first kind server push the 1st first order in first kind server list;Into first kind server list 2nd first kind server push the 2nd first order;The 3rd first kind server push into first kind server list Send the 3rd first order;The 4th first kind server push the 4th first order into first kind server list.
Table 1
First order First kind server
1st first order 1st first kind server
2nd first order 2nd first kind server
3rd first order 3rd first kind server
4th first order 4th first kind server
Situation two: N is less than M, that is, quantity of the quantity of first kind server less than the first order.In this case, time First kind server list is gone through, in order, orders, is distributed to each first kind server push one first.First At the end of class server list has stepped through, the first order has all pushed not yet, then continues to traverse first kind service again Device list is ordered to each first kind server push one first, is distributed in order, until all first orders are equal It has been pushed on these first kind servers.
For example, as shown in table 2, there is 5 first kind servers in first kind server list, the first order has 12.Then The 1st first kind server push the 1st first order into first kind server list;Into first kind server list The 2nd first kind server push the 2nd first order;The 3rd first kind server into first kind server list Push the 3rd first order;The 4th first kind server push the 4th first order into first kind server list;To The 5th first kind server push the 5th first order in first kind server list;Into first kind server list 1st first kind server push the 6th first order;The 2nd first kind server push into first kind server list Send the 7th first order;The 3rd first kind server push the 8th first order into first kind server list;To The 4th first kind server push the 9th first order in a kind of server list;Into first kind server list 5 first kind server push the 10th first orders;The 1st first kind server push into first kind server list 11st first order;The 2nd first kind server push the 12nd first order into first kind server list.
Table 2
Optionally, obtaining first kind server list includes: the IP in poll first kind server list;To destination service Device sends test command, obtains test result, wherein destination server is the corresponding first kind server of IP being polled to;Root Determine whether to update first kind server list according to test result.
Optionally, determined whether to update first kind server list according to test result, comprising: if test result indicates Destination server can work normally, then keep first kind server list constant;If test result indicates destination server Working condition is abnormal, then deletes destination server from first kind server list.
It after destination server receives test command, tests whether itself can work normally, obtains test knot Fruit.
Destination server whether itself can be worked normally the method tested can there are many, be set forth below wherein It is a kind of.For example, salt test command is sent to destination server, after destination server receives salt test command, to any One the second class server carries out primary simple HELLO test, if being returned as True, it was demonstrated that destination server can be normal Work, i.e. test result instruction destination server can work normally, and in this case, keep first kind server list not Become.If be returned as Flase or at all can not ssh link, prove that destination server can not work normally, i.e., test result refers to Show that destination server working condition is abnormal, in this case, destination server is deleted from first kind server list.
By deleting the first kind server of working condition exception from first kind server list, the first kind is realized Server list timely updates, and ensure that the availability for improving more master frameworks.
This programme includes 4 parts:
1. master list (first kind server list) can be used
It is the list of a server ip, has recorded the ip of current all available master (first kind server), when When having task to be issued, task distribution module needs to rely on the list.
2.Master monitoring module
The module is an active monitoring programme, deployed position do not need it is special specified, but the program need with it is " available Master list " is put together, and continuous active poll can use the IP in master list, and pass through ssh to target machine (mesh Mark server) salt test command (i.e. above-mentioned test command) is sent, by returning the result True or False or sentencing without response The availability of disconnected master.Salt test command is exactly salt ' xxx ' test.ping, which can allow master to random one A minion (the second class server) carries out primary simple HELLO test, if being returned as True, it was demonstrated that and master is available, If be returned as Flase or at all can not ssh link, then it is assumed that the master is unavailable, when there is not available situation, This module will be updated " can use master list ", and the IP of not available master is removed from the list.
3. task receiving module
Use module of the module as salt, when operation maintenance personnel needs to carry out mission dispatching, will use the module, Filling in the order and target minion (multiple) list for needing to issue can traverse in order after the module receives this order O&M is caught the order (the second order) for needing to issue to multiple minion come, change by specified target minion list It is single salt '<target machine traversed>' cmd pattern one by one for the small task of separate unit minion (the first life It enables).Citing:
The order of operation maintenance personnel input is as follows:
Salt-L ' minion1, minion2, minion3 ' cmd.run " ipconfig " (the second order)
Mentioned order means that, to minion1, minion2, minion3 machine issues the order for executing shell
Order after module dismantling is as follows:
Salt ' minion1 ' cmd.run " ipconfig " (the first order)
Salt ' minion2 ' cmd.run " ipconfig " (the first order)
Salt ' minion3 ' cmd.run " ipconfig " (the first order)
Dismantling has obtained all orders towards separate unit minion, these orders (the first order) are all sent to " task distribution module ".
4. task distribution module
After having obtained all orders towards separate unit minion, traverse " master list can be used ", in order by task, often A master pushes an order, is distributed, if " can use master list " has stepped through end, but orders complete not yet Portion has pushed, then continues to traverse, until all orders have been pushed on these master.
Push then uses the mode of ssh remote linkage, no longer illustrates herein.
When having a large amount of task to be issued, more master frameworks only have a machine work in the prior art Make, other machines is idle, and more machines share work together in application scheme, and execution efficiency is improved, and failure Master can also be monitored, no longer undertake task, task avoided to lose.
The embodiment of the invention also provides transmitting apparatus under a kind of order, and transmitting apparatus is for executing under mentioned order under the order Forwarding method, mentioned order delivery method can be executed by transmitting apparatus under the order.Fig. 2 is that one kind according to an embodiment of the present invention is optional Order under transmitting apparatus schematic diagram.As shown in Fig. 2, transmitting apparatus includes: that first acquisition unit 10, second obtains list under the order First 20, Traversal Unit 30.
First acquisition unit 10, for obtaining first kind server list, wherein first kind server list lists institute There is online first kind server.Second acquisition unit 20, for obtaining multiple first orders, wherein the first order is desirable The order of the second class server is handed down to by the first kind server in first kind server list.Traversal Unit 30, for time First kind server list is gone through, is successively ordered to first kind server push first, wherein every time to a first kind server One first order of push.
Optionally, second acquisition unit 20 includes: to obtain subelement, split subelement.Subelement is obtained, is needed for obtaining The second order to be issued, wherein the second order carries the identification information of multiple second class servers.Subelement is split, is used for Each second order is split as multiple first orders, wherein the mark of a second class server is carried in each first order Know information.
Optionally, there is N number of first kind server in first kind server list, the first order there are M, and Traversal Unit 30 wraps It includes: sorting subunit, push subelement.Sorting subunit obtains the 1st first life for M first order to be ranked up Enable, the 2nd first order ..., i-th first orders ..., m-th first orders.Subelement is pushed, is used for first I-th first of i-th of first kind server push in class server list orders, wherein i successively takes 1 to M.
Optionally, first acquisition unit 10 includes: poll subelement, transmission sub-unit, updates subelement.Poll is single Member, for the IP in poll first kind server list.Transmission sub-unit is obtained for sending test command to destination server To test result, wherein destination server is the corresponding first kind server of IP being polled to.Subelement is updated, basis is used for Test result determines whether to update first kind server list.
Optionally, it if test result instruction destination server can work normally, updates subelement and keeps the first kind Server list is constant;If test result indicates that destination server working condition is abnormal, subelement is updated by destination service Device is deleted from first kind server list.
Transmitting apparatus includes processor and memory under the order, above-mentioned first acquisition unit 10, second acquisition unit 20, Traversal Units 30 etc. store in memory as program unit, execute above procedure stored in memory by processor Unit realizes corresponding function.
Include kernel in processor, is gone in memory to transfer corresponding program unit by kernel.Kernel can be set one Or more, issuing for multiple tasks is executed by adjusting kernel parameter.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, if read-only memory (ROM) or flash memory (flash RAM), memory include that at least one is deposited Store up chip.
The embodiment of the invention provides a kind of storage mediums, are stored thereon with program, real when which is executed by processor The existing order delivery method.
The embodiment of the invention provides a kind of processor, the processor is for running program, wherein described program operation Order delivery method described in Shi Zhihang.
The embodiment of the invention provides a kind of equipment, equipment include processor, memory and storage on a memory and can The program run on a processor, processor perform the steps of when executing program
Obtain first kind server list, wherein the first kind server list lists all online first kind Server;Obtain multiple first orders, wherein first order is needed as described in the first kind server list First kind server is handed down to the order of the second class server;Traverse the first kind clothes in the first kind server list Business device, successively to the first order described in the first kind server push, wherein every time to a first kind server push Send first order.
Obtain the second order for needing to issue, wherein second order carries the mark of multiple second class servers Know information;Each second order is split as multiple first orders, wherein carry an institute in each first order State the identification information of the second class server.
Described first order of M is ranked up, obtain the 1st first order, the 2nd the first order ..., i-th First order ..., m-th first order;I-th of first kind server push institute into the first kind server list State i-th first orders, wherein i successively takes 1 to M.
IP in first kind server list described in poll;Test command is sent to destination server, obtains test result, Wherein, the destination server is the corresponding first kind server of IP being polled to;It is according to test result determination It is no to update the first kind server list.
If the test result indicates that the destination server can work normally, the first kind server is kept List is constant;If the test result indicates that the destination server working condition is abnormal, by the destination server from It is deleted in the first kind server list.
Equipment herein can be server, PC, PAD, mobile phone etc..
Present invention also provides a kind of computer program products, when executing on data processing equipment, are adapted for carrying out just The program of beginningization there are as below methods step:
Obtain first kind server list, wherein the first kind server list lists all online first kind Server;Obtain multiple first orders, wherein first order is needed as described in the first kind server list First kind server is handed down to the order of the second class server;Traverse the first kind clothes in the first kind server list Business device, successively to the first order described in the first kind server push, wherein every time to a first kind server push Send first order.
Obtain the second order for needing to issue, wherein second order carries the mark of multiple second class servers Know information;Each second order is split as multiple first orders, wherein carry an institute in each first order State the identification information of the second class server.
Described first order of M is ranked up, obtain the 1st first order, the 2nd the first order ..., i-th First order ..., m-th first order;I-th of first kind server push institute into the first kind server list State i-th first orders, wherein i successively takes 1 to M.
IP in first kind server list described in poll;Test command is sent to destination server, obtains test result, Wherein, the destination server is the corresponding first kind server of IP being polled to;It is according to test result determination It is no to update the first kind server list.
If the test result indicates that the destination server can work normally, the first kind server is kept List is constant;If the test result indicates that the destination server working condition is abnormal, by the destination server from It is deleted in the first kind server list.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/ Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product. Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art, Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement, Improve etc., it should be included within the scope of the claims of this application.

Claims (10)

1. a kind of order delivery method characterized by comprising
Obtain first kind server list, wherein the first kind server list lists all online first kind services Device;
Obtain multiple first orders, wherein first order is needed by described the in the first kind server list A kind of server is handed down to the order of the second class server;
The first kind server list is traversed, successively to the first order described in the first kind server push, wherein every time To first order of a first kind server push one.
2. the method according to claim 1, wherein multiple first orders of acquisition include:
Obtain the second order for needing to issue, wherein second order carries the mark letter of multiple second class servers Breath;
Each second order is split as multiple first orders, wherein carry described in one in each first order The identification information of second class server.
3. according to the method described in claim 2, it is characterized in that, having N number of described first in the first kind server list Class server, first order have M, traverse the first kind server in the first kind server list, successively To the first order described in the first kind server push, comprising:
Described first order of M is ranked up, obtain the 1st first order, the 2nd the first order ..., i-th first Order ..., m-th first order;
Described in i-th of first kind server push into the first kind server list i-th first order, wherein i according to It is secondary to take 1 to M.
4. the method according to claim 1, wherein acquisition first kind server list includes:
IP in first kind server list described in poll;
Test command is sent to destination server, obtains test result, wherein the destination server is that the IP being polled to is corresponded to The first kind server;
Determined whether to update the first kind server list according to the test result.
5. according to the method described in claim 4, it is characterized in that, being determined whether to update described first according to the test result Class server list, comprising:
If the test result indicates that the destination server can work normally, the first kind server list is kept It is constant;
If the test result indicates that the destination server working condition is abnormal, by the destination server from described the It is deleted in a kind of server list.
6. transmitting apparatus under a kind of order characterized by comprising
First acquisition unit, for obtaining first kind server list, wherein the first kind server list lists all Online first kind server;
Second acquisition unit, for obtaining multiple first orders, wherein first order is to need to be serviced by the first kind The first kind server in device list is handed down to the order of the second class server;
Traversal Unit, for traversing the first kind server list, successively to first described in the first kind server push Order, wherein every time to first order of a first kind server push one.
7. device according to claim 6, which is characterized in that the second acquisition unit includes:
Subelement is obtained, for obtaining the need to issue second order, wherein second order carries multiple second classes The identification information of server;
Subelement is split, for each second order to be split as multiple first orders, wherein each first order The middle identification information for carrying the second class server.
8. device according to claim 7, which is characterized in that have N number of described first in the first kind server list Class server, first order have M, and the Traversal Unit includes:
Sorting subunit obtains the 1st first order, the 2nd the first life for being ranked up M first orders Enable ..., i-th first order ..., m-th first order;
Subelement is pushed, for i-th described in i-th of first kind server push into the first kind server list the One order, wherein i successively takes 1 to M.
9. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein described program right of execution Benefit require any one of 1 to 5 described in order delivery method.
10. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run Benefit require any one of 1 to 5 described in order delivery method.
CN201710721247.6A 2017-08-21 2017-08-21 Command issuing method and device, storage medium and processor Active CN109426559B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710721247.6A CN109426559B (en) 2017-08-21 2017-08-21 Command issuing method and device, storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710721247.6A CN109426559B (en) 2017-08-21 2017-08-21 Command issuing method and device, storage medium and processor

Publications (2)

Publication Number Publication Date
CN109426559A true CN109426559A (en) 2019-03-05
CN109426559B CN109426559B (en) 2022-10-04

Family

ID=65497627

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710721247.6A Active CN109426559B (en) 2017-08-21 2017-08-21 Command issuing method and device, storage medium and processor

Country Status (1)

Country Link
CN (1) CN109426559B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115051918A (en) * 2021-03-09 2022-09-13 大唐移动通信设备有限公司 Network device control method, server, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030145063A1 (en) * 2002-01-30 2003-07-31 Arito Asai Computer apparatus and program for controlling same
US20070055768A1 (en) * 2005-08-23 2007-03-08 Cisco Technology, Inc. Method and system for monitoring a server
CN101282249A (en) * 2007-04-27 2008-10-08 清华大学 Automatic log-on and management method for distributed internet measurement server
CN103024050A (en) * 2012-12-17 2013-04-03 北京奇虎科技有限公司 Distributor and distributing method for multiple servers
US8856211B1 (en) * 2010-09-30 2014-10-07 Amazon Technologies, Inc. Flexible network testing
CN105956481A (en) * 2015-09-17 2016-09-21 中国银联股份有限公司 Data processing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030145063A1 (en) * 2002-01-30 2003-07-31 Arito Asai Computer apparatus and program for controlling same
US20070055768A1 (en) * 2005-08-23 2007-03-08 Cisco Technology, Inc. Method and system for monitoring a server
CN101282249A (en) * 2007-04-27 2008-10-08 清华大学 Automatic log-on and management method for distributed internet measurement server
US8856211B1 (en) * 2010-09-30 2014-10-07 Amazon Technologies, Inc. Flexible network testing
CN103024050A (en) * 2012-12-17 2013-04-03 北京奇虎科技有限公司 Distributor and distributing method for multiple servers
CN105956481A (en) * 2015-09-17 2016-09-21 中国银联股份有限公司 Data processing method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115051918A (en) * 2021-03-09 2022-09-13 大唐移动通信设备有限公司 Network device control method, server, device and storage medium
CN115051918B (en) * 2021-03-09 2024-03-12 大唐移动通信设备有限公司 Control method, server, device and storage medium of network equipment

Also Published As

Publication number Publication date
CN109426559B (en) 2022-10-04

Similar Documents

Publication Publication Date Title
CN105635331B (en) Service addressing method and device under a kind of distributed environment
CN106227596A (en) Mission Monitor method and apparatus for task scheduling server
CN110399307A (en) A kind of test method, test platform and destination server
CN109412875A (en) Zookeeper cluster automatic maintenance method and device
CN110489437A (en) Distributed transaction processing method, device, computer equipment and storage medium
CN109639809A (en) A kind of method and device of service data request link monitoring
CN105592122A (en) Cloud platform monitoring method and cloud platform monitoring system
CN108829504A (en) A kind of method for scheduling task, device, medium and electronic equipment
CN109561128A (en) Data transmission method and device
CN109327319A (en) Method, equipment and the system of on-premise network slice
CN108121599A (en) A kind of method for managing resource, apparatus and system
CN109857516A (en) Cluster moving method and device based on container
CN108134812A (en) Data processing method and device
CN110209132A (en) Production data processing method and device in manufacturing system
CN108803542A (en) Industrial production data manages system
CN110532021A (en) The processing method and processing device of the configuration file of dcs
CN109426559A (en) Order delivery method and device, storage medium, processor
CN109995787A (en) A kind of data processing method and relevant device
CN109495435A (en) The firewall update method and device of server
CN105243078A (en) File resource distribution method, system and apparatus
CN108200213A (en) O&M method, apparatus and system
CN108566429A (en) A kind of high in the clouds sharing files method and apparatus
CN109286617A (en) A kind of data processing method and relevant device
CN110955197A (en) Automatic configuration device and method for production line
CN108228355A (en) Task processing method and device, method for scheduling task and device

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

Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing

Applicant after: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

Address before: 100086 Beijing city Haidian District Shuangyushu Area No. 76 Zhichun Road cuigongfandian 8 layer A

Applicant before: BEIJING GRIDSUM TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant