CN108600008A - Server management method, server managing device and distributed system - Google Patents
Server management method, server managing device and distributed system Download PDFInfo
- Publication number
- CN108600008A CN108600008A CN201810374590.2A CN201810374590A CN108600008A CN 108600008 A CN108600008 A CN 108600008A CN 201810374590 A CN201810374590 A CN 201810374590A CN 108600008 A CN108600008 A CN 108600008A
- Authority
- CN
- China
- Prior art keywords
- server
- sequence
- tasks
- task
- data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Hardware Redundancy (AREA)
Abstract
Server management method, server managing device and distributed system provided by the invention, are related to big data technical field.Server management method is applied to the master server of distributed system, slave servers of the distributed system also with the communication connection of multiple and master server, and server management method includes:Sequence of tasks is distributed to this from server from the registration information that server is sent based on any one, so as to sequence of tasks should be executed from server;It detects whether to receive the de-registration request information sent from server, wherein, de-registration request information based on disk, central processing unit or the memory from server there are generated when unusual condition or network or process based on this from server there are generated when unusual condition;If receiving de-registration request information, obtains this and execute the data and storage that sequence of tasks generates from server.By the above method, the relatively low problem of the reliability of task execution in the prior art can be improved.
Description
Technical field
The present invention relates to big data technical fields, are filled in particular to a kind of server management method, server admin
It sets and distributed system.
Background technology
With the continuous development of information technology, the amount of data is more and more.Wherein, how to be got in a large amount of data
It is that big data technology needs the critical issue solved to have valuable valid data.In the prior art, generally by using multiple
Server composition distributed system is handled with the data to magnanimity, with high speed, is effectively got with use value
Data.
Through inventor the study found that in existing distributed system, each server execute data processing task in, by
The treatment progress that may result in data in unusual condition terminates, so as to cause being easy to there are problems that loss of data,
And then there is a problem of causing the reliability of task execution relatively low because of loss of data.
Invention content
In view of this, the purpose of the present invention is to provide a kind of server management method, server managing device and distributions
Formula system, the relatively low problem of reliability to improve task execution in the prior art.
To achieve the above object, the embodiment of the present invention adopts the following technical scheme that:
A kind of server management method, is applied to the master server of distributed system, and the distributed system also has more
A slave server with master server communication connection, the server management method include:
Sequence of tasks is distributed to this from server from the registration information that server is sent based on any one, so that should
The sequence of tasks is executed from server;
It detects whether to receive the de-registration request information sent from server, wherein the de-registration request information is based on
Disk, central processing unit or the memory from server there are generated when unusual condition based on the network from server or into
There are generated when unusual condition for journey;
If receiving the de-registration request information, obtains this and execute the data of the sequence of tasks generation simultaneously from server
Storage.
In the embodiment of the present invention preferably selects, in above-mentioned server management method, any one is based on executing
Sequence of tasks is distributed from the registration information that server is sent to this from server, so as to the series should be executed from server
After the step of task, the method further includes:
The task attribute of the sequence of tasks is determined according to the sequence of tasks;
Corresponding heartbeat mechanism is configured to the slave server for executing the sequence of tasks according to the task attribute.
In the embodiment of the present invention preferably selects, in above-mentioned server management method, if being received in execution described
De-registration request information, then it is described after obtaining the step of this executes the data and storage that the sequence of tasks generates from server
Method further includes:
It detects whether to receive the registration information retransmitted from server;
If receiving the registration information of the retransmission, storage is generated based on the sequence of tasks is executed
Data be sent to this from server, so as to the sequence of tasks should be executed from server.
In the embodiment of the present invention preferably selects, in above-mentioned server management method, if it is described receive it is described heavy
Storage is then sent to this from service by the registration information newly sent based on the data for executing the sequence of tasks generation
Device, so that the step of should executing the sequence of tasks from server includes:
If receiving the registration information of the retransmission, being judged according to the registration information should be from server
Whether request distributes unhook task, wherein the unhook task is completion should to be not carried out because being abnormal situation from server
Sequence of tasks;
If the unhook task should be distributed from server request, by storage based on executing what the sequence of tasks generated
Data are sent to this from server, so as to the sequence of tasks should be executed from server.
In the embodiment of the present invention preferably selects, in above-mentioned server management method, if being received in execution described
De-registration request information, then it is described after obtaining the step of this executes the data and storage that the sequence of tasks generates from server
Method further includes:
The sequence of tasks is distributed to other from server;
Storage is sent to the others from server, so that should based on the data that the sequence of tasks generates are executed
The sequence of tasks is executed from server.
The embodiment of the present invention additionally provides a kind of server managing device, is applied to the master server of distributed system, institute
Stating distributed system also has multiple slave servers with master server communication connection, the server managing device packet
It includes:
Task allocating module, for being divided from the registration information that server is sent to this from server based on any one
With sequence of tasks, so as to the sequence of tasks should be executed from server;
First detection module, for detecting whether receiving the de-registration request information sent from server, wherein described
Based on disk, central processing unit or the memory from server, there are generate or based on should be from de-registration request information when unusual condition
There are generated when unusual condition for the network or process of server;
Data acquisition module should execute the system for when receiving the de-registration request information, obtaining from server
Row task generate data and storage.
In the embodiment of the present invention preferably selects, in above-mentioned server managing device, further include:
Task attribute determining module, the task attribute for determining the sequence of tasks according to the sequence of tasks;
Heartbeat mechanism configuration module, for being configured to the slave server for executing the sequence of tasks according to the task attribute
Corresponding heartbeat mechanism.
In the embodiment of the present invention preferably selects, in above-mentioned server managing device, further include:
Second detection module, for detecting whether receiving the registration information retransmitted from server;
Data transmission blocks, for when receiving the registration information of the retransmission, by storage based on holding
The data that the row sequence of tasks generates are sent to this from server, so as to the sequence of tasks should be executed from server.
In the embodiment of the present invention preferably selects, in above-mentioned server managing device, the data transmission blocks packet
It includes:
Task judging submodule, for when receiving the registration information of the retransmission, being asked according to the registration
Information is asked to judge distribution unhook task whether should be asked from server, wherein the unhook task is should be from server because occurring
Unusual condition and the sequence of tasks for being not carried out completion;
Data sending submodule, for when this asks to distribute the unhook task from server, by storage based on holding
The data that the row sequence of tasks generates are sent to this from server, so as to the sequence of tasks should be executed from server.
The embodiment of the present invention additionally provides a kind of distributed system, including master server and the multiple and master server lead to
Believe the slave server of connection;
The master server is used to divide to this from server from the registration information that server is sent based on any one
With sequence of tasks;
It should be used to execute the sequence of tasks from server, and in disk, central processing unit or the memory from server
There are unusual condition or there are generation de-registration request information when unusual condition and institute should be sent to from the network or process of server
Master server is stated, and stops the execution of the sequence of tasks;
The master server is additionally operable to detect whether to receive the de-registration request information sent from server, and is receiving
When to the de-registration request information, obtains this and execute the data and storage that the sequence of tasks generates from server.
Server management method, server managing device and distributed system provided by the invention, it is logical by master server
Cross based on from server registration information or de-registration request information with to the distribution or the data that carry out task from server
Preserve, while realizing to carrying out easy management from server, it can also be ensured that the integrality of data in order to task again
Secondary execution, to improve the reliability of task execution, and then the reliability for improving task execution existing in the prior art is relatively low
The problem of.
Further, by the type of the task based on distribution to being configured from the heartbeat mechanism of server, Ke Yishi
Ensure main service now and on the basis of the validity connected between server, can also avoid the problem that the wasting of resources.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment cited below particularly, and coordinate
Appended attached drawing, is described in detail below.
Description of the drawings
Fig. 1 is the connection block diagram of distributed system provided in an embodiment of the present invention.
Fig. 2 is the structure diagram of master server provided in an embodiment of the present invention.
Fig. 3 is the flow diagram of server management method provided in an embodiment of the present invention.
Fig. 4 is another flow diagram of server management method provided in an embodiment of the present invention.
Fig. 5 is the flow diagram of step S150 in Fig. 4.
Fig. 6 is another flow diagram of server management method provided in an embodiment of the present invention.
Fig. 7 is the structure diagram of server managing device provided in an embodiment of the present invention.
Fig. 8 is another structure diagram of server managing device provided in an embodiment of the present invention.
Fig. 9 is the structure diagram of data transmission blocks provided in an embodiment of the present invention.
Figure 10 is another structure diagram of server managing device provided in an embodiment of the present invention.
Icon:10- distributed systems;20- master servers;22- memories;24- processors;30- is from server;100- takes
Business device managing device;110- task allocating modules;120- first detection modules;130- data acquisition modules;140- second is detected
Module;150- data transmission blocks;151- task judging submodules;153- data sending submodules;160- task attributes determine
Module;170- heartbeat mechanism configuration modules.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment only
It is a part of the embodiment of the present invention, instead of all the embodiments.The present invention being usually described and illustrated herein in the accompanying drawings
The component of embodiment can be arranged and be designed with a variety of different configurations.
Therefore, below the detailed description of the embodiment of the present invention to providing in the accompanying drawings be not intended to limit it is claimed
The scope of the present invention, but be merely representative of the present invention selected embodiment.Based on the embodiments of the present invention, this field is common
The every other embodiment that technical staff is obtained without creative efforts belongs to the model that the present invention protects
It encloses.
It should be noted that:Similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined, then it further need not be defined and explained in subsequent attached drawing in a attached drawing.In description of the invention
In, term " first ", " second " etc. are only used for distinguishing description, and should not be understood as only or imply relative importance.
As shown in Figure 1, an embodiment of the present invention provides a kind of distributed system 10, including master server 20 and multiple from clothes
Business device 30.Wherein, it is each it is described communicated to connect respectively with the master server 20 from server 30, to be based on the master server 20
Control carry out data processing task.
Further, in the present embodiment, the master server 20 is used to send from server 30 based on any one
Registration information distributes sequence of tasks to this from server 30.Should from server 30 for executing the sequence of tasks, and
Disk, central processing unit or the memory from server 30 are there are unusual condition or should exist from the network or process of server 30
De-registration request information is generated when unusual condition and is sent to the master server 20, and stops the execution of the sequence of tasks.Institute
It states master server 20 to be additionally operable to detect whether to receive the de-registration request information sent from server 30, and described receiving
When de-registration request information, obtains this and execute the data and storage that the sequence of tasks generates from server 30.
Optionally, the master server 20 and each type from server 30 are unrestricted, can be according to actually answering
It is configured with demand, for example, may include, but is not limited to web (website) server, data server, computer, mobile Internet access
The equipment that equipment (mobile Internet device, MID) etc. has processing function.Also, the master server 20 and each
The type from server 30 can be identical, can also be different, as long as the interaction of data can be effectively performed
.
In the present embodiment, each described identical as the type of the master server 20 from server 30, may include identical
Component.In conjunction with Fig. 2, illustrated by taking the master server 20 as an example.Wherein, the master server 20 may include storage
Device 22 and processor 24.
It is directly or indirectly electrically connected between the memory 22 and processor 24, to realize the transmission or friendship of data
Mutually.It is electrically connected for example, these elements can be realized between each other by one or more communication bus or signal wire.Also, institute
Server managing device 100 can also be stored with by stating memory 22.Wherein, the server managing device 100 includes at least one
A software function module that can be stored in the form of software or firmware (firmware) in the memory 22.The processor
24 for executing the executable computer program stored in the memory 22, for example, 100 institute of the server managing device
Including software function module and computer program etc., to realize server management method.
Wherein, the memory 22 may be, but not limited to, random access memory (Random Access Memory,
RAM), read-only memory (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only
Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM),
Electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..
Wherein, memory 22 is for storing program, and the processor 24 executes described program after receiving and executing instruction.
The processor 24 may be a kind of IC chip, the processing capacity with signal.Above-mentioned processor 24
Can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit
(Network Processor, NP) etc.;It can also be digital signal processor (DSP), application-specific integrated circuit (ASIC), scene
Programmable gate array (FPGA) either other programmable logic device, discrete gate or transistor logic, discrete hardware group
Part.It may be implemented or execute disclosed each method, step and the logic diagram in the embodiment of the present invention.General processor can be with
It is microprocessor or the processor can also be any conventional processor etc..
It is appreciated that structure shown in Fig. 2 is only to illustrate, the master server 20 may also include more than shown in Fig. 2
Either less component or with the configuration different from shown in Fig. 2, for example, it is also possible to include for it is each described from service
Device 30 carries out the communication unit of data interaction.Hardware, software, or its combination realization may be used in each component shown in Fig. 2.
In conjunction with Fig. 3, the embodiment of the present invention also provides a kind of master server 20 can be applied to above-mentioned distributed system 10
Server management method.Wherein, method and step defined in the related flow of the method can be realized by the processor 24.
Detailed process shown in Fig. 3 will be described in detail below.
Step S110 distributes system from the registration information that server 30 is sent based on any one to this from server 30
Row task, so as to the sequence of tasks should be executed from server 30.
In the present embodiment, it can be active respectively to carry out the execution of task from server 30, that is to say, that respectively from clothes
Being engaged in device 30 can be based on the request of the demand of itself progress task.For example, one from server 30 in it is normal and it is current not
When execution task, registration information can be sent to master server 20, to be registered in master server 20, so that main service
Device 20 can obtain the information (for example, status information) from server 30.Also, the registration information can also include
The demand information of execution task is asked, so that main service can be based on the demand information and distribute series times to this from server 30
Business.
Step S120 detects whether to receive the de-registration request information sent from server 30.
In the present embodiment, the de-registration request information is based on disk, central processing unit or the memory from server 30
There are generation when unusual condition or network or process based on this from server 30, there are generated when unusual condition.That is,
If above-mentioned each unusual condition occurs from server 30, de-registration request information can be sent to master server 20, so that main service
Device 20 can obtain the present situation from server 30.Also, should be from server 30 when above-mentioned each unusual condition occurs, it can
To enter suspended state, to stop the execution to the sequence of tasks.
Step S130, if receiving the de-registration request information, the sequence of tasks should be executed from server 30 by obtaining
The data of generation and storage.
In the present embodiment, when receiving de-registration request information, it is possible to determine that corresponding to there is exception from server 30
Situation is difficult to continue to execute to the sequence of tasks distributed from server 30.To ensure that the sequence of tasks can be effectively complete
At, can obtain from take device by execute the sequence of tasks generate data and preservation.
Optionally, for the data of preservation and corresponding sequence of tasks, the mode of processing is unrestricted, can be according to reality
Application demand is configured, for example, either pause to the processing of the sequence of tasks with corresponding from the different of server 30
After normal situation is eliminated, then the sequence of tasks distributed to this from server 30, can also be to be distributed directly to the sequence of tasks
Others are from server 30.
In a kind of example, after executing step S130, the server management method can also include the following steps:
The sequence of tasks is distributed to other from server 30;By storage based on the data hair for executing the sequence of tasks generation
It send to the others from server 30, so as to the sequence of tasks should be executed from server 30.In this way, may be implemented
Quick processing to sequence of tasks avoids the interruption of sequence of tasks from executing and influence the process of task processing.
In another example, in conjunction with Fig. 4, after executing step S130, the server management method can also wrap
Include step S140 and step S150.
Step S140 detects whether to receive the registration information retransmitted from server 30.
In the present embodiment, registration can be retransmitted to master server 20 after unusual condition elimination from server 30 to ask
Information is sought, to ask master server 20 to carry out the distribution of task, to realize the reasonable utilization from 30 resource of server.
Step S150, if receiving the registration information of the retransmission, by storage based on the execution system
The data that row task generates are sent to this from server 30, so as to the sequence of tasks should be executed from server 30.
Optionally, master server 20 is when receiving from the registration information that server 30 retransmits, either
The sequence of tasks for stopping executing because of unusual condition is reassigned to this from server 30 based on the request from server 30,
Can be that the sequence of tasks for stopping executing because of unusual condition is actively reassigned to this from server 30.In the present embodiment
In, in conjunction with Fig. 5, step S150 may include step S151 and step S153.
Step S151 judges if receiving the registration information of the retransmission according to the registration information
Distribution unhook task whether should be asked from server 30.
In the present embodiment, the unhook task stops the series executing for this from server 30 because being abnormal situation
Task.Wherein, the registration information that should be retransmitted from server 30 is either the request distribution of master server 20 is broken off relations and appointed
Business can also be that request master server 20 distributes new sequence of tasks.
Step S153, if the unhook task should be distributed from the request of server 30, by storage based on the execution system
The data that row task generates are sent to this from server 30, so as to the sequence of tasks should be executed from server 30.
In the present embodiment, by executing step S153, it is ensured that it is executed from server 30 by same with a series of, with
Avoid the problem that it is different execute same sequence of tasks from server 30 and partial task caused to be repeatedly executed, and then avoid because
Partial task is repeatedly executed and existing problem of resource waste.
Further, in the present embodiment, main for guarantee master server 20 and from the validity connected between server 30
Server 20 can also be described after executing step S110 in conjunction with Fig. 6 to the configuration from the progress heartbeat mechanism of server 30
Server management method can also include step S160 and step S170.
Step S160 determines the task attribute of the sequence of tasks according to the sequence of tasks.
Step S170 configures corresponding heartbeat according to the task attribute to the slave server 30 for executing the sequence of tasks
Mechanism.
In the present embodiment, by being to be somebody's turn to do from the configuration pair of server 30 according to the attribute to being distributed from server 30 for task
The heartbeat mechanism answered can also avoid resource on the basis of ensureing main service and from the validity connected between server 30
The problem of waste.For example, be directed to more important sequence of tasks, can to execute the sequence of tasks slave server 30 configure compared with
The heartbeat mechanism of short-time constant.For general sequence of tasks, the slave server 30 for executing the sequence of tasks can be configured
The heartbeat mechanism of long period constant.Specifically, it for more important sequence of tasks, can be somebody's turn to do in master server 20 and execution
It is communicated once at interval of 10ms between the slave server 30 of sequence of tasks.It, can be in master server for general sequence of tasks
20 and execute the sequence of tasks slave server 30 between communicated at interval of 20ms it is primary.
In conjunction with Fig. 7, the embodiment of the present invention also provides a kind of master server 20 can be applied to above-mentioned distributed system 10
Server managing device 100.Wherein, the server managing device 100 may include that task allocating module 110, first detects
Module 120 and data acquisition module 130.
The task allocating module 110, for based on any one from server 30 send registration information to this
Sequence of tasks is distributed from server 30, so as to the sequence of tasks should be executed from server 30.In the present embodiment, the task
Distribution module 110 can be used for executing step S110 shown in Fig. 3, and the specific descriptions about the task allocating module 110 can be with
With reference to the description to step S110 above.
The first detection module 120, for detecting whether the de-registration request information sent from server 30 is received,
Wherein, there are given birth to when unusual condition based on disk, central processing unit or the memory from server 30 for the de-registration request information
At or based on the network or process from server 30, there are generated when unusual condition.In the present embodiment, first detection
Module 120 can be used for executing step S120 shown in Fig. 3, and the specific descriptions about the first detection module 120 are referred to
Above to the description of step S120.
The data acquisition module 130, for when receiving the de-registration request information, obtaining should to hold from server 30
Data that the row sequence of tasks generates and storage.In the present embodiment, the data acquisition module 130 can be used for executing Fig. 3
Shown step S130, the specific descriptions about the data acquisition module 130 are referred to the description to step S130 above.
Further, in the present embodiment, in conjunction with Fig. 8, the server managing device 100 can also include the second detection
Module 140 and data transmission blocks 150.
Second detection module 140, for detecting whether receiving the registration request retransmitted from server 30
Information.In the present embodiment, second detection module 140 can be used for executing step S140 shown in Fig. 4, about described second
The specific descriptions of detection module 140 are referred to the description to step S140 above.
The data transmission blocks 150, for when receiving the registration information of the retransmission, by storage
This is sent to from server 30 based on the data that the sequence of tasks generates are executed, so as to the series should be executed from server 30
Task.In the present embodiment, the data transmission blocks 150 can be used for executing step S150 shown in Fig. 4, about the data
The specific descriptions of sending module 150 are referred to the description to step S150 above.
Wherein, in conjunction with Fig. 9, in the present embodiment, the data transmission blocks 150 may include task judging submodule
151 and data sending submodule 153.
The task judging submodule 151, for when receiving the registration information of the retransmission, according to this
Registration information judges distribution unhook task whether should be asked from server 30, wherein the unhook task is should be from service
Device 30 is not carried out the sequence of tasks of completion because being abnormal situation.In the present embodiment, the task judging submodule 151 can
For executing step S151 shown in fig. 5, the specific descriptions about the task judging submodule 151 are referred to above to step
The description of rapid S151.
The data sending submodule 153, for when this asks to distribute the unhook task from server 30, will store
Be sent to this from server 30 based on executing the data that the sequence of tasks generates so that this execute the system from server 30
Row task.In the present embodiment, the data sending submodule 153 can be used for executing step S153 shown in fig. 5, about described
The specific descriptions of data sending submodule 153 are referred to the description to step S153 above.
Further, in the present embodiment, in conjunction with Figure 10, the server managing device 100 can also include task category
Property determining module 160 and heartbeat mechanism configuration module 170.
The task attribute determining module 160, the task attribute for determining the sequence of tasks according to the sequence of tasks.
In the present embodiment, the task attribute determining module 160 can be used for executing step S160 shown in fig. 6, about the task
The specific descriptions of attribute determination module 160 are referred to the description to step S160 above.
The heartbeat mechanism configuration module 170, for the slave clothes according to the task attribute to the execution sequence of tasks
Business device 30 configures corresponding heartbeat mechanism.In the present embodiment, the heartbeat mechanism configuration module 170 can be used for executing Fig. 6 institutes
The step S170 shown, the specific descriptions about the heartbeat mechanism configuration module 170 are referred to above retouch step S170
It states.
In conclusion server management method provided by the invention, server managing device 100 and distributed system 10,
By master server 20 by based on from server 30 registration information or de-registration request information with to from server 30 into
The distribution of row task or the preservation of data, while realizing to carrying out easy management from server 30, it can also be ensured that number
According to integrality executed again in order to task, to improve the reliability of task execution, and then improve and exist in the prior art
Task execution the relatively low problem of reliability.Secondly, by the type of the task based on distribution to the heartbeat from server 30
Mechanism is configured, and may be implemented ensureing main service and on the basis of from the validity connected between server 30, can be with
Avoid the problem that the wasting of resources.
In several embodiments that the embodiment of the present invention is provided, it should be understood that disclosed device and method also may be used
To realize by another way.Device and method embodiment described above is only schematical, for example, in attached drawing
Flow chart and block diagram show the device of multiple embodiments according to the present invention, the possibility of method and computer program product is realized
Architecture, function and operation.In this regard, each box in flowchart or block diagram can represent module, a program
A part for a part for section or code, the module, section or code includes that one or more is patrolled for realizing defined
Collect the executable instruction of function.It should also be noted that at some as the function of in the realization method replaced, being marked in box
It can occur in a different order than that indicated in the drawings.For example, two continuous boxes can essentially be held substantially in parallel
Row, they can also be executed in the opposite order sometimes, this is depended on the functions involved.It is also noted that block diagram and/or
The combination of each box in flow chart and the box in block diagram and or flow chart can use function or dynamic as defined in executing
The dedicated hardware based system made is realized, or can be realized using a combination of dedicated hardware and computer instructions.
In addition, each function module in each embodiment of the present invention can integrate to form an independent portion
Point, can also be modules individualism, can also two or more modules be integrated to form an independent part.
It, can be with if the function is realized and when sold or used as an independent product in the form of software function module
It is stored in a computer read/write memory medium.Based on this understanding, technical scheme of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be expressed in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be
People's computer, electronic equipment or network equipment etc.) execute all or part of step of each embodiment the method for the present invention
Suddenly.And storage medium above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), is deposited mobile hard disk at random
The various media that can store program code such as access to memory (RAM, Random Access Memory), magnetic disc or CD.
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to the packet of nonexcludability
Contain, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes
Other elements that are not explicitly listed, or further include for elements inherent to such a process, method, article, or device.
In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including the element
Process, method, article or equipment in there is also other identical elements.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, any made by repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of server management method is applied to the master server of distributed system, which is characterized in that the distributed system
Slave servers also with the communication connection of the multiple and master server, the server management method include:
Sequence of tasks is distributed to this from server from the registration information that server is sent based on any one, so that should be from clothes
Business device executes the sequence of tasks;
It detects whether to receive the de-registration request information sent from server, wherein the de-registration request information is based on should be from
Network or process of disk, central processing unit or the memory of server there are being generated when unusual condition or based on this from server are deposited
It is generated in unusual condition;
If receiving the de-registration request information, obtains this and execute the data of the sequence of tasks generation from server and deposit
Storage.
2. server management method according to claim 1, which is characterized in that be based on any one from server executing
The registration information of transmission distributes sequence of tasks to this from server, so as to which the step of the sequence of tasks should be executed from server
After rapid, the method further includes:
The task attribute of the sequence of tasks is determined according to the sequence of tasks;
Corresponding heartbeat mechanism is configured to the slave server for executing the sequence of tasks according to the task attribute.
3. server management method according to claim 1 or 2, which is characterized in that if receiving the cancellation executing
Solicited message, then after obtaining the step of this executes the data and storage that the sequence of tasks generates from server, the method
Further include:
It detects whether to receive the registration information retransmitted from server;
If receiving the registration information of the retransmission, by storage based on the number for executing the sequence of tasks generation
According to this is sent to from server, so as to the sequence of tasks should be executed from server.
4. server management method according to claim 3, which is characterized in that if described receive the retransmission
Storage is then sent to this from server, so that should by registration information based on the data for executing the sequence of tasks generation
Include from the step of server execution sequence of tasks:
If receiving the registration information of the retransmission, according to the registration information judge should from server whether
Request distribution unhook task, wherein the unhook task is from what server was not carried out completion because being abnormal situation for this
Row task;
If the unhook task should be distributed from server request, by storage based on the data for executing the sequence of tasks generation
This is sent to from server, so as to the sequence of tasks should be executed from server.
5. server management method according to claim 1 or 2, which is characterized in that if receiving the cancellation executing
Solicited message, then after obtaining the step of this executes the data and storage that the sequence of tasks generates from server, the method
Further include:
The sequence of tasks is distributed to other from server;
Storage is sent to the others from server based on the data that the sequence of tasks generates are executed, so that should be from clothes
Business device executes the sequence of tasks.
6. a kind of server managing device is applied to the master server of distributed system, which is characterized in that the distributed system
Slave servers also with the communication connection of the multiple and master server, the server managing device include:
Task allocating module, for distributing system to this from server from the registration information that server is sent based on any one
Row task, so as to the sequence of tasks should be executed from server;
First detection module, for detecting whether receiving the de-registration request information sent from server, wherein the cancellation
Based on disk, central processing unit or the memory from server, there are generate or based on should be from service solicited message when unusual condition
There are generated when unusual condition for the network or process of device;
Data acquisition module should execute the series times for when receiving the de-registration request information, obtaining from server
Be engaged in generate data and storage.
7. server managing device according to claim 6, which is characterized in that further include:
Task attribute determining module, the task attribute for determining the sequence of tasks according to the sequence of tasks;
Heartbeat mechanism configuration module is corresponded to for being configured to the slave server for executing the sequence of tasks according to the task attribute
Heartbeat mechanism.
8. the server managing device described according to claim 6 or 7, which is characterized in that further include:
Second detection module, for detecting whether receiving the registration information retransmitted from server;
Data transmission blocks, for when receiving the registration information of the retransmission, by storage based on executing institute
The data for stating sequence of tasks generation are sent to this from server, so as to the sequence of tasks should be executed from server.
9. server managing device according to claim 8, which is characterized in that the data transmission blocks include:
Task judging submodule, for when receiving the registration information of the retransmission, being believed according to the registration request
Breath judges distribution unhook task whether should be asked from server, wherein the unhook task is should be from server because being abnormal
Situation and the sequence of tasks for being not carried out completion;
Data sending submodule is used for when this asks to distribute the unhook task from server, by storage based on execution institute
The data for stating sequence of tasks generation are sent to this from server, so as to the sequence of tasks should be executed from server.
10. a kind of distributed system, which is characterized in that including master server and multiple communication connections with the master server from
Server;
The master server is used to distribute to this from server from the registration information that server is sent based on any one
Row task;
Should exist from server for executing the sequence of tasks, and in disk, central processing unit or the memory from server
Unusual condition there are generation de-registration request information when unusual condition and should be sent to the master from the network or process of server
Server, and stop the execution of the sequence of tasks;
The master server is additionally operable to detect whether to receive the de-registration request information sent from server, and receiving
When stating de-registration request information, obtains this and execute the data and storage that the sequence of tasks generates from server.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810374590.2A CN108600008B (en) | 2018-04-24 | 2018-04-24 | Server management method, server management device and distributed system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810374590.2A CN108600008B (en) | 2018-04-24 | 2018-04-24 | Server management method, server management device and distributed system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108600008A true CN108600008A (en) | 2018-09-28 |
CN108600008B CN108600008B (en) | 2021-12-17 |
Family
ID=63614529
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810374590.2A Active CN108600008B (en) | 2018-04-24 | 2018-04-24 | Server management method, server management device and distributed system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108600008B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111858744A (en) * | 2019-04-29 | 2020-10-30 | 北京嘀嘀无限科技发展有限公司 | Database data synchronization method, server and system |
CN113032188A (en) * | 2019-12-24 | 2021-06-25 | 腾讯科技(深圳)有限公司 | Method, device, server and storage medium for determining main server |
CN113254199A (en) * | 2021-05-07 | 2021-08-13 | 埃森智能科技(深圳)有限公司 | Method, system and equipment for simultaneously processing multiple tasks |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010039526A (en) * | 2008-07-31 | 2010-02-18 | Toshiba Corp | Computer program and master computer |
CN102279730A (en) * | 2010-06-10 | 2011-12-14 | 阿里巴巴集团控股有限公司 | Parallel data processing method, device and system |
CN102385536A (en) * | 2010-08-27 | 2012-03-21 | 中兴通讯股份有限公司 | Method and system for realization of parallel computing |
CN103092712A (en) * | 2011-11-04 | 2013-05-08 | 阿里巴巴集团控股有限公司 | Method and device for recovering interrupt tasks |
CN104050029A (en) * | 2014-05-30 | 2014-09-17 | 北京先进数通信息技术股份公司 | Task scheduling system |
CN104503845A (en) * | 2015-01-14 | 2015-04-08 | 北京邮电大学 | Task distributing method and system |
CN104580338A (en) * | 2013-10-29 | 2015-04-29 | 华为技术有限公司 | Service processing method, system and equipment |
CN107341051A (en) * | 2016-05-03 | 2017-11-10 | 北京京东尚科信息技术有限公司 | Cluster task coordination approach, system and device |
-
2018
- 2018-04-24 CN CN201810374590.2A patent/CN108600008B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2010039526A (en) * | 2008-07-31 | 2010-02-18 | Toshiba Corp | Computer program and master computer |
CN102279730A (en) * | 2010-06-10 | 2011-12-14 | 阿里巴巴集团控股有限公司 | Parallel data processing method, device and system |
CN102385536A (en) * | 2010-08-27 | 2012-03-21 | 中兴通讯股份有限公司 | Method and system for realization of parallel computing |
CN103092712A (en) * | 2011-11-04 | 2013-05-08 | 阿里巴巴集团控股有限公司 | Method and device for recovering interrupt tasks |
CN104580338A (en) * | 2013-10-29 | 2015-04-29 | 华为技术有限公司 | Service processing method, system and equipment |
CN104050029A (en) * | 2014-05-30 | 2014-09-17 | 北京先进数通信息技术股份公司 | Task scheduling system |
CN104503845A (en) * | 2015-01-14 | 2015-04-08 | 北京邮电大学 | Task distributing method and system |
CN107341051A (en) * | 2016-05-03 | 2017-11-10 | 北京京东尚科信息技术有限公司 | Cluster task coordination approach, system and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111858744A (en) * | 2019-04-29 | 2020-10-30 | 北京嘀嘀无限科技发展有限公司 | Database data synchronization method, server and system |
CN113032188A (en) * | 2019-12-24 | 2021-06-25 | 腾讯科技(深圳)有限公司 | Method, device, server and storage medium for determining main server |
CN113032188B (en) * | 2019-12-24 | 2023-11-03 | 腾讯科技(深圳)有限公司 | Method, device, server and storage medium for determining main server |
CN113254199A (en) * | 2021-05-07 | 2021-08-13 | 埃森智能科技(深圳)有限公司 | Method, system and equipment for simultaneously processing multiple tasks |
Also Published As
Publication number | Publication date |
---|---|
CN108600008B (en) | 2021-12-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108600008A (en) | Server management method, server managing device and distributed system | |
CN110865867A (en) | Method, device and system for discovering application topological relation | |
CN103763346B (en) | A kind of distributed resource scheduling method and device | |
CN108268372A (en) | Mock test processing methods, device, storage medium and computer equipment | |
CN110601922A (en) | Method and device for realizing comparison experiment, electronic equipment and storage medium | |
US20130254376A1 (en) | Dynamic control over tracing of messages received by a message broker | |
CN110958161B (en) | Block chain link point monitoring method and device and storage medium | |
CN108933829A (en) | A kind of load-balancing method and device | |
US20140143777A1 (en) | Resource Scheduling Method and Device | |
CN108833205B (en) | Information processing method, information processing device, electronic equipment and storage medium | |
CN107105013B (en) | File processing method, server, terminal and system | |
CN108900434A (en) | Data collection distribution method and device | |
US10305974B2 (en) | Ranking system | |
US9847937B2 (en) | Hardware acceleration for routing programs | |
CN109815405B (en) | Gray level shunting method and system | |
CN108173783A (en) | A kind of message treatment method and system | |
CN109597800B (en) | Log distribution method and device | |
CN106844055A (en) | A kind of execution method and apparatus of task | |
CN106375102A (en) | Service registration method, application method and correlation apparatus | |
CN108683528A (en) | A kind of data transmission method, central server, server and data transmission system | |
CN108667864B (en) | Method and device for scheduling resources | |
CN113179295B (en) | Message processing method and device | |
CN107666401A (en) | A kind of configuration information obtaining method and terminal | |
CN110247823A (en) | A kind of fault detection method, device and relevant device | |
CN112787853A (en) | Automatic generation method and device of network change scheme and related 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 | ||
TA01 | Transfer of patent application right | ||
TA01 | Transfer of patent application right |
Effective date of registration: 20210319 Address after: 4 / F, block B, building 5, No. 200, Tianfu 5th Street, high tech Zone, Chengdu, Sichuan 610000 Applicant after: Zhiyun Technology Co.,Ltd. Address before: No. 1501, 15th floor, building 12, 219 Tianhua 2nd Road, hi tech Zone, Chengdu, Sichuan 610000 Applicant before: CHENGDU ZHIYUN SCIENCE & TECHNOLOGY Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |