[go: up one dir, main page]

CN109391682A - A kind of information processing method and server cluster - Google Patents

A kind of information processing method and server cluster Download PDF

Info

Publication number
CN109391682A
CN109391682A CN201811075211.6A CN201811075211A CN109391682A CN 109391682 A CN109391682 A CN 109391682A CN 201811075211 A CN201811075211 A CN 201811075211A CN 109391682 A CN109391682 A CN 109391682A
Authority
CN
China
Prior art keywords
information
feedback information
state information
client
server cluster
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
CN201811075211.6A
Other languages
Chinese (zh)
Other versions
CN109391682B (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201811075211.6A priority Critical patent/CN109391682B/en
Publication of CN109391682A publication Critical patent/CN109391682A/en
Application granted granted Critical
Publication of CN109391682B publication Critical patent/CN109391682B/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
    • 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/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/101Server selection for load balancing based on network conditions
    • 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/1025Dynamic adaptation of the criteria on which the server selection is based
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

This application provides a kind of information processing method, server cluster and electronic equipments.The information processing method includes: the solicited message for receiving client and sending;Obtain the work state information of server cluster;Matched feedback information is determined based on the work state information;The feedback information is sent to the client, so that the client at least determines the sending strategy of next request based on the feedback information.Server cluster in the application can send corresponding feedback information to client according to itself work state information after the request for receiving client transmission, the sending strategy at least determining next request based on feedback information is enabled the client to, therefore reduces the processing load of server cluster while guaranteeing communication efficiency.

Description

A kind of information processing method and server cluster
Technical field
The invention relates to smart machine field, in particular to a kind of information processing method and server cluster.
Background technique
Currently, also proposing requirements at the higher level to the acquisition of big data while big data is widely applied.Especially move Data acquisition in equipment is brought since the problems such as amount of equipment power consumption, campus network seriously affects user experience to acquisition design Many challenges, such as:
The generation of peak flow:
1) peak flow, that is, server cluster is instantaneous or receives a large amount of client transmission at certain time period, time point Request.For example mobile phone user frequently can carry out network access, this time using mobile phone in 10 points of night, 12 points of noon or so Section becomes the peak flow phase fixed daily.
2) electric business advertising campaign causes flow to explode.Such as: Taobao pair 11, Jingdone district 618 promote.
3) server cluster faults itself causes flow to explode.For example network jitter, message-oriented middleware delay machine, Java are virtual Machine Full GC etc. is likely to cause to influence to slow even local delay machine, and data are gradually accumulated, to generate flow peak Value.
Brought influence after peak flow generates:
If peak flow, i.e., request data quantity is more than the limit that acquisition server collection group energy is born, and server can be right HTTP request data directly returns to error message.At this time client be not aware that this mistake be server cluster pressure overload also It is normal system mistake, client typically just does simple failure retransmission request, and the data of re-transmission are dealt into back-end server It after cluster, does not still handle and returns to error message, repeatedly, HTTP request amount is caused to be exploded, gradually generate snowslide effect Entire server cluster should be caused to break down.
Existing solution 1:
Perhaps failure retransmission request or suspend mode transmit request to client again for a period of time.
The disadvantages of this solution is:
1) failure retransmission request will lead to server cluster and generate avalanche effect.
2) suspend mode passes request again for a moment.The mistake that client cannot distinguish between return is caused by data itself or server Caused by cluster overload.Client do not know should suspend mode how long can just continue transmission request, if overlong time will lead to Data upload real-time and are affected, and if too short to can still result in server cluster processing pressure excessive the time.
Existing solution 2:
It services single cluster and individually disposes a set of configuration server, client query server state is provided.Client timing The status information of server cluster is obtained from the configuration server.
The disadvantages of this solution is:
1) configuration server can not accomplish real-time response client, and built-in unit is usually flagrant to this.And And timing acquisition information can not too frequently: because generating campus network first is that will increase energy consumption of mobile equipment amount;Second is that meeting Cause configuration server pressure excessive, especially as big data acquires this more than one hundred million client easily.
2) individually deployment services device can additionally increase hardware cost, server O&M cost, software development cost.
Apply for content
This application provides a kind of server clusters to send feedback letter to client when receiving client's request automatically Breath enables the client to the information processing method of first time awareness server cluster current state and the service of application this method Device cluster.
In order to solve the above-mentioned technical problem, the embodiment of the present application provides a kind of information processing method, comprising:
Receive the solicited message that client is sent;
Obtain the work state information of server cluster;
Matched feedback information is determined based on the work state information;
The feedback information is sent to the client, so that under the client is at least determined based on the feedback information The sending strategy of one request.
Preferably, the work state information for obtaining server cluster includes:
When obtaining processor use state information, the memory read/write status information, respond request of the server cluster At least one information in long message.
Preferably, described determine that matched feedback information includes: according to the work state information
The feedback information is determined based on preset rules and the work state information of acquisition;
Wherein, the preset rules include at least the matching relationship of the work state information and feedback information;
It is described next including at least sending based on the sending strategy of the determining at least next request of the feedback information The interval time of request.
Preferably, include acquisition respond request duration information when obtaining work state information, and, processor uses shape When at least one of both state information and memory read/write status information, the working condition based on preset rules and acquisition Information determines the feedback information, comprising:
The first interval of the respond request duration information ownership is judged based on the preset rules;
Under the basis of the first interval, it is based on processor use state information and/or memory read/write status information, Determine the feedback information;
Wherein, obtaining work state information includes acquisition respond request duration information, and, processor use state information When with memory read/write status information, the feedback information is determined based on preset rules and the work state information of acquisition, Include:
The first interval of the respond request duration information ownership is judged based on the preset rules;
Under the basis of the first interval, the second interval of the processor use state information ownership is judged;
Under the basis of the first interval and the second interval, it is based on the memory read/write status information, is determined The feedback information.
Preferably, the feedback information to the client that sends includes:
The feedback information is loaded in HTTP state row information;
The HTTP state row information for loading the feedback information is fed back into the client.
The application also provides a kind of information processing method, comprising:
Receive server set pocket transmission is directed to the feedback information requested at present, and the feedback information is based on the server The work state information of cluster and determine;
The sending strategy of next request is determined based on the feedback information.
Preferably, the feedback information for receiving server set pocket transmission includes:
Receive the HTTP state row information for being loaded with the feedback information of server set pocket transmission;
The feedback information is determined based on the HTTP state row information;
The sending strategy that next request is determined based on the feedback information includes:
The work state information of the server cluster is determined based on preset rules and the feedback information;
The sending strategy is determined based on preset matching relationship and the work state information;
Wherein, the preset matching relationship is the corresponding pass between the different sending strategy and work state information System;
The sending strategy includes at least the interval time for sending next request.
Preferably, further include:
To the server set pocket transmission request after preset time threshold in do not receive the feedback information when, determine with Whether the network communications environment between the server cluster meets preset standard;
If so, alternative sending strategy is executed, the first work shape of the alternative sending strategy and the server cluster State information matches.
The application provides a kind of server cluster simultaneously, comprising:
Processing unit for receiving the solicited message of client transmission, and obtains the work state information of server cluster, To determine matched feedback information based on the work state information;
Sending device believes that the client based on the feedback for sending the feedback information to the client Breath at least determines the sending strategy of next request.
The application provides a kind of electronic equipment simultaneously, comprising:
Reception device, for receiving by the feedback information of server set pocket transmission;
Processing unit, for determining the sending strategy of next request based on the feedback information.
Disclosure based on the above embodiment can know, the embodiment of the present application have it is following the utility model has the advantages that
Server cluster in the application can be believed after the request for receiving client transmission according to itself working condition It ceases to client and sends corresponding feedback information, enable the client to the hair at least determining next request based on feedback information Strategy is sent, therefore reduces the processing load of server cluster while guaranteeing communication efficiency.
Detailed description of the invention
Figure 1A is the schematic diagram according to the information system of one embodiment of the application.
Figure 1B is the schematic flow chart according to the information processing method of another embodiment of the application.
Fig. 2 is the schematic flow chart according to the information processing method of another embodiment of the application.
Fig. 3 A is the schematic interaction figure according to the information processing method of another embodiment of the application.
Fig. 3 B is the schematic interaction figure according to the information processing method of another embodiment of the application.
Fig. 4 is the schematic block diagram according to the server cluster of another embodiment of the application.
Fig. 5 is the schematic block diagram according to the electronic equipment of another embodiment of the application.
Specific embodiment
In the following, being described in detail in conjunction with specific embodiment of the attached drawing to the application, but not as the restriction of the application.
It should be understood that various modifications can be made to disclosed embodiments.Therefore, following description should not regard To limit, and only as the example of embodiment.Those skilled in the art will expect within the scope and spirit of this Other modifications.
The attached drawing being included in the description and forms part of the description shows embodiment of the disclosure, and with it is upper What face provided is used to explain the disclosure together to substantially description and the detailed description given below to embodiment of the disclosure Principle.
By the description of the preferred form with reference to the accompanying drawings to the embodiment for being given as non-limiting example, the application's These and other characteristic will become apparent.
It is also understood that although the application is described referring to some specific examples, those skilled in the art Member realizes many other equivalents of the application in which can determine, they have feature as claimed in claim and therefore all In the protection scope defined by whereby.
When read in conjunction with the accompanying drawings, in view of following detailed description, above and other aspect, the feature and advantage of the disclosure will become It is more readily apparent.
The specific embodiment of the disclosure is described hereinafter with reference to attached drawing;It will be appreciated, however, that the disclosed embodiments are only Various ways implementation can be used in the example of the disclosure.Known and/or duplicate function and structure and be not described in detail to avoid Unnecessary or extra details makes the disclosure smudgy.Therefore, specific structural and functionality disclosed herein is thin Section is not intended to restrictions, but as just the basis of claim and representative basis be used to instructing those skilled in the art with Substantially any appropriate detailed construction diversely uses the disclosure.
This specification can be used phrase " in one embodiment ", " in another embodiment ", " in another embodiment In " or " in other embodiments ", it can be referred to one or more of the identical or different embodiment according to the disclosure.
In the following, the embodiment of the present application is described in detail in conjunction with attached drawing.It should be understood that the application is applied at least by user equipment The information system constituted with server, such as the system shown in figure 1A being made of client 10 and server 20.It should be understood that this The technical solution of application embodiment can be applied to various communication systems, such as: global system for mobile telecommunications (Global System of Mobile communication, referred to as " GSM ") system, CDMA (Code Division Multiple Access, letter Claim " CDMA ") system, wideband code division multiple access (Wideband Code Division Multiple Access, abbreviation " WCDMA ") it system, General Packet Radio Service (General Packet Radio Service, referred to as " GPRS "), drills for a long time Into (Long Term Evolution, referred to as " LTE ") system, LTE frequency division duplex (Frequency Division Duplex, Referred to as " FDD ") system, LTE time division duplex (Time Division Duplex, referred to as " TDD "), Universal Mobile Communication System (Universal Mobile Telecommunication System, referred to as " UMTS ") etc..
Terminal (Terminal) can be referred to as user equipment (User Equipment, referred to as " UE "), user etc., can To be led to through wireless access network (for example, Radio Access Network, referred to as " RAN ") with one or more core nets Letter, can be mobile terminal, such as mobile phone (or be " honeycomb " phone) and the computer with mobile terminal, for example, can To be portable, pocket, hand-held, built-in computer or vehicle-mounted mobile device, they are exchanged with wireless access network Language and/or data.
Figure 1B is the schematic flow chart according to the information processing method of one embodiment of the application.At the information of Figure 1B Reason method 100 includes:
110: receiving the solicited message that client is sent;
120: obtaining the work state information of server cluster;
130: matched feedback information is determined based on work state information;
140: sending feedback information to client, so that client at least determines the hair of next request based on feedback information Send strategy.
It should be understood that the work state information for obtaining server cluster may include the processor use for obtaining server cluster Status information, memory read/write status information, at least one information in respond request duration information.Respond request duration information It may include absolute response time or corresponding absolute response duration with the relative ratios of benchmark response time or one Section the time in its average value, such as when HTTP average response it is a length of less than 1.2 times, less than 1.5 times or be greater than 2.0 times etc., Its concrete form is not limited.Processor use state information for example can be the form of CPU usage, but not limited to this.It deposits Reservoir read-write state information for example can be the utilization rate of disk read-write, but not limited to this.Feedback information may include feeding back The position of feedback information and form etc. in message, it is preferable that the position that status code is returned for example in HTTP message, wherein returning Status code can be any digit.Sending strategy in text preferably indicates the opportunity sent, can also indicate that the data of transmission Amount etc., the application is not construed as limiting this.
The client of this programme can be implemented to send out based on the feedback information determined according to the working condition of server cluster Strategy is sent, therefore reduces the communications burden of system while guaranteeing communication efficiency.In other words, server cluster can be certainly It moves and sends feedback information to client when receiving client's request, it is current to enable the client to first time awareness server cluster State, and according to the current state of server cluster adjust it is next or it is subsequent more request sending strategy, avoid due to It is unaware of server cluster current state and frequently sends request and cause to generate avalanche effect entire server cluster is caused to break down.
In the information processing method 100 of Figure 1B, in other words, for current request, it is pre- that server cluster is based on first If regular determination and the matched feedback information of work state information.Client is based on the first preset rules and the feedback information pair The sending strategy for the next request answered, wherein the matching relationship of the first preset rules table 1 such as described below, table 2 and table 3, Second preset rules are preset matching relationship described in claim, matching relationship shown in such as table 4.Due to the first preset rules Be based on feedback information with the second preset rules and be associated with, so client can response server cluster indirectly working condition Appropriate transmission is carried out, to realize the effect of the application.
According to the information processing method 100 of Figure 1B, determine that matched feedback information includes: to be based on according to work state information Preset rules and the work state information of acquisition determine feedback information, and wherein preset rules include at least work state information and anti- The matching relationship of feedforward information;It is next including at least sending based on the sending strategy of the determining at least next request of feedback information The interval time of request.Since identified sending strategy includes at least the interval time of next request, therefore effectively subtracts Lack the communications burden of system, specifically, a possibility that efficiently reducing system failure.
It include obtaining respond request duration information when obtaining work state information according to the information processing method 100 of Figure 1B, And when at least one of both processor use state information and memory read/write status information, based on preset rules and The work state information of acquisition determines feedback information, comprising: judges the of respond request duration information ownership based on preset rules One section;Under the basis of first interval, it is based on processor use state information and/or memory read/write status information, is determined Feedback information.Specifically, the present embodiment can be implemented using the preset rules of following table 1 or table 2:
Table 1
Table 2
According to the information processing method 100 of Figure 1B, obtaining work state information includes obtaining respond request duration information, with And when processor use state information and memory read/write status information, the work state information based on preset rules and acquisition Determine feedback information, comprising: the first interval of respond request duration information ownership is judged based on preset rules;In first interval Under basis, the second interval of decision processor use state information ownership;Under the basis of first interval and second interval, it is based on Memory read/write status information, determines feedback information.Specifically, the present embodiment can be implemented using the preset rules of table 3:
Table 3
According to the information processing method 100 of Figure 1B, sending feedback information to client includes: in HTTP state row information Load feedback information;The HTTP state row information for loading feedback information is fed back into client.Disappear due to using transmission HTTP It ceases, therefore realizes the effect of the application in the case where the compatibility to existing protocol frame.
Fig. 2 is the schematic flow chart according to the information processing method of another embodiment of the application.The information processing of Fig. 2 Method 200 includes:
210: receive server set pocket transmission is directed to the feedback information requested at present, and the feedback information is based on the clothes Be engaged in device cluster work state information and determine;
220: the sending strategy of next request is determined based on the feedback information.
It should be understood that the work state information for obtaining server cluster may include the processor use for obtaining server cluster Status information, memory read/write status information, at least one information in respond request duration information.Respond request duration information It may include absolute response time or corresponding absolute response duration with the relative ratios of benchmark response time or one Section the time in its average value, such as when HTTP average response it is a length of less than 1.2 times, less than 1.5 times or be greater than 2.0 times etc., Its concrete form is not limited.Processor use state information for example can be the form of CPU usage, but not limited to this.It deposits Reservoir read-write state information for example can be the utilization rate of disk read-write, but not limited to this.Feedback information may include feeding back The position of feedback information and form etc. in message, it is preferable that the position that status code is returned for example in HTTP message, wherein returning Status code can be any digit.Sending strategy in text preferably indicates the opportunity sent, can also indicate that the data of transmission Amount etc., the application is not construed as limiting this.
The client of this programme can be implemented to send out based on the feedback information determined according to the working condition of server cluster Strategy is sent, therefore reduces the communications burden of system while guaranteeing communication efficiency.In other words, server cluster can be certainly It moves and sends feedback information to client when receiving client's request, it is current to enable the client to first time awareness server cluster State, and according to the current state of server cluster adjust it is next or it is subsequent more request sending strategy, avoid due to It is unaware of server cluster current state and frequently sends request and cause to generate avalanche effect entire server cluster is caused to break down.
Information processing method 200 according to fig. 2, the feedback information for receiving server set pocket transmission includes: reception server Collect the HTTP state row information for being loaded with feedback information of pocket transmission;Feedback information is determined based on HTTP state row information;It is based on Feedback information determines that the sending strategy of next request includes: that the work of server cluster is determined based on preset rules and feedback information Make status information, wherein preset rules (that is, first preset rules) include at least the matching of work state information and feedback information Relationship;Sending strategy is determined based on preset matching relationship (that is, second preset rules) and feedback information;Wherein, preset matching is closed System is the corresponding relationship between different sending strategy and feedback information.
Alternatively, sending strategy is determined based on preset matching relationship and work state information;Wherein, preset matching relationship Corresponding relationship between as different sending strategys and work state information;Sending strategy, which includes at least, sends next request Interval time.Specifically, sending strategy can be determined based on the preset matching relationship of table 4:
Table 4
The information processing method 200 of Fig. 2 further include: do not received into the preset time threshold after server set pocket transmission request When to feedback information, whether the determining network communications environment between server cluster meets preset standard;If so, executing alternative First work state information of sending strategy, the alternative sending strategy and server cluster is (that is, instruction server cluster is non- The work state information of normal operation state) matching.As a result, when server cluster is due to system failure etc. is specific When not fed back, client can carry out alternative sending strategy, such as retransmit, or send inquiry message etc..
Fig. 3 A is the schematic interaction figure according to the information processing method of another embodiment of the application.Shown in Fig. 3 A In embodiment, interacts to realize the scheme of the application according to table 2 and table 4 by client 10 and server cluster 20, answer Understand, the program is only one embodiment of the application, can also be realized using other corresponding relationships or preset rules The scheme of the application.
S301: user end to server collection pocket transmission first is requested.
S302: when server cluster is by the first request, itself disk I/O percentage and HTTP average response duration are obtained.
S303: server cluster determine disk I/O percentage and HTTP average response duration be respectively>=50% and<2.0 Times, and determine and fed back with status code 204 (as shown in table 2, indicating " painstaking ").
S304: server cluster is loaded into 204 in feedback information, and sends feedback information.
S305: when client receives feedback information, status code 204 is determined.
S306: client was requested to server set pocket transmission second again according to 204 look-up tables 4 determining suspend mode 10-30 minutes, That is, next solicited message.
Fig. 3 B is the schematic interaction figure according to the information processing method of another embodiment of the application.Shown in Fig. 3 A In embodiment, interacts to realize the scheme of the application according to table 2 and table 4 by client 10 and server cluster 20, answer Understand, the program is only one embodiment of the application, can also be realized using other corresponding relationships or preset rules The scheme of the application.
S307: user end to server collection pocket transmission third request.
S308: when in the given time, such as when not receiving in 30 minutes the feedback of server cluster, to server set Group retransmits third request.
S309: it when server receives the third request of the retransmission, obtains itself disk I/O percentage and HTTP is average Response time.
S310: server cluster determine disk I/O percentage and HTTP average response duration be respectively >=50% He >= 2.0 times, and determine and fed back with status code 206 (as shown in table 2, indicating " collapse ").
S311: server cluster is loaded into 206 in feedback information, and sends feedback information.
S312: when client receives feedback information, status code 206 is determined.
S313: client is determined suspend mode 30-120 minutes according to 206 look-up tables 4 and is asked again to server set pocket transmission the 4th It asks, that is, next solicited message.
It combines the method for server cluster and client executing that the scheme of the application is described above, will retouch below State server cluster corresponding with above-mentioned each method embodiment and functions of electronic equipment etc..
Fig. 4 is the schematic block diagram according to the server cluster of another embodiment of the application.The server cluster of Fig. 4 400 include:
Processing unit 410 for receiving the solicited message of client transmission, and obtains the working condition letter of server cluster Breath, to determine matched feedback information based on work state information;
Sending device 420 determines client at least based on feedback information next for sending feedback information to client The sending strategy of a request.
Fig. 5 is the schematic block diagram according to the electronic equipment of another embodiment of the application.The electronic equipment 500 of Fig. 5 wraps It includes:
Reception device 510, for receiving by the feedback information of server set pocket transmission;
Processing unit 520, for determining the sending strategy of next request based on feedback information.
The scheme of this programme can be implemented to send based on the feedback information determined according to the working condition of server cluster Strategy, therefore reduce while guaranteeing communication efficiency the communications burden of system.In other words, server cluster can be automatic Feedback information is sent to client when receiving client's request, enables the client to the first time current shape of awareness server cluster State, and according to the current state of server cluster adjust it is next or it is subsequent more request sending strategy, avoid due to not Awareness server cluster current state and frequently send request and cause to generate avalanche effect entire server cluster is caused to break down.
It is apparent to those skilled in the art that for convenience and simplicity of description, the data of foregoing description The electronic equipment that processing method is applied to, can be with reference to the corresponding description in before-mentioned products embodiment, and details are not described herein.
Above embodiments are only the exemplary embodiment of the application, are not used in limitation the application, the protection scope of the application It is defined by the claims.Those skilled in the art can make respectively the application in the essence and protection scope of the application Kind modification or equivalent replacement, this modification or equivalent replacement also should be regarded as falling within the scope of protection of this application.

Claims (10)

1. a kind of information processing method characterized by comprising
Receive the solicited message that client is sent;
Obtain the work state information of server cluster;
Matched feedback information is determined based on the work state information;
The feedback information is sent to the client so that the client at least determined based on the feedback information it is next The sending strategy of request.
2. the method according to claim 1, wherein the work state information packet for obtaining server cluster It includes:
Long letter when obtaining processor use state information, the memory read/write status information, respond request of the server cluster At least one information in breath.
3. the method according to claim 1, wherein it is described determined according to the work state information it is matched anti- Feedforward information includes:
The feedback information is determined based on preset rules and the work state information of acquisition;
Wherein, the preset rules include at least the matching relationship of the work state information and feedback information;
Transmission next request is included at least based on the sending strategy at least next request that the feedback information determines Interval time.
4. according to the method described in claim 3, it is characterized in that, when obtaining work state information includes obtaining respond request Long message, and, when at least one of both processor use state information and memory read/write status information, based on default Rule and the work state information obtained determine the feedback information, comprising:
The first interval of the respond request duration information ownership is judged based on the preset rules;
Under the basis of the first interval, it is based on processor use state information and/or memory read/write status information, is determined The feedback information;
Wherein, obtain work state information include obtain respond request duration information, and, processor use state information and deposit When reservoir read-write state information, the feedback information is determined based on preset rules and the work state information of acquisition, comprising:
The first interval of the respond request duration information ownership is judged based on the preset rules;
Under the basis of the first interval, the second interval of the processor use state information ownership is judged;
Under the basis of the first interval and the second interval, be based on the memory read/write status information, determine described in Feedback information.
5. according to the method described in claim 3, it is characterized in that, described send the feedback information to the client packet It includes:
The feedback information is loaded in HTTP state row information;
The HTTP state row information for loading the feedback information is fed back into the client.
6. a kind of information processing method characterized by comprising
Receive server set pocket transmission is directed to the feedback information requested at present, and the feedback information is based on the server cluster Work state information and determine;
The sending strategy of next request is determined based on the feedback information.
7. according to the method described in claim 5, it is characterized in that, the feedback information packet for receiving server set pocket transmission It includes:
Receive the HTTP state row information for being loaded with the feedback information of server set pocket transmission;
The feedback information is determined based on the HTTP state row information;
The sending strategy that next request is determined based on the feedback information includes:
The work state information of the server cluster is determined based on preset rules and the feedback information;
The sending strategy is determined based on preset matching relationship and the work state information;
Wherein, the preset matching relationship is the corresponding relationship between the different sending strategy and work state information;
The sending strategy includes at least the interval time for sending next request.
8. according to the method described in claim 6, it is characterized by further comprising:
When not receiving the feedback information into the preset time threshold after server set pocket transmission request, it is determining with it is described Whether the network communications environment between server cluster meets preset standard;
If so, executing alternative sending strategy, the first working condition of the alternative sending strategy and the server cluster is believed Breath matching.
9. a kind of server cluster characterized by comprising
Processing unit for receiving the solicited message of client transmission, and obtains the work state information of server cluster, with base Matched feedback information is determined in the work state information;
Sending device makes the client be based on the feedback information extremely for sending the feedback information to the client The sending strategy of next request is determined less.
10. a kind of electronic equipment characterized by comprising
Reception device, for receiving by the feedback information of server set pocket transmission;
Processing unit, for determining the sending strategy of next request based on the feedback information.
CN201811075211.6A 2018-09-14 2018-09-14 Information processing method and server cluster Active CN109391682B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811075211.6A CN109391682B (en) 2018-09-14 2018-09-14 Information processing method and server cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811075211.6A CN109391682B (en) 2018-09-14 2018-09-14 Information processing method and server cluster

Publications (2)

Publication Number Publication Date
CN109391682A true CN109391682A (en) 2019-02-26
CN109391682B CN109391682B (en) 2023-05-12

Family

ID=65418789

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811075211.6A Active CN109391682B (en) 2018-09-14 2018-09-14 Information processing method and server cluster

Country Status (1)

Country Link
CN (1) CN109391682B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110570227A (en) * 2019-07-26 2019-12-13 广州力挚网络科技有限公司 Price adjusting method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080281906A1 (en) * 2007-05-10 2008-11-13 Takeshi Ogasawara Server device operating in response to received request
US20090063617A1 (en) * 2007-08-28 2009-03-05 International Business Machines Corporation Systems, methods and computer products for throttling client access to servers
CN106357789A (en) * 2016-09-30 2017-01-25 腾讯科技(北京)有限公司 Information access control method and server
CN106790603A (en) * 2016-12-29 2017-05-31 东软集团股份有限公司 The method of interacting message, apparatus and system
CN106878473A (en) * 2017-04-20 2017-06-20 腾讯科技(深圳)有限公司 A kind of message treatment method, server cluster and system
CN108173672A (en) * 2017-12-04 2018-06-15 华为技术有限公司 Method and device for detecting faults

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080281906A1 (en) * 2007-05-10 2008-11-13 Takeshi Ogasawara Server device operating in response to received request
US20090063617A1 (en) * 2007-08-28 2009-03-05 International Business Machines Corporation Systems, methods and computer products for throttling client access to servers
CN106357789A (en) * 2016-09-30 2017-01-25 腾讯科技(北京)有限公司 Information access control method and server
CN106790603A (en) * 2016-12-29 2017-05-31 东软集团股份有限公司 The method of interacting message, apparatus and system
CN106878473A (en) * 2017-04-20 2017-06-20 腾讯科技(深圳)有限公司 A kind of message treatment method, server cluster and system
CN108173672A (en) * 2017-12-04 2018-06-15 华为技术有限公司 Method and device for detecting faults

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110570227A (en) * 2019-07-26 2019-12-13 广州力挚网络科技有限公司 Price adjusting method and system

Also Published As

Publication number Publication date
CN109391682B (en) 2023-05-12

Similar Documents

Publication Publication Date Title
CN101554034B (en) Methods and apparatus for requesting wireless communication device performance data and providing the data in optimal file size
CN100547993C (en) Method and system for reducing the amount of time required to transmit data over a communication network
TWI556614B (en) Ip mtu control based on multiradio schedule
US20220264596A1 (en) Data Transmission Method and Apparatus
NZ584097A (en) Triggering random access channel procedure as a result of a comparison of stored and current buffer data
CN102916854A (en) Traffic statistical method and device and proxy server
EP1725944A2 (en) Power management system and method for a wireless communications device
EP3627883B1 (en) Data distribution method and corresponding access node and device
US10402280B2 (en) File transfer system and method, policy server, terminal and storage medium
CN103581846B (en) A kind of user&#39;s business card update method and system
TW201728201A (en) Wireless communication device and control method thereof
CN108810971A (en) Internet of things data transmission method, internet-of-things terminal and computer readable storage medium
CN102647263A (en) ACK (Acknowledgment Character)/NACK (Negative Acknowledgement) information transmission method and device
US20150327004A1 (en) NFC Configuration Method, NFC Data Transmission Method, Controller, and NFC Controller
CN110933765B (en) Method and equipment for adjusting size of Contention Window (CWS)
NO20044298L (en) Radio resource allocation in a radio communication network
CN101453751A (en) Method for large file transmission under narrow-band network environment
CN109391682A (en) A kind of information processing method and server cluster
US10412778B2 (en) Data transmission method and apparatus for data service
CN108023690A (en) The method and device of dynamic HARQ-ACK feedbacks
CN102053917B (en) Smart card capable of reducing memory footprint and instruction processing method thereof
US10200510B2 (en) Method and apparatus for loading web page
US9210658B2 (en) Communication device, communication system, communication method, and program
CN102802197A (en) Method and device for transmitting application data
CN102148750A (en) Message traffic control method, equipment and system

Legal Events

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