CN109995859A - A kind of dispatching method, dispatch server and computer readable storage medium - Google Patents

A kind of dispatching method, dispatch server and computer readable storage medium Download PDF

Info

Publication number
CN109995859A
CN109995859A CN201910232474.1A CN201910232474A CN109995859A CN 109995859 A CN109995859 A CN 109995859A CN 201910232474 A CN201910232474 A CN 201910232474A CN 109995859 A CN109995859 A CN 109995859A
Authority
CN
China
Prior art keywords
server
client
information
service
group
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.)
Pending
Application number
CN201910232474.1A
Other languages
Chinese (zh)
Inventor
许永峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201910232474.1A priority Critical patent/CN109995859A/en
Publication of CN109995859A publication Critical patent/CN109995859A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling 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/63Routing 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)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present embodiments relate to Internet technical field, a kind of dispatching method, dispatch server and computer readable storage medium are disclosed.In the section Example of the application, dispatching method includes: the access request for obtaining client and sending;It wherein, include the identification information of the identification informations of the Internet resources and client requested access in access request;The identification information of client is parsed, the parsing information of the identification information of client is obtained;According to the identification information of Internet resources, the parsing information of client and configuration information, it is determined as the server of client service;Wherein, configuration information indicates the corresponding relationship of the server in the parsing information and server set of the identification information of Internet resources and the corresponding relationship of server set and client, includes at least a server in server set.It can be client dispatch server from multiple dimensions in the realization.

Description

A kind of dispatching method, dispatch server and computer readable storage medium
Technical field
The present embodiments relate to Internet technical field, in particular to a kind of dispatching method, dispatch server and calculating Machine readable storage medium storing program for executing.
Background technique
With the fast development of internet, real-time, interactive becomes a part of people's daily life.In real-time, interactive scene In, how to allow client to quickly access nearest streaming media server, reduce client access delay, while improving interactive steady It is qualitative, it is that each streaming media service company needs to consider a problem in design, deployment.
However, it is found by the inventors that at least there are the following problems in the prior art: scheduling strategy is normally based on client IP address information, scheduling dimension is single, and scalability is not strong.
It should be noted that information is only used for reinforcing the reason to the background of the disclosure disclosed in above-mentioned background technology part Solution, therefore may include the information not constituted to the prior art known to persons of ordinary skill in the art.
Summary of the invention
Embodiment of the present invention is designed to provide a kind of dispatching method, server and computer readable storage medium, Make it possible to from multiple dimensions, is client dispatch server.
In order to solve the above technical problems, embodiments of the present invention provide a kind of dispatching method, comprising the following steps: obtain The access request for taking client to send;It wherein, include identification information and the client of the Internet resources requested access in access request The identification information at end;The identification information of client is parsed, the parsing information of the identification information of client is obtained;According to net The identification information of network resource, the parsing information of client and configuration information, are determined as the server of client service;Wherein, Configuration information indicates the parsing information kimonos of the identification information of Internet resources and the corresponding relationship of server set and client The corresponding relationship of server in device set of being engaged in includes at least a server in server set.
Embodiments of the present invention additionally provide a kind of dispatch server, comprising: at least one processor;And with extremely The memory of few processor communication connection;Wherein, memory is stored with the instruction that can be executed by least one processor, refers to Order is executed by least one processor, so that at least one processor is able to carry out the dispatching party referred to such as above embodiment Method.
Present embodiment additionally provides a kind of computer readable storage medium, is stored with computer program, computer program The dispatching method that above embodiment refers to is realized when being executed by processor.
In terms of existing technologies, scheduling system is first from the dimension of the identification information of Internet resources for embodiment of the present invention It sets out, is locked as the server set of client service, then from the dimension of the identification information of client, then be client clothes Suitable server is selected in the server set of business, realizes the purpose from various dimensions for client dispatch server, so that Scheduling system can consider from various dimensions, when selecting the server for being more suitable for client, and then can reduce the access of client Prolong, improves the purpose of client and server interaction stability.
In addition, including N number of server group in server set, a server is included at least in each server group, N is Positive integer;According to the identification information of Internet resources, the parsing information of client and configuration information, it is determined as client service Server, specifically include: according to the identification information and configuration information of Internet resources, determining the corresponding server set of Internet resources It closes;A server group is selected from the corresponding server set of Internet resources according to parsing information and configuration information, as For the server group of client service;From the server group for client service, server is selected, as client service Server.
In addition, the identification information of Internet resources is the domain name of Internet resources, the identification information of client is the mutual of client Networking protocol IP address.
In addition, the characteristic information of the service object in configuration information including each server group, parsing information includes client The characteristic information at end;According to parsing information and configuration information, from the corresponding server set of Internet resources, a service is selected Device group is specifically included as the server group for client service: being believed according to the feature of the service object of each server group Breath, by the characteristic information of service object server group identical with the characteristic information of client, as the clothes for client service Business device group;Wherein, the characteristic information of service object includes the operator's informaiton of service object, and the characteristic information of client includes visitor The operator's informaiton at family end;Or, the characteristic information of service object includes the area information of service object, the characteristic information of client Area information including client;Or, the characteristic information of service object includes operator's informaiton and the service object of service object Area information, the characteristic information of client includes the operator's informaiton of client and the area information of client.
In addition, the characteristic information of the service object in configuration information including each server group, parsing information includes client The characteristic information at end;According to parsing information and configuration information, from the corresponding server set of Internet resources, a service is selected Device group is specifically included as the server group for client service: determining candidate server group;According to each candidate server The characteristic information of the service object of group, by the characteristic information of service object server group identical with the characteristic information of client, As the server group for client service;Wherein, the characteristic information of service object includes the operator's informaiton of service object, visitor The characteristic information at family end includes the operator's informaiton of client;Or, the characteristic information of service object includes the region of service object The characteristic information of information, client includes the area information of client;Or, the characteristic information of service object includes service object's The area information of operator's informaiton and service object, the characteristic information of client include the operator's informaiton and client of client Area information.In the realization, client-based characteristic information dimension considers, is client dispatch server, ensure that visitor Stability in the access process of family end.
In addition, including P server cluster in the corresponding server set of Internet resources, include in each server cluster The IP address type information of at least one server group, the service object of each server cluster is identical, and parsing information further includes The IP address type information of client;P is positive integer;It determines candidate server group, specifically includes: by the IP address of service object Server group in type information server cluster identical with the IP address type information of client, as candidate server Group.In the realization, enables scheduling system to be the client dispatch server of a variety of IP address types, provide scheduling system Applicability.
In addition, including P server cluster in the corresponding server set of Internet resources, include in each server cluster Service object the country in which it is located information of at least one server group, each server cluster is identical, and parsing information further includes client Hold the country in which it is located's information;P is positive integer;It determines candidate server group, specifically includes: judging whether there is service object the country one belongs to Family's information server cluster identical with client the country in which it is located information;If it is determined that be, by service object the country in which it is located information with Server group in the identical server cluster of client the country in which it is located information, as candidate server group;If it is determined that be not, it will Service object the country in which it is located information is the server group in overseas server cluster, as candidate server group.In the realization, It is client dispatch server based on the dimension of client the country in which it is located, scheduling system is enabled to be the client of every country Dispatch server is held, the applicability of scheduling system is improved.
In addition, from the server group for client service, server is selected, as the server for client service, It specifically includes: being determined as the weight of each candidate server in the server group of client service;According to each candidate service The weight of device is determined as the server of client service.
In addition, from the server group for client service, server is selected, as the server for client service, Specifically include: whether the number for the candidate server being judged as in the server group of client service is not less than T;If it is determined that be, According to the weight of each candidate server, it is determined as the server of client service;It, will be for client service if it is determined that be not All candidate servers in server group, and the M server selected from other server groups take as client The server of business;Wherein, other server groups are the server group in addition to the server group for client service, and M subtracts equal to T The number of the candidate server in the server group for client service is gone, T is positive integer.In the realization, ensures and fed back to The quantity of the IP address of the server of client, so that client can switch in time it with when an IP goes wrong wherein He is IP, without initiating scheduling request again.
In addition, being determined as the server of client service according to the weight of each candidate server, specifically including: according to The sequence of weight from high to low, is ranked up the candidate server in the server group for client service;It will be client Preceding T candidate server in the server group of service, as the server for client service.
In addition, candidate server is the server that state is normal condition in the server group of client service.The reality In existing, can automatic rejection failed server, improve the stability of whole system.
In addition, the state of server is determined according to the monitored results of monitoring system server.
In addition, being determined as visitor according to the identification information of Internet resources, the parsing information of client and configuration information Before the server of family end service, dispatching method further include: obtain configuration information from configuration system.In the realization, it will configure In information preservation configuration system, when so that scheduling system needing to extend, it is only necessary to be obtained required for scheduling from configuration system Relevant information improves the scalability of scheduling system.
In addition, being determined as visitor according to the identification information of Internet resources, the parsing information of client and configuration information Before the server of family end service, dispatching method further include: access request is authenticated, determines that access request has access right Limit.In the realization, illegal request can be filtered, illegal request is avoided to influence the service performance of scheduling system.
In addition, server is selected, as the server for client service from the server group for client service Later, dispatching method further include: the IP address of the server for client service is sent to client.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys The bright restriction not constituted to embodiment.
Fig. 1 is the flow chart of the dispatching method of first embodiment of the invention;
Fig. 2 is the flow chart of the dispatching method of second embodiment of the present invention;
Fig. 3 is the scheduling system, configuration system, monitoring system server, dispatch service of second embodiment of the present invention The interaction schematic diagram of device and streaming media server;
Fig. 4 is the structural schematic diagram of the dispatch server of third embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention In formula, in order to make the reader understand this application better, many technical details are proposed.But even if without these technical details And various changes and modifications based on the following respective embodiments, the application technical solution claimed also may be implemented.
The first embodiment of the present invention is related to a kind of dispatching methods, are applied to scheduling system, which can be The scheduling system of CDN node is dispatched in the field content distributing network (Content Delivery Network, CDN) for user, It is also possible to dispatch the scheduling system of streaming media server in Streaming Media field for user, can also is the scheduling system of other field System, is not listed one by one herein.As shown in Figure 1, in present embodiment, dispatching method the following steps are included:
Step 101: obtaining the access request that client is sent.
Specifically, including identification information and the client of the Internet resources requested access in the access request that client is sent The identification information at end.
In one example, the identification information of Internet resources is the domain name of Internet resources, and the identification information of client is visitor The address Internet protocol (Internet Protocol, IP) at family end.
It should be noted that being also possible on network it will be understood by those skilled in the art that Internet resources can be website Other resources.The domain name of Internet resources can be website and apply for the domain name put on record, be also possible to by CDN supplier or Streaming Media Systems provider is the domain name that the inside of Internet resources distribution uses.
It should be noted that it will be understood by those skilled in the art that can also include it in access request in practical application His information, there is no draw the information less close with technical problem relationship proposed by the invention is solved in present embodiment Enter, but this does not indicate and does not include other information in access request.
Step 102: the identification information of client being parsed, the parsing information of the identification information of client is obtained.
Specifically, being stored with the data of the identification information for parsing client in scheduling system, scheduling system is based on This is used to parse the data of the identification information of client, parses to the identification information of client, obtains parsing information.
In one example, the identification information of client is the IP address of client.Scheduling system solves IP address Analysis, obtains the parsing information of IP address, and the parsing information of IP address includes the operator's informaiton of client, and/or, client Area information, by the operator's informaiton of client, and/or, characteristic information of the area information of client as client.Due to Location information is carried in IP address, by parsing IP address, can determine the location information of client, and according to client Location information determines the area information of client.Wherein, the area information of client may include city, visitor where client Any one in great Qu belonging to province where province where the end of family and client or any combination.For example, by every country Multiple great Qu are divided into, after parsing IP address determines the place province of client, the affiliated great Qu in the province are determined, by the province Area information of the affiliated great Qu as client.
Step 103: according to the identification information of Internet resources, the parsing information of client and configuration information, being determined as visitor The server of family end service.
Specifically, the identification information of configuration information instruction Internet resources and the corresponding relationship of server set, Yi Jike The corresponding relationship of server in the parsing information and server set at family end includes at least a service in server set Device.
In one example, include Q server in server set, further include the clothes of each server in configuration information The characteristic information of business object parses the characteristic information in information including client.Scheduling system is according to the feature of each server The characteristic information of information and client, from server identical with the characteristic information of client, one service of any selection Device, as the server for client service.
In another example, include N number of server group in server set, include at least one in each server group Server, N are positive integer.Scheduling system is that the process of client dispatch server is as follows according to configuration information:
Step 1001: scheduling system determines that Internet resources are corresponding according to the identification information and configuration information of Internet resources Server set.
Specifically, the corresponding relationship of identification information and server set in configuration information including Internet resources, so that Scheduling system can determine the corresponding server set of Internet resources by query configuration information.Wherein, it is wrapped in server set N number of server group is included, N is positive integer.
It should be noted that it will be understood by those skilled in the art that the server group that different server sets is included Quantity may be the same or different, herein with no restriction.
Step 1002: scheduling system is according to parsing information and configuration information, from the corresponding server set of Internet resources, A server group is selected, as the server group for client service.
In the first instance, the characteristic information of the service object in configuration information including each server group, parsing letter Breath includes the characteristic information of client.Scheduling system, will service pair according to the characteristic information of the service object of each server group The characteristic information of elephant and the identical server group of the characteristic information of client, as the server group for client service.
In second example, configuration information includes the characteristic information of the service object of each server group, parses information Characteristic information including client.Scheduling system is determined as the process of the server group of client service are as follows: scheduling system is first true Determine candidate server group;According to the characteristic information of the service object of each candidate server group, by the characteristic information of service object Server group identical with the parsing information of the identification information of client, as the server group for client service.
In first example and second example, the characteristic information of service object includes operator's letter of service object Breath, the characteristic information of client includes the operator's informaiton of client;Or, the characteristic information of service object includes service object's The characteristic information of area information, client includes the area information of client;Or, the characteristic information of service object includes service pair The operator's informaiton of elephant and the area information of service object, the characteristic information of client include operator's informaiton and the visitor of client The area information at family end.
The method of the determination candidate server group referred in second example is illustrated below.
In the first instance, the dimension for dispatching system secondary IP address type is set out, and determines candidate server group.Specifically It says, includes P server cluster in the corresponding server set of Internet resources, include at least one clothes in each server cluster Business device group, the IP address type information of the service object of each server cluster is identical, and parsing information further includes the IP of client Address type information;P is positive integer.Scheduling system is after determining the corresponding server set of Internet resources, by service object's Server group in IP address type information server cluster identical with the IP address type of client, as candidate server Group.Wherein, the quantity of the server group in each server cluster may be the same or different.
For example, IP address type include fourth edition Internet protocol (Internet Protocol version 4, IPv4) and Sixth version Internet protocol, the corresponding server group of Internet resources are divided into 2 server clusters, in first server cluster Server is the client service that IP address type is IPv4, and the server in second server cluster is that IP address type is The client service of IPv6.It is stored with the data of the IP address for parsing IPv4 type in scheduling system, is also stored with and is used for Parse the data of the IP address of IPv6 type.It, will be in first service cluster when the IP address type of client is IPv4 Server group is as candidate server group, when the IP address type of client is IPv6, by the clothes in second service cluster Device group of being engaged in is as candidate server group.
It is noted that scheduling system supports the scheduling of IPv4 and the scheduling of IPv6, being applicable in for scheduling system is improved Property.
In second example, scheduling system determines candidate server group from the dimension of country.Specifically, net Include P big clusters in the corresponding server set of network resource, includes at least one server group in each server cluster, often Service object the country in which it is located information of a server cluster is identical, and parsing information further includes client the country in which it is located information;P is positive Integer.Scheduling system judges whether there is service object the country in which it is located information server identical with client the country in which it is located information Cluster;If it is determined that be, it will be in service object the country in which it is located information server cluster identical with client the country in which it is located information Server group, as candidate server group;If it is determined that not being is overseas server cluster by service object the country in which it is located information In server group, as candidate server group.
It is noted that scheduling system according to from country dimension, for country variant client dispatch service Device, so that scheduling system supports the scheduling of every country in global range.
In third example, scheduling system determines candidate server from the dimension of country and the dimension of IP address type Group.Specifically, including P big clusters in the corresponding server set of Internet resources, one is included at least in each big cluster Small cluster includes at least one server group in each small cluster;Wherein, service object the country in which it is located information of each big cluster Identical, the IP address type of the service object of each small cluster is identical.Scheduling system is according to the country in which it is located's information of client, really It is set to the big cluster of the client service, by the big cluster for the client service, the IP address type of service object and visitor Server group in the identical small cluster of the IP address type at family end, as candidate server group, P is positive integer.
It should be noted that clear to illustrate, in the 4th example, scheduling system is when determining candidate server group, first Consider from the dimension of country, then the dimension of secondary IP address type considers, it will be understood by those skilled in the art that in practical application, Can also the dimension of first secondary IP address type consider, then consider from the dimension of country.
It should be noted that it will be understood by those skilled in the art that for different server clusters, segmentation service device The dimension of group may be the same or different, herein without limitation.
It should be noted that it will be understood by those skilled in the art that in practical application, can also from other dimensions, Server set is divided into different server cluster, and according to the characteristic information of client, is selected in a server cluster Server group does not limit the method that scheduling system determines candidate server group as candidate server group, present embodiment.
Step 1003: from the server group for client service, server is selected, as the service for client service Device.
Specifically, scheduling system can arbitrarily select a server from the server group for client service, make For the server for client service, a server can also be selected according to default rule, as client service Server.
With dispatching system according to default rule, the process of server is selected to be illustrated.
In the first instance, scheduling system is determined as the candidate server in the server group of client service, and The weight of each candidate server;According to the weight of each candidate server, it is determined as the server of client service.
In second example, scheduling system is determined as the candidate server in the server group of client service;Judgement Whether the number for the candidate server in the server group of client service is not less than T;If it is determined that being, according to each candidate clothes The weight of business device, is determined as the server of client service;If it is determined that not being, by the institute in the server group for client service There are candidate server, and the M server selected from other server groups, as the server for client service;Its In, other server groups are the server group in addition to the server group for client service, and M is equal to T and subtracts as client clothes The number of candidate server in the server group of business.Wherein, T can according to need setting, for example, being set as 2.
It is noted that the number of servers for being ensured to be client service is T, the service for feeding back to client has been ensured The quantity of the IP address of device, so that client can switch in time other IP with when an IP goes wrong wherein, without again Initiate scheduling request.
In first example and second example, candidate server be can be in the server group for client service Servers-all is also possible to the server that state in the server group for client service is normal condition.Wherein, each clothes The state of business device is determined according to the monitored results of monitoring system server.
In first example and second example, system is dispatched according to the weight of each candidate server, is determined as visitor The process of the server of family end service are as follows: sequence of the dispatch server according to weight from high to low, to the clothes for client service Candidate server in business device group is ranked up;By the preceding T candidate server in the server group for client service, as For the server of client service, T is positive integer.
It is noted that screening server according to the weight of each candidate server, the flexibility of configuration is improved;Make every Weighted of a server in different server groups, avoids the scheduling under all dimensions from being configured to same server Caused load too high problem.
It should be noted that the weight of each server can be preset by operation maintenance personnel, it can be according to server The corresponding relationship of monitored results and monitored results and weight determines, wherein the corresponding relationship of monitored results and weight can root According to needing to configure, for example, if monitored results display server present load is in the first numerical intervals, by the power of the server It resets and is set to 1, if monitored results display server present load is in second value section, set the weight of the server to 2, if monitored results display server present load is in third value section, 3 are set by the weight of the server, if prison Server present load is in the 4th numerical intervals as the result is shown for control, then 4 is set by the weight of the server, if monitored results Display server present load is in the 5th numerical intervals, then sets 5 for the weight of the server, wherein each numerical value area Between can according to need setting, intersection is not present in each numerical intervals, and the number in the first numerical intervals is greater than second value area Between in number, the number in second value section is greater than the number in third value section, and the number in third value section is greater than the 4th Number in numerical intervals, the number in the 4th numerical intervals are greater than the number in the 5th numerical intervals, herein with no restriction.
It should be noted that it will be understood by those skilled in the art that in practical application, it can also be according to other Rules Filterings Server, present embodiment do not limit the method that server is screened from server group.
It should be noted that the above is only limit for example, not constituting to technical solution of the present invention.
Compared with prior art, the dispatching method provided in present embodiment, scheduling system can be first from Internet resources The dimension of identification information is set out, and the server set of client service is locked as, then the dimension of the identification information from client goes out Hair, then to select suitable server in the server set of client service, realizing from various dimensions is client scheduling clothes The purpose of business device, enables scheduling system to consider from various dimensions, and selection is more suitable for the server of client, and then can reduce The access delay of client improves the purpose of client and server interaction stability.
Second embodiment of the present invention is related to a kind of dispatching method, and present embodiment is on the basis of first embodiment It is further improved, specific improvements are as follows: before step 101, increase and obtain configuration information from configuration system Step, after step 103, the step of increasing client is sent to for the IP address of the server of client service.
Specifically, as shown in Fig. 2, in the present embodiment, including step 201 to step 208, wherein step 202, Step 205 and step 206 are roughly the same to step 103 with the step 101 in first embodiment respectively, and details are not described herein again. Difference is mainly introduced below:
Step 201: obtaining configuration information from configuration system.
Specifically, scheduling system is starting, or, obtaining from configuration system when dispatching resource for client and matching confidence Breath.
It should be noted that it will be understood by those skilled in the art that in practical application, scheduling system can according to need from Basic data is obtained in configuration system, for example, data of the corresponding operator of data, IP address for parsing IP address and each The data in province included by great Qu.
In one example, scheduling system, which can be loaded and be updated storage by middleware, matches confidence in configuration system Breath and basic data, and cache based on memory, it is ensured that the data consistency of caching and configuration system in scheduling system.
It is noted that scheduling data and basic data are stored in configuration system, reach the mesh that service is statelessly changed , the distributed deployment framework for scheduling system of arranging in pairs or groups improves the scalability and fault-tolerance of scheduling system.
Step 202: obtaining the access request that client is sent.
Step 203: access request being authenticated, determines that access request has access authority.
Specifically, scheduling system authenticates access request, illegal request is filtered, avoids the clothes for influencing scheduling system Business performance.
Step 204: judging to close in configuration information with the presence or absence of the corresponding of the Internet resources and server set requested access to System.
Specifically, scheduling system after receiving access request, judges in configuration with the presence or absence of the network requested access to The corresponding relationship of resource and server set;If it is determined that being to execute step 205, otherwise, step 208 is executed.
Step 205: the identification information of client being parsed, the parsing information of the identification information of client is obtained.
Step 206: according to the identification information of Internet resources, the parsing information of client and configuration information, being determined as visitor The server of family end service.
Step 207: the IP address of the server for client service is sent to client.Terminate process later.
Specifically, scheduling system is after being determined as the server of client service, it will be for the server of client service IP address be sent to client, client is after the IP address for receiving the return of scheduling system, according to the power of each IP address Weight, the corresponding server of the access maximum IP address of weight.
Step 208: sending prompt information to client.
Specifically, prompt information is used to prompt client, currently there are no the Internet resources distribution services to request access to Device can not be the client dispatch server.
Below for the application by present embodiment in Streaming Media field, illustrate the working method of scheduling system, and Relationship between scheduling system and configuration system, monitoring system server, dispatch server and streaming media server.
It is assumed that Internet resources are website.In one example, system 301, scheduling system 302, dispatch server are configured 3021, the interaction schematic diagram of monitoring system server 303, streaming media server 304 and client 305 is as shown in Figure 3.Configuration system System 301 includes configuration center 3011, database 3012 and configuration middleware 3013.Configuration center 3011 provides operation maintenance personnel operation Configuration interface increase the interaction friendly of configuration interface and the scalability of configuration by way of hierarchical arrangement.O&M people Member creates the configuration information of website, in configuration information, determines the corresponding server set in the website by configuration center 3011 It closes.In the corresponding set in website, from the dimension of service object the country in which it is located, P big clusters are configured.Operation maintenance personnel is every In a big cluster, from the dimension of the IP address type of service object, small cluster is configured.Operation maintenance personnel is in each small cluster In, from the dimension of the characteristic information of service object, create multiple server groups.Wherein, the characteristic information of service object Dimension can be operator's dimension, area information dimension or operator-area information dimension.Configuration center 3011 is according to O&M people The configuration of member generates configuration information, is stored in database 3012.Monitoring system server 303 is mainly responsible for poll detection institute There is the availability of streaming media server 304, while will test result and being advertised to configuration center 3011, if detecting some stream matchmaker Body server 304 breaks down, then rejects the streaming media server 304 from each server group, realize failed server Automatic switching function improves the overall usability of system.Client 305 initiates access request to scheduling system 302, which asks It asks and can be hypertext transfer protocol (HyperText Transfer Protocol, HTTP) request, request scheduling service is visited Ask to include the information such as domain name, the client ip of website requested access in request.It include multiple dispatch services in scheduling system 302 Device 3021 when each dispatch server 3021 is opened, by the interface of configuration center 3011, obtains configuration from database 3012 Information, and according to first embodiment or the dispatching method that refers to of second embodiment, for the client tune for sending access request Streaming media server 304 is spent, and the IP address of the streaming media server of scheduling 304 is sent to client 305.Client 305 After getting the IP of streaming media server, streaming media server is accessed, the real-time, interactive of audio-video is started.
It is noted that for configuration information using the mechanism of " centralization storage+nodal cache ", i.e., confidence will be matched While ceasing persistent storage in the database of the system of configuration, supervised by configuring middle ware issues to scheduling system and server Control system, convenient for data management and scheduling switching.
It should be noted that the above is only limit for example, not constituting to technical solution of the present invention.
Compared with prior art, the dispatching method provided in present embodiment, first from the dimension of the identification information of Internet resources Degree sets out, and is locked as the server set of client service, then from the dimension of the identification information of client, then be client Suitable server is selected in the server set of service, is realized the purpose from various dimensions for client dispatch server, is made Obtaining scheduling system can consider from various dimensions, and selection is more suitable for the server of client, and then can reduce the access of client Time delay improves the purpose of client and server interaction stability.In addition to this, scheduling system authenticates access request, Illegal request can be filtered, illegal request is avoided to influence the service performance of scheduling system.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or Certain steps are split, multiple steps are decomposed into, as long as including identical logical relation, all in the protection scope of this patent It is interior;To adding inessential modification in algorithm or in process or introducing inessential design, but its algorithm is not changed Core design with process is all in the protection scope of the patent.
Third embodiment of the present invention is related to a kind of dispatch server, as shown in Figure 4, comprising: at least one processor; And the memory being connect at least one processor communication;Wherein, memory, which is stored with, to be executed by least one processor Instruction, instruction executed by least one processor referred to so that at least one processor is able to carry out above embodiment such as Dispatching method.
The dispatch server includes: one or more processors 401 and memory 402, with a processor in Fig. 4 For 401.Processor 401, memory 402 can be connected by bus or other modes, to be connected as by bus in Fig. 4 Example.Memory 402 is used as a kind of non-volatile computer readable storage medium storing program for executing, can be used for storing non-volatile software program, non- Volatile computer executable program and module, as configuration information is stored in memory 402 in the application embodiment. Non-volatile software program, instruction and the module that processor 401 is stored in memory 402 by operation, thereby executing setting Standby various function application and data processing, that is, realize above-mentioned dispatching method.
Memory 402 may include storing program area and storage data area, wherein storing program area can store operation system Application program required for system, at least one function;It storage data area can the Save option list etc..In addition, memory 402 can be with It can also include nonvolatile memory, for example, at least disk memory, a flash memory including high-speed random access memory Device or other non-volatile solid state memory parts.In some embodiments, it includes relative to processing that memory 402 is optional The remotely located memory of device 401, these remote memories can pass through network connection to external equipment.The example of above-mentioned network Including but not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
One or more module is stored in memory 402, when being executed by one or more processor 401, is held Dispatching method in the above-mentioned any means embodiment of row.
The said goods can be performed the application embodiment provided by method, have the corresponding functional module of execution method and Beneficial effect, the not technical detail of detailed description in the present embodiment, reference can be made to method provided by the application embodiment.
4th embodiment of the invention is related to a kind of computer readable storage medium, is stored with computer program.It calculates Machine program realizes above method embodiment when being executed by processor.
That is, it will be understood by those skilled in the art that implement the method for the above embodiments be can be with Relevant hardware is instructed to complete by program, which is stored in a storage medium, including some instructions are to make It obtains an equipment (can be single-chip microcontroller, chip etc.) or processor (processor) executes side described in each embodiment of the application The all or part of the steps of method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the present invention, And in practical applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.

Claims (15)

1. a kind of dispatching method characterized by comprising
Obtain the access request that client is sent;It wherein, include the mark of the Internet resources requested access in the access request The identification information of information and the client;
The identification information of the client is parsed, the parsing information of the identification information of the client is obtained;
According to the identification information of the Internet resources, the parsing information of the client and configuration information, it is determined as the visitor The server of family end service;Wherein, the configuration information indicates the identification information of the Internet resources and pair of server set It should be related to and the corresponding relationship of the server in the parsing information and server set of client, in the server set Including at least a server.
2. dispatching method according to claim 1, which is characterized in that it include N number of server group in the server set, A server is included at least in each server group, N is positive integer;
It is described according to the identification information of the Internet resources, the parsing information of the client and configuration information, be determined as institute The server for stating client service, specifically includes:
According to the identification information of the Internet resources and the configuration information, the corresponding server set of the Internet resources is determined It closes;
According to the parsing information and the configuration information, from the corresponding server set of the Internet resources, one is selected Server group, as the server group for the client service;
From the server group for the client service, server is selected, as the service for the client service Device.
3. dispatching method according to claim 1, which is characterized in that the identification information of the Internet resources is the network The domain name of resource, the identification information of the client are the internet protocol address of the client.
4. dispatching method according to claim 2, which is characterized in that include each server in the configuration information The characteristic information of the service object of group, the parsing information include the characteristic information of the client;
It is described according to the parsing information and the configuration information, from the corresponding server set of the Internet resources, selection One server group is specifically included as the server group for the client service:
According to the characteristic information of the service object of each server group, by the characteristic information of service object and the client The identical server group of characteristic information, as the server group for the client service;
Wherein, the characteristic information of the service object includes the operator's informaiton of service object, the characteristic information of the client Operator's informaiton including the client;Or,
The characteristic information of the service object includes the area information of service object, and the characteristic information of the client includes described The area information of client;Or,
The characteristic information of the service object includes the operator's informaiton of service object and the area information of service object, the visitor The characteristic information at family end includes the operator's informaiton of the client and the area information of the client.
5. dispatching method according to claim 2, which is characterized in that include each server in the configuration information The characteristic information of the service object of group, the parsing information include the characteristic information of the client;
It is described according to the parsing information and the configuration information, from the corresponding server set of the Internet resources, selection One server group is specifically included as the server group for the client service:
Determine candidate server group;
According to the characteristic information of the service object of each candidate server group, by the characteristic information of service object and the visitor The identical server group of the characteristic information at family end, as the server group for the client service;
Wherein, the characteristic information of the service object includes the operator's informaiton of service object, the characteristic information of the client Operator's informaiton including the client;Or,
The characteristic information of the service object includes the area information of service object, and the characteristic information of the client includes described The area information of client;Or,
The characteristic information of the service object includes the operator's informaiton of service object and the area information of service object, the visitor The characteristic information at family end includes the operator's informaiton of the client and the area information of the client.
6. dispatching method according to claim 5, which is characterized in that wrapped in the corresponding server set of the Internet resources P server cluster is included, includes at least one described server group, each server set in each server cluster The IP address type information of the service object of group is identical, and the parsing information further includes the IP address type letter of the client Breath;P is positive integer;
The determining candidate server group, specifically includes:
It will be in the IP address type information of service object server cluster identical with the IP address type information of the client Server group, as the candidate server group.
7. dispatching method according to claim 5, which is characterized in that wrapped in the corresponding server set of the Internet resources P server cluster is included, includes at least one described server group, each server set in each server cluster Service object the country in which it is located information of group is identical, and the parsing information further includes described client the country in which it is located information;P is positive whole Number;
The determining candidate server group, specifically includes:
Judge whether there is service object the country in which it is located information server cluster identical with described client the country in which it is located information;
If it is determined that be, it will be in service object the country in which it is located information server cluster identical with described client the country in which it is located information Server group, as the candidate server group;
If it is determined that not being is the server group in overseas server cluster by service object the country in which it is located information, as described Candidate server group.
8. dispatching method according to claim 5, which is characterized in that described from the service for the client service In device group, server is selected to specifically include as the server for the client service:
Determine the weight of each candidate server in the server group for the client service;
According to the weight of each candidate server, determine that described is the server of the client service.
9. dispatching method according to claim 5, which is characterized in that described from the service for the client service In device group, server is selected to specifically include as the server for the client service:
Whether it is not less than T as the number of the candidate server in the server group of the client service described in judging;
If it is determined that being, according to the weight of each candidate server, to determine that described is the server of the client service;
If it is determined that be not, by all candidate servers in the server group for the client service, and from other The M server selected in server group, as the server for the client service;Wherein, other described services Device group be except it is described be the server group of the client service in addition to server group, M be equal to T subtract it is described for the client The number of the candidate server in the server group of service is held, T is positive integer.
10. dispatching method according to claim 8 or claim 9, which is characterized in that described according to each candidate server Weight determines that described is the server of the client service, specifically includes:
According to the sequence of weight from high to low, the candidate server in the server group for the client service is carried out Sequence;
By the preceding T candidate server in the server group for the client service, as described for the client The server of service.
11. dispatching method according to any one of claim 1 to 9, which is characterized in that according to the Internet resources Identification information, the parsing information of the client and configuration information, are determined as before the server of the client service, The dispatching method further include:
Configuration information is obtained from configuration system.
12. dispatching method according to any one of claim 1 to 9, which is characterized in that provided described according to the network The identification information in source, the parsing information of the client and configuration information, be determined as the client service server it Before, the dispatching method further include:
The access request is authenticated, determines that the access request has access authority.
13. dispatching method according to claim 2, which is characterized in that it is described from described for the client service In server group, server, after the server for the client service, the dispatching method are selected further include:
The IP address of the server for the client service is sent to the client.
14. a kind of dispatch server characterized by comprising at least one processor;And
The memory being connect at least one described processor communication;Wherein, be stored with can be by described at least one for the memory The instruction that a processor executes, described instruction is executed by least one described processor, so that at least one described processor energy Enough dispatching methods executed as described in any one of claims 1 to 13.
15. a kind of computer readable storage medium, is stored with computer program, which is characterized in that the computer program is located Reason device realizes dispatching method described in any one of claims 1 to 13 when executing.
CN201910232474.1A 2019-03-26 2019-03-26 A kind of dispatching method, dispatch server and computer readable storage medium Pending CN109995859A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910232474.1A CN109995859A (en) 2019-03-26 2019-03-26 A kind of dispatching method, dispatch server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910232474.1A CN109995859A (en) 2019-03-26 2019-03-26 A kind of dispatching method, dispatch server and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109995859A true CN109995859A (en) 2019-07-09

Family

ID=67131599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910232474.1A Pending CN109995859A (en) 2019-03-26 2019-03-26 A kind of dispatching method, dispatch server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109995859A (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110417886A (en) * 2019-07-29 2019-11-05 广州竞远安全技术股份有限公司 A kind of load-balancing method of integrated service, apparatus and system
CN110460673A (en) * 2019-08-21 2019-11-15 中国工商银行股份有限公司 A kind of address of service acquisition methods, device and equipment
CN110784504A (en) * 2019-08-29 2020-02-11 恒大智慧科技有限公司 Intelligent distributed system deployment method, system and storage medium
CN110830564A (en) * 2019-10-30 2020-02-21 北京金山云网络技术有限公司 CDN scheduling method, device, system and computer readable storage medium
CN111193713A (en) * 2019-12-05 2020-05-22 贵阳语玩科技有限公司 System and method for managing global data of different countries by single server cluster
CN111274029A (en) * 2020-01-15 2020-06-12 北京奇艺世纪科技有限公司 Cluster scheduling method and device
CN111628958A (en) * 2019-07-12 2020-09-04 国铁吉讯科技有限公司 Network access method, device and system based on linear networking
CN111726646A (en) * 2020-05-28 2020-09-29 网宿科技股份有限公司 Method, device, equipment and storage medium for pushing video stream
CN111813349A (en) * 2020-05-27 2020-10-23 厦门汉印电子技术有限公司 Method, device and equipment for scheduling equipment of cloud print server and storage medium
CN112311836A (en) * 2019-07-31 2021-02-02 华为技术有限公司 Method and related device for scheduling service node
CN112511868A (en) * 2020-11-17 2021-03-16 创盛视联数码科技(北京)有限公司 Video playing method and device, electronic equipment and computer storage medium
CN113099261A (en) * 2021-04-27 2021-07-09 上海哔哩哔哩科技有限公司 Node processing method and device and node processing system
CN113596830A (en) * 2021-07-27 2021-11-02 中国联合网络通信集团有限公司 Communication method, communication apparatus, electronic device, storage medium, and program product
US11212329B2 (en) 2020-05-28 2021-12-28 Wangsu Science & Technology Co., Ltd. Method, apparatus, device and storage medium for pushing video stream
CN114125038A (en) * 2021-11-26 2022-03-01 中国联合网络通信集团有限公司 Service scheduling method, device and storage medium
WO2022247750A1 (en) * 2021-05-28 2022-12-01 上海云盾信息技术有限公司 Access request processing method, electronic device, electronic equipment, and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075445A (en) * 2011-02-28 2011-05-25 杭州华三通信技术有限公司 Load balancing method and device
CN103561049A (en) * 2013-09-05 2014-02-05 乐视网信息技术(北京)股份有限公司 Method for processing terminal scheduling request, system thereof and device thereof
CN104219162A (en) * 2014-09-10 2014-12-17 汉柏科技有限公司 Grouping load balancing method, equipment and system based on DNS
CN104935521A (en) * 2014-03-18 2015-09-23 中国电信股份有限公司 Global load balancing method and server for realizing hybrid scheduling
CN107317889A (en) * 2017-08-21 2017-11-03 深圳市视维科技股份有限公司 A kind of intelligent DNS scheduling system and dispatching method
CN108184149A (en) * 2017-12-29 2018-06-19 北京奇艺世纪科技有限公司 A kind of video CD N method for optimizing scheduling and device
CN108667948A (en) * 2017-03-31 2018-10-16 贵州白山云科技有限公司 A kind of method and device for realizing general protocol schedule

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075445A (en) * 2011-02-28 2011-05-25 杭州华三通信技术有限公司 Load balancing method and device
CN103561049A (en) * 2013-09-05 2014-02-05 乐视网信息技术(北京)股份有限公司 Method for processing terminal scheduling request, system thereof and device thereof
CN104935521A (en) * 2014-03-18 2015-09-23 中国电信股份有限公司 Global load balancing method and server for realizing hybrid scheduling
CN104219162A (en) * 2014-09-10 2014-12-17 汉柏科技有限公司 Grouping load balancing method, equipment and system based on DNS
CN108667948A (en) * 2017-03-31 2018-10-16 贵州白山云科技有限公司 A kind of method and device for realizing general protocol schedule
CN107317889A (en) * 2017-08-21 2017-11-03 深圳市视维科技股份有限公司 A kind of intelligent DNS scheduling system and dispatching method
CN108184149A (en) * 2017-12-29 2018-06-19 北京奇艺世纪科技有限公司 A kind of video CD N method for optimizing scheduling and device

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111628958A (en) * 2019-07-12 2020-09-04 国铁吉讯科技有限公司 Network access method, device and system based on linear networking
CN111628958B (en) * 2019-07-12 2022-08-05 国铁吉讯科技有限公司 Network access method, device and system based on linear networking
CN110417886A (en) * 2019-07-29 2019-11-05 广州竞远安全技术股份有限公司 A kind of load-balancing method of integrated service, apparatus and system
CN112311836A (en) * 2019-07-31 2021-02-02 华为技术有限公司 Method and related device for scheduling service node
CN110460673A (en) * 2019-08-21 2019-11-15 中国工商银行股份有限公司 A kind of address of service acquisition methods, device and equipment
CN110460673B (en) * 2019-08-21 2022-07-19 中国工商银行股份有限公司 Service address acquisition method, device and equipment
CN110784504A (en) * 2019-08-29 2020-02-11 恒大智慧科技有限公司 Intelligent distributed system deployment method, system and storage medium
CN110830564A (en) * 2019-10-30 2020-02-21 北京金山云网络技术有限公司 CDN scheduling method, device, system and computer readable storage medium
CN111193713A (en) * 2019-12-05 2020-05-22 贵阳语玩科技有限公司 System and method for managing global data of different countries by single server cluster
CN111274029A (en) * 2020-01-15 2020-06-12 北京奇艺世纪科技有限公司 Cluster scheduling method and device
CN111813349A (en) * 2020-05-27 2020-10-23 厦门汉印电子技术有限公司 Method, device and equipment for scheduling equipment of cloud print server and storage medium
CN111813349B (en) * 2020-05-27 2022-07-12 厦门汉印电子技术有限公司 Method, device and equipment for scheduling equipment of cloud print server and storage medium
CN111726646A (en) * 2020-05-28 2020-09-29 网宿科技股份有限公司 Method, device, equipment and storage medium for pushing video stream
US11212329B2 (en) 2020-05-28 2021-12-28 Wangsu Science & Technology Co., Ltd. Method, apparatus, device and storage medium for pushing video stream
CN112511868A (en) * 2020-11-17 2021-03-16 创盛视联数码科技(北京)有限公司 Video playing method and device, electronic equipment and computer storage medium
CN112511868B (en) * 2020-11-17 2022-01-11 创盛视联数码科技(北京)有限公司 Video playing method and device, electronic equipment and computer storage medium
CN113099261A (en) * 2021-04-27 2021-07-09 上海哔哩哔哩科技有限公司 Node processing method and device and node processing system
WO2022247750A1 (en) * 2021-05-28 2022-12-01 上海云盾信息技术有限公司 Access request processing method, electronic device, electronic equipment, and medium
CN113596830A (en) * 2021-07-27 2021-11-02 中国联合网络通信集团有限公司 Communication method, communication apparatus, electronic device, storage medium, and program product
CN114125038A (en) * 2021-11-26 2022-03-01 中国联合网络通信集团有限公司 Service scheduling method, device and storage medium

Similar Documents

Publication Publication Date Title
CN109995859A (en) A kind of dispatching method, dispatch server and computer readable storage medium
CN108776934B (en) Distributed data calculation method and device, computer equipment and readable storage medium
CN110191063B (en) Service request processing method, device, equipment and storage medium
US8141130B2 (en) Automated dissemination of enterprise policy for runtime customization of resource arbitration
CN109995669B (en) Distributed current limiting method, device, equipment and readable storage medium
US9185006B2 (en) Exchange of server health and client information through headers for request management
CN103607424B (en) Server connection method and server system
CN108509523A (en) Structuring processing method, equipment and the readable storage medium storing program for executing of block chain data
CN109783151B (en) Method and device for rule change
US20190372879A1 (en) Network monitoring entity and method for a communication network implementing network slices
CN112698952A (en) Unified management method and device for computing resources, computer equipment and storage medium
CN113992680B (en) Scheduling method, device, equipment and medium applied to distributed multi-activity system
US20220318071A1 (en) Load balancing method and related device
CN114172966A (en) Service calling method and device and service processing method and device under unitized architecture
US8224933B2 (en) Method and apparatus for case-based service composition
CN111258760A (en) Platform management method, system, device and storage medium
CN114153609A (en) Resource control method and device, electronic equipment and computer readable storage medium
US11900155B2 (en) Method, device, and computer program product for job processing
CN112019362B (en) Data transmission method, device, server, terminal, system and storage medium
CN107046581A (en) A kind of monitoring method, device and the server of service operation state
CN114979286B (en) Access control method, device, equipment and computer storage medium for container service
CN116775420A (en) Information creation cloud platform resource display and early warning method and system based on Flink flow calculation
CN112860422A (en) Method, apparatus and computer program product for job processing
CN112347141B (en) Data access control method, system, device and medium
US20080196048A1 (en) Interface Module

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190709