CN105553870A - Method and device for allocating service request - Google Patents

Method and device for allocating service request Download PDF

Info

Publication number
CN105553870A
CN105553870A CN201510921188.8A CN201510921188A CN105553870A CN 105553870 A CN105553870 A CN 105553870A CN 201510921188 A CN201510921188 A CN 201510921188A CN 105553870 A CN105553870 A CN 105553870A
Authority
CN
China
Prior art keywords
service request
processing logic
service
request
mapping relations
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
Application number
CN201510921188.8A
Other languages
Chinese (zh)
Other versions
CN105553870B (en
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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201510921188.8A priority Critical patent/CN105553870B/en
Publication of CN105553870A publication Critical patent/CN105553870A/en
Application granted granted Critical
Publication of CN105553870B publication Critical patent/CN105553870B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/10Architectures or entities
    • H04L65/1045Proxies, e.g. for session initiation protocol [SIP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1008Server selection for load balancing based on parameters of servers, e.g. available memory or workload
    • 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

Abstract

The invention relates to a method and a device for allocating a service request. The method comprises steps: a service request sent by a client is received; according to a preset rule, a processing logic for the service request is determined; and the service request is allocated to a service server meeting the processing logic. A proxy server can determine the processing logic for the service request by the client according to the preset rule, the service request is allocated to the service server meeting the processing logic, different processing logics for the service request can be met, and the service request flow can be reasonably allocated.

Description

The distribution method of service request and device
Technical field
The disclosure relates to communication technical field, particularly relates to a kind of distribution method and device of service request.
Background technology
In correlation technique, usually can dispose proxy server between client terminal and service server, by proxy server, the service request that client terminal sends is transmitted to service server.At present, service request is normally transmitted to service server according to load balancing by proxy server, but, in such implementation, the different disposal logic of service request cannot be met.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of distribution method and device of service request.
According to the first aspect of disclosure embodiment, a kind of distribution method of service request is provided, comprises:
Receive the service request that client sends;
The processing logic of described service request is determined according to preset rules;
Described service request is dispensed to the service server meeting described processing logic.
Optionally, the described processing logic determining described service request according to preset rules, comprising:
The processing logic of described service request is determined according to the logical factor of described service request.
Optionally, also comprise:
According to the first mapping relations between the first configuration information dynamical save logical factor and processing logic;
The described logical factor according to described service request determines the processing logic of described service request, comprising:
The processing logic of described service request is determined according to described first mapping relations and described logical factor.
Optionally, described logical factor comprises: the temporal information of the identification information that described service request is carried, the request type of described service request or described service request.
Optionally, described identification information comprises: one or more in IP address, MAC Address and account information.
Optionally, also comprise: the second mapping relations between specimens preserving logical AND service server;
Describedly described service request is dispensed to the service server meeting described processing logic, comprises:
The service server cluster meeting described processing logic is determined according to described second mapping relations;
According to load balancing, described service request is dispensed to the service server in described service server cluster.
Optionally, the second mapping relations between described specimens preserving logical AND service server, comprising:
According to the second mapping relations between the second configuration information dynamical save processing logic and service server.
Optionally, the second mapping relations between described specimens preserving logical AND service server, comprising:
According to the distribution situation of service request processing logic described in preset time period, determine and preserve second mapping relations between processing logic and service server of mating described distribution situation.
Optionally, described processing logic comprises: stability priority logic, response speed priority logic, busy processing logic or idle processing logic.
According to the second aspect of disclosure embodiment, a kind of distributor of service request is provided, comprises:
Request receiving module, is configured to the service request receiving client transmission;
Logic determination module, is configured to the processing logic of the service request received according to preset rules determination described request receiver module;
Request dispatching module, is configured to described request receiver module to be received service request and is dispensed to the service server meeting the processing logic that described logic determination module is determined.
Optionally, described logic determination module, comprising:
First determines submodule, and the logical factor being configured to the service request received according to described request receiver module determines the processing logic of described service request.
Optionally, also comprise:
First preserves module, is configured to according to the first mapping relations between the first configuration information dynamical save logical factor and processing logic;
Described logic determination module, also comprises:
Second determines submodule, is configured to preserve according to described first described first mapping relations that module preserves and described logical factor determines the processing logic of described service request.
Optionally, described logical factor comprises: the temporal information of the identification information that described service request is carried, the request type of described service request or described service request.
Optionally, described identification information comprises: one or more in IP address, MAC Address and account information.
Optionally, also comprise:
Second preserves module, is configured to the second mapping relations between specimens preserving logical AND service server;
Described request distribution module, comprising:
Cluster determination submodule, described second mapping relations being configured to preserve module preservation according to described second determine to meet the service server cluster of described processing logic;
Request dispatching submodule, is configured to the service server service request that described request receiver module receives be dispensed to according to load balancing in the service server cluster that described cluster determination submodule determines.
Optionally, described second preserves module, comprising:
First preserves submodule, is configured to according to the second mapping relations between the second configuration information dynamical save processing logic and service server.
Optionally, described second preserves module, also comprises:
Second preserves submodule, is configured to the distribution situation according to service request processing logic described in preset time period, determines and preserve second mapping relations between processing logic and service server of mating described distribution situation.
Optionally, described processing logic comprises: stability priority logic, response speed priority logic, busy processing logic or idle processing logic.
According to the third aspect of disclosure embodiment, a kind of distributor of service request is provided, comprises:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the service request that client sends;
The processing logic of described service request is determined according to preset rules;
Described service request is dispensed to the service server meeting described processing logic.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
Disclosure proxy server can according to the processing logic of preset rules determination client traffic request, and described service request is dispensed to the service server meeting described processing logic, thus meet the different disposal logic of service request, realize the reasonable distribution of service request flow.Disclosure proxy server can the first mapping relations between dynamical save logical factor and processing logic, and operability is high, and meanwhile, without the need to restarting, flexibility is good, can tackle heterogeneous networks demand.
Disclosure proxy server can determine the processing logic of described service request according to the identification information carried in service request, operability is high, and it is convenient to realize.
Disclosure proxy server according to the processing logic of the temporal information determination service request of service request, thus can meet the demand of different time sections service request to different disposal logic.
Disclosure proxy server can determine the processing logic of described service request according to the request type of service request, thus meets the demand of different kinds of business request to different disposal logic.
Disclosure proxy server can the second mapping relations between specimens preserving logical AND service server, and service request is dispensed to according to described second mapping relations the service server meeting processing logic, due to the service server of corresponding real response in described second mapping relations, thus the loading condition of each service server can be monitored, and according to loading condition, mapping relations are adjusted flexibly, prevent the machine of delaying, network blockage etc. affect the situation of service response.
Disclosure proxy server can according to the second mapping relations between the second configuration information dynamical save processing logic and service server, and operability is high, and flexibility is good.
Disclosure proxy server can according to the distribution situation of service request processing logic in preset time period, determine and preserve the second mapping relations between the processing logic of this distribution situation of coupling and service server, thus dynamic conditioning can be carried out according to the actual conditions of service request processing logic to the second mapping relations, without the need to manual operation, save cost.
Should be understood that, it is only exemplary and explanatory that above general description and details hereinafter describe, and can not limit the disclosure.
Accompanying drawing explanation
Accompanying drawing to be herein merged in specification and to form the part of this specification, shows and meets embodiment of the present disclosure, and is used from specification one and explains principle of the present disclosure.
Fig. 1 is the schematic diagram of a kind of application scenarios according to an exemplary embodiment.
Fig. 2 is the flow chart of the distribution method of a kind of service request according to an exemplary embodiment.
Fig. 3 is the flow chart of the distribution method of another kind of service request according to an exemplary embodiment.
Fig. 4 is the block diagram of the distributor of a kind of service request according to an exemplary embodiment.
Fig. 5 is the block diagram of the distributor of another kind of service request according to an exemplary embodiment.
Fig. 6 is the block diagram of the distributor of another kind of service request according to an exemplary embodiment.
Fig. 7 is the block diagram of the distributor of another kind of service request according to an exemplary embodiment.
Fig. 8 is the block diagram of the distributor of another kind of service request according to an exemplary embodiment.
Fig. 9 is the block diagram of the distributor of another kind of service request according to an exemplary embodiment.
Figure 10 is a structural representation of a kind of distributor for service request according to an exemplary embodiment.
Embodiment
Here will be described exemplary embodiment in detail, its sample table shows in the accompanying drawings.When description below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawing represents same or analogous key element.Execution mode described in following exemplary embodiment does not represent all execution modes consistent with the disclosure.On the contrary, they only with as in appended claims describe in detail, the example of apparatus and method that aspects more of the present disclosure are consistent.
Fig. 1 is the schematic diagram of a kind of application scenarios according to an exemplary embodiment.
Please refer to Fig. 1, terminal can comprise the smart machines such as smart mobile phone, panel computer, PDA (PersonalDigitalAssistant, palmtop PC), PC.User can realize miscellaneous service operation by the client software loaded in terminal.
Proxy server can for being deployed in the http server, Reverse Proxy, mail server etc. between terminal and server, such as: Nginx etc.
Service server is generally server or the server cluster of business provider deployment, for providing relevant business service to user, in the example of fig. 1, showing three service servers, being respectively service server 1 to service server 3.
In correlation technique, service request, after receiving the service request that client sends, usually can be transmitted to service server according to load balancing by proxy server, service server according to described service request for client provides related service service.But in actual applications, some service request need to return a large amount of data, and this just requires that the stability of service server is higher.Some service request need service server to respond fast, and this just requires the better performances of service server.At present, proxy server cannot meet the demand of service request different disposal logic according to the mode of load balancing forwarding service request, affects the experience of user.
Fig. 2 is the flow chart of the distribution method of a kind of service request according to an exemplary embodiment.
Please refer to Fig. 2, the distribution method of described service request may be used for, in the proxy server shown in Fig. 1, comprising the following steps:
In step s 201, the service request that client sends is received.
In step S202, determine the processing logic of described service request according to preset rules.
In the present embodiment, described preset rules can be arranged by administrative staff, such as: the processing logic determining described service request according to the identification information carried in described service request, or determine the processing logic etc. of described service request according to the temporal information of described service request, the disclosure does not make particular restriction to this.
In the present embodiment, described processing logic can be understood as the different demands of described service request to service server, for example, described processing logic can comprise: stability priority logic, response speed priority logic, busy processing logic, idle processing logic etc.
In step S203, described service request is dispensed to the service server meeting described processing logic.
In the present embodiment, the second mapping relations between service server and processing logic can be preserved in advance in proxy server, proxy server can determine according to described second mapping relations the service server meeting service request processing logic, then described service request is forwarded to this service server.
Described as can be seen from above, disclosure proxy server can according to the processing logic of preset rules determination client traffic request, and described service request is dispensed to the service server meeting described processing logic, thus meet the different disposal logic of service request, realize the reasonable distribution of service request flow.
Fig. 3 is the flow chart of the distribution method of another kind of service request according to an exemplary embodiment.
Please refer to Fig. 3, the distribution method of described service request may be used for, in the proxy server shown in Fig. 1, comprising the following steps:
In step S301, according to the first mapping relations between the first configuration information dynamical save logical factor and processing logic.
In the present embodiment, administrative staff can arrange the first configuration information in advance in proxy server, and described first configuration information can be the mapping relations between logical factor and processing logic.Wherein, described logical factor can comprise: the temporal information of the identification information that described service request is carried, the request type of described service request or described service request.Described identification information can comprise again: IP address, MAC Address, client account information etc.Described processing logic can comprise: stability is high, fast response time, busy processing logic, idle processing logic etc.
In the present embodiment, these mapping relations according to the mapping relations arranged described in dynamical save between logical factor and processing logic of administrative staff, for ease of describing, can be called the first mapping relations by proxy server.Please refer to the example of table 1, suppose that described logical factor is IP address, then table 1 is one first mapping relations shown in the present embodiment:
Identification information Processing logic
IP1 Stability priority logic
IP 2 Stability priority logic
IP 3 Response speed priority logic
IP 4 Response speed priority logic
Table 1
It should be noted that, table 1 is only exemplary explanation, might not organize such form in practical implementations, and proxy server also otherwise can preserve the first mapping relations between logical factor and processing logic.
In step s 302, the service request that client sends is received.
In the present embodiment, proxy server receives the service request that client sends.
In step S303, determine the processing logic of described service request according to the logical factor of described first mapping relations and described service request.
In the present embodiment, proxy server first can determine the logical factor of described service request, then determines according to described first mapping relations the processing logic that described logical factor is corresponding, namely determines the processing logic of described service request.
When described logical factor be service request carry identification information time, for example, proxy server first can parse its mark factor of carrying from described service request, suppose that again described identification information is IP address, then proxy server first can obtain the source IP address of described service request, if this source IP address is IP1, the first mapping relations then according to described IP1 look-up table 1, can determine that the processing logic of described service request is stability priority logic.If suppose that described identification information is account information, proxy server can obtain its account information of carrying from described service request, and the processing logic of described service request is determined according to described account information, such as: VIP user is different with the processing logic of domestic consumer, according to described account information, proxy server first can determine that described service request is from VIP user or domestic consumer, and then confirm corresponding processing logic.
When described logical factor is the temporal information of service request, proxy server is after receiving service request, first can obtain the temporal information of described service request, such as: the transmitting time point of described service request, then mapping relations between temporal information with processing logic are searched to determine the processing logic that described temporal information is corresponding according to described temporal information.For example, suppose that described temporal information comprises two time periods, be respectively idle time period and busy time period, wherein, the described idle time period is 0:00:00 to 17:59:59, the busy time period is 18:00:00 to 23:59:59, and processing logic corresponding to described idle time period is idle processing logic, and processing logic corresponding to described busy time period is busy processing logic.Suppose, proxy server is after receiving service request, and the transmitting time point of the described service request got is 20:05:40, and this transmitting time point belongs to the busy time period, then can determine that the processing logic of described service request is busy processing logic.In the present embodiment, proxy server according to the processing logic of the temporal information determination service request of service request, thus can meet the demand of different time sections service request to different disposal logic.
When described logical factor is the request type of service request, proxy server is after receiving service request, first can determine the request type of described service request, then according to described request type search request type with the mapping relations between processing logic to determine the processing logic that described request type is corresponding.For example, suppose that described request type comprises: the download of video and the online viewing of video, wherein, the processing logic of the download correspondence of video is response speed priority logic, the demand of the quick-downloading video of user can be met, the processing logic of online viewing correspondence is stability priority logic, can meet user's stable demand of watching video online.In the present embodiment, proxy server according to the processing logic of the request type determination service request of service request, thus can meet different request type service request to the demand of different disposal logic.
In step s 304, described service request is dispensed to the service server meeting described processing logic.
In the present embodiment, the second mapping relations between service server and processing logic can be preserved in advance in proxy server, then according to described second mapping relations and described processing logic, determine the service server meeting described processing logic, then described service request is forwarded to this service server.
Described as can be seen from above, disclosure proxy server can the first mapping relations between dynamical save identification information and processing logic, and the processing logic of described service request is determined according to the logical factor of described service request, thus described service request is dispensed to the service server meeting described processing logic, thus meet the different disposal logic of service request.
Optionally, in another example of the disclosure, the second mapping relations between all right specimens preserving logical AND service server of proxy server, and after determining the processing logic of service request, described service request is dispensed to according to described second mapping relations the service server meeting described processing logic.Wherein, proxy server can by the second mapping relations between following two kinds of mode specimens preserving logical AND service servers:
First kind of way, proxy server is according to the second mapping relations between the second configuration information dynamical save processing logic and service server.In this implementation, administrative staff can arrange the second configuration information in advance in proxy server, described second configuration information can be the mapping relations between processing logic and service server, and described service server is the service server of real response service request.Please refer to the example of table 2, one second mapping relations shown in the present embodiment:
Processing logic Service server
Stability priority logic Service server 1
Response speed priority logic Service server 2
Idle processing logic Service server 1, service server 2
Busy processing logic Service server 3
Table 2
Please refer to table 2, the corresponding service server 1 of processing logic " stability is preferential ", the corresponding service server 2 of processing logic " response speed is preferential ", processing logic " idle processing logic " corresponding service server 1 and service server 2, processing logic " busy processing logic " corresponding service server 3.
In the present embodiment, administrative staff can according to actual conditions dynamic conditioning second configuration information, proxy server according to described second configuration information, the second mapping relations between specimens preserving logical AND service server.For example, after certain service server 3 breaks down, administrative staff adjust service server corresponding to busy processing logic, such as: administrative staff start service server 4 for subsequent use, issue the second configuration information that busy processing logic is mapped to service server 4, proxy server and then the mapping relations can preserved between busy processing logic and service server 4.
The second way, proxy server, according to the distribution situation of service request processing logic described in preset time period, is determined and preserves second mapping relations between processing logic and service server of mating described distribution situation.In this implementation, proxy server can be monitored the processing logic of service request, such as: proxy server can monitor the distribution situation of service request processing logic in preset time period, then the second mapping relations between processing logic and service server are automatically adjusted according to described distribution situation.For example, suppose that described preset time period is one hour, then proxy server can the distribution situation of each hour statistical service request processing logic, and wherein, described distribution situation can be the quantity of each processing logic or shared ratio etc.Suppose again, described processing logic includes two kinds, be respectively stability priority logic and response speed priority logic, service server has 4, be respectively service server 1 to service server 4, these 4 service servers all can meet the processing logic that stability is preferential and response speed is preferential, if monitoring the ratio that the preferential processing logic of the stability that obtains accounts for all processing logics within the current preset time period is 75%, the ratio that the preferential processing logic of response speed accounts for all processing logics is 25%, then proxy server can according to the above-mentioned distribution situation of processing logic, determine 3 in 4 service servers preferentially corresponding with stability, other one preferentially corresponding with response speed.Such as: proxy server can the preferential mapping relations with service server 1 to service server 3 of storage stability, and response speed preferentially and the mapping relations of service server 4.If processing logic is that the service request that stability is preferential and response speed is preferential respectively accounts for 50% within the next time period, then proxy server can determine two in 4 service servers preferentially corresponding with stability, other two preferentially corresponding with response speed, such as: the processing logic of service server 3 correspondence is adjusted to response speed preferential.In the present embodiment, proxy server can according to the distribution situation of processing logic, and the second mapping relations between dynamic conditioning processing logic and service server, without the need to manual operation, save human cost.
In the present embodiment, proxy server is after determining the processing logic of service request, the service server or the service server cluster that meet above-mentioned processing logic can be determined according to above-mentioned second mapping relations, when the service server determining to meet service request processing logic according to described second mapping relations is a service server, service request can be forwarded to this service server by proxy server.When the service server determining to meet service request processing logic according to described second mapping relations is service server cluster, described service request can be forwarded in a certain service server in described service server cluster by proxy server according to load balancing, table 2 please be refer again to, suppose that the processing logic of the service request that proxy server receives is idle processing logic, to having service server 1 and service server 2, then described service request can be forwarded to described service server 1 or service server 2 according to load balancing by proxy server, this is no longer going to repeat them for the disclosure.
Corresponding with the distribution method embodiment of aforementioned service request, the disclosure additionally provides the embodiment of the distributor of service request.
Fig. 4 is the block diagram of the distributor of a kind of service request according to an exemplary embodiment.
Please refer to Fig. 4, the distributor 400 of described service request may be used for, in proxy server, including: request receiving module 401, logic determination module 402 and request dispatching module 403.
Wherein, described request receiver module 401, is configured to the service request receiving client transmission;
Described logic determination module 402, is configured to the processing logic of the service request received according to preset rules determination described request receiver module 401;
Described request distribution module 403, is configured to described request receiver module 401 to be received service request and is dispensed to the service server meeting the processing logic that described logic determination module 402 is determined.
In above-described embodiment, proxy server can according to the processing logic of preset rules determination client traffic request, and described service request is dispensed to the service server meeting described processing logic, thus meet the different disposal logic of service request, realize the reasonable distribution of service request flow.
Fig. 5 is the block diagram of the distributor of another kind of service request according to an exemplary embodiment.
Please refer to Fig. 5, this embodiment is on the basis of the embodiment shown in earlier figures 4, and described logic determination module 402 can comprise: first determines submodule 4021.
Described first determines submodule 4021, and the logical factor being configured to the service request received according to described request receiver module 401 determines the processing logic of described service request.
In above-described embodiment, proxy server can determine the processing logic of described service request according to the logical factor of service request, operability is high, and it is convenient to realize.
Fig. 6 is the block diagram of the distributor of another kind of service request according to an exemplary embodiment.
Please refer to Fig. 6, this embodiment is on the basis of the embodiment shown in earlier figures 5, and the distributor 400 of described service request can also comprise: first preserves module 404.
Described first preserves module 404, is configured to according to the first mapping relations between the first configuration information dynamical save logical factor and processing logic.
Described logic determination module 402 can also comprise: second determines submodule 4022.
Described second determines submodule 4022, is configured to preserve according to described first described first mapping relations that module 404 preserves and described logical factor determines the processing logic of described service request.
In above-described embodiment, proxy server can the first mapping relations between dynamical save logical factor and processing logic, and operability is high, and meanwhile, without the need to restarting, flexibility is good, can tackle heterogeneous networks demand.
Optionally, described logical factor comprises: the temporal information of the identification information that described service request is carried, the request type of described service request or described service request.
Optionally, described identification information comprises: one or more in IP address, MAC Address and account information.
Fig. 7 is the block diagram of the distributor of another kind of service request according to an exemplary embodiment.
Please refer to Fig. 7, this embodiment is on the basis of the embodiment shown in earlier figures 4, and the distributor 400 of described service request can also comprise: second preserves module 405.
Described second preserves module 405, is configured to the second mapping relations between specimens preserving logical AND service server.
Described request distribution module 403 can comprise: cluster determination submodule 4031 and request dispatching submodule 4032.
Wherein, described cluster determination submodule 4031, described second mapping relations being configured to preserve module 405 preservation according to described second determine to meet the service server cluster of described processing logic;
Described request distribution sub module 4032, is configured to the service server service request that described request receiver module 401 receives be dispensed to according to load balancing in the service server cluster that described cluster determination submodule 4031 determines.
In above-described embodiment, proxy server can the second mapping relations between specimens preserving logical AND service server, and service request is dispensed to according to described second mapping relations the service server meeting processing logic, due to the service server of corresponding real response in described second mapping relations, thus the loading condition of each service server can be monitored, and according to loading condition, mapping relations are adjusted flexibly, prevent the machine of delaying, network blockage etc. affect the situation of service response.
It should be noted that, shown in embodiment shown in above-mentioned Fig. 7 second is preserved module 405, cluster determination submodule 4031 and request dispatching submodule 4032 and also can be included in the device embodiment shown in earlier figures 5 to Fig. 6, and the disclosure does not make particular restriction to this.
Fig. 8 is the block diagram of the distributor of another kind of service request according to an exemplary embodiment.
Please refer to Fig. 8, this embodiment is on the basis of the embodiment shown in earlier figures 7, and described second preserves module 405 can comprise: first preserves submodule 4051.
Described first preserves submodule 4051, is configured to according to the second mapping relations between the second configuration information dynamical save processing logic and service server.
In above-described embodiment, proxy server can according to the second mapping relations between the second configuration information dynamical save processing logic and service server, and operability is high, and flexibility is good.
Fig. 9 is the block diagram of the distributor of another kind of service request according to an exemplary embodiment.
Please refer to Fig. 9, this embodiment is on the basis of the embodiment shown in earlier figures 7, and described second preserves module 405 can comprise: second preserves submodule 4052.
Described second preserves submodule 4052, is configured to the distribution situation according to service request processing logic described in preset time period, determines and preserve second mapping relations between processing logic and service server of mating described distribution situation.
In above-described embodiment, proxy server can according to the distribution situation of service request processing logic in preset time period, determine and preserve the second mapping relations between the processing logic of this distribution situation of coupling and service server, thus dynamic conditioning can be carried out according to the actual conditions of service request processing logic to the second mapping relations, without the need to manual operation, save cost.
Optionally, described processing logic comprises: stability priority logic, response speed priority logic, busy processing logic or idle processing logic.
In said apparatus, the implementation procedure of the function and efficacy of unit specifically refers to the implementation procedure of corresponding step in said method, does not repeat them here.
For device embodiment, because it corresponds essentially to embodiment of the method, so relevant part illustrates see the part of embodiment of the method.Device embodiment described above is only schematic, the wherein said unit illustrated as separating component or can may not be and physically separates, parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of module wherein can be selected according to the actual needs to realize the object of disclosure scheme.Those of ordinary skill in the art, when not paying creative work, are namely appreciated that and implement.
Accordingly, the disclosure also provides a kind of distributor of service request, and described device comprises: processor; For the memory of storage of processor executable instruction; Wherein, described processor is configured to: receive the service request that client sends; The processing logic of described service request is determined according to preset rules; Described service request is dispensed to the service server meeting described processing logic.
Accordingly, the disclosure also provides a kind of non-transitory computer-readable recording medium, when the instruction in described storage medium is performed by the processor of proxy server, make proxy server can perform a kind of distribution method of service request, described method comprises: receive the service request that client sends; The processing logic of described service request is determined according to preset rules; Described service request is dispensed to the service server meeting described processing logic.
Figure 10 is the block diagram of a kind of distributor 1000 for service request according to an exemplary embodiment.Such as, device 1000 may be provided in a server.
With reference to Figure 10, device 1000 comprises processing components 1022, and it comprises one or more processor further, and the memory resource representated by memory 1032, can such as, by the instruction of the execution of processing unit 1022, application program for storing.The application program stored in memory 1032 can comprise each module corresponding to one group of instruction one or more.In addition, processing components 1022 is configured to perform instruction, to perform the distribution method of above-mentioned service request.
Device 1000 can also comprise the power management that a power supply module 1026 is configured to final controlling element 1000, and a wired or wireless network interface 1050 is configured to device 1000 to be connected to network, and input and output (I/O) interface 1058.Device 1000 can operate the operating system based on being stored in memory 1032, such as WindowsServerTM, MacOSXTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art, at consideration specification and after putting into practice disclosed herein disclosing, will easily expect other embodiment of the present disclosure.The application is intended to contain any modification of the present disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed general principle of the present disclosure and comprised the undocumented common practise in the art of the disclosure or conventional techniques means.Specification and embodiment are only regarded as exemplary, and true scope of the present disclosure and spirit are pointed out by claim below.
Should be understood that, the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and can carry out various amendment and change not departing from its scope.The scope of the present disclosure is only limited by appended claim.

Claims (19)

1. a distribution method for service request, is characterized in that, comprising:
Receive the service request that client sends;
The processing logic of described service request is determined according to preset rules;
Described service request is dispensed to the service server meeting described processing logic.
2. the distribution method of service request according to claim 1, is characterized in that, the described processing logic determining described service request according to preset rules, comprising:
The processing logic of described service request is determined according to the logical factor of described service request.
3. the distribution method of service request according to claim 2, is characterized in that, also comprises:
According to the first mapping relations between the first configuration information dynamical save logical factor and processing logic;
The described logical factor according to described service request determines the processing logic of described service request, comprising:
The processing logic of described service request is determined according to described first mapping relations and described logical factor.
4. the distribution method of service request according to claim 2, is characterized in that,
Described logical factor comprises: the temporal information of the identification information that described service request is carried, the request type of described service request or described service request.
5. the distribution method of service request according to claim 4, is characterized in that
Described identification information comprises: one or more in IP address, MAC Address and account information.
6. the distribution method of service request according to claim 1, is characterized in that, also comprises:
The second mapping relations between specimens preserving logical AND service server;
Describedly described service request is dispensed to the service server meeting described processing logic, comprises:
The service server cluster meeting described processing logic is determined according to described second mapping relations;
According to load balancing, described service request is dispensed to the service server in described service server cluster.
7. the distribution method of service request according to claim 6, is characterized in that, the second mapping relations between described specimens preserving logical AND service server, comprising:
According to the second mapping relations between the second configuration information dynamical save processing logic and service server.
8. service request distribution method according to claim 6, is characterized in that, the second mapping relations between described specimens preserving logical AND service server, comprising:
According to the distribution situation of service request processing logic described in preset time period, determine and preserve second mapping relations between processing logic and service server of mating described distribution situation.
9. service request distribution method according to claim 1, is characterized in that,
Described processing logic comprises: stability priority logic, response speed priority logic, busy processing logic or idle processing logic.
10. a distributor for service request, is characterized in that, comprising:
Request receiving module, is configured to the service request receiving client transmission;
Logic determination module, is configured to the processing logic of the service request received according to preset rules determination described request receiver module;
Request dispatching module, is configured to described request receiver module to be received service request and is dispensed to the service server meeting the processing logic that described logic determination module is determined.
The distributor of 11. service request according to claim 10, is characterized in that, described logic determination module, comprising:
First determines submodule, is configured to the processing logic determining described service request according to the logical factor of described service request.
The distributor of 12. service request according to claim 11, is characterized in that, also comprise:
First preserves module, is configured to according to the first mapping relations between the first configuration information dynamical save logical factor and processing logic;
Described logic determination module, also comprises:
Second determines submodule, is configured to preserve according to described first described first mapping relations that module preserves and described logical factor determines the processing logic of described service request.
The distributor of 13. service request according to claim 11, is characterized in that,
Described logical factor comprises: the temporal information of the identification information that described service request is carried, the request type of described service request or described service request.
The distributor of 14. service request according to claim 13, is characterized in that,
Described identification information comprises: one or more in IP address, MAC Address and account information.
The distributor of 15. service request according to claim 10, is characterized in that, also comprise:
Second preserves module, is configured to the second mapping relations between specimens preserving logical AND service server;
Described request distribution module, comprising:
Cluster determination submodule, described second mapping relations being configured to preserve module preservation according to described second determine to meet the service server cluster of described processing logic;
Request dispatching submodule, is configured to the service server service request that described request receiver module receives be dispensed to according to load balancing in the service server cluster that described cluster determination submodule determines.
The distributor of 16. service request according to claim 15, is characterized in that, described second preserves module, comprising:
First preserves submodule, is configured to according to the second mapping relations between the second configuration information dynamical save processing logic and service server.
17. service request distributors according to claim 15, is characterized in that, described second preserves module, also comprises:
Second preserves submodule, is configured to the distribution situation according to service request processing logic described in preset time period, determines and preserve second mapping relations between processing logic and service server of mating described distribution situation.
18. service request distributors according to claim 10, is characterized in that,
Described processing logic comprises: stability priority logic, response speed priority logic, busy processing logic or idle processing logic.
The distributor of 19. 1 kinds of service request, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Receive the service request that client sends;
The processing logic of described service request is determined according to preset rules;
Described service request is dispensed to the service server meeting described processing logic.
CN201510921188.8A 2015-12-11 2015-12-11 Service request distribution method and device Active CN105553870B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510921188.8A CN105553870B (en) 2015-12-11 2015-12-11 Service request distribution method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510921188.8A CN105553870B (en) 2015-12-11 2015-12-11 Service request distribution method and device

Publications (2)

Publication Number Publication Date
CN105553870A true CN105553870A (en) 2016-05-04
CN105553870B CN105553870B (en) 2020-03-17

Family

ID=55832808

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510921188.8A Active CN105553870B (en) 2015-12-11 2015-12-11 Service request distribution method and device

Country Status (1)

Country Link
CN (1) CN105553870B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106357435A (en) * 2016-08-31 2017-01-25 广州唯品会信息科技有限公司 Matching method and device for same computer room
CN106385437A (en) * 2016-08-31 2017-02-08 广州唯品会信息科技有限公司 Cluster selecting method and device
CN107528885A (en) * 2017-07-17 2017-12-29 阿里巴巴集团控股有限公司 A kind of service request processing method and device
CN108156236A (en) * 2017-12-22 2018-06-12 平安养老保险股份有限公司 Service request processing method, device, computer equipment and storage medium
CN108563514A (en) * 2018-03-16 2018-09-21 阿里巴巴集团控股有限公司 Access method, application and the electronic equipment of application configuration service
CN108667639A (en) * 2017-03-29 2018-10-16 腾讯科技(深圳)有限公司 A kind of method for managing resource under privately owned cloud environment and management server
CN108768878A (en) * 2018-06-06 2018-11-06 北京奇艺世纪科技有限公司 A kind of SiteServer LBS, method, apparatus and load-balancing device
CN109669737A (en) * 2018-12-19 2019-04-23 百度在线网络技术(北京)有限公司 Application processing method, device, equipment and medium
CN113079110A (en) * 2021-04-23 2021-07-06 盛立安元科技(杭州)股份有限公司 Message processing method, device, equipment, storage medium and program product
CN113312154A (en) * 2021-06-30 2021-08-27 北京微纳星空科技有限公司 Method, system, equipment and storage medium for scheduling satellite service resources
CN113434175A (en) * 2021-06-29 2021-09-24 平安科技(深圳)有限公司 Data processing method, device, storage medium and equipment
CN114466066A (en) * 2022-04-13 2022-05-10 北京指掌易科技有限公司 Web-based reverse proxy method, device, medium and electronic equipment
CN116048928A (en) * 2023-03-27 2023-05-02 新华三技术有限公司 Service monitoring method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102186165A (en) * 2011-05-06 2011-09-14 中兴通讯股份有限公司 Method for realization of virtual authentication/authorization/accounting (AAA) server and AAA server
CN103024001A (en) * 2012-11-30 2013-04-03 中兴通讯股份有限公司 Business scheduling method and device, and fusion equipment
CN103312629A (en) * 2012-03-09 2013-09-18 深圳市腾讯计算机系统有限公司 Method, device and system of CDN (content delivery network) flow distribution
CN103763343A (en) * 2013-12-27 2014-04-30 乐视网信息技术(北京)股份有限公司 Method and device for processing service access
CN104333600A (en) * 2014-11-13 2015-02-04 浪潮(北京)电子信息产业有限公司 Cloud computing based resource managing method and system
CN104734983A (en) * 2013-12-24 2015-06-24 中国移动通信集团公司 Scheduling system, method and device for service data request
CN104811488A (en) * 2015-04-13 2015-07-29 深信服网络科技(深圳)有限公司 Load balancing equipment-based session keeping method and system and load balancing equipment
US20150271260A1 (en) * 2008-04-28 2015-09-24 International Business Machines Corporation Method and apparatus for load balancing in network based telephony application
CN105119997A (en) * 2015-08-31 2015-12-02 广州市优普计算机有限公司 Data processing method of cloud computing system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150271260A1 (en) * 2008-04-28 2015-09-24 International Business Machines Corporation Method and apparatus for load balancing in network based telephony application
CN102186165A (en) * 2011-05-06 2011-09-14 中兴通讯股份有限公司 Method for realization of virtual authentication/authorization/accounting (AAA) server and AAA server
CN103312629A (en) * 2012-03-09 2013-09-18 深圳市腾讯计算机系统有限公司 Method, device and system of CDN (content delivery network) flow distribution
CN103024001A (en) * 2012-11-30 2013-04-03 中兴通讯股份有限公司 Business scheduling method and device, and fusion equipment
CN104734983A (en) * 2013-12-24 2015-06-24 中国移动通信集团公司 Scheduling system, method and device for service data request
CN103763343A (en) * 2013-12-27 2014-04-30 乐视网信息技术(北京)股份有限公司 Method and device for processing service access
CN104333600A (en) * 2014-11-13 2015-02-04 浪潮(北京)电子信息产业有限公司 Cloud computing based resource managing method and system
CN104811488A (en) * 2015-04-13 2015-07-29 深信服网络科技(深圳)有限公司 Load balancing equipment-based session keeping method and system and load balancing equipment
CN105119997A (en) * 2015-08-31 2015-12-02 广州市优普计算机有限公司 Data processing method of cloud computing system

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106385437A (en) * 2016-08-31 2017-02-08 广州唯品会信息科技有限公司 Cluster selecting method and device
CN106357435A (en) * 2016-08-31 2017-01-25 广州唯品会信息科技有限公司 Matching method and device for same computer room
CN108667639B (en) * 2017-03-29 2022-01-11 腾讯科技(深圳)有限公司 Resource management method and management server in private cloud environment
CN108667639A (en) * 2017-03-29 2018-10-16 腾讯科技(深圳)有限公司 A kind of method for managing resource under privately owned cloud environment and management server
CN107528885B (en) * 2017-07-17 2021-01-26 创新先进技术有限公司 Service request processing method and device
CN107528885A (en) * 2017-07-17 2017-12-29 阿里巴巴集团控股有限公司 A kind of service request processing method and device
CN108156236A (en) * 2017-12-22 2018-06-12 平安养老保险股份有限公司 Service request processing method, device, computer equipment and storage medium
CN108563514A (en) * 2018-03-16 2018-09-21 阿里巴巴集团控股有限公司 Access method, application and the electronic equipment of application configuration service
CN108563514B (en) * 2018-03-16 2021-10-01 创新先进技术有限公司 Method for accessing application configuration service, application and electronic equipment
CN108768878A (en) * 2018-06-06 2018-11-06 北京奇艺世纪科技有限公司 A kind of SiteServer LBS, method, apparatus and load-balancing device
CN109669737A (en) * 2018-12-19 2019-04-23 百度在线网络技术(北京)有限公司 Application processing method, device, equipment and medium
CN109669737B (en) * 2018-12-19 2023-04-18 百度在线网络技术(北京)有限公司 Application processing method, device, equipment and medium
CN113079110A (en) * 2021-04-23 2021-07-06 盛立安元科技(杭州)股份有限公司 Message processing method, device, equipment, storage medium and program product
CN113079110B (en) * 2021-04-23 2022-08-30 盛立安元科技(杭州)股份有限公司 Message processing method, device, equipment and storage medium
CN113434175A (en) * 2021-06-29 2021-09-24 平安科技(深圳)有限公司 Data processing method, device, storage medium and equipment
CN113434175B (en) * 2021-06-29 2024-02-27 平安科技(深圳)有限公司 Data processing method, device, storage medium and equipment
CN113312154A (en) * 2021-06-30 2021-08-27 北京微纳星空科技有限公司 Method, system, equipment and storage medium for scheduling satellite service resources
CN114466066B (en) * 2022-04-13 2022-07-22 北京指掌易科技有限公司 Web-based reverse proxy method, device, medium and electronic equipment
CN114466066A (en) * 2022-04-13 2022-05-10 北京指掌易科技有限公司 Web-based reverse proxy method, device, medium and electronic equipment
CN116048928A (en) * 2023-03-27 2023-05-02 新华三技术有限公司 Service monitoring method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105553870B (en) 2020-03-17

Similar Documents

Publication Publication Date Title
CN105553870A (en) Method and device for allocating service request
CN104954468A (en) Resource allocation method and resource allocation device
CN103581299B (en) Service scheduling method, apparatus and system
US20130254261A1 (en) System and Method of Managing Servers for Streaming Desktop Applications
CN104834722A (en) CDN (Content Delivery Network)-based content management system
CN107635010B (en) Traffic scheduling method and device, computer readable storage medium and electronic equipment
CN109510878B (en) Long connection session keeping method and device
CN102523302A (en) Load balance method for virtual machine cluster, server and system
CN102624884B (en) A kind of method, device and equipment for receiving P2P resource
CN103188574A (en) Method and system for transmitting network video
CN107645386B (en) Method and device for acquiring data resources
CN105407013A (en) User online state statistical system and method
CN113300955B (en) Method, system and equipment for determining paths between nodes in content distribution network
CN104980417A (en) UGC file distribution method and equipment
CN112492372A (en) Comment message display method and device, electronic equipment, system and storage medium
CN110798495B (en) Method and server for end-to-end message push in cluster architecture mode
EP3832988A1 (en) Node traffic dispatching method and apparatus, electronic device, and storage medium
CN105681266A (en) Communication cluster method and device for MMTel (MultiMedia Telephony)
CN103442257A (en) Method, device and system for achieving flow resource management
CN113472846B (en) Message processing method, device, equipment and computer readable storage medium
CN112954084B (en) Edge computing processing method, network function example and edge service management and control center
US10237592B2 (en) Method and apparatus for video transmission
CN104346101A (en) Dynamic storage space allocation system and method
CN115695395A (en) Message queue telemetry transmission network access method, controller and gateway
CN111901421A (en) Data processing method and related equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant