CN110460647A - Dispatching method, device, electronic equipment and the storage medium of network node - Google Patents
Dispatching method, device, electronic equipment and the storage medium of network node Download PDFInfo
- Publication number
- CN110460647A CN110460647A CN201910667400.0A CN201910667400A CN110460647A CN 110460647 A CN110460647 A CN 110460647A CN 201910667400 A CN201910667400 A CN 201910667400A CN 110460647 A CN110460647 A CN 110460647A
- Authority
- CN
- China
- Prior art keywords
- network node
- business
- service request
- micro services
- current
- 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
- 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
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1008—Server selection for load balancing based on parameters of servers, e.g. available memory or workload
-
- 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
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1021—Server selection for load balancing based on client or server locations
-
- 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/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
- H04L67/63—Routing a service request depending on the request content or context
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Computer And Data Communications (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
Present invention discloses a kind of dispatching method of network node, device, electronic equipment and storage mediums, belong to the technical field of data processing, the method comprise the steps that the request initiated in response to user terminal, which executes micro services, correspond to the service request of business, acquisition corresponded to for executing micro services in the service request current loads of each network node of business, current performance and with the current distance of user terminal;Based on the current loads of each network node, current performance and the priority for determining with the current distance of user terminal the corresponding business of each network node micro services in executing the service request.Method proposed by the present invention makes server end need to be implemented the request execution micro services of user terminal initiation when corresponding to the service request of business, it can select optimal network node, the network node for having selected processing business request performance poor is avoided, and then the efficiency of finishing service request can be improved.
Description
Technical field
The present invention relates to the technical fields of data processing, more particularly to the dispatching method method, apparatus of network node, electricity
Sub- equipment and storage medium.
Background technique
Micro services framework is the new technology that application and service is disposed in cloud, in the micro services framework of system, respectively
A micro services can be disposed independently, be loose coupling between each micro services.
When the request that server end needs to be implemented user terminal initiation executes micro services and corresponds to the service request of business, clothes
Business device end, which is generally required, to be gone to execute industry by some network node for corresponding to business for executing the micro services in the service request
Business request, since alternative network node is more, network node is reasonably selected to influence whether that system completes industry
The efficiency of business request.
In the prior art, server end generally goes to select for executing in the service request by randomly selected mode
Micro services correspond to the network node of business, thus cannot reasonably select optimal network node, therefore will lead to finishing service and ask
The efficiency asked is lower.
Summary of the invention
It is corresponding to solve the request execution micro services for needing to be implemented user terminal initiation in system in the prior art based on this
When the service request of business, the technical issues of cannot reasonably selecting optimal network node, the present invention provides a kind of network sections
Dispatching method, device, electronic equipment and the storage medium of point.
In a first aspect, providing a kind of dispatching method of network node, which comprises
In response to the service request requested to execute micro services and correspond to business that user terminal is initiated, obtain described for executing
Micro services in service request correspond to the current loads of each network node of business, current performance and work as with user terminal
Front distance;
Institute is determined based on the current loads of each network node, current performance and with the current distance of user terminal
State the priority that micro services of each network node in the execution service request correspond to business;
The priority for corresponding to business based on micro services of each network node in the execution service request determines
The target network node of business is corresponded to for executing the micro services in the service request.
Second aspect, provides a kind of dispatching device of network node, and described device includes:
Acquiring unit, the request for initiating in response to user terminal execute the service request that micro services correspond to business, obtain
Take in execute the micro services in the service request and correspond to the current loads of each network node of business, current performance and
With the current distance of user terminal;
First execution unit, for based on each network node current loads, current performance and with user end
The current distance at end determines that micro services of each network node in the execution service request correspond to the priority of business;
Second execution unit, for corresponding based on micro services of each network node in the execution service request
The priority of business determines the target network node that business is corresponded to for executing the micro services in the service request.
The third aspect provides a kind of electronic equipment, including memory and processor, is stored with calculating in the memory
Machine readable instruction, when the computer-readable instruction is executed by the processor, so that the processor executes above-mentioned network section
The step of dispatching method of point.
Fourth aspect provides a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction
When being executed by one or more processors, so that one or more processors execute the step of the dispatching method of above-mentioned network node
Suddenly.
The technical scheme provided by this disclosed embodiment can include the following benefits:
Current loads of the server end based on each network node, current performance and true with the current distance of user terminal
Fixed each network node corresponds to the priority of business executing the micro services in service request, is being executed based on each network node
The priority that micro services in service request correspond to business determines that the micro services for executing in service request correspond to the mesh of business
Network node is marked, and then realizes that the all-network node selection for corresponding to business from the micro services executed in the service request executes industry
Performance preferably network node when business request avoids the poor network node of selection processing business request performance, Jin Erneng
Improve the efficiency of finishing service request.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited
It is open.
Detailed description of the invention
Fig. 1 is a kind of implementation flow chart of the dispatching method of network node shown in an exemplary embodiment of the invention.
Fig. 2 is a kind of implementation flow chart of the dispatching method of network node shown in an exemplary embodiment of the invention.
Fig. 3 is one of the step S230 in a kind of dispatching method of network node shown in an exemplary embodiment of the invention
Kind specific implementation flow chart.
Fig. 4 is one of the step S120 in a kind of dispatching method of network node shown in an exemplary embodiment of the invention
Kind specific implementation flow chart.
Fig. 5 is a kind of block diagram of the dispatching method device of network node shown in an exemplary embodiment of the invention.
Fig. 6 schematically shows a kind of electronic equipment example block diagram of dispatching method for realizing above-mentioned network node.
Fig. 7 schematically shows a kind of computer readable storage medium of dispatching method for realizing above-mentioned network node.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes
Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the present invention will more
Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.
In addition, described feature, structure or characteristic can be incorporated in one or more implementations in any suitable manner
In example.In the following description, many details are provided to provide and fully understand to the embodiment of the present invention.However,
It will be appreciated by persons skilled in the art that technical solution of the present invention can be practiced without one or more in specific detail,
Or it can be using other methods, constituent element, device, step etc..In other cases, it is not shown in detail or describes known side
Method, device, realization or operation are to avoid fuzzy each aspect of the present invention.
Block diagram shown in the drawings is only functional entity, not necessarily must be corresponding with physically separate entity.
I.e., it is possible to realize these functional entitys using software form, or realized in one or more hardware modules or integrated circuit
These functional entitys, or these functional entitys are realized in heterogeneous networks and/or processor device and/or microcontroller device.
Flow chart shown in the drawings is merely illustrative, it is not necessary to including all content and operation/step,
It is not required to execute by described sequence.For example, some operation/steps can also decompose, and some operation/steps can close
And or part merge, therefore the sequence actually executed is possible to change according to the actual situation.
It is the implementation process of the dispatching method of the network node shown in an exemplary embodiment of the invention with reference to Fig. 1, Fig. 1
Figure, the executing subject of the dispatching method of the network node in the present embodiment are electronic equipment, which is specifically as follows pair
The server end that the all-network node for the service request that micro services correspond to business is managed is executed, is with server end below
Example is described, and the dispatching method of network node as shown in Figure 1 may include following steps S110 to step S130, specifically
It is bright as follows:
Step S110 is obtained and is used in response to the service request requested to execute micro services and correspond to business that user terminal is initiated
In execute the micro services in the service request and correspond to the current loads of each network node of business, current performance and with
The current distance of family terminal.
In an embodiment of the invention, user terminal issues the service request for requesting execution micro services to correspond to business
To server end, wherein the service request can be a kind of data inquiry request, and it's not limited to that certainly, the service request
It can also be the request of the other business of execution.Specifically, the entity that the service request can be provided by the manual operating terminal of user
Key or virtual control are triggered.It should be noted that above-mentioned service request carries the geographical position that user terminal is positioned
Confidence breath.
The request that server end is initiated in response to user terminal executes micro services and corresponds to the service request of business, needs from holding
Micro services in the row service request, which correspond in the all-network node of business, to be determined for executing in the service request in incognito
The target network node for corresponding business of being engaged in, wherein each network node corresponding one for executing the micro services in service request
The network equipment of corresponding business.
Server end directly can obtain the current of each network node from the corresponding network equipment of each network node
The current performance of load and each network node.And server end determine each network node and user terminal it is current away from
From when, can be by obtaining the geographical location information of the network node from the corresponding network equipment of network node, and based on should
The geographical location information determination that the user terminal carried in the geographical location information and service request of network node is positioned obtains
The current distance of network node and user terminal.
Step S120, current loads, current performance based on each network node and current with user terminal
Distance determines that micro services of each network node in the execution service request correspond to the priority of business.
In an embodiment of the invention, whole due to the current loads of each network node, current performance and with user
These three dimensional informations of the current distance at end have differences, wherein the current loads of network node can be corresponding for network node
The network equipment be presently in reason service request quantity, the quantity that the network equipment is presently in the service request of reason is more,
The current loads of network node are bigger.When the current loads of network node are smaller, then the network node is when executing service request
Effect it is better, then be more suitable as executing the micro services in service request and correspond to the target network node of business, therefore preferentially
It spends higher.The current performance of network node can be the current processor performance of the corresponding network equipment of network node, network section
The current processor performance of the corresponding network equipment of point is better, and the current processor performance of the corresponding network equipment of network node is got over
It is good.When the current performance of network node is better, then effect of the network node when executing service request is better, then is more suitable for
To execute the target network node that the micro services in service request correspond to business, therefore priority is higher;When the network node with
The current distance of user terminal is smaller, then effect of the network node when executing service request is better, then is more suitable as using
Micro services in execution service request correspond to the target network node of business, therefore priority is higher.Server end is based on every
The current loads of a network node, current performance and these three dimensional informations determine each net with the current distance of user terminal
Network node corresponds to the priority of business executing the micro services in service request.
Step S130 corresponds to the excellent of business in the micro services executed in the service request based on each network node
First degree determines the target network node that business is corresponded to for executing the micro services in the service request.
In one embodiment of the invention, server end is obtained in determination for executing the micro services pair in service request
After the priority of each network node for answering business, it can be determined according to preference for executing the micro services pair in the service request
Answer the target network node of business.
It is the implementation process of the dispatching method of the network node shown in an exemplary embodiment of the invention with reference to Fig. 2, Fig. 2
Figure, as shown in Fig. 2, described correspond to the excellent of business in the micro services executed in the service request based on each network node
First degree determines the step S130 for corresponding to the target network node of business for executing the micro services in the service request, comprising:
Step S230 is determined as the highest network node of priority to be used to execute the micro services pair in the service request
Answer the target network node of business.
The highest network node of priority can be determined as being used to execute the micro services in the service request by server end
The target network node of corresponding business.
Optionally, server end can also randomly select one in the all-network node that priority is higher than given threshold
Network node is as the target network node for corresponding to business for executing the micro services in the service request.
Above as can be seen that current loads of the server end based on each network node, current performance and with user's end
The current distance at end determines that micro services of each network node in execution service request correspond to the priority of business, based on each
The priority that micro services of the network node in execution service request correspond to business is determined for executing in service request in incognito
The target network node for corresponding business of being engaged in, and then realize the all-network that business is corresponded to from the micro services executed in the service request
Node selection executes performance preferably network node when service request, avoids the net for having selected processing business request performance poor
Network node, and then the efficiency of finishing service request can be improved.
Being refering to Fig. 3, Fig. 3 is step in a kind of dispatching method of network node shown in an of the invention exemplary embodiment
A kind of specific implementation flow chart of rapid S230, it is in the present embodiment, described the highest network node of priority to be determined as using
Micro services in the execution service request correspond to the step S230 of the target network node of business, comprising:
Step S2301 obtains the highest network node of the priority in current time from preset log information library
It is corresponded to the micro services executed in the special time period before current time in the service request generated all when business
Log, wherein the log information in the log includes at least the highest network node of the priority and executing the business
Micro services in request correspond to responsive status information when business, and the responsive status information is the highest network of the priority
Node is to respond successfully or the highest network section of the priority when executing the micro services in the service request and correspond to business
Point does not respond when executing the micro services in the service request and corresponding to business.
In an embodiment of the invention, server end is determined as being used to execute industry by the highest network node of priority
Before micro services in request of being engaged in correspond to the target network node of business, priority first can be obtained from preset log information library
It is corresponding that highest network node executes micro services in service request in the special time period before current time and current time
Generated all logs when business.Wherein, spy of the highest network node of priority before current time and current time
All logs in section of fixing time can be all logs in the previous week of current time, be not limited thereto.
It is understood that preset log information library can store the day of log for the corresponding network equipment of network node
Will information bank, the log information in log include at least the highest network node of priority and are executing the micro services in service request
Responsive status information when corresponding business, above-mentioned responsive status information are that the highest network node of priority is executing service request
In micro services be the successful information of response or the highest network node of priority in executing service request when corresponding to business
It is the information not responded when micro services correspond to business, in addition, log information can also exist comprising the highest network node of priority
Execute the reason of not responding when the micro services in service request correspond to business.
Step S2302 determines the highest network section of the priority based on the responsive status information in the log information
The micro services that point is executed in the special time period before current time and current time in the service request correspond to business
Respond success rate.
In an embodiment of the invention, server end obtains the responsive status information in the log information of all logs,
And it is successful according to being responded in the responsive status information of all logs when executing the micro services in service request and corresponding to business
The ratio that log number accounts for all log numbers determines spy of the highest network node of priority before current time and current time
The response success rate that the micro services in the service request correspond to business is executed in section of fixing time.
Step S2303, if when specific before current time and current time of the highest network node of the priority
Between execute the micro services in the service request in section and correspond to the response success rate of business higher than predetermined threshold, then most by priority
High network node is determined as corresponding to the target network node of business for executing the micro services in the service request.
In one embodiment of the invention, if the highest network node of priority is before current time and current time
Special time period in the micro services that execute in service request correspond to the response success rate of business higher than predetermined threshold, illustrate the net
Network node probability for breaking down when executing the micro services in service request and corresponding to business is lower, then server end can will be excellent
It first spends highest network node and is determined as the target network node that the micro services for executing in service request correspond to business.
It should be pointed out that working as specific time of the highest network node of priority before current time and current time
When executing the micro services in service request in section and correspond to the response success rate of business and be lower than predetermined threshold, server end can will be
The micro services executed in service request correspond to that the probability to break down when business is lower and the higher other network nodes of priority
It is determined as corresponding to the target network node of business for executing the micro services in the service request.
It is the step in a kind of dispatching method of network node shown in an exemplary embodiment of the invention refering to Fig. 4, Fig. 4
A kind of specific implementation flow chart of S120, it is in the present embodiment, the current loads based on each network node, current
Performance and determine that each network node is executing the micro services in the service request with the current distance of user terminal
The step S120 of the priority of corresponding business, comprising:
Step S1201, current loads based on each network node maximum corresponding with each network node
Load determines the first score.
In an embodiment of the invention, server end is also from the facility information of the corresponding network equipment of each network node
The service request that the middle peak load for obtaining each network node, the i.e. corresponding network equipment of network node can be handled simultaneously
Maximum number magnitude.When the current loads of network node are smaller, then network node is more preferable in the effect for executing service request;It needs
Bright, when the peak load of network node is bigger, then network node also will be more preferable in the effect for executing service request, server
Current loads peak load corresponding with each network node based on each network node is determined the first score by end.
Optionally, server end is corresponding with each network node maximum negative in the current loads based on each network node
Lotus when determining the first score, can specifically determine the first score based on following formula;
Wherein, η is the normal number greater than zero, a1For the corresponding peak load of each network node, a2It is every
The current loads of a network node, A are that current loads of the server end based on each network node are corresponding with each network node
Peak load determined by the first score.Current loads of the server end based on each network node and each network node pair
The peak load answered determines the first score, and corresponding first score is higher, then network node is executing the effect of service request more
It is good.
Step S1202, current performance and each network node based on each network node are corresponding optimal
Performance determines the second score.
Server end also obtains each network node from the facility information of the corresponding network equipment of each network node
The processor optimal performance of the corresponding network equipment of optimal performance, i.e. network node.When the current performance of network node is better, then
Network node is more preferable in the effect for executing service request;It should be noted that when the current performance of network node is closer to the net
The optimal performance of network node, then network node execute service request effect also will be more preferable;Server end will be based on each net
The current performance of network node optimal performance corresponding with each network node, determines the second score.
Optionally, server end is in the current performance optimality corresponding with each network node based on each network node
Can, when determining the second score, the second score can be specifically determined based on following formula;
Wherein, λ is the normal number greater than zero, b1For the current performance of each network node, b2For
The optimal performance of each network node, B are current performance of the server end based on each network node and each network node pair
Second score determined by the optimal performance answered.Current performance of the server end based on each network node and each network node
Optimal performance, determine the second score, corresponding second score is higher, then network node execute service request effect more
It is good.
Step S1203, current distance, network node and user terminal based on each network node and user terminal
Current distance and preferred value relation table, determine third score.
In an embodiment of the invention, the current distance of network node and user terminal influences whether that network node is being held
The effect of row service request, when the current distance of network node and user terminal is smaller, then network node is executing service request
Effect it is more preferable.Server end prestores the current distance of network node and user terminal and the relation table of preferred value, server
End group in the current distance of identified each network node and user terminal, the current distance of network node and user terminal and
The relation table of preferred value determines third score.Current distance of the server end based on each network node and user terminal, and
The relation table of the current distance and preferred value of network node and user terminal determines third score, and corresponding third score is higher,
Then network node is more preferable in the effect for executing service request.
Step S1204 is based on first score, second score and the third score, determines described each
Network node corresponds to the priority of business executing the micro services in the service request.
In an embodiment of the invention, server end is based on identified first score, the second score and third point
Number determines and obtains the priority that micro services of each network node in the execution service request correspond to business.
Optionally, server end is based on the first score, the second score and third score, determines that each network node is being held
When micro services in row service request correspond to the priority of business, it can specifically determine that each network node exists based on following formula
Execute the priority that the micro services in service request correspond to business.
Wherein, A is first score, and B is second score, C
For the third score, α, β and γ are the normal number greater than zero, S be each network node in executing service request in incognito
The priority for corresponding business of being engaged in.Load of the server end based on each network node, performance and with user terminal it is current away from
Determine that a network node is executing industry from the first score, the second score determined by these three dimensional informations and third score
Micro services in business request correspond to the priority of business, and the first score, the second score and third score and priority are positive
Correlativity, when the first score, the second score and third score are bigger, then priority is higher.
It is a kind of dispatching device of network node provided by one embodiment of the present invention, the network section with reference to Fig. 5, Fig. 5
The dispatching device of point can integrate in above-mentioned electronic equipment, can specifically include acquiring unit 310, the first execution unit
320 and second execution unit 330.
Acquiring unit 310, the request for initiating in response to user terminal execute the service request that micro services correspond to business,
Obtain for execute the micro services in the service request correspond to the current loads of each network node of business, current performance with
And the current distance with user terminal.
First execution unit 320, for current loads, current performance and and user based on each network node
The current distance of terminal determines that each network node corresponds to the preferential of business in the micro services executed in the service request
Degree.
Second execution unit 330, for executing the micro services in the service request based on each network node
The priority of corresponding business determines the target network node that business is corresponded to for executing the micro services in the service request.
Optionally, second execution unit 330, comprising:
First executes subelement, for the highest network node of priority to be determined as being used to execute in the service request
Micro services correspond to the target network node of business.
Optionally, described first subelement is executed, further includes:
Module is obtained, for obtaining the highest network node of the priority from preset log information library when current
Between generated institute when business is corresponded to the micro services executed in the service request in special time period before current time
There is log, wherein the log information in the log includes at least the highest network node of the priority and executing the industry
Micro services in business request correspond to responsive status information when business, and the responsive status information is the highest net of the priority
Network node is to respond successfully or the highest network of the priority when executing the micro services in the service request and correspond to business
Node does not respond when executing the micro services in the service request and corresponding to business;
First execution module, for determining that the priority is highest based on the responsive status information in the log information
It is corresponding that network node executes the micro services in the service request in the special time period before current time and current time
The response success rate of business.
Second execution module, if for the highest network node of the priority before current time and current time
The response success rate that micro services in special time period in the execution service request correspond to business is higher than predetermined threshold, then will be excellent
Highest network node is first spent to be determined as corresponding to the target network node of business for executing the micro services in the service request.
Optionally, first execution unit 320, comprising:
Second executes subelement, for current loads and each network node pair based on each network node
The peak load answered determines the first score;
Third execute subelement, for based on each network node current performance and each network node pair
The optimal performance answered determines the second score;
4th executes subelement, for current distance, network node based on each network node and user terminal
With the current distance of user terminal and the relation table of preferred value, third score is determined;
5th executes subelement, for being based on first score, second score and the third score, determines
Each network node corresponds to the priority of business executing the micro services in the service request.
Optionally, the 5th subelement is executed, specifically for determining that each network node is executing based on following formula
Micro services in the service request correspond to the priority of business;
Wherein, A is first score, and B is second score, C
For the third score, α, β and γ are the normal number greater than zero, and S is that each network node is executing the service request
In micro services correspond to the priority of business.
Optionally, the second execution subelement is specifically used for determining first score based on following formula;
Wherein, η is the normal number greater than zero, a1For the corresponding peak load of each network node, a2
For the current loads of each network node, A is first score.
Optionally, third executes subelement and is specifically used for determining second score based on following formula;
Wherein, λ is the normal number greater than zero, b1For the current performance of each network node,
b2For the optimal performance of each network node, B is second score.
The function of modules and the realization process of effect are specifically detailed in the dispatching party of above-mentioned network node in above-mentioned apparatus
The realization process of step is corresponded in method, details are not described herein.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description
Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more
Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould
The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, although describing each step of method in the disclosure in the accompanying drawings with particular order, this does not really want
These steps must be executed in this particular order by asking or implying, or having to carry out step shown in whole could realize
Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/
Or a step is decomposed into execution of multiple steps etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure
The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, mobile terminal or network equipment etc.) is executed according to disclosure embodiment
Method.
In an exemplary embodiment of the disclosure, a kind of electronic equipment that can be realized the above method is additionally provided.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or
Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here
Referred to as circuit, " module " or " system ".
It is the electronic equipment 400 of this embodiment according to the present invention with reference to Fig. 6, Fig. 6.The electronic equipment that Fig. 6 is shown
400 be only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in fig. 6, electronic equipment 400 is showed in the form of universal computing device.The component of electronic equipment 400 can wrap
It includes but is not limited to: at least one above-mentioned processing unit 410, at least one above-mentioned storage unit 420, the different system components of connection
The bus 430 of (including storage unit 420 and processing unit 410).
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 410
Row, so that various according to the present invention described in the execution of the processing unit 410 above-mentioned " illustrative methods " part of this specification
The step of illustrative embodiments.For example, the processing unit 410 can execute step S110 as shown in fig. 1: in response to
The request that user terminal is initiated executes the service request that micro services correspond to business, obtains micro- in the service request for executing
Service current loads, current performance and the current distance with user terminal of each network node of corresponding business;Step
S120: described in being determined based on the current loads of each network node, current performance and with the current distance of user terminal
Each network node corresponds to the priority of business executing the micro services in the service request;Step S130: based on described every
The priority that micro services of a network node in the execution service request correspond to business is determined asks for executing the business
Micro services in asking correspond to the target network node of business.
Storage unit 420 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit
(RAM) 4201 and/or cache memory unit 4202, it can further include read-only memory unit (ROM) 4203.
Storage unit 420 can also include program/utility with one group of (at least one) program module 4205
4204, such program module 4205 includes but is not limited to: operating system, one or more application program, other program moulds
It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 430 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage
Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures
Local bus.
Electronic equipment 400 can also be with one or more external equipments 600 (such as keyboard, sensing equipment, bluetooth equipment
Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 400 communicate, and/or with make
Any equipment (such as the router, modulation /demodulation that the electronic equipment 400 can be communicated with one or more of the other calculating equipment
Device etc.) communication.This communication can be carried out by input/output (I/O) interface 440.Also, electronic equipment 400 can be with
By network adapter 460 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network,
Such as internet) communication.As shown, network adapter 460 is communicated by bus 430 with other modules of electronic equipment 400.
It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 400, including but not
Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and
Data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure
The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to disclosure embodiment
Method.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, energy is stored thereon with
Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention may be used also
In the form of being embodied as a kind of program product comprising program code, when described program product is run on the terminal device, institute
Program code is stated for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to this hair
The step of bright various illustrative embodiments.
Refering to what is shown in Fig. 7, describing the program product for realizing the above method of embodiment according to the present invention
500, can using portable compact disc read only memory (CD-ROM) and including program code, and can in electronic equipment,
Such as it is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with
To be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or
It is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or
System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive
List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (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 above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal,
In carry 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.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing
Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its
The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have
Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user
It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating
Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far
Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network
(WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP
To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention
It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable
Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure
His embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or
Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or
Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim
It points out.
Claims (10)
1. a kind of dispatching method of network node, which is characterized in that the described method includes:
In response to the service request requested to execute micro services and correspond to business that user terminal is initiated, obtain for executing the business
Micro services in request correspond to the current loads of each network node of business, current performance and with user terminal it is current away from
From;
It is determined based on the current loads of each network node, current performance and with the current distance of user terminal described every
A network node corresponds to the priority of business executing the micro services in the service request;
The priority determination for corresponding to business based on micro services of each network node in the execution service request is used for
Execute the target network node that the micro services in the service request correspond to business.
2. the method according to claim 1, wherein described executing the industry based on each network node
The priority that micro services in business request correspond to business, which is determined, corresponds to business for executing the micro services in the service request
The step of target network node, comprising:
The highest network node of priority is determined as being used to execute the target that the micro services in the service request correspond to business
Network node.
3. according to the method described in claim 2, it is characterized in that, described be determined as being used for by the highest network node of priority
Execute the step of micro services in the service request correspond to the target network node of business, comprising:
The highest network node of the priority is obtained from preset log information library before current time and current time
Special time period in the micro services that execute in the service request correspond to generated all logs when business, wherein it is described
Log information in log includes at least the highest network node of the priority and is executing the micro services in the service request
Responsive status information when corresponding business, the responsive status information are the highest network node of the priority described in the execution
Respond successfully or the highest network node of the priority is in the execution industry when micro services in service request correspond to business
Micro services in business request are not respond when corresponding to business;
Based on the responsive status information in the log information determine the highest network node of the priority in current time and
The response success rate that the micro services in the service request correspond to business is executed in special time period before current time;
If described in the highest network node of priority executes in the special time period before current time and current time
The response success rate that micro services in service request correspond to business is higher than predetermined threshold, then the highest network node of priority is true
It is set to the target network node that business is corresponded to for executing the micro services in the service request.
4. the method according to claim 1, wherein the current loads based on each network node,
Current performance and with the current distance of user terminal determine each network node execute it is micro- in the service request
The step of servicing the priority of corresponding business, comprising:
Current loads based on each network node peak load corresponding with each network node, determines first point
Number;
Current performance based on each network node optimal performance corresponding with each network node, determines second point
Number;
The current distance of current distance, network node and user terminal based on each network node and user terminal and excellent
The relation table being first worth determines third score;
Based on first score, second score and the third score, determine that each network node is executing
Micro services in the service request correspond to the priority of business.
5. according to the method described in claim 4, it is characterized in that, it is described based on first score, second score with
And the third score, determine that each network node corresponds to the preferential of business in the micro services executed in the service request
The step of spending, comprising:
Determine that each network node corresponds to the excellent of business in the micro services executed in the service request based on following formula
First spend;
Wherein, A is first score, and B is second score, and C is institute
Third score is stated, α, β and γ are the normal number greater than zero, and S is each network node in executing the service request
Micro services correspond to the priority of business.
6. according to the method described in claim 5, it is characterized in that, current loads based on each network node and each
The corresponding peak load of network node, the step of determining the first score, comprising:
First score is determined based on following formula;
Wherein, η is the normal number greater than zero, a1For the corresponding peak load of each network node, a2For institute
The current loads of each network node are stated, A is first score.
7. according to the method described in claim 5, it is characterized in that, the current performance based on each network node and each
The corresponding optimal performance of network node, the step of determining the second score, comprising:
Second score is determined based on following formula;
Wherein, λ is the normal number greater than zero, b1For the current performance of each network node, b2For
The optimal performance of each network node, B are second score.
8. a kind of dispatching device of network node, which is characterized in that described device includes:
Acquiring unit, the request for initiating in response to user terminal execute the service request that micro services correspond to business, obtain and use
In execute the micro services in the service request and correspond to the current loads of each network node of business, current performance and with
The current distance of family terminal;
First execution unit, for based on each network node current loads, current performance and with user terminal
Current distance determines that micro services of each network node in the execution service request correspond to the priority of business;
Second execution unit, for corresponding to business in the micro services executed in the service request based on each network node
Priority determine and correspond to the target network node of business for executing the micro services in the service request.
9. a kind of electronic equipment, including memory and processor, computer-readable instruction, the meter are stored in the memory
When calculation machine readable instruction is executed by the processor, so that the processor is executed as described in any one of claims 1 to 7
Method.
10. a kind of storage medium for being stored with computer-readable instruction, the computer-readable instruction is handled by one or more
When device executes, so that one or more processors execute the method as described in any one of claims 1 to 7.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910667400.0A CN110460647B (en) | 2019-07-23 | 2019-07-23 | Network node scheduling method and device, electronic equipment and storage medium |
PCT/CN2020/093598 WO2021012795A1 (en) | 2019-07-23 | 2020-05-30 | Network node scheduling method and apparatus, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910667400.0A CN110460647B (en) | 2019-07-23 | 2019-07-23 | Network node scheduling method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110460647A true CN110460647A (en) | 2019-11-15 |
CN110460647B CN110460647B (en) | 2021-10-22 |
Family
ID=68483247
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910667400.0A Active CN110460647B (en) | 2019-07-23 | 2019-07-23 | Network node scheduling method and device, electronic equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN110460647B (en) |
WO (1) | WO2021012795A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111092816A (en) * | 2019-11-26 | 2020-05-01 | 金蝶软件(中国)有限公司 | Gateway dynamic routing method, gateway dynamic routing device, computer equipment and storage medium |
WO2021012795A1 (en) * | 2019-07-23 | 2021-01-28 | 平安科技(深圳)有限公司 | Network node scheduling method and apparatus, electronic device and storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114257493B (en) * | 2021-12-17 | 2024-04-23 | 中国电信股份有限公司 | Fault early warning method and device for network node, medium and electronic equipment |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2254310A2 (en) * | 2009-05-22 | 2010-11-24 | Comcast Interactive Media, LLC | Web service system and method |
CN103780654A (en) * | 2012-10-24 | 2014-05-07 | 华为技术有限公司 | Business request processing method, user terminal, business router and network system |
CN103916472A (en) * | 2014-04-03 | 2014-07-09 | 华为软件技术有限公司 | Content routing method and device |
CN105847381A (en) * | 2016-04-18 | 2016-08-10 | 乐视控股(北京)有限公司 | Scheduling method and device for content server |
CN106101232A (en) * | 2016-06-16 | 2016-11-09 | 北京思源置地科技有限公司 | Load-balancing method and device |
CN106227611A (en) * | 2016-07-26 | 2016-12-14 | 北京北森云计算股份有限公司 | The dynamic micro services call method of a kind of multilingual cloud compiling and device |
CN106302565A (en) * | 2015-05-12 | 2017-01-04 | 浙江格林蓝德信息技术有限公司 | The dispatching method of service server and system |
CN108563499A (en) * | 2018-04-27 | 2018-09-21 | 努比亚技术有限公司 | CDN server switching method, mobile terminal and computer readable storage medium |
CN109067869A (en) * | 2018-08-01 | 2018-12-21 | 郑州云海信息技术有限公司 | The management method and device of micro services node in cloud computing system |
CN109729155A (en) * | 2018-12-13 | 2019-05-07 | 平安医疗健康管理股份有限公司 | A kind of distribution method and relevant apparatus of service request |
CN109901927A (en) * | 2019-02-21 | 2019-06-18 | 国泰君安证券股份有限公司 | Intelligent Task dynamic scheduling system and its method |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5745169B2 (en) * | 2011-07-22 | 2015-07-08 | ▲ホア▼▲ウェイ▼技術有限公司 | Content processing method, content processing device, and content processing system |
CN102868935A (en) * | 2012-08-24 | 2013-01-09 | 乐视网信息技术(北京)股份有限公司 | Scheduling method for responding multiple sources in content distribution network (CDN) |
US10182098B2 (en) * | 2017-01-31 | 2019-01-15 | Wipro Limited | Method and system for proactively selecting a content distribution network (CDN) for delivering content |
CN108512890B (en) * | 2018-01-25 | 2020-12-29 | 中铝视拓智能科技有限公司 | Container cloud platform resource scheduling method and system based on rack sensing |
CN109802997B (en) * | 2018-12-20 | 2021-02-09 | 华为技术服务有限公司 | Node equipment selection method and related equipment thereof |
CN110460647B (en) * | 2019-07-23 | 2021-10-22 | 平安科技(深圳)有限公司 | Network node scheduling method and device, electronic equipment and storage medium |
-
2019
- 2019-07-23 CN CN201910667400.0A patent/CN110460647B/en active Active
-
2020
- 2020-05-30 WO PCT/CN2020/093598 patent/WO2021012795A1/en active Application Filing
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2254310A2 (en) * | 2009-05-22 | 2010-11-24 | Comcast Interactive Media, LLC | Web service system and method |
CN103780654A (en) * | 2012-10-24 | 2014-05-07 | 华为技术有限公司 | Business request processing method, user terminal, business router and network system |
CN103916472A (en) * | 2014-04-03 | 2014-07-09 | 华为软件技术有限公司 | Content routing method and device |
CN106302565A (en) * | 2015-05-12 | 2017-01-04 | 浙江格林蓝德信息技术有限公司 | The dispatching method of service server and system |
CN105847381A (en) * | 2016-04-18 | 2016-08-10 | 乐视控股(北京)有限公司 | Scheduling method and device for content server |
CN106101232A (en) * | 2016-06-16 | 2016-11-09 | 北京思源置地科技有限公司 | Load-balancing method and device |
CN106227611A (en) * | 2016-07-26 | 2016-12-14 | 北京北森云计算股份有限公司 | The dynamic micro services call method of a kind of multilingual cloud compiling and device |
CN108563499A (en) * | 2018-04-27 | 2018-09-21 | 努比亚技术有限公司 | CDN server switching method, mobile terminal and computer readable storage medium |
CN109067869A (en) * | 2018-08-01 | 2018-12-21 | 郑州云海信息技术有限公司 | The management method and device of micro services node in cloud computing system |
CN109729155A (en) * | 2018-12-13 | 2019-05-07 | 平安医疗健康管理股份有限公司 | A kind of distribution method and relevant apparatus of service request |
CN109901927A (en) * | 2019-02-21 | 2019-06-18 | 国泰君安证券股份有限公司 | Intelligent Task dynamic scheduling system and its method |
Non-Patent Citations (1)
Title |
---|
郭骏等: "基于云计算的海量微服务资源调度系统设计与实现", 《电子设计工程》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021012795A1 (en) * | 2019-07-23 | 2021-01-28 | 平安科技(深圳)有限公司 | Network node scheduling method and apparatus, electronic device and storage medium |
CN111092816A (en) * | 2019-11-26 | 2020-05-01 | 金蝶软件(中国)有限公司 | Gateway dynamic routing method, gateway dynamic routing device, computer equipment and storage medium |
CN111092816B (en) * | 2019-11-26 | 2022-02-15 | 金蝶软件(中国)有限公司 | Gateway dynamic routing method, gateway dynamic routing device, computer equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2021012795A1 (en) | 2021-01-28 |
CN110460647B (en) | 2021-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110460647A (en) | Dispatching method, device, electronic equipment and the storage medium of network node | |
CN105959317A (en) | Security authentication method and terminal | |
CN108961033A (en) | Multiservice system exchange method and device, storage medium, electric terminal | |
CN109783472A (en) | Moving method, device, computer equipment and the storage medium of table data | |
CN109685295A (en) | Cargo, which is pulled, receives dispatching method and device, storage medium, electronic equipment | |
CN111933134A (en) | Man-machine interaction method and device, electronic equipment and storage medium | |
CN109558246A (en) | A kind of load-balancing method, device, electronic equipment and storage medium | |
CN109152061A (en) | Channel agility method, apparatus, server and storage medium | |
CN109587356A (en) | Virtual-number call method, device, system, electronic equipment, storage medium | |
CN110445844A (en) | Short message multi-center selection method and device, storage medium, electronic equipment | |
CN105208232A (en) | Method and device for automatically making call | |
CN109947408A (en) | Information push method and device, storage medium and electronic equipment | |
CN110471728A (en) | Method and relevant apparatus based on user right display interface | |
EP3910528A2 (en) | Method, apparatus, device, and storage medium for generating response | |
CN110191054A (en) | Route processing method and device, storage medium and electronic equipment | |
US20240171679A1 (en) | Systems and methods for generating customized customer service menu | |
CN113935069B (en) | Data verification method, device and equipment based on block chain and storage medium | |
CN114140033B (en) | Service personnel allocation method and device, electronic equipment and storage medium | |
CN115904183A (en) | Interface display process, apparatus, device and storage medium | |
CN108768742A (en) | Network establishing method and device, electronic equipment, storage medium | |
CN109451427A (en) | Localization method, device and storage medium | |
CN109600510A (en) | A kind of keyword method for pushing, device and storage medium | |
CN108769143A (en) | Information push method and device, storage medium, electronic equipment | |
CN109905435A (en) | Resource subscription method and system, storage medium, electronic equipment | |
CN113641439A (en) | Text recognition and display method, device, electronic equipment and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
REG | Reference to a national code |
Ref country code: HK Ref legal event code: DE Ref document number: 40018161 Country of ref document: HK |
|
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |