CN108769101A - A kind of information processing method, client and system - Google Patents

A kind of information processing method, client and system Download PDF

Info

Publication number
CN108769101A
CN108769101A CN201810288992.0A CN201810288992A CN108769101A CN 108769101 A CN108769101 A CN 108769101A CN 201810288992 A CN201810288992 A CN 201810288992A CN 108769101 A CN108769101 A CN 108769101A
Authority
CN
China
Prior art keywords
server
service
quality
information
service quality
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
CN201810288992.0A
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201810288992.0A priority Critical patent/CN108769101A/en
Publication of CN108769101A publication Critical patent/CN108769101A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements

Abstract

This application discloses a kind of information processing methods, client and system, this method includes response service invocation request, obtain pre-stored server includes the information on services of quality of service information, according to quality of service information and preset selection strategy selection target server, and then service invocation request is sent to destination server, simultaneously in calling process, acquisition characterizes the Service Quality Metrics of the current operating conditions of the destination server, and then according to the Service Quality Metrics and preset service quality more new strategy of acquisition, determine whether to be updated the quality of service information of destination server, the quality of service information of destination server is updated to realize, service is so called according to the quality of service information selection target server of dynamic change, improve the validity of server used.

Description

A kind of information processing method, client and system
Technical field
This application involves distributed information technical field of data processing, more specifically to a kind of information processing method, Client and system.
Background technology
Distributed computing technology is the effective means of the performance and complexity that solve large scale system, common distributed computing technology In, the information on services of itself is registered to service register center by multiple servers as the provider of service, among service registration Part stores the information on services of registered server, and client, that is, service consumer is obtained from service registration middleware and serviced Information is simultaneously buffered in local, and client selects a service when receiving service invocation request, according to the information on services of caching Device is simultaneously sent to service invocation request.
Wherein, client selects a server using polling mode, i.e., alternately sends out service invocation request in order It is sent on server, which has ignored the state difference of different server in operation, and operating status is caused preferably to service Device does not receive more request, and the poor server of operating status receives excessive request, i.e., is taken in Distributed Services The utilization ratio of business device is relatively low.
Invention content
In view of this, a kind of information processing method of the application offer, client and system, to solve to take in Distributed Services It is engaged in the relatively low problem of utilization ratio of device.
To achieve the goals above, it is proposed that scheme it is as follows:
A kind of information processing method, the method includes:
Service invocation request is responded, the information on services of pre-stored server is obtained, the information on services includes service The quality of service information of device;
According to the quality of service information of server and preset selection strategy, selection target server;
The service invocation request is sent to the destination server, and during calling the destination server Service Quality Metrics are acquired, the Service Quality Metrics characterize the current operating conditions of the destination server;
According to the Service Quality Metrics and preset service quality more new strategy, it is determined whether to described pre-stored The quality of service information of the destination server is updated;
When determination is updated the quality of service information of the pre-stored destination server, to described pre- The quality of service information of the destination server first stored is updated accordingly.
A kind of client, including:
Acquiring unit obtains the information on services of pre-stored server, the service for responding service invocation request Information includes the quality of service information of server;
Selecting unit is used for the quality of service information according to server and preset selection strategy, selection target server;
Transmission unit, for the service invocation request to be sent to the destination server;
Collecting unit, for acquiring Service Quality Metrics, the Service Quality during calling the destination server Figureofmerit characterizes the current operating conditions of the destination server;
Determination unit, for according to the Service Quality Metrics and preset service quality more new strategy, it is determined whether right The quality of service information of the pre-stored destination server is updated;
Updating unit, for being carried out more when the determining quality of service information to the pre-stored destination server When new, the quality of service information of the pre-stored destination server is updated accordingly.
A kind of information processing system, including:At least one client, middleware and multiple servers;
The server for the information on services of itself to be registered in the middleware, and becomes in information on services The information on services of more new registration when change, and provide calling service for the client;
The middleware for the information on services of storage server registration, and the update notification of information on services is pushed away in real time Give the client;
The client for obtaining simultaneously storing service information from the middleware, and monitors the change of information on services, when Receive the information on services updated storage when the update notification;
And response service invocation request, the information on services of pre-stored server is obtained, the information on services includes The quality of service information of server, according to the quality of service information of server and preset selection strategy, selection target server, The service invocation request is sent to the destination server, and acquires service during calling the destination server Quality index, the Service Quality Metrics characterize the current operating conditions of the destination server, are referred to according to the service quality Mark and preset service quality more new strategy, it is determined whether the service quality of the pre-stored destination server is believed Breath is updated, when determination is updated the quality of service information of the pre-stored destination server, to institute The quality of service information for stating the pre-stored destination server is updated accordingly.
It can be seen from the above technical scheme that responding service invocation request in application scheme, obtain pre-stored Server include quality of service information information on services, and then according to the quality of service information of server and preset selection Policy selection destination server, and then service invocation request is sent to destination server.Simultaneously in calling process, acquisition tables The Service Quality Metrics of the current operating conditions of the destination server are levied, and then according to the Service Quality Metrics of acquisition and are preset Service quality more new strategy, judge whether that the quality of service information to the destination server of storage is updated, to realize The quality of service information of the destination server of storage is updated.As it can be seen that being provided with service in application scheme for server Quality information, the quality of service information can reflect the quality of operation condition of server, and according to being acquired in calling process Service Quality Metrics dynamically update the quality of service information.I.e. dynamically to the operating status of server carry out with Track, and then select offer to call the server serviced according to the quality of service information of server.In this way, when the operation shape of server When state is preferable, server can receive more call request, and when server is abnormal, i.e., operating status is poor When, service quality will necessarily be deteriorated, and the call request to be sent to the server can also be reduced.Improve Distributed Services The utilization ratio of middle server, and then also improve the service quality of Distributed Services.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of flow chart of information processing method disclosed in the embodiment of the present application;
Fig. 2 is a kind of flow chart of information processing method disclosed in another embodiment of the application;
Fig. 3 is a kind of flow chart of selection target player method disclosed in the embodiment of the present application;
Fig. 4 is the stream that a kind of quality of service information to destination server is updated method disclosed in the embodiment of the present application Cheng Tu;
Fig. 5 is a kind of block diagram of client disclosed in another embodiment of the application.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall in the protection scope of this application.
The application provides a kind of information processing method, and this method can be applied to client, and as described in Figure 1, this method includes:
S100, response service invocation request, obtain the information on services of pre-stored server, the information on services includes The quality of service information of server;
Wherein, when client user needs the i.e. server providing services of ISP, one can be triggered on the client A call request after client detects the call request, responds the request.
Specifically, being established in client has a connection pool, establishment is stored in the connection pool services with ISP The connection of device, client read the link information in connection pool, include the clothes of the server of each connection in the link information Business information, information on services includes quality of service information, and it is visitor which, which characterizes server in the process of running, Family end provides the quality of service quality, further includes the information such as the essential information for having server, input/output argument.Wherein, client End can initialize the quality of service information of server, such as service quality when the connection pool to foundation initializes Information is numeric form, then is one identical service quality value of the server assignment of all connections when initializing, such as equal assignment It is 1.
S101, the quality of service information according to server and preset selection strategy, selection target server.
Wherein, when selecting the destination server to be called, using the preset selection strategy, the target of selection can be enabled Server is that the probability of the measured server of Service Quality is larger, is that the probability of server in poor service is smaller.Specifically, choosing It is the connection with destination server selected in connection pool to select destination server.
S102, server calls request is sent to destination server, and is acquired during invocation target server Service Quality Metrics, the Service Quality Metrics characterize the current operating conditions of the destination server.
Wherein, call request is sent to by destination server by the connection with the destination server, service quality refers to Mark can reflect the current operating conditions of destination server, when including request response time, error number etc., such as request response Between it is longer, error number is more, illustrates that the current operating conditions of destination server are more bad, that is, the service quality provided is poorer.
S103, according to Service Quality Metrics and preset service quality more new strategy, it is determined whether to pre-stored mesh The quality of service information of mark server is updated.
S104, when determine the quality of service information of pre-stored destination server is updated when, to prestoring The quality of service information of destination server updated accordingly.
Wherein, acquisition Service Quality Metrics can reflect the service quality provided in destination server current operating conditions Quality, so can determine that the service quality of destination server improves or degenerates using these data, and then can be with It improves service quality value, or reduces service quality value.Specifically, the destination server for including to the link information in connection pool Quality of service information is updated accordingly.
In above-described embodiment, the service invocation request of client end response user triggering obtains pre-stored each service Device include quality of service information information on services, and then according to the quality of service information of server and preset selection strategy Selection target server, and then service invocation request is sent to destination server.Simultaneously in calling process, acquisition characterization institute The Service Quality Metrics of the current operating conditions of destination server are stated, and then according to the Service Quality Metrics of acquisition and preset clothes Business quality more new strategy, it is determined whether the quality of service information of the destination server of storage is updated, to realize to depositing The quality of service information of the destination server of storage is updated.As it can be seen that being provided with service quality in application scheme for server Information, the quality of service information can reflect the quality of operation condition of server, and according to the clothes of the acquisition in calling process Business quality index dynamically updates the quality of service information.I.e. dynamically to the operating status of server into line trace, And then it is selected to provide the server for calling service according to the quality of service information of server.In this way, when the operating status of server When preferable, server can receive more call request, and when server is abnormal, i.e., operating status is poor, Service quality will necessarily be deteriorated, and the call request to be sent to the server can also be reduced.It improves in Distributed Services and takes The utilization ratio of business device, and then also improve the service quality of Distributed Services.
In another embodiment of the application, information on services further includes unavailable mark, at the unavailable mark characterization server In down state, that is, the server for being in down state has unavailable mark, then information processing method, as shown in Fig. 2, Including:
S200, response service invocation request, obtain the information on services of pre-stored server.
S201, it is based on unavailable mark, judges whether available server.
Specifically, whether including unavailable mark in judging the information on services of each server, if the clothes of each server Be engaged in information in all include unavailable mark, i.e., each server be identified as unavailable namely Servers-all all in Down state is unavailable server, thens follow the steps S202, otherwise, illustrates, there are available server, to then follow the steps S203。
If available server S202, is not present, error message is returned.
If S203, there are available server, according to the quality of service information of available server and preset selection strategy, The selection target server from available server.
Specifically, select available server from server, form available server list comprising available service The information on services of device, and then according to the quality of service information of available server and preset selection strategy, from available server Selection target server.
S204, service invocation request is sent to destination server, and acquires clothes during invocation target server Business quality index, the Service Quality Metrics characterize the current operating conditions of the destination server.
S205, according to Service Quality Metrics and preset service quality more new strategy, it is determined whether to pre-stored mesh The quality of service information of mark server is updated.
S206, when determine the quality of service information of pre-stored destination server is updated when, to prestoring The quality of service information of destination server updated accordingly.
The embodiment of above-mentioned steps S200 is similar to the embodiment of step S100, step S204- steps S206 and step The embodiment of rapid S102-S104 is similar, and details are not described herein.
In above-described embodiment, by the unavailable mark of setting, available server is picked out from Servers-all, with Just it calls available server to provide service, ensures the validity called.
In above-described embodiment, also available server is identified using service quality value, specifically, quality of service information is number The form of value, the server that setting service quality value is 0 is unavailable server, as long as that is, service quality value is not 0, is then illustrated The server is in available mode, is available server.In this way, when identifying available server, by judging each server Information on services in service quality value whether be 0 to determine whether the server is available server, and then to available service Device sends call request, improves the validity of calling.
In one embodiment of the application, it is service quality value to disclose quality of service information, which is numerical value shape When formula, using the specific implementation mode of the policy selection destination server of Weighted random, as shown in figure 3, including:
S300, calculate all available servers service quality value total service quality value.
S301, within the scope of total service quality value, distribute corresponding service quality value area for each available server Between, wherein it is high that the range in the corresponding service quality value section of the low available server of service quality value is less than service quality value The range in the corresponding service quality value section of available server, the corresponding service quality value section composition of all available servers Total size is identical as total service quality value range.
S302, the random number obtained within the scope of total service quality value.
S303, using with random digit in the corresponding available server in service quality value section as destination server.
Specifically, being based upon the corresponding service quality value section of each available server distribution, traversal is every successively The corresponding service quality value section of a available server, until the corresponding service quality value section of the random number for finding with obtaining, And then determine destination server.
Citing illustrates above-described embodiment:There are 3 available servers A, B and C in connection pool, available server A's Service quality value is 3, and the service quality value of available server B is 8, and the service quality value of available server C is 9, then total service Mass value 20, random number then [0,20) section obtain.Specifically, the service quality value section for being available server A distribution is It is [3,10] that [0,2], which is the service quality value section of available server B distribution, is the service quality value of available server C distribution [11,20) section is.Then, a random number is generated using Random randomizers, the random number such as generated is 18, then Select available server C for destination server.
It is that the lower available server A of service quality value is assigned with the service quality value section that width is 3 in the example [0,2] is the service quality value section [3,10] that the higher available server B of service quality value is assigned with that width is 8, for service The highest available server C of mass value be assigned with width be 9 service quality value section [11,20), i.e., with available server Service quality value become larger, the range for the service quality value section of its distribution is also bigger, wherein high for service quality value Available server B and C be assigned with altogether service quality value section that width is 17 [3,20), enable high available of selection service quality value The probability of server is larger, selects the probability of the low available server of service quality value smaller, i.e., is asked when client sends to call When asking very frequent, the call request for being sent to available server B and available server C is more, wherein is sent to available service The call request of device C is most, and the call request for being sent to available server A is minimum, it will be understood that still has small number of tune It is sent to available server A with request, if the operating status of available server A improves, according to the calling available service of acquisition Service Quality Metrics in device A, can be to the service quality value of the available server A of storage, the update upgraded, so protects The dynamic update for having demonstrate,proved the service quality value of available server A, reaches effective use to available server A.
In one embodiment of the application, the Service Quality Metrics of acquisition include the response time called and error number, then really The fixed process that the quality of service information of destination server is updated, as shown in figure 4, including:
S400, judge in the first preset duration, whether the average value of all response times of acquisition is more than first threshold, If being not more than, S401 is executed;If more than then executing S404.
Specifically, during calling the destination server, response time and the error number of this calling are acquired, into And calculate in the first preset duration, the average value of all response times of acquisition, and judge whether the average value is more than first The maximum response time that threshold value, that is, system allows.
S401, judge in the second preset duration, whether the error number sum of acquisition is 0;If 0, then step is executed Rapid S402;If not 0, then terminate to update.
Specifically, the second preset duration can be more than the first preset duration, i.e., the response time is utilized in one section of smaller duration The operating status for assessing destination server assesses the operating status of destination server in one section of longer duration using error number, To determine whether to carry out upgrading update.
S402, determination carry out upgrading update to the quality of service information of pre-stored destination server, and judgement is deposited in advance Whether the service quality value of the destination server of storage is less than the first quality threshold.
Specifically, the value range that service quality value can be arranged is [1,10], the first quality threshold is 10, the second mass threshold Value is 1, when carrying out upgrading update, judges whether the service quality value of pre-stored destination server is less than 10.
If S403, being less than first quality threshold, the service quality value of pre-stored destination server is added one, It obtains upgrading updated service quality value;If being equal to the first quality threshold, terminates to update, that is, keep pre-stored target The service quality value 10 of server.
S404, judge in the first preset duration, whether the error number summation of acquisition is more than second threshold;If less In second threshold, S405 is thened follow the steps, if more than second threshold, thens follow the steps S407.
Wherein, second threshold, which is system, allows maximum error number.
S405, determination carry out degradation update to the quality of service information of pre-stored destination server, and judgement is deposited in advance Whether the service quality value of the destination server of storage is more than the second quality threshold.
Specifically, judging whether the service quality value of pre-stored destination server is equal to 1.
S406, if more than second quality threshold, then the service quality value of pre-stored destination server is subtracted one, Obtain the updated service quality value that degrades;If being equal to second quality threshold, terminates to update, that is, keep pre-stored The service quality value 1 of destination server.
S407, the destination server is labeled as unavailable server.
Specifically, adding unavailable mark in the information on services of the destination server.And for being in connection pool The server of down state, client are regularly deleted in connection pool according to unavailable mark and are somebody's turn to do in down state The connection of server.
And in another embodiment for identifying available server using service quality value, the operation that step S407 is executed is then For the service quality value of pre-stored destination server is updated to 0.
Above embodiments describe the processes being updated to service quality value, wherein when shorter first is default In length, the average value of response time, which is less than system, allows the maximum response time, and in longer second preset duration, mistake When number summation is 0, determination carries out upgrading update to the service quality value of destination server;And when shorter first is default In length, the average value of response time, which is more than system, allows maximum response time, error number summation to allow most no more than system It when serious mistake number, determines and degradation update is carried out to the service quality value of destination server, which can be simply and effectively to clothes Business mass value is updated.
The embodiment of the present application also provides a kind of client, and as described in Figure 5, which includes:
Acquiring unit 500 obtains the information on services of pre-stored server for responding service invocation request, described Information on services includes the quality of service information of server;
Selecting unit 501, for being handled according to the quality of service information of server and preset selection, selection target service Device;
Transmission unit 502, for the service invocation request to be sent to the destination server;
Collecting unit 503, for acquiring Service Quality Metrics, the service during calling the destination server Quality index characterizes the current operating conditions of the destination server;
Determination unit 504, for according to the Service Quality Metrics and preset service quality more new strategy, it is determined whether The quality of service information of the pre-stored destination server is updated;
Updating unit 505, for when determine to the quality of service information of the pre-stored destination server into When row update, the quality of service information of the pre-stored destination server is updated accordingly.
Preferably, the information on services further includes unavailable mark, and the unavailable mark characterization server is in can not Use state;The client further includes:
Judging unit judges whether available server for being based on the unavailable mark;
Returning unit, for when there is no available server, returning to error message;
The selecting unit 501, specifically for when there are available server, according to the Service Quality of the available server Measure information and preset selection strategy, the selection target server from the available server.
Preferably, the quality of service information is service quality value, and the service quality value is indicated with numerical value,
The selecting unit 501 includes:
Computation subunit, total service quality value of the service quality value for calculating all available servers;
Subelement is distributed, within the scope of total service quality value, being corresponding to it for the distribution of each available server Service quality value section, wherein the range in the corresponding service quality value section of the low available server of service quality value is less than The range in the corresponding service quality value section of the high available server of service quality value, the corresponding Service Quality of all available servers The total size of magnitude section composition is identical as total service quality value range;
Subelement is obtained, for obtaining the random number within the scope of total service quality value;
Coupling subelement, for using with the random digit in the corresponding available server in service quality value section as Destination server.
Preferably, the Service Quality Metrics include:The response time of calling and error number, the determination unit 504 are wrapped It includes:
First judgment sub-unit, for judging in the first preset duration, the average value of the response time of acquisition is It is no to be more than first threshold;
Second judgment sub-unit, for when judging result is no more than the first threshold, judging when second is default In length, whether the error number of acquisition is 0;If 0, it is determined that the service to the pre-stored destination server Quality information carries out upgrading update;
Third judgment sub-unit, for when judging result is more than the first threshold, judging default described first In duration, whether the error number summation of acquisition is more than second threshold;If being not more than the second threshold, it is determined that described The quality of service information of the pre-stored destination server carries out degradation update, if more than the second threshold, then by institute It states destination server and is labeled as unavailable server.
Another embodiment of the application also provides a kind of information processing system, which includes:At least one client, centre Part and multiple servers, wherein
Server for the information on services of itself to be registered in middleware, and is updated when information on services changes The information on services of registration, and provide calling service for client;
Wherein, the information on services of registration includes:1) essential information serviced:Service name, address of service, port numbers, association Discuss type;2) import of services parameter list:Type, title and the explanation of input parameter;3) service output parameter list:Output ginseng Several type, title and explanations;4) service ability:Maximum QPS (query rate per second, the Query Per that server is supported Second), available time of a service.
Middleware for the information on services of storage server registration, and the update notification real time push of information on services is given Client;
Wherein, which is the server based on Zookeeper frameworks, includes specific update in the update notification Content.
Client for obtaining simultaneously storing service information from the middleware, and monitors the change of information on services, works as reception The information on services updated storage when to the update notification;
And response service invocation request, the information on services of pre-stored server is obtained, the information on services includes The quality of service information of server, according to the quality of service information of server and preset selection strategy, selection target server, The service invocation request is sent to the destination server, and acquires service during calling the destination server Quality index, the Service Quality Metrics characterize the current operating conditions of the destination server, are referred to according to the service quality Mark and preset service quality more new strategy, it is determined whether to the quality of service information of the pre-stored destination server into Capable update, when determination is updated the quality of service information of the pre-stored destination server, to pre-stored The quality of service information of the destination server is updated accordingly;
Specifically, being established in client has a connection pool, and connection pool is carried out initially according to the information on services got Change, in initialization procedure, the initial value of quality of service information is added in information on services.
In information processing system disclosed in above-described embodiment, update notification can be pushed to client by middleware in real time End, and then client is timely updated the information on services being locally stored according to the update notification listened to, so can It enables client timely recognize service state, realizes the automatic timely discovery of service.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only that A little elements, but also include other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other The difference of embodiment, just to refer each other for identical similar portion between each embodiment.
The foregoing description of the disclosed embodiments enables professional and technical personnel in the field to realize or use the application. Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein General Principle can in other embodiments be realized in the case where not departing from spirit herein or range.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest range caused.

Claims (10)

1. a kind of information processing method, which is characterized in that the method includes:
Service invocation request is responded, obtains the information on services of pre-stored server, the information on services includes server Quality of service information;
According to the quality of service information of server and preset selection strategy, selection target server;
The service invocation request is sent to the destination server, and is acquired during calling the destination server Service Quality Metrics, the Service Quality Metrics characterize the current operating conditions of the destination server;
According to the Service Quality Metrics and preset service quality more new strategy, it is determined whether to described pre-stored described The quality of service information of destination server is updated;
When determination is updated the quality of service information of the pre-stored destination server, deposited in advance to described The quality of service information of the destination server of storage is updated accordingly.
2. method as described in claim 1, which is characterized in that the information on services further includes unavailable mark, described unavailable Mark characterization server is in down state;
It is described before the quality of service information according to the server and preset selection strategy, selection target server Method further includes:
Based on the unavailable mark, available server is judged whether;
If available server is not present, error message is returned;
If there are available server, according to the quality of service information of the available server and preset selection strategy, from institute State selection target server in available server.
3. method as claimed in claim 2, which is characterized in that the quality of service information of the server is service quality value, institute It states service quality value to indicate with numerical value, the quality of service information according to the available server and preset selection strategy, Selection target server includes from the available server:
Calculate total service quality value of the service quality value of all available servers;
Within the scope of total service quality value, corresponding service quality value section is distributed for each available server, In, the range in the corresponding service quality value section of the low available server of service quality value is less than the high available clothes of service quality value It is engaged in the range in the corresponding service quality value section of device, the total size of the corresponding service quality value section composition of all available servers It is identical as total service quality value range;
Obtain the random number within the scope of total service quality value;
Using with the random digit in the corresponding available server in service quality value section as destination server.
4. method as described in claim 1, which is characterized in that the Service Quality Metrics include:The response time of calling and mistake Accidentally number;
It is described according to the Service Quality Metrics and preset service quality more new strategy, it is determined whether to described pre-stored The quality of service information of the destination server be updated including:
Judge in the first preset duration, whether the average value of the response time of acquisition is more than first threshold;
If being not more than the first threshold, judge in the second preset duration, whether the error number summation of acquisition is 0, If 0, it is determined that carry out upgrading update to the quality of service information of the pre-stored destination server;
If more than the first threshold, then judge in first preset duration, whether the error number summation of acquisition is big In second threshold, if being not more than the second threshold, it is determined that the Service Quality of the pre-stored destination server Amount information carries out degradation update, if more than the second threshold, then the destination server is labeled as unavailable server.
5. method as claimed in claim 4, which is characterized in that the quality of service information is service quality value, the Service Quality Magnitude is indicated with numerical value, when determination carries out upgrading update to the quality of service information of the pre-stored destination server Or when degradation update, carrying out corresponding update to the quality of service information of the pre-stored destination server includes:
When determining that carrying out upgrading to the service quality value of the pre-stored destination server updates, judge described pre- Whether the service quality value of the destination server first stored is less than the first quality threshold;
If being less than first quality threshold, the service quality value of the pre-stored destination server is added one, It obtains upgrading updated service quality value;
When determine degrade to the service quality value of the pre-stored destination server when, judge described to deposit in advance Whether the service quality value of the destination server of storage is more than the second quality threshold;
If more than second quality threshold, then the service quality value of the pre-stored destination server is subtracted one, Obtain the updated service quality value that degrades.
6. a kind of client, which is characterized in that including:
Acquiring unit obtains the information on services of pre-stored server, the information on services for responding service invocation request Quality of service information including server;
Selecting unit is used for the quality of service information according to server and preset selection strategy, selection target server;
Transmission unit, for the service invocation request to be sent to the destination server;
Collecting unit, for acquiring Service Quality Metrics during calling the destination server, the service quality refers to Mark characterizes the current operating conditions of the destination server;
Determination unit, for according to the Service Quality Metrics and preset service quality more new strategy, it is determined whether to described The quality of service information of the pre-stored destination server is updated;
Updating unit, for being updated to the quality of service information of the pre-stored destination server when determination When, the quality of service information of the pre-stored destination server is updated accordingly.
7. client as claimed in claim 6, which is characterized in that the information on services further includes unavailable mark, it is described can not It is in down state with mark characterization server, the client further includes:
Judging unit judges whether available server for being based on the unavailable mark;
Returning unit, for when there is no available server, returning to error message;
The selecting unit, specifically for when there are available server, according to the quality of service information of the available server With preset selection strategy, the selection target server from the available server.
8. client as claimed in claim 7, which is characterized in that the quality of service information is service quality value, the service Mass value indicates that the selecting unit includes with numerical value:
Computation subunit, total service quality value of the service quality value for calculating all available servers;
Subelement is distributed, within the scope of total service quality value, corresponding clothes to be distributed for each available server Business mass value section, wherein the range in the corresponding service quality value section of the low available server of service quality value is less than service The range in the corresponding service quality value section of the high available server of mass value, the corresponding service quality value of all available servers The total size of section composition is identical as total service quality value range;
Subelement is obtained, for obtaining the random number within the scope of total service quality value;
Coupling subelement, for using with the random digit in the corresponding available server in service quality value section as target Server.
9. client as claimed in claim 6, which is characterized in that the Service Quality Metrics include:The response time of calling and Error number, the determination unit include:
First judgment sub-unit, for judging in the first preset duration, whether the average value of the response time of acquisition is big In first threshold;
Second judgment sub-unit, for when judging result is no more than the first threshold, judging in the second preset duration, Whether the error number of acquisition is 0;If 0, it is determined that the service quality of the pre-stored destination server Information carries out upgrading update;
Third judgment sub-unit, for when judging result is more than the first threshold, judging in first preset duration Interior, whether the error number summation of acquisition is more than second threshold;If being not more than the second threshold, it is determined that described advance The quality of service information of the destination server of storage carries out degradation update, if more than the second threshold, then by the mesh Mark server-tag is unavailable server.
10. a kind of information processing system, which is characterized in that including:At least one client, middleware and multiple servers;
The server, for the information on services of itself to be registered in the middleware, and when information on services changes The information on services of more new registration, and provide calling service for the client;
The middleware for the information on services of storage server registration, and the update notification real time push of information on services is given The client;
The client for obtaining simultaneously storing service information from the middleware, and monitors the change of information on services, works as reception The information on services updated storage when to the update notification;
And response service invocation request, the information on services of pre-stored server is obtained, the information on services includes service The quality of service information of device, according to the quality of service information of server and preset selection strategy, selection target server, by institute It states service invocation request and is sent to the destination server, and service quality is acquired during calling the destination server Index, the Service Quality Metrics characterize the current operating conditions of the destination server, according to the Service Quality Metrics and Preset service quality more new strategy, it is determined whether to the quality of service information of the pre-stored destination server into Capable update, when determination is updated the quality of service information of the pre-stored destination server, to described pre- The quality of service information of the destination server first stored is updated accordingly.
CN201810288992.0A 2018-04-03 2018-04-03 A kind of information processing method, client and system Pending CN108769101A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810288992.0A CN108769101A (en) 2018-04-03 2018-04-03 A kind of information processing method, client and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810288992.0A CN108769101A (en) 2018-04-03 2018-04-03 A kind of information processing method, client and system

Publications (1)

Publication Number Publication Date
CN108769101A true CN108769101A (en) 2018-11-06

Family

ID=63980818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810288992.0A Pending CN108769101A (en) 2018-04-03 2018-04-03 A kind of information processing method, client and system

Country Status (1)

Country Link
CN (1) CN108769101A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365762A (en) * 2019-07-10 2019-10-22 腾讯科技(深圳)有限公司 Service processing method, device, equipment and storage medium
CN111131375A (en) * 2019-10-12 2020-05-08 平安普惠企业管理有限公司 Interface service acquisition method and device, computer equipment and storage medium
CN111277633A (en) * 2020-01-13 2020-06-12 北京奇艺世纪科技有限公司 Request processing method, server, electronic equipment and storage medium
CN111597047A (en) * 2020-05-15 2020-08-28 北京金山云网络技术有限公司 Service deployment method, device, electronic equipment and storage medium
CN112035260A (en) * 2020-09-03 2020-12-04 平安壹钱包电子商务有限公司 Service request processing method and device, computer equipment and storage medium
CN112800327A (en) * 2021-01-18 2021-05-14 北京明略软件系统有限公司 Method and device for determining target media information
CN112925628A (en) * 2021-03-29 2021-06-08 建信金融科技有限责任公司 Service management method and device
CN113014673A (en) * 2021-04-08 2021-06-22 广州趣丸网络科技有限公司 Service call optimization method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570903A (en) * 2003-07-23 2005-01-26 华为技术有限公司 A server load equalizing method
WO2011128921A1 (en) * 2010-04-15 2011-10-20 Neptuny S.R.L. Automated service time estimation method for it system resources
CN105119751A (en) * 2015-09-08 2015-12-02 浙江工业大学 Service evaluation and selection method based on environment real-time perceiving
CN106034073A (en) * 2015-03-20 2016-10-19 网宿科技股份有限公司 Multipath transmission optimization method based on content distribution network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1570903A (en) * 2003-07-23 2005-01-26 华为技术有限公司 A server load equalizing method
WO2011128921A1 (en) * 2010-04-15 2011-10-20 Neptuny S.R.L. Automated service time estimation method for it system resources
CN106034073A (en) * 2015-03-20 2016-10-19 网宿科技股份有限公司 Multipath transmission optimization method based on content distribution network
CN105119751A (en) * 2015-09-08 2015-12-02 浙江工业大学 Service evaluation and selection method based on environment real-time perceiving

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王弦,刘建勋,曹步清,唐明董: ""面向云环境的一种负载感知的服务选择方法"", 《小型微型计算机系统》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365762A (en) * 2019-07-10 2019-10-22 腾讯科技(深圳)有限公司 Service processing method, device, equipment and storage medium
CN111131375A (en) * 2019-10-12 2020-05-08 平安普惠企业管理有限公司 Interface service acquisition method and device, computer equipment and storage medium
CN111131375B (en) * 2019-10-12 2022-10-04 平安普惠企业管理有限公司 Interface service acquisition method, device, computer equipment and storage medium
CN111277633A (en) * 2020-01-13 2020-06-12 北京奇艺世纪科技有限公司 Request processing method, server, electronic equipment and storage medium
CN111277633B (en) * 2020-01-13 2022-02-01 北京奇艺世纪科技有限公司 Request processing method, server, electronic equipment and storage medium
CN111597047A (en) * 2020-05-15 2020-08-28 北京金山云网络技术有限公司 Service deployment method, device, electronic equipment and storage medium
CN112035260A (en) * 2020-09-03 2020-12-04 平安壹钱包电子商务有限公司 Service request processing method and device, computer equipment and storage medium
CN112800327A (en) * 2021-01-18 2021-05-14 北京明略软件系统有限公司 Method and device for determining target media information
CN112925628A (en) * 2021-03-29 2021-06-08 建信金融科技有限责任公司 Service management method and device
CN113014673A (en) * 2021-04-08 2021-06-22 广州趣丸网络科技有限公司 Service call optimization method and device

Similar Documents

Publication Publication Date Title
CN108769101A (en) A kind of information processing method, client and system
US6898635B2 (en) Mobile communication system and method of selecting server in mobile communication system
KR101292979B1 (en) Method for managing software in terminal using device management server
CN102868770B (en) A kind of method of distribution interface, equipment and system
US20030169460A1 (en) On-demand service performance upgrade for wireless network
US20080225714A1 (en) Dynamic load balancing
JP4190455B2 (en) Load balancing apparatus and program
CN101674320B (en) Service addressing method and device in cluster environment
US9800504B2 (en) Methods, systems, and computer readable media diverting diameter traffic from an overloaded policy and charging rules function (PCRF)
CN109788027A (en) Method of data synchronization, device, server and computer storage medium
WO2012060764A1 (en) Network nodes that establish sessions using existing connections identified in a central database
CN109921925A (en) A kind of dial testing method and device
US20070064914A1 (en) Method for notifying customers of an agent's progress in fulfilling work orders
CN112261133A (en) CDN node control method, device, server and storage medium
RU2427032C2 (en) Next site for distributed service connections
CN109542627A (en) Node switching method, device, supervisor, node device and distributed system
CN109639796A (en) A kind of implementation of load balancing, device, equipment and readable storage medium storing program for executing
CN104735103B (en) A kind of management of distributed data and method of reseptance, device
CN108111567A (en) Realize the uniform method and system of server load
CN108055342A (en) A kind of data monitoring method and device
CN109981795A (en) Resource request dispatching method and device
JP4595274B2 (en) Load distribution method and load distribution apparatus
CN108600308A (en) Data uploading method, device, storage medium and server
US20080320133A1 (en) Method for determining the dynamics of a logical network
US20030069976A1 (en) Intelligent round robining

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: 20181106