CN110336888A - A kind of server distribution method, device, system and medium - Google Patents
A kind of server distribution method, device, system and medium Download PDFInfo
- Publication number
- CN110336888A CN110336888A CN201910630360.2A CN201910630360A CN110336888A CN 110336888 A CN110336888 A CN 110336888A CN 201910630360 A CN201910630360 A CN 201910630360A CN 110336888 A CN110336888 A CN 110336888A
- Authority
- CN
- China
- Prior art keywords
- node
- edge server
- server
- inexpensive
- client node
- 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/101—Server selection for load balancing based on network conditions
-
- 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/1029—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers using data related to the state of servers by a load balancer
Abstract
The invention discloses a kind of server distribution method, device, system and media.The step of this method includes: the network parameter and hardware parameter for obtaining Edge Server, and is obtained by the service feedback index of the incoming Edge Server of inexpensive node and client node;According to the preset condition that network parameter, hardware parameter and service feedback index meet, the access right of Edge Server is selectively distributed into inexpensive node and/or client node.This method is opposite to improve the comprehensive of referenced factor when being allocated to Edge Server, to further ensure the whole efficiency and stability when Edge Server provides data service.In addition, the present invention also provides a kind of server distributor, system and medium, beneficial effect are same as above.
Description
Technical field
The present invention relates to computer communication fields, more particularly to a kind of server distribution method, device, system and Jie
Matter.
Background technique
Cloud computing (Cloud Computing) is the increase, use and interactive mode of related service Internet-based, is led to
Often it is related to providing the resource of dynamic easily extension and often virtualization by internet, is essentially exactly by control network
In a large amount of normal operation nodes collaborative work, piecemeal processing is carried out to complete data processing task,
With the continuous development of cloud computing technology, gradually it is applied in the scene that current shared calculates.Fig. 1 is current shared
Calculate the equipment topology schematic diagram under scene.Referring to FIG. 1, having frequently included client in the scene of current shared calculating
Node, inexpensive node, Edge Server node and the third party's service node based on cloud computing technology building, based on current
The shared device topology calculated under scene, Edge Server node directly pull the data flow in third party's service node,
And then user can directly pass through Edge Server node acquisition data by being deployed with the client node of application program (SDK)
Stream, can also be based on the data flow in inexpensive node indirect gain Edge Server node.
Currently be often based upon each Edge Server of regulation of the bandwidth usage selectivity of each Edge Server node to
The service method of salary distribution of client node and inexpensive node, but since Edge Server node is direct and third party's service
The equipment of node communication, therefore the job stability of Edge Server itself will directly affect client node and low cost
Normal acquisition of the node for data flow, it is difficult to ensure user obtains data under the shared scene calculated by client node
The whole efficiency and stability of stream process.
It can be seen that providing a kind of server distribution method, Shi Suocan is allocated to Edge Server with opposite raising
The comprehensive of factor is examined, to be further ensured that the whole efficiency and stability when Edge Server provides data service, is
Those skilled in the art's problem to be solved.
Summary of the invention
The object of the present invention is to provide a kind of server distribution method, device, system and media, with opposite raising to edge
Referenced factor is comprehensive when server is allocated, to be further ensured that whole when Edge Server provides data service
Body efficiency and stability.
In order to solve the above technical problems, the present invention provides a kind of server distribution method, comprising:
The network parameter and hardware parameter of Edge Server are obtained, and obtains and is passed by inexpensive node and client node
The service feedback index of the Edge Server entered;
According to the preset condition that network parameter, hardware parameter and service feedback index meet, by the visit of Edge Server
Ask that power selectivity distributes to inexpensive node and/or client node.
Preferably, network parameter includes bandwidth utilization rate;
Correspondingly, edge is taken in the preset condition met according to network parameter, hardware parameter and service feedback index
Before the access right of business device selectively distributes to inexpensive node and/or client node, method further include:
Under the premise of service feedback index meets indicator conditions, judge whether bandwidth utilization rate is less than bandwidth Police sports
Value;
If it is, the preset condition met according to network parameter, hardware parameter and service feedback index is executed, by side
The access right of edge server selectively distributes to the step of inexpensive node and/or client node.
Preferably, the preset condition met according to network parameter, hardware parameter and service feedback index, by edge service
The access right of device selectively distributes to inexpensive node and/or client node, comprising:
When the value of bandwidth utilization rate is less than bandwidth lowest threshold, the access right of Edge Server is distributed into low cost simultaneously
Node and client node;
When the value of bandwidth utilization rate is greater than or equal to bandwidth lowest threshold and is less than free allocation threshold, judge whether to deposit
In equipment communications cost lower than Edge Server and working condition and the consistent preferred Edge Server of Edge Server;
If it is, the access right of preferred Edge Server is distributed to inexpensive node and client node simultaneously;
Otherwise, the access right of Edge Server is distributed into inexpensive node and client node simultaneously;Wherein, freely divide
It is less than bandwidth alarm threshold with threshold value;
When the value of bandwidth utilization rate is greater than or equal to free allocation threshold and less than bandwidth alarm threshold or hardware parameter
When value is greater than hardware alarm threshold, the access right of Edge Server is only assigned to inexpensive node.
Preferably, when judge bandwidth utilization rate whether be less than the result of bandwidth alarm threshold for it is no when, method further include:
When the value that bandwidth utilization rate reaches bandwidth exhaustion threshold value or hardware parameter reaches hardware exhaustion threshold, edge is taken
Inexpensive node and client node are distributed in the access right stopping of business device;Wherein, bandwidth exhaustion threshold value is greater than bandwidth Police sports
Value, hardware exhaustion threshold are greater than hardware alarm threshold.
Preferably, hardware parameter includes CPU usage and memory usage.
Preferably, service feedback index includes connecting into power and response delay;
Correspondingly, service feedback index meets indicator conditions, comprising:
When connecting into power greater than power threshold and/or response delay is preset to greater than default delay threshold.
Preferably, in the preset condition met according to network parameter, hardware parameter and service feedback index, edge is taken
Before the access right of business device selectively distributes to inexpensive node and/or client node, method further include:
Obtain the client node quantity for the client node that Edge Server has accessed;
Correspondingly, according to the preset condition that network parameter, hardware parameter and service feedback index meet, by edge service
The access right of device selectively distributes to inexpensive node and/or client node, comprising:
When client node quantity is less than default access threshold value, referred to according to network parameter, hardware parameter and service feedback
The preset condition met is marked, the access right of Edge Server is selectively distributed into inexpensive node and/or client node.
Preferably, the access right of Edge Server is selectively distributed into inexpensive node and/or client node, wrapped
It includes:
By way of sending Edge Server access address by the access right of Edge Server selectively distribute to it is low at
This node and/or client node.
In addition, device includes memory, processor and bus, storage the present invention also provides a kind of server distributor
The server distribution program that can be run to processor and on a processor by bus transfer, server distribution program are stored on device
Such as above-mentioned server distribution method is realized when being executed by processor.
Preferably, device is the node for forming CDN network or block chain network.
In addition, the present invention also provides a kind of server distribution system, system includes:
Parameter acquisition module for obtaining the network parameter and hardware parameter of Edge Server, and is obtained and is saved by low cost
The service feedback index for the Edge Server that point and client node are passed to;
Server distribution module, the default item for being met according to network parameter, hardware parameter and service feedback index
The access right of Edge Server is selectively distributed to inexpensive node and/or client node by part.
In addition, being stored with clothes on computer readable storage medium the present invention also provides a kind of computer readable storage medium
Business device distribution program, server distribution program can be executed by one or more processor, to realize such as above-mentioned server point
Method of completing the square.
Server distribution method provided by the present invention obtains the network parameter and hardware parameter of Edge Server first,
And it obtains by the service feedback index of the incoming Edge Server of inexpensive node and client node, and then instead according to service
The preset condition that feedback index, network parameter and hardware parameter are met, by the distribution of the access right selectivity of Edge Server
To inexpensive node and/or client node.Due to consideration that Edge Server is to inexpensive node and/or client node
When data are provided, the hardware resource of Edge Server itself can be occupied, thus the job stability of its own can be impacted,
Therefore this method is by the network parameter, hardware parameter and Edge Server of Edge Server in inexpensive node and client
Service status at node collectively as the allocations of edge server method of salary distribution restraining factors, and then selectively by edge
Server distributes to inexpensive node and/or client node for providing the to inexpensive node and/or client node
The data flow of tripartite's service node, this method is opposite to improve the comprehensive of referenced factor when being allocated to Edge Server
Property, to further ensure the whole efficiency and stability when Edge Server provides data service.In addition, the present invention is also
It is same as above to provide a kind of server distributor, system and medium, beneficial effect.
Detailed description of the invention
In order to illustrate the embodiments of the present invention more clearly, attached drawing needed in the embodiment will be done simply below
It introduces, it should be apparent that, drawings in the following description are only some embodiments of the invention, for ordinary skill people
For member, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is the equipment topology schematic diagram under current shared calculating scene;
Fig. 2 is a kind of flow chart of server distribution method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another server distribution method provided in an embodiment of the present invention;
Fig. 4 is a kind of structure chart of server distributor provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole embodiments.Based on this
Embodiment in invention, those of ordinary skill in the art are without making creative work, obtained every other
Embodiment belongs to the scope of the present invention.
Currently be often based upon each Edge Server of regulation of the bandwidth usage selectivity of each Edge Server node to
The service method of salary distribution of client node and inexpensive node, but since Edge Server node is direct and third party's service
The equipment of node communication, therefore the job stability of Edge Server itself will directly affect client node and low cost
Normal acquisition of the node for data flow, it is difficult to ensure user obtains data under the shared scene calculated by client node
The whole efficiency and stability of stream process.
Core of the invention is to provide a kind of server distribution method, when being allocated with opposite raising to Edge Server
Referenced factor it is comprehensive, thus be further ensured that Edge Server provide data service when whole efficiency and stabilization
Property.Another core of the invention is to provide a kind of server distributor, system and medium.
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.
Fig. 2 is a kind of flow chart of server distribution method provided in an embodiment of the present invention.Referring to FIG. 2, server point
The specific steps of method of completing the square include:
Step S10: the network parameter and hardware parameter of Edge Server are obtained, and is obtained by inexpensive node and client
The service feedback index of the incoming Edge Server of end node.
It should be noted that distribution control node obtains the network parameter and hardware parameter of Edge Server first,
In, network parameter refers to that Edge Server and external device carry out relevant operating conditions involved when network data communication
Data, and hardware parameter refers to that Edge Server is carrying out network data communication or itself execution data processing with external device
The relevant operating conditions data generated when task because occupying hardware resource.The executing subject of this method is distribution control node,
That is distribution control node can carry out data communication with Edge Server, and then can get the net of Edge Server
Network parameter and hardware parameter.
In addition, it is necessary to explanation, this method is to calculate scene shared based on the technical solution under shared calculating scene
In, Edge Server node directly pulls the data flow in third party's service node, and then can propose the data flow pulled
Supply inexpensive node or client node, wherein inexpensive node refers to establishing in client node and Edge Server
Between node device, such as in practical applications, inexpensive node can be specifically NAS device, since NAS device can visit
When asking and getting the data flow in Edge Server, client node can pass through NAS device indirect gain to edge service
Data flow in device, client node can also directly access Edge Server and obtain the data flow in Edge Server.
Step S11: the preset condition met according to network parameter, hardware parameter and service feedback index takes edge
The access right of business device selectively distributes to inexpensive node and/or client node.
It should be noted that this step focuses on distributing control node to the network parameter of Edge Server and hard
Part parameter carries out comprehensive analysis, and then the preset condition met according to network parameter and hardware parameter, selectively will
The access right of Edge Server distributes to inexpensive node and/or client node.It is emphasized that the emphasis of the present embodiment
It is to carry out network parameter and hardware parameter comprehensive analysis, on the basis of being analyzed for network parameter, considers
Edge Server has been arrived when consumption of network resources provides service with outwardly equipment, this feelings of hardware resource can be occupied simultaneously
Condition, thus this step when being allocated to Edge Server by network parameter and hardware parameter that Edge Server is current,
As the foundation to inexpensive node and client node allocations of edge server, when improving allocations of edge server relatively
Institute's Consideration it is comprehensive.
Server distribution method provided by the present invention obtains the network parameter and hardware parameter of Edge Server first,
And it obtains by the service feedback index of the incoming Edge Server of inexpensive node and client node, and then instead according to service
The preset condition that feedback index, network parameter and hardware parameter are met, by the distribution of the access right selectivity of Edge Server
To inexpensive node and/or client node.Due to consideration that Edge Server is to inexpensive node and/or client node
When data are provided, the hardware resource of Edge Server itself can be occupied, thus the job stability of its own can be impacted,
Therefore this method is by the network parameter, hardware parameter and Edge Server of Edge Server in inexpensive node and client
Service status at node collectively as the allocations of edge server method of salary distribution restraining factors, and then selectively by edge
Server distributes to inexpensive node and/or client node for providing the to inexpensive node and/or client node
The data flow of tripartite's service node, this method is opposite to improve the comprehensive of referenced factor when being allocated to Edge Server
Property, to further ensure the whole efficiency and stability when Edge Server provides data service.
On the basis of the above embodiments, as a preferred embodiment, network parameter includes bandwidth utilization rate;
Correspondingly, edge is taken in the preset condition met according to network parameter, hardware parameter and service feedback index
Before the access right of business device selectively distributes to inexpensive node and/or client node, method further include:
Under the premise of service feedback index meets indicator conditions, judge whether bandwidth utilization rate is less than bandwidth Police sports
Value;
If it is, the preset condition met according to network parameter, hardware parameter and service feedback index is executed, by side
The access right of edge server selectively distributes to the step of inexpensive node and/or client node.
It should be noted that present embodiment the bandwidth utilization rate for focusing on first determining whether Edge Server whether
Less than bandwidth alarm threshold, determine whether to be allocated the access right of Edge Server with this.The purpose of bandwidth alarm threshold
Be in order to define whether the bandwidth of current edge server is in the higher state of alert of occupied degree, bandwidth alarm threshold
Specific value should be not specifically limited herein depending on the real network communication performance of Edge Server.Present embodiment phase
To the global reliability for improving server distribution.
On the basis of the above embodiments, the present invention also provides a series of preferred embodiments.
Fig. 3 is the flow chart of another server distribution method provided in an embodiment of the present invention.Referring to FIG. 3, server
The specific steps of distribution method include:
Step S20: obtain Edge Server includes the network parameter and hardware parameter of bandwidth utilization rate, and obtain by
The service feedback index for the Edge Server that inexpensive node and client node are passed to.
In the present embodiment, should include at least in the network parameter obtained to Edge Server has bandwidth utilization rate, band
Data transmission capabilities when what width characterized is signal transmission, i.e., by the data volume of link in the mark unit time, due to edge
The link circuit resource of server is often limited, thus the total amount of bandwidth be also it is certain, the utilization rate of bandwidth characterization is side
The occupied degree of bandwidth of edge server entirety.In addition, bandwidth utilization rate is higher, then the network state of Edge Server can
It is lower by property, that is, the ability of Edge Server and external device transmission data is lower.
Step S21: when the value of bandwidth utilization rate is less than bandwidth lowest threshold, the value of hardware parameter is less than hardware Police sports
Value, and when service feedback index meets indicator conditions, the access right of Edge Server is distributed into inexpensive node and visitor simultaneously
Family end node.
Wherein, bandwidth lowest threshold is less than bandwidth alarm threshold.
It is then said based on the above-mentioned explanation for bandwidth utilization rate when the value of bandwidth utilization rate is less than bandwidth lowest threshold
The current bandwidth utilization rate of bright Edge Server is relatively low, Edge Server network communication performance with higher, in this feelings
Under condition, when the value of the hardware parameter of Edge Server is less than hardware alarm threshold, i.e. the hardware resource of Edge Server itself
Occupancy degree is relatively small, Edge Server data processing performance with higher.When the bandwidth and hardware of Edge Server
Occupied degree it is smaller when, illustrate that Edge Server has relatively sufficient Internet resources and hardware resource, therefore herein
The access right of Edge Server is distributed to inexpensive node and client node simultaneously by situation, opposite can ensure edge with this
The whole resource of server is efficiently used.
Step S22: when the value of bandwidth utilization rate is greater than or equal to bandwidth lowest threshold and is less than free allocation threshold, hardware
The value of parameter is less than hardware alarm threshold, and when service feedback index meets indicator conditions, judge whether there is equipment communication at
This is lower than Edge Server and working condition and the consistent preferred Edge Server of Edge Server, if so, thening follow the steps
Otherwise S23 executes step S24.
Step S23: the access right of preferred Edge Server is distributed into inexpensive node and client node simultaneously.
Step S24: the access right of Edge Server is distributed into inexpensive node and client node simultaneously.
Wherein, free allocation threshold is less than bandwidth alarm threshold.
It should be noted that being greater than or waiting when the value of bandwidth utilization rate meets or exceeds the range of bandwidth lowest threshold
In bandwidth lowest threshold, and it is less than free allocation threshold, and when the value of hardware parameter is less than hardware alarm threshold, then illustrates edge
The occupied degree of the current hardware of server is smaller, and bandwidth has been subjected to a degree of occupancy but has had not yet been reached higher
Occupancy degree, in the case, the present embodiment determines whether to use the edge service according to the communications cost of Edge Server
Device provides data service to inexpensive node and client node, that is, judges whether there is equipment communications cost lower than edge service
Device and working condition and the consistent preferred Edge Server of Edge Server.When there are the bandwidth utilization rates of preferred Edge Server
Value is also greater than or equal to bandwidth lowest threshold and is less than free allocation threshold, and the value of hardware parameter is less than hardware alarm threshold,
And equipment communications cost be lower than Edge Server preferred Edge Server when, by the access right of the preferred Edge Server same time-division
Dispensing low cost node and client node, opposite, if it does not exist when above-mentioned preferred Edge Server, by Edge Server
Access right simultaneously distribute to inexpensive node and client node, reduce network system lower edge server in contrast and mention
For the overall cost of data service.
Step S25: under the premise of service feedback index meets indicator conditions, when the value of bandwidth utilization rate is greater than or equal to
Free allocation threshold and when the value for being less than bandwidth alarm threshold or hardware parameter is greater than hardware alarm threshold, by Edge Server
Access right be only assigned to inexpensive node.
It should be noted that when the value of bandwidth utilization rate is greater than or equal to free allocation threshold and is less than bandwidth alarm threshold
When, illustrate that the resource occupying currently for Edge Server has been close in warning situation;When the value of hardware parameter is big
When hardware alarm threshold, illustrate that the occupied degree of the hardware resource of Edge Server is relatively large.Ensure edge in order to opposite
The limited resources of server can service more client nodes, when meeting any one situation in above-mentioned two situations
When, the access right of Edge Server is only assigned to inexpensive node by the present embodiment, since client node still is able to pass through
Data flow of the dereference of inexpensive node into Edge Server, thus by the access right of Edge Server distribute to it is low at
After this node, data flow can be provided to client node by inexpensive node, ensure the limited of Edge Server opposite
While resource can service more client nodes, avoiding client node further occupies Edge Server relatively
Available resources.
Step S26: under the premise of service feedback index meets indicator conditions, when bandwidth utilization rate reaches bandwidth exhaustion threshold
When value or the value of hardware parameter reach hardware exhaustion threshold, inexpensive node is distributed into the access right stopping of Edge Server
And client node.
Wherein, bandwidth exhaustion threshold value is greater than bandwidth alarm threshold, and hardware exhaustion threshold is greater than hardware alarm threshold.
It should be noted that being exhausted when the value that bandwidth utilization rate reaches bandwidth exhaustion threshold value or hardware parameter reaches hardware
When threshold value, the steadiness of Edge Server is influenced in order to avoid Edge Server may occur to run super and delay machine etc., this
The access right stopping of Edge Server is distributed to inexpensive node and client node by embodiment.
Furthermore, it is necessary to which, it is emphasized that band has been respectively adopted in terms of the bandwidth utilization rate for determining network parameter in the present embodiment
Wide lowest threshold, free allocation threshold, bandwidth alarm threshold and bandwidth exhaustion threshold value, wherein between above-mentioned all kinds of threshold values
Size relation are as follows: bandwidth lowest threshold < free allocation threshold <bandwidth alarm threshold <bandwidth exhaustion threshold value, due to above-mentioned all kinds of
What threshold value was measured is the degree of bandwidth utilization rate, thus specific value should according to the actual situation depending on, such as bandwidth lowest threshold
It is 20%, free allocation threshold is 85%, bandwidth alarm threshold 90%, bandwidth exhaustion threshold value 95%;In determination hardware parameter
Aspect is based on hardware alarm threshold and hardware exhaustion threshold, the two size relation are as follows: hardware alarm threshold < hardware exhausts threshold
Value, herein technically, since hardware parameter can be refined further, hardware parameter specific for every kind should have correspondence
Hardware alarm threshold and hardware exhaustion threshold.
In the technology of above-described embodiment, as a preferred embodiment, hardware parameter include CPU usage and
Memory usage.
Since CPU and memory are the important hardware factor for restricting Edge Server data-handling efficiency, this implementation
Include CPU usage and memory usage in the hardware parameter of mode, and then can be used based on CPU usage and memory
Distribution accuracy of the relatively accurate raising of rate for Edge Server.
In specific application scenarios, the hardware alarm threshold of CPU usage and memory usage can be respectively
85%, hardware exhaustion threshold can be 95% respectively.
As a preferred embodiment, service feedback index includes connecting into power and response delay;
Correspondingly, service feedback index meets indicator conditions, comprising:
When connecting into power greater than power threshold and/or response delay is preset to greater than default delay threshold.
It should be noted that including connecting into power and response delay in the network parameter of present embodiment, connect into
When what power characterized is that Edge Server responds inexpensive node or client-node access, inexpensive node or client are normal
The probability of Edge Server is accessed, and respond delay characterization is inexpensive node or client node access Edge Server
Afterwards, Edge Server is time-consuming for the response of inexpensive node or client node.It is greater than default success rate when connecting into power
Threshold value, or response are delayed when being greater than default delay threshold, then illustrate that Edge Server provides the reliability and effect of data service
Rate is higher, therefore as the premise that the access right of Edge Server is distributed to inexpensive node and client node, Neng Gouxiang
To the efficiency of service and reliability guaranteed for inexpensive node and client node.
As a preferred embodiment, being met according to network parameter, hardware parameter and service feedback index
Preset condition, before the access right of Edge Server is selectively distributed to inexpensive node and/or client node, method is also
Include:
Obtain the client node quantity for the client node that Edge Server has accessed;
Correspondingly, according to the preset condition that network parameter, hardware parameter and service feedback index meet, by edge service
The access right of device selectively distributes to inexpensive node and/or client node, comprising:
When client node quantity is less than default access threshold value, referred to according to network parameter, hardware parameter and service feedback
The preset condition met is marked, the access right of Edge Server is selectively distributed into inexpensive node and/or client node.
It should be noted that the visitor for focusing on obtaining the client node that Edge Server has accessed of present embodiment
Family number of nodes, and the client node quantity for the client node for having accessed Edge Server is analyzed, work as client node
When quantity is less than default access threshold value, according to the preset condition that network parameter and hardware parameter meet, by Edge Server
Access right selectively distributes to inexpensive node and/or client node, that is to say, that selects the access right of Edge Server
Property distributes to this operation of inexpensive node and/or client node, needs the client node quantity based on Edge Server
It is carried out less than default access threshold value.The opposite number of nodes for ensuring access Edge Server of present embodiment in controlled range,
Reduce to a certain extent and the whole of resource in Edge Server is occupied, ensure that the job stability of Edge Server.
On the basis of a series of above-mentioned embodiments, as a preferred embodiment, by the visit of Edge Server
Ask that power selectivity distributes to inexpensive node and/or client node, comprising:
By way of sending Edge Server access address by the access right of Edge Server selectively distribute to it is low at
This node and/or client node.
It should be noted that the use of present embodiment sends edge service to inexpensive node and/or client node
The mode of device access address informs that inexpensive node and/or client node are able to access that the approach of data flow, opposite to ensure
Inexpensive node and client node obtain the efficiency of data flow in Edge Server.
Fig. 4 is a kind of structure chart of server distributor provided in an embodiment of the present invention.
Server distributor 1 includes memory 11, processor 12 and bus 13, and being stored on memory 11 can be by bus
The 13 server distribution programs for being transmitted to processor 12 and running on the processor 12, server distribution program are held by processor 12
Such as above-mentioned server distribution method is realized when row.
Server distributor provided by the present invention obtains the network parameter and hardware parameter of Edge Server first,
And it obtains by the service feedback index of the incoming Edge Server of inexpensive node and client node, and then instead according to service
The preset condition that feedback index, network parameter and hardware parameter are met, by the distribution of the access right selectivity of Edge Server
To inexpensive node and/or client node.Due to consideration that Edge Server is to inexpensive node and/or client node
When data are provided, the hardware resource of Edge Server itself can be occupied, thus the job stability of its own can be impacted,
Therefore the present apparatus is by the network parameter, hardware parameter and Edge Server of Edge Server in inexpensive node and client
Service status at node collectively as the allocations of edge server method of salary distribution restraining factors, and then selectively by edge
Server distributes to inexpensive node and/or client node for providing the to inexpensive node and/or client node
The data flow of tripartite's service node, the present apparatus is opposite to improve the comprehensive of referenced factor when being allocated to Edge Server
Property, to further ensure the whole efficiency and stability when Edge Server provides data service.
In the present embodiment, server distributor 1 can be PC (Personal Computer, PC), can also
To be that smart phone, tablet computer, palm PC, portable computer, intelligent router, mine machine, network storage equipment terminal are set
It is standby.
The server distributor 1 can be the node of composition CDN network or block chain network.
Wherein, memory 11 include at least a type of readable storage medium storing program for executing, the readable storage medium storing program for executing include flash memory,
Hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), magnetic storage, disk, CD etc..Memory 11
It can be the internal storage unit of server distributor 1 in some embodiments, such as the server distributor 1 is hard
Disk.Memory 11 is also possible to the External memory equipment of server distributor 1, such as server point in further embodiments
With the plug-in type hard disk being equipped on device 1, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card) etc..Further, memory 11 can also both include server distribution dress
The internal storage unit for setting 1 also includes External memory equipment.Memory 11 can be not only used for storage and be installed on server distribution
Application software and Various types of data, such as the code of network communication program of device 1 etc. can be also used for temporarily storing defeated
Out or the data that will export.
Processor 12 can be in some embodiments a central processing unit (Central Processing Unit,
CPU), controller, microcontroller, microprocessor or other data processing chips, the program for being stored in run memory 11
Code or processing data, such as execute network communication program etc..
The bus 13 can be Peripheral Component Interconnect standard (peripheral component interconnect, abbreviation
PCI) bus or expanding the industrial standard structure (extended industry standard architecture, abbreviation EISA)
Bus etc..The bus can be divided into address bus, data/address bus, control bus etc..For convenient for indicating, in Fig. 4 only with one slightly
Line indicates, it is not intended that an only bus or a type of bus.
Further, server distributor 1 can also include network interface, and network interface optionally may include wired
Interface and/or wireless interface (such as WI-FI interface, blue tooth interface), commonly used in the server distributor 1 and other electricity
Communication connection is established between sub- equipment.
Optionally, which can also include user interface, and user interface may include display
(Display), input unit such as keyboard (Keyboard), optional user interface can also include standard wireline interface,
Wireless interface.Optionally, in some embodiments, it is aobvious to can be light-emitting diode display, liquid crystal display, touch control type LCD for display
Show that device and OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) touch device etc..Wherein, display
Appropriate it can also be known as display screen or display unit, for being shown in the information and use that handle in server distributor 1
In the visual user interface of display.
The present invention also provides a kind of server distribution system, system includes:
Parameter acquisition module for obtaining the network parameter and hardware parameter of Edge Server, and is obtained and is saved by low cost
The service feedback index for the Edge Server that point and client node are passed to;
Server distribution module, the default item for being met according to network parameter, hardware parameter and service feedback index
The access right of Edge Server is selectively distributed to inexpensive node and/or client node by part.
Server distribution system provided by the present invention obtains the network parameter and hardware parameter of Edge Server first,
And it obtains by the service feedback index of the incoming Edge Server of inexpensive node and client node, and then instead according to service
The preset condition that feedback index, network parameter and hardware parameter are met, by the distribution of the access right selectivity of Edge Server
To inexpensive node and/or client node.Due to consideration that Edge Server is to inexpensive node and/or client node
When data are provided, the hardware resource of Edge Server itself can be occupied, thus the job stability of its own can be impacted,
Therefore this system is by the network parameter, hardware parameter and Edge Server of Edge Server in inexpensive node and client
Service status at node collectively as the allocations of edge server method of salary distribution restraining factors, and then selectively by edge
Server distributes to inexpensive node and/or client node for providing the to inexpensive node and/or client node
The data flow of tripartite's service node, this system is opposite to improve the comprehensive of referenced factor when being allocated to Edge Server
Property, to further ensure the whole efficiency and stability when Edge Server provides data service.
In addition, the present invention also provides a kind of computer readable storage mediums, which is characterized in that computer readable storage medium
On be stored with server distribution program, server distribution program can be executed by one or more processor, to realize as above-mentioned
Server distribution method.
Computer readable storage medium provided by the present invention, the first network parameter of acquisition Edge Server and hardware ginseng
Number, and obtain by the service feedback index of the incoming Edge Server of inexpensive node and client node, and then according to clothes
The preset condition that business feedback index, network parameter and hardware parameter are met, by the access right selectivity of Edge Server
Distribute to inexpensive node and/or client node.Due to consideration that Edge Server is to inexpensive node and/or client
When node provides data, the hardware resource of Edge Server itself can be occupied, to can cause to the job stability of its own
It influences, therefore this computer readable storage medium exists the network parameter, hardware parameter and Edge Server of Edge Server
Service status at inexpensive node and client node collectively as the allocations of edge server method of salary distribution restraining factors,
And then Edge Server is selectively distributed into inexpensive node and/or client node to be used for inexpensive node
And/or client node provides the data flow of third party's service node, this computer readable storage medium is opposite to improve opposite side
Edge server when being allocated referenced factor it is comprehensive, thus further ensure Edge Server provide data service when
Whole efficiency and stability.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.
A kind of server distribution method provided by the present invention, device, system and medium are described in detail above.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other embodiments not
Same place, the same or similar parts in each embodiment may refer to each other.For the device disclosed in the embodiment, due to it
It corresponds to the methods disclosed in the examples, so being described relatively simple, reference may be made to the description of the method.It should
It points out, it for those skilled in the art, without departing from the principle of the present invention, can also be to this hair
Bright some improvement and modification can also be carried out, and these improvements and modifications also fall within the scope of protection of the claims of the present invention.
It should also be noted that, in the present specification, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Claims (12)
1. a kind of server distribution method characterized by comprising
The network parameter and hardware parameter of Edge Server are obtained, and is obtained incoming by inexpensive node and client node
The service feedback index of the Edge Server;
According to the preset condition that the network parameter, the hardware parameter and the service feedback index meet, by the side
The access right of edge server selectively distributes to inexpensive node and/or client node.
2. server distribution method according to claim 1, which is characterized in that the network parameter includes that bandwidth uses
Rate;
Correspondingly, being preset described according to what the network parameter, the hardware parameter and the service feedback index met
Condition, before the access right of the Edge Server is selectively distributed to inexpensive node and/or client node, the side
Method further include:
Under the premise of the service feedback index meets the indicator conditions, judge whether the bandwidth utilization rate is less than bandwidth
Alarm threshold;
If it is, execute it is described according to the network parameter, the hardware parameter and the service feedback index meet
Preset condition, the step of access right of the Edge Server is selectively distributed into inexpensive node and/or client node.
3. server distribution method according to claim 2, which is characterized in that it is described according to the network parameter, it is described
The preset condition that hardware parameter and the service feedback index meet selectively distributes the access right of the Edge Server
To inexpensive node and/or client node, comprising:
When the value of the bandwidth utilization rate is less than bandwidth lowest threshold, the access right of the Edge Server is distributed into institute simultaneously
State inexpensive node and the client node;
When the value of the bandwidth utilization rate is greater than or equal to the bandwidth lowest threshold and is less than free allocation threshold, judgement is
It is no that there are equipment communications costs lower than the Edge Server and working condition and the consistent preferred edge of the Edge Server
Server;
If it is, the access right of the preferred Edge Server is distributed to the inexpensive node and the client simultaneously
Node;
Otherwise, the access right of the Edge Server is distributed into the inexpensive node and the client node simultaneously;Its
In, the free allocation threshold is less than the bandwidth alarm threshold;
When the value of the bandwidth utilization rate is greater than or equal to the free allocation threshold and is less than the bandwidth alarm threshold or institute
When stating the value of hardware parameter greater than hardware alarm threshold, the access right of the Edge Server is only assigned to the low cost and is saved
Point.
4. server distribution method according to claim 3, which is characterized in that when the judgement bandwidth utilization rate is
When the no result less than bandwidth alarm threshold is no, the method also includes:
When the value that the bandwidth utilization rate reaches bandwidth exhaustion threshold value or the hardware parameter reaches hardware exhaustion threshold, by institute
The inexpensive node and the client node are distributed in the access right stopping for stating Edge Server;Wherein, the bandwidth consumption
Threshold value is greater than the bandwidth alarm threshold to the greatest extent, and the hardware exhaustion threshold is greater than the hardware alarm threshold.
5. server distribution method according to claim 4, which is characterized in that the hardware parameter includes CPU usage
And memory usage.
6. server distribution method according to claim 4, which is characterized in that the service feedback index includes connecting into
Power and response delay;
Correspondingly, the service feedback index meets the indicator conditions, comprising:
It is described connect into power be greater than be preset to power threshold and/or the response delay be greater than preset delay threshold when.
7. server distribution method according to claim 1, which is characterized in that described according to the network parameter, institute
The preset condition for stating hardware parameter and service feedback index satisfaction selectively divides the access right of the Edge Server
Before dispensing low cost node and/or client node, the method also includes:
Obtain the client node quantity for the client node that the Edge Server has accessed;
Correspondingly, the default item met according to the network parameter, the hardware parameter and the service feedback index
The access right of the Edge Server is selectively distributed to inexpensive node and/or client node by part, comprising:
When the client node quantity is less than default access threshold value, according to the network parameter, the hardware parameter and institute
The preset condition for stating service feedback index satisfaction, selectively distributes to inexpensive node for the access right of the Edge Server
And/or client node.
8. according to claim 1 to server distribution method described in 7 any one, which is characterized in that described by the edge
The access right of server selectively distributes to inexpensive node and/or client node, comprising:
The access right of the Edge Server is selectively distributed to by way of sending the Edge Server access address
The low cost node and/or the client node.
9. a kind of server distributor, which is characterized in that described device includes memory, processor and bus, the storage
The server distribution program that can be run to the processor and on the processor by the bus transfer, institute are stored on device
It states and realizes server distribution side as claimed in any one of claims 1 to 8 when server distribution program is executed by the processor
Method.
10. device according to claim 7, which is characterized in that described device is composition CDN network or block chain network
Node.
11. a kind of server distribution system, which is characterized in that the system comprises:
Parameter acquisition module, for obtaining the network parameter and hardware parameter of Edge Server, and obtain by inexpensive node with
And the service feedback index of the incoming Edge Server of client node;
Server distribution module, for being met according to the network parameter, the hardware parameter and the service feedback index
Preset condition, the access right of the Edge Server is selectively distributed into inexpensive node and/or client node.
12. a kind of computer readable storage medium, which is characterized in that be stored with server on the computer readable storage medium
Distribution program, the server distribution program can be executed by one or more processor, to realize as in claim 1 to 8
Described in any item server distribution methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910630360.2A CN110336888B (en) | 2019-07-12 | 2019-07-12 | Server distribution method, device, system and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910630360.2A CN110336888B (en) | 2019-07-12 | 2019-07-12 | Server distribution method, device, system and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110336888A true CN110336888A (en) | 2019-10-15 |
CN110336888B CN110336888B (en) | 2022-08-12 |
Family
ID=68146622
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910630360.2A Active CN110336888B (en) | 2019-07-12 | 2019-07-12 | Server distribution method, device, system and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110336888B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111405467A (en) * | 2020-03-20 | 2020-07-10 | 腾讯科技(深圳)有限公司 | Vehicle communication method, vehicle-road cooperation system, related equipment and readable medium |
CN111416844A (en) * | 2020-03-12 | 2020-07-14 | 北京金山云网络技术有限公司 | Service start-stop method, system, device and storage medium |
CN115242793A (en) * | 2022-07-05 | 2022-10-25 | 杭州萤石软件有限公司 | Streaming media load balancing method, device and system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105991708A (en) * | 2015-02-10 | 2016-10-05 | 腾讯科技(深圳)有限公司 | Selection method of application server, apparatus and system thereof |
CN108132839A (en) * | 2016-11-30 | 2018-06-08 | 中国移动通信有限公司研究院 | A kind of resource regulating method and device |
CN108304256A (en) * | 2018-02-08 | 2018-07-20 | 北京信息科技大学 | The method for scheduling task and device of low overhead in a kind of edge calculations |
CN109743259A (en) * | 2018-12-24 | 2019-05-10 | 中国联合网络通信集团有限公司 | A kind of traffic scheduling method and device of network |
-
2019
- 2019-07-12 CN CN201910630360.2A patent/CN110336888B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105991708A (en) * | 2015-02-10 | 2016-10-05 | 腾讯科技(深圳)有限公司 | Selection method of application server, apparatus and system thereof |
CN108132839A (en) * | 2016-11-30 | 2018-06-08 | 中国移动通信有限公司研究院 | A kind of resource regulating method and device |
CN108304256A (en) * | 2018-02-08 | 2018-07-20 | 北京信息科技大学 | The method for scheduling task and device of low overhead in a kind of edge calculations |
CN109743259A (en) * | 2018-12-24 | 2019-05-10 | 中国联合网络通信集团有限公司 | A kind of traffic scheduling method and device of network |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111416844A (en) * | 2020-03-12 | 2020-07-14 | 北京金山云网络技术有限公司 | Service start-stop method, system, device and storage medium |
CN111405467A (en) * | 2020-03-20 | 2020-07-10 | 腾讯科技(深圳)有限公司 | Vehicle communication method, vehicle-road cooperation system, related equipment and readable medium |
CN111405467B (en) * | 2020-03-20 | 2023-10-13 | 腾讯科技(深圳)有限公司 | Vehicle communication method, vehicle-road cooperation system, related device, and readable medium |
CN115242793A (en) * | 2022-07-05 | 2022-10-25 | 杭州萤石软件有限公司 | Streaming media load balancing method, device and system |
CN115242793B (en) * | 2022-07-05 | 2023-08-25 | 杭州萤石软件有限公司 | Streaming media load balancing method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN110336888B (en) | 2022-08-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108733005B (en) | Method and device for controlling linkage of intelligent equipment | |
CN109873868A (en) | A kind of computing capability sharing method, system and relevant device | |
Chaczko et al. | Availability and load balancing in cloud computing | |
CN110336888A (en) | A kind of server distribution method, device, system and medium | |
CN106027328B (en) | Cluster monitoring method and system based on application container deployment | |
JP2020009482A (en) | Providing per-application resource usage information | |
CN104620222A (en) | Scaling a virtual machine instance | |
US20150058844A1 (en) | Virtual computing resource orchestration | |
CN104038540A (en) | Method and system for automatically selecting application proxy server | |
CN104396215A (en) | Method and apparatus for bandwidth allocation and estimation | |
CN104335137A (en) | Managing power consumption and performance of computing systems | |
CN109960575B (en) | Computing capacity sharing method, system and related equipment | |
CN109634915A (en) | File dispositions method, Cloud Server, system and storage medium | |
CN102298542A (en) | Application program quality determination method and system | |
CN115277566B (en) | Load balancing method and device for data access, computer equipment and medium | |
CN110278278A (en) | A kind of data transmission method, system, device and computer media | |
CN109618174A (en) | A kind of live data transmission method, device, system and storage medium | |
CN105472291A (en) | Digital video recorder with multiprocessor cluster and realization method of digital video recorder | |
CN110191204A (en) | A kind of Intranet communication between devices method, system, device and computer storage medium | |
CN103488538B (en) | Application extension device and application extension method in cloud computing system | |
CN103944940A (en) | Equipment and method for dynamically configuring proxy server | |
CN108924128A (en) | A kind of mobile terminal and its method for limiting, the storage medium of interprocess communication | |
CN109756464A (en) | A kind of communication means and server, client | |
CN110347546B (en) | Dynamic adjustment method, device, medium and electronic equipment for monitoring task | |
CN114003238B (en) | Container deployment method, device, equipment and storage medium based on transcoding card |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |