Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the method for being used to push nodal information of the embodiment of the present application or for pushing node letter
The exemplary system architecture 100 of the device of breath.
As shown in Figure 1, system architecture 100 may include control node 101, scheduling node 102,103, be scheduled node
104,105,106,107, network 108,109,110.Network 108,109,110 in control node 101, scheduling node 102,
103, be scheduled node 104,105,106,107 between provide communication link medium.Network 108,109,110 may include each
Kind connection type, such as wired, wireless communication link or fiber optic cables etc..
Scheduling node 102,103 can by network 108,110 and control node 101 and scheduled node 104,105,
106,107 interaction, to receive information or transmission information etc..Scheduling node 102,103 can be to provide the server of various services,
For example, the dispatch server being scheduled to scheduled node 104,105,106,107.Dispatch server can receive control
The candidate that node 101 processed is sent is scheduled after node identities identification information set, is scheduled to the scheduled node of candidate.
Scheduled node 104,105,106,107 can pass through network 109,110 and control node 101 and scheduling node
102,103 interaction, to receive information or transmission information etc..Scheduled node 104,105,106,107 can be to provide various clothes
The server of business, for example, executing the scheduled server for the scheduler task that scheduling node 102,103 distributes.Scheduled server
Scheduler task can be executed after the scheduler task for receiving scheduling node 102,103.
Control node 101 can by network 108,109 and scheduling node 102,103 and scheduled node 104,105,
106,107 interaction, to receive or send information etc..Control node 101 can be to provide the server of various services, for example, control
Scheduling node 102,103 processed dispatches the control server of scheduled node 104,105,106,107.Control server can be true
Determine after there is the information to match with scheduling node identification information in current configuration information, predetermined candidate is adjusted
Degree node identities identification information set is sent to scheduling node 102,103.
It should be noted that for pushing the method for nodal information generally by control node provided by the embodiment of the present application
101 execute, and correspondingly, the device for pushing nodal information is generally positioned in control node 101.It should be pointed out that this
For pushing the method for nodal information independent of scheduled node 104,105,106,107 provided by application embodiment, because
And scheduled node 104,105,106,107 can be not present in Fig. 1.
It should be understood that the number of control node, scheduled node and scheduling node in Fig. 1 is only schematical.Root
It factually now needs, can have any number of control node, scheduled node and scheduling node.
With continued reference to Fig. 2, the stream of one embodiment of the method for pushing nodal information according to the application is shown
Journey 200.The method for being used to push nodal information, comprising the following steps:
Step 201, the scheduling request information of scheduling node is received, scheduling request information includes the scheduling node of scheduling node
Identification information.
In the present embodiment, for pushing executing subject (such as the control node shown in FIG. 1 of the method for nodal information
101) scheduling request information of scheduling node can be received by wired connection mode or radio connection.Wherein, above-mentioned
Scheduling request information can include but is not limited to the scheduling node identification information of scheduling node.Wherein, the tune of scheduling node
Degree node identities identification information can be any identification information of the identity for characterizing scheduling node.For example, scheduling node body
Part identification information can be the number " 1 " of the identity for characterizing scheduling node.In the present embodiment, scheduling node can for
Any node of executing subject transmission scheduling request information.For example, above-mentioned scheduling node can be the center in Presto cluster
Scheduling node (Coordinator).
Optionally, the scheduling node identification information of scheduling node can include but is not limited to the node name of scheduling node
Claim information and believes with the user's name information, internet protocol address information, port numbers of nodename information association storage
Breath.
Step 202, in response to determining the letter for existing in current configuration information and matching with scheduling node identification information
Predetermined candidate scheduled node identities identification information set is sent to scheduling node by breath.
In the present embodiment, above-mentioned executing subject, can be using tune after receiving the scheduling request information of scheduling node
Scheduling node identification information included by degree solicited message is compared with current configuration information.
Wherein, above-mentioned current configuration information can for record have in access system (for example, Presto cluster) it is each from
There is the set of the identification information of node.Wherein, the identification information for having node by oneself can be for characterizing own node
Identity any identification information.For example, the identification information of own node can be the identity for characterizing own node
Number " 5 ".
Optionally, the identification information for having node by oneself can include but is not limited to: the nodename information of own node
And user's name information, internet protocol address information, port number information with the storage of nodename information association.It needs
, it is noted that above-mentioned own node, refers to node in system, by administrator setting.Own node may include: to adjust
Spend node, control node, scheduled node.
In practical application, using scheduling node identification information and current configuration information included by scheduling request information
When being compared, since a node has an IP address, and an IP address can often correspond to multiple users.Therefore,
If the nodename information in a certain identification information, user's name information, IP address information in current configuration information,
It is identical with nodename information, user's name information, the IP address information in scheduling node identification information respectively, then
Think there is the information to match with scheduling node identification information in current configuration information.At this point, by predetermined time
Scheduled node identities identification information set is selected to be sent to scheduling node.
In addition, in the present embodiment, above-mentioned executing subject is by predetermined candidate scheduled node identities identification information collection
Conjunction is sent to scheduling node, it is intended that scheduling node can be using in candidate scheduled node identities identification information set
Candidate be scheduled node identities identification information, find candidate scheduled node, found so that scheduler task be distributed to
The scheduled node of candidate.
In some optional implementations of the present embodiment, above-mentioned current configuration information may include authorization identification information
Gather, the authorization identification information in authorization identification information set includes: the nodename information and and node name of authorization node
Claim user's name information, the IP address information, port number information of information association storage;Wherein, authorization node includes: scheduling section
Point, be scheduled node, control node.
In the present embodiment, above-mentioned authorization node is the own node in normal operating condition.Here, it is currently configured letter
Authorization identification information set is stored in breath, may be implemented that the scheduled node identities identification information set of candidate is only sent to verifying
By, scheduling node in normal operating condition, can the further steady fixed sum data safety of safeguards system.
In some optional implementations of the present embodiment, above-mentioned current configuration information further includes unauthorized IP address letter
Breath set;And above-mentioned executing subject can be in response to existing and scheduling node identity in the unauthorized IP address information set of determination
The unauthorized IP address information that identification information matches sends preset first warning message.
In the present embodiment, unauthorized IP address information can be the IP address of the own node in abnormal operational conditions
Information.Wherein, the own node in abnormal operational conditions can be the own node during upgrade maintenance.This
In, if in the unauthorized IP address information of a certain item in unauthorized IP address information set and scheduling node identification information
IP address information is identical, then it is assumed that exists and scheduling node identification information phase in unauthorized IP address information set
The unauthorized IP address information matched.
In the present embodiment, unauthorized IP address information set is stored in current configuration information, it can be in discovery in non-
When the own node of normal operating condition attempts to connect with control node, alarm is issued, to notify administrative staff to handle in time.This
In, administrative staff can be notified to handle in time by modes such as short message or mails.Wherein, the first warning message can be for table
The own node of sign abnormal operational conditions attempts any information connecting with control node.
In some optional implementations of the present embodiment, executing subject can be in response to determining in current configuration information
There is no the information to match with scheduling node identification information, send preset second warning message.
In the present embodiment, if there is no the letters to match with scheduling node identification information in current configuration information
Breath, then it is assumed that scheduling node is the node except the own node of system.At this point it is possible to by modes such as short message or mails to management
Personnel send the second warning message.Wherein, the second warning message can be tries for characterizing the node that system is had by oneself except node
Scheme any information connecting with control node.
Method provided by the embodiments of the present application for pushing nodal information, using current configuration information to scheduling node into
The scheduled node identities identification information set of candidate is only sent to the scheduling node being verified, can kept away by row safety verification
Exempt from illegal node (own node, system in abnormal operational conditions have the node etc. except node by oneself) access, Ke Yibao
The steady fixed sum data safety of barrier system.
It is one of the application scenarios of the method according to the present embodiment for pushing nodal information with continued reference to Fig. 3, Fig. 3
Schematic diagram.Wherein, system can be Presto cluster, and control node can be the service discovery node in Presto cluster
(DiscoveryService), scheduling node can be the central dispatching node (Coordinator) in Presto cluster, be adjusted
Spending node can be the working node (Worker) in Presto cluster.In the application scenarios 300 of Fig. 3, firstly, central dispatching
Node 301 sends scheduling request information to service discovery node 302.Wherein, scheduling request information includes central dispatching node 301
Central dispatching node identities identification information A.Then, the scheduling that service discovery node 302 receives central dispatching node 301 is asked
Information is sought, central dispatching node identities are identified into letter A and are compared one by one with the information in current configuration information.Finally, true
Determine there are such information in current configuration information, some or all of it content believes A with central dispatching node identities mark
In some or all of content it is identical when, service discovery node 302 determine current configuration information in exist and central dispatching node
The information that identification information A matches, and predetermined candidate working node identification information set is sent to
Heart scheduling node 301.
The method provided by the above embodiment for pushing nodal information of the application, using current configuration information to scheduling
Node carries out safety verification, and the scheduled node identities identification information set of candidate is only sent to the scheduling node being verified,
It can be accessed to avoid illegal node, improve system stability and Information Security.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment of the method for pushing nodal information.
This is used to push the process 400 of the method for nodal information, comprising the following steps:
Step 401, the configuration information for being stored in setting position is obtained;Determine the encryption information of configuration information;In response to true
Determine encryption information and history encryption information mismatches, configuration information is determined as current configuration information, and encryption information is true
It is set to history encryption information.
In the present embodiment, executing subject can pass through limited connection or the side of wireless connection according to the period of setting
Formula obtains configuration information from setting position.Wherein, above-mentioned set device can be USB flash disk, and the data for being also possible to control node are deposited
Equipment is stored up, can also be the caching with the interactive device of control node communication connection.The period of above-mentioned setting can be one second
It is also possible to one minute, here without limitation.
Here, executing subject can execute following steps to acquired configuration information after getting configuration information:
The first step determines the encryption information of configuration information.In the present embodiment, executing subject can be true using various ways
The encryption information of fixed acquired configuration information, for example, message digest algorithm (Message-Digest can be used
Algorithm the MD5 value of configuration information) is calculated, other secret values of configuration information can also be calculated using other algorithms.Here
Without limitation.
Configuration information is determined as currently matching by second step in response to determining that encryption information and history encryption information mismatch
Confidence breath, and encryption information is determined as history encryption information.In the present embodiment, executing subject can match acquired
The encryption information of confidence breath is compared with stored history encryption information.Wherein, if encryption information and history encryption are believed
Manner of breathing is same, it may be considered that encryption information with history encryption information be it is matched, can be not processed at this time.If encryption information with
History encryption information is not identical, it may be considered that encryption information and history encryption information mismatch, that is, acquired configuration information
Compared with current configuration information, there is variation.At this point it is possible to using acquired configuration information as current configuration information.In addition,
The encryption information of acquired configuration information as history encryption information and is stored.
Step 402, the registration information of scheduled node is received, registration information includes being adjusted for scheduled node
Spend node identities identification information.
In the present embodiment, executing subject can receive scheduled section by way of limited connection or wireless connection
The registration information of point.Wherein, registration information can include but is not limited to the scheduled node identities of scheduled node
Identification information.Wherein, the scheduled node identities identification information of scheduled node can be the body for characterizing scheduled node
Any identification information of part.For example, scheduled node identities identification information can be the identity for characterizing scheduled node
Digital " 2 ".
Optionally, the scheduled node identities identification information of scheduled node can include but is not limited to scheduled node
Nodename information and the user's name information stored with nodename information association, internet protocol address information, end
Number information.
Step 403, match in response to determining to exist in current configuration information with scheduled node identities identification information
Scheduled node is determined as registering scheduled node by information.
In the present embodiment, above-mentioned executing subject can use after the registration information for receiving scheduled node
Scheduled node identities identification information included by registration information is compared with current configuration information.Believe being currently configured
There are an information in breath, when some or all of it content is identical as scheduled node identities identification information, it is believed that when
There is the information to match with scheduled node identities identification information in preceding configuration information.At this point, executing subject is by scheduled section
Point is determined as registering scheduled node, connect to establish efficient communication with the node that is scheduled.
Step 404, candidate scheduled node identities identification information set is determined.
In the present embodiment, candidate scheduled node identities identification information set can be determined using various ways.For example,
Executing subject can choose specified registration and be scheduled node as candidate scheduled node, and selected registration is adjusted
The candidate scheduled node identities identification information set of identification information deposit for spending node, to obtain candidate scheduled node
Identification information set.For another example executing subject, which can also arbitrarily choose setting number, registers scheduled node conduct
The scheduled node of candidate, and the identification information of the selected scheduled node of registration is stored in candidate scheduled node body
Part identification information set, to obtain candidate scheduled node identities identification information set.
In some optional implementations of the present embodiment, above-mentioned executing subject can also be waited as follows
Select scheduled node identities identification information set:
The first step receives and registers the status information that scheduled node is sent.
In the present embodiment, executing subject can receive registration quilt by wired connection mode or radio connection
The status information that scheduling node is sent.Wherein, above-mentioned status information can be for characterizing the work shape for registering scheduled node
Any information of state.For example, status information can be alphabetical " Y ", for characterize, to register the working condition for the node that is scheduled be normal
Operation.For another example status information can be alphabetical " N ", for characterizing the working condition for registering scheduled node as misoperation.
Second step will register scheduled node in response to determining that status information matches with pre-stored status information
It is determined as candidate scheduled node, and the identification information of scheduled node will be registered as the scheduled node identities of candidate
The candidate scheduled node identities identification information set of identification information deposit.
In the present embodiment, if the status information for registering scheduled node is identical as pre-stored status information, at this point,
Executing subject will register scheduled node and be determined as candidate scheduled node, and the identity for registering scheduled node is believed
Breath is as the candidate scheduled candidate scheduled node identities identification information set of node identities identification information deposit.
Third step searches candidate scheduled section in response to determining that status information and pre-stored status information mismatch
Candidate scheduled node identities identification information corresponding with scheduled node is registered in point identification information set, will be looked into
The scheduled node identities identification information of the candidate found is removed from the scheduled node identities identification information set of candidate.
In the present embodiment, if the scheduled node of registration is identical as pre-stored status information, at this point, executing subject can
It is adjusted with searching in candidate scheduled node identities identification information set with the presence or absence of candidate corresponding with scheduled node is registered
Node identities identification information is spent, if finding, the candidate found is scheduled node identities identification information from candidate quilt
It is removed in scheduling node identification information set.Here, the scheduled node of the registration in abnormal operating condition is corresponding
The scheduled node identities identification information of candidate is removed from the scheduled node identities identification information set of candidate, it is therefore intended that is guaranteed
The identification information of the scheduled node of registration in normal operating condition is only pushed to scheduling node, can further be mentioned
High system stability and Information Security.
Step 405, the scheduling request information of scheduling node is received, scheduling request information includes the scheduling node of scheduling node
Identification information.
Step 406, in response to determining the letter for existing in current configuration information and matching with scheduling node identification information
Predetermined candidate scheduled node identities identification information set is sent to scheduling node by breath.
In the present embodiment, the behaviour of the concrete operations of step 405-406 and step 201-202 in embodiment shown in Fig. 2
Make essentially identical, this will not be repeated here.
Figure 4, it is seen that being used to push nodal information in the present embodiment compared with the corresponding embodiment of Fig. 2
The step of process 400 of method embodies the step of being updated to current configuration information, registers to scheduled node, with
And the step of scheduled node identities identification information set of candidate is determined.The scheme of the present embodiment description can be with as a result,
Adjustment current configuration information and candidate scheduled node identities identification information set in time, can be improved running efficiency of system, with
And further increase system stability and Information Security.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides one kind for pushing section
One embodiment of the device of point information, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which specifically may be used
To be applied in various servers.
As shown in figure 5, the present embodiment includes: scheduled reception unit 501, quilt for pushing the device 500 of nodal information
It is configured to receive the scheduling request information of scheduling node, scheduling request information includes the scheduling node identity letter of scheduling node
Breath;Information transmitting unit 502 is configured in response to determine in current configuration information exist and scheduling node identification information
Predetermined candidate scheduled node identities identification information set is sent to scheduling node by the information to match.
In some optional implementations of the present embodiment, above-mentioned apparatus can also include information determination unit (in figure
It is not shown).Wherein, information determination unit may be configured to obtain the configuration information for being stored in setting position;It determines and matches confidence
The encryption information of breath;In response to determining that encryption information and history encryption information mismatch, configuration information is determined as being currently configured
Information, and encryption information is determined as history encryption information.
In some optional implementations of the present embodiment, above-mentioned apparatus can also include registration receiving unit and registration
Determination unit (not shown).Wherein, receiving unit is registered, may be configured to the registration request letter for receiving scheduled node
Breath, registration information include the scheduled node identities identification information of scheduled node.Determination unit is registered, can be configured
At in response to determining in the presence of the information to match with scheduled node identities identification information in current configuration information, by scheduled section
Point is determined as registering scheduled node.
In some optional implementations of the present embodiment, the scheduled node identities identification information set of candidate can lead to
It crosses following steps to determine: receiving and register the status information that scheduled node is sent;In response to determining status information and being stored in advance
Status information match, scheduled node will be registered and be determined as candidate scheduled node, and scheduled node will be registered
Identification information is as the candidate scheduled candidate scheduled node identities identification information set of node identities identification information deposit;
In response to determining that status information and pre-stored status information mismatch, candidate scheduled node identities identification information collection is searched
Candidate scheduled node identities identification information corresponding with scheduled node is registered in conjunction, the candidate found is scheduled
Node identities identification information is removed from the scheduled node identities identification information set of candidate.
In some optional implementations of the present embodiment, current configuration information may include authorization identification information collection
It closes, the authorization identification information in authorization identification information set includes: the nodename information and and nodename of authorization node
User's name information, the internet protocol address information, port number information of information association storage;Wherein, authorization node includes:
Scheduling node, be scheduled node, control node.
The device provided by the above embodiment of the application, scheduled reception unit 501 receive the scheduling request letter of scheduling node
Breath, scheduling request information includes the scheduling node identification information of scheduling node.Then, information transmitting unit 502 in response to
It determines the information for existing in current configuration information and matching with scheduling node identification information, predetermined candidate is adjusted
Degree node identities identification information set is sent to scheduling node.The device of the present embodiment saves scheduling using current configuration information
Point carries out safety verification, and the scheduled node identities identification information set of candidate is only sent to the scheduling node being verified, can
To avoid the access of illegal node, facilitate the steady fixed sum data safety of safeguards system.
Below with reference to Fig. 6, it illustrates the computer systems 600 for the server for being suitable for being used to realize the embodiment of the present application
Structural schematic diagram.Server shown in Fig. 6 is only an example, should not function and use scope band to the embodiment of the present application
Carry out any restrictions.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in
Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and
Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data.
CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always
Line 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.;
And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because
The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon
Computer program be mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communications portion 609, and/or from detachable media
611 are mounted.When the computer program is executed by central processing unit (CPU) 601, limited in execution the present processes
Above-mentioned function.It should be noted that the computer-readable medium of the application can be computer-readable signal media or calculating
Machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but it is unlimited
In system, device or the device of --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, or any above combination.It calculates
The more specific example of machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, portable of one or more conducting wires
Formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable programmable read only memory
(EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device or
The above-mentioned any appropriate combination of person.In this application, computer readable storage medium can be it is any include or storage program
Tangible medium, which can be commanded execution system, device or device use or in connection.And in this Shen
Please in, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to
Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable
Any computer-readable medium other than storage medium, the computer-readable medium can send, propagate or transmit for by
Instruction execution system, device or device use or program in connection.The journey for including on computer-readable medium
Sequence code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned
Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet
Include scheduled reception unit and information transmitting unit.Wherein, the title of these units is not constituted under certain conditions to the unit
The restriction of itself, for example, scheduled reception unit is also described as " receiving the unit of the scheduling request information of scheduling node ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be
Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should
Device: receiving the scheduling request information of scheduling node, and scheduling request information includes the scheduling node identity letter of scheduling node
Breath;In response to determining the information for existing in current configuration information and matching with scheduling node identification information, will predefine
Candidate be scheduled node identities identification information set be sent to scheduling node.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.