WO2020211378A1 - 请求处理方法、装置、计算机设备和存储介质 - Google Patents

请求处理方法、装置、计算机设备和存储介质 Download PDF

Info

Publication number
WO2020211378A1
WO2020211378A1 PCT/CN2019/119567 CN2019119567W WO2020211378A1 WO 2020211378 A1 WO2020211378 A1 WO 2020211378A1 CN 2019119567 W CN2019119567 W CN 2019119567W WO 2020211378 A1 WO2020211378 A1 WO 2020211378A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
request
priority
servers
feedback result
Prior art date
Application number
PCT/CN2019/119567
Other languages
English (en)
French (fr)
Inventor
易杉峰
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020211378A1 publication Critical patent/WO2020211378A1/zh

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
    • 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 
    • H04L67/1053Group management mechanisms  with pre-configuration of logical or physical connections with a determined number of other peers
    • H04L67/1057Group management mechanisms  with pre-configuration of logical or physical connections with a determined number of other peers involving pre-assessment of levels of reputation of peers
    • 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

Definitions

  • This application relates to the field of communication technology, and specifically to a request processing method, device, computer equipment, and storage medium.
  • the main purpose of this application is to provide a request processing method, device, computer equipment and storage medium. If an abnormality occurs in the existing server after processing the request sent by the user, it will cause the technical problem that the request sent by the user cannot be effectively processed. .
  • this application proposes a request processing method, which includes the steps:
  • the copy After sending to the currently traversed server, determine whether the second feedback result corresponding to the copy returned by the currently traversed server is received within a preset second timeout period;
  • This application also provides a request processing device, including:
  • the receiving module is used to receive the first request sent by the client
  • a backup module configured to back up the message corresponding to the first request to obtain a copy
  • the first sending module is configured to obtain the priority ranking of the servers in the server cluster, and send the first request to the first server with the highest priority, so that the first server can process the first request, wherein
  • the priority sorting is obtained by sorting the priority values of the servers from small to large;
  • the first judgment module is configured to judge whether the first feedback result corresponding to the first request returned by the first server is received within a preset first timeout period;
  • the traversal module is configured to, if the first feedback result is not received within the first timeout period, sequentially traverse other servers except the first server according to the priority ranking, and each time a server is traversed After sending the copy to the currently traversed server, determining whether the second feedback result corresponding to the copy returned by the currently traversed server is received within a preset second timeout period;
  • the second sending module is configured to stop the traversal if the second feedback result is received within the second timeout period, and send the second feedback result to the client.
  • the application also provides a computer device, including a memory and a processor, the memory stores computer readable instructions, and the processor implements the steps of the above method when the computer readable instructions are executed.
  • the present application also provides a computer-readable storage medium on which computer-readable instructions are stored, and when the computer-readable instructions are executed by a processor, the steps of the foregoing method are implemented.
  • the request processing method, device, computer equipment and storage medium provided in this application receive the first request sent by the client; back up the message corresponding to the first request to obtain a copy; obtain the priority of each server in the server cluster Sorting, sending the first request to the first server with the highest priority, so that the first server can process the first request; determining whether the first request is received within a preset first timeout period The first feedback result corresponding to the first request returned by the server; if the first feedback result is received within the first timeout period, sorted according to the priority, traverse sequentially except for the first server When traversing to a server, after sending the copy to the currently traversed server, it is judged whether or not it receives within the preset second timeout period the same returned by the currently traversed server.
  • the second feedback result corresponding to the copy if the second feedback result is received within the second timeout period, stop traversal, and send the second feedback result to the client.
  • this application calls the first server with the highest priority to process the first request received, if the first feedback result returned by the first server is not received within the first timeout period, it will be based on the priority of each server.
  • the level sorting forwards the copy obtained by backing up the first request to other servers except the first server for processing, so that other servers can be quickly called to perform the first request when the first server is abnormal. Processing, thereby avoiding returning the result of request processing failure to the user, ensuring that the processing of the request sent by the user will not cause abnormal timeout, and ensuring the user experience.
  • FIG. 1 is a schematic flowchart of a request processing method according to an embodiment of the present application
  • FIG. 2 is a schematic flowchart of a request processing method according to another embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a request processing apparatus according to an embodiment of the present application.
  • Fig. 4 is a schematic structural diagram of a computer device according to an embodiment of the present application.
  • the request processing method of an embodiment of the present application includes:
  • S3 Obtain the priority ranking of the servers in the server cluster, and send the first request to the first server with the highest priority, so that the first server can process the first request, wherein the priority ranking Is obtained by sorting according to the priority value of each server from small to large;
  • S4 Determine whether the first feedback result corresponding to the first request returned by the first server is received within a preset first timeout period
  • the execution subject of this method is a request processing device, specifically a request distribution server, and the above client can be a mobile phone, PDA (Personal Digital Assistant (Personal Digital Assistant), laptop computer, palmtop computer, etc., the user can send a request through the client to obtain the business service of the server for the request.
  • the above-mentioned priority sorting refers to sorting according to the priority value of each server. A server with a higher priority corresponds to a more idle working state, and the efficiency and speed of processing requests are faster.
  • the above-mentioned priority value can be obtained by comparing The operating parameter data of each server in the server cluster is calculated.
  • the above-mentioned timeout period is set in advance according to the priority of each server.
  • Servers with different priority levels can correspond to different timeout periods. For example, for the same request, the server with a higher priority corresponds to a higher priority. A low server corresponds to a smaller timeout period.
  • the message of the first request is first backed up to obtain a copy, and after obtaining the priority ranking of the servers in the server cluster, the first request is obtained.
  • a request is sent to the first server with the highest priority, and then it is further determined whether the first feedback result corresponding to the first request returned by the first server is received within the preset first timeout period, if the first feedback result is received If the feedback result is returned, the first feedback result will be sent to the client to complete the processing of the first request.
  • the first feedback result is not received within the above-mentioned first timeout period, it will traverse other servers in turn except the first server according to the above-mentioned priority order, and each time a server is traversed, the After the copy is sent to the currently traversed server, it is determined whether the second feedback result corresponding to the copy returned by the currently traversed server is received within the preset second timeout period, if within the second timeout period After receiving the second feedback result, stop traversal, and send the second feedback result to the client. Call the second server to process the copy.
  • the first server cannot return the first feedback result within the first timeout period, it can be considered that the first server is currently in an abnormal state and cannot process the current first request. At this time, it will pass according to the priority of each server.
  • the copy obtained by backing up the first request is forwarded to a server other than the first server for processing, so that other servers can be quickly called to process the first request when the first server is abnormal, thereby avoiding In order to return the result of request processing failure to the user, it is ensured that the processing of the request sent by the user will not cause abnormal timeout, and the user experience is guaranteed.
  • the other servers mentioned above are based on the priority ranking of other servers except the first server.
  • the special server obtained by screening all the servers of, and the priority of the special server is relatively highest. By calling the special server to process the first request, it can also be processed while ensuring the normal processing of the first request. Effectively guarantee the processing efficiency of the first request.
  • the method includes:
  • S301 Calculate the priority value of each server according to the preset rule according to the operating parameter data
  • S302 Sort the priority values of the servers in descending order to obtain the priority order.
  • the priority of each server Prioritize all servers according to the above-mentioned priority value. Specifically, first obtain the operating parameter data of each server, where the above operating parameter data includes, but is not limited to, CPU usage, memory usage, and network usage.
  • the CPU usage is the CPU resources occupied by the programs running in the server and represents the server In the case of running programs at a certain point in time, the higher the CPU usage, it means that the server is running more programs at the current time, and vice versa.
  • the memory usage refers to the memory spent by the process
  • the network usage refers to the network card Bandwidth utilization.
  • the preset rules refer to calculating the operating parameters of each server based on the operating parameter data of each server and the preset weight values corresponding to each operating parameter data. The sum value is the priority value mentioned above.
  • the preset rule may also refer to directly summing each operating parameter data of the server to obtain the sum of the operating parameters of the server, that is, the aforementioned priority value.
  • the server for processing the first request can be determined from all the servers according to the above priority ranking, and the first request can be forwarded to the The determined server, so that the server processes the first request.
  • the server used to process the first request is determined from all the servers according to the priority ranking of all servers, so that the first request is distributed to the server with a smaller load for processing, which improves The processing efficiency of the first request.
  • step S302 includes:
  • S3021 Calculate the operating parameters and values of each of the servers according to each of the operating parameter data and each of the weight values;
  • the above step of calculating the priority value of each server according to preset rules according to the operating parameter data specifically includes: firstly setting a corresponding weight value for each operating parameter, and then according to each The above-mentioned operating parameter data and each of the above-mentioned weight values calculate the operating parameters and values of each server, and determine the operating parameters and values as the priority values, so that the calculated priority values of each server are ascended Sort in a larger order to get the above priority order.
  • the above-mentioned weight value corresponding to the operating parameter is used to identify the proportion of each operating parameter when measuring the current load state of the server. The greater the weight value of the operating parameter, the greater the proportion of the operating parameter.
  • the smaller the preset weight of the operating index the smaller the proportion of the operating parameter.
  • the server's operating parameters include CPU usage, memory usage, and network usage
  • the specific value of the weight value corresponding to each operating parameter is not limited, and can be changed and set according to the specific application environment.
  • the above-mentioned operating parameters and values that is, the above-mentioned priority value is used to identify the operating status of the server
  • the above-mentioned priority value is negatively related to the priority of the server, and the smaller the operating parameter and value indicates the access request currently processed by the server
  • the CPU usage rate in the current operating parameter data of server B is 50%
  • the memory usage rate is 40%
  • the network usage rate is 50%.
  • the currently traversed server is the server ranked last in the priority ranking.
  • S502 Send maintenance information to the maintenance personnel so that the maintenance personnel can perform maintenance processing on all the servers.
  • all servers will be marked with abnormality to indicate that all servers are in an abnormal state, and maintenance information will be sent to the maintenance personnel, so that the maintenance personnel can repair all the servers, and specifically issue maintenance
  • the information can be in the form of mail or an alarm signal.
  • the maintenance personnel will return the maintenance completion information.
  • the above abnormal flags of all servers will be removed. In this way, the repaired server can continue to provide services to users.
  • the method includes:
  • S600 Filter out designated servers that do not return a feedback result corresponding to the first request, and add an exception flag to the designated server, where the number of designated servers is one or more;
  • S601 Send a heartbeat signal to each designated server
  • the above designated server refers to a server that does not return a feedback result corresponding to the first request.
  • these designated servers may be down or just A short-term exception occurred, such as being in a busy state and unable to return the feedback result corresponding to the first request within the corresponding timeout period.
  • a heartbeat signal is sent to each designated server to detect whether each designated server is in a normal working state or in an abnormal state.
  • a heartbeat response timeout time is preset, that is, the above-mentioned first preset time, for example, can be set to 5s.
  • a certain designated server does not return heartbeat response information to the system within 5s after receiving the heartbeat signal, it indicates that A specified server is currently in an abnormal state; and if the specified server successfully returns a heartbeat reply message to the system within 5s of receiving the heartbeat signal, it indicates that the specified server is currently in a normal working state, it will be Remove the exception flag from the specified server.
  • a heartbeat signal is sent to a designated server with an abnormality mark to detect whether the designated server is really in an abnormal state, so as to avoid the situation that a server that is only temporarily abnormal is mistaken for a downtime and cannot work, and
  • the first designated server that returned the heartbeat response information within the first preset time can be filtered out, and the first designated server can be removed from the above abnormal mark, so that when a new request is received, the first designated server that has removed the abnormal mark can be called
  • a designated server for processing is beneficial to selecting a server with a higher priority from all servers with no abnormal marks to process new requests, ensuring the efficiency of processing new requests.
  • the method includes:
  • S6011 Record the number of times that the second designated server did not return heartbeat reply information
  • S6012 Determine whether the number of times is greater than a preset number threshold
  • the second designated server is a server that does not return heartbeat reply information within the first preset time. If multiple heartbeat information is sent to the second designated server within the preset time interval, and If the second designated server does not reply to the multiple heartbeat information corresponding to the heartbeat response information within the first preset time, it is determined that the second designated server is indeed in an abnormal state.
  • a time interval is preset, for example, once every hour, and a threshold of times is preset, for example, it can be set to 3 times.
  • the heartbeat response information of the message can determine that the second designated server is in an abnormal state, such as a machine failure or downtime.
  • a designated form of maintenance information is sent to the maintenance personnel so that the maintenance personnel can specify the second designated server. Repair or replacement is performed after the server is checked.
  • the above-mentioned designated form can be in the form of email, short message or alarm voice, etc., and there is no specific limitation here.
  • the real working status of the second designated server is obtained by sending a heartbeat signal to the second designated server with an abnormal mark regularly.
  • the second designated server is in an abnormal state, and maintenance personnel can be notified to repair the second designated server in time, so as to avoid greater damage due to failure to handle the abnormal second designated server in time, and to ensure the entire server system working normally.
  • the method includes:
  • S612 According to the priority ranking, determine the second server with the highest priority from the third designated servers;
  • S613 Send the second request to the second server, so that the second server can process the second request.
  • the flag status of each server is first obtained.
  • the status of a server with an abnormal flag corresponds to an abnormal status
  • the status of a server without an abnormal flag corresponds to Normal state, and then filter out the third designated server without abnormal mark from all servers according to the above marked state, where the above third designated server is a server in a normal state, and only a server in a normal state has the new first
  • the second request is the right to process the request, that is, the server that processes the second request can only be selected from the servers in the normal state.
  • the second server with the highest priority is selected from all the third designated servers, and the above-mentioned first
  • the second request is sent to the second server for processing by the second server and a third feedback result corresponding to the new second request is returned.
  • the priority ordering and only select the second server with the highest priority from all servers in the normal state (that is, no abnormal mark added) to process the new second request, avoiding the selection of The abnormal state (that is, the abnormal flag is added) to the server to process the new request and no feedback result is obtained, which ensures the effective processing of the new second request.
  • select among all the servers in the normal state The second server with the highest priority processes the newly received second request, which is beneficial to improve the processing efficiency of the new second request and improve the user experience.
  • an embodiment of the present application also provides a request processing apparatus, including:
  • the receiving module 1 is used to receive the first request sent by the client;
  • the backup module 2 is configured to back up the message corresponding to the first request to obtain a copy
  • the first sending module 3 is configured to obtain the priority ranking of the servers in the server cluster, and send the first request to the first server with the highest priority, so that the first server can process the first request,
  • the priority ordering is obtained by sorting according to the priority value of each server from small to large;
  • the first judgment module 4 is configured to judge whether the first feedback result corresponding to the first request returned by the first server is received within a preset first timeout period;
  • the traversal module 5 is configured to, if the first feedback result is not received within the first timeout period, according to the priority ranking, sequentially traverse other servers except the first server, and each server is traversed When sending the copy to the currently traversed server, determine whether the second feedback result corresponding to the copy returned by the currently traversed server is received within a preset second timeout period;
  • the second sending module 6 is configured to stop the traversal if the second feedback result is received within the second timeout period, and send the second feedback result to the client.
  • the functions and functions of the receiving module, the backup module, the first sending module, the first judging module, the traversal module, and the second sending module in the above request processing device are implemented in the corresponding request processing method.
  • the implementation process of steps S1-S6 will not be repeated here.
  • the above request processing device includes:
  • An obtaining module used to obtain operating parameter data of each of the servers
  • a calculation module configured to calculate the priority value of each server according to the operating parameter data according to preset rules
  • the sorting module is used to sort the priority values of the servers in ascending order to obtain the priority sorting.
  • the implementation process of the functions and roles of the acquisition module, the calculation module, and the sorting module in the request processing apparatus is detailed in the implementation process of the corresponding steps S300-S302 in the request processing method, and will not be repeated here.
  • the foregoing calculation module includes:
  • the setting unit is used to set the weight value corresponding to each operating parameter respectively;
  • a calculation unit configured to calculate the operating parameters and values of each of the servers according to each of the operating parameter data and each of the weight values;
  • the determining unit is configured to determine the operating parameter and value as the priority value.
  • the implementation process of the functions and roles of the setting unit, the calculation unit, and the determination unit in the request processing apparatus is detailed in the implementation process of the corresponding steps S3020 to S3022 in the request processing method, which will not be repeated here.
  • the currently traversed server is the server ranked last in the priority ranking
  • the above request processing device further includes:
  • a return module configured to return request processing failure information to the client if the second feedback result is not received within the second timeout period
  • An add module is used to add exception flags to all the servers
  • the first maintenance module is used to send maintenance information to maintenance personnel so that the maintenance personnel can perform maintenance processing on all the servers.
  • the implementation process of the functions and roles of the return module, the addition module, and the first maintenance module in the above request processing device is detailed in the implementation process of the corresponding steps S500-S502 in the above request processing method, which will not be repeated here. .
  • the above request processing device further includes:
  • the first screening module is configured to screen out designated servers that do not return a feedback result corresponding to the first request, and add an exception flag to the designated server, wherein the number of designated servers is one or more;
  • the third sending module is configured to send a heartbeat signal to each designated server
  • the canceling module is configured to cancel the abnormal mark on the first designated server if there is a first designated server that has returned the heartbeat reply information within the first preset time.
  • the implementation process of the functions and roles of the first screening module, the third sending module, and the release module in the request processing apparatus is detailed in the implementation process corresponding to steps S600-S602 in the request processing method. Repeat it again.
  • the above request processing device further includes:
  • a fourth sending module configured to send the heartbeat information to the second designated server at a preset time interval if there is a second designated server that does not return the heartbeat reply information within the first preset time;
  • a recording module for recording the number of times that the second designated server did not return heartbeat reply information
  • the second judgment module is configured to judge whether the number of times is greater than a preset threshold of times
  • the second maintenance module is used for sending maintenance information to maintenance personnel, so that the maintenance personnel can perform maintenance processing on the second designated server.
  • the above request processing device further includes:
  • the third judgment module is used to judge whether a new second request is received
  • the second screening module is configured to, if yes, screen out the third designated server without adding the abnormal mark from all the servers according to the mark status of each server;
  • a determining module configured to determine the second server with the highest priority from the third designated servers according to the priority ranking
  • the fifth sending module is configured to send the second request to the second server, so that the second server can process the second request.
  • the implementation process of the functions and roles of the third judgment module, the second screening module, the determination module and the fifth sending module in the above request processing apparatus is detailed in the implementation of corresponding steps S610-S613 in the above request processing method. The process will not be repeated here.
  • an embodiment of the present application also provides a computer device.
  • the computer device may be a server, and its internal structure may be as shown in FIG. 4.
  • the computer equipment includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor designed for the computer equipment is used to provide calculation and control capabilities.
  • the memory of the computer device includes a volatile or nonvolatile storage medium and internal memory.
  • the volatile or non-volatile storage medium stores an operating system, computer readable instructions, and a database.
  • the internal memory provides an environment for the operation of the operating system and computer-readable instructions in a volatile or non-volatile storage medium.
  • the database of the computer equipment is used to store data such as requests and server priority ranking.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the request processing method shown in any of the foregoing exemplary embodiments is implemented.
  • FIG. 4 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the devices and computer equipment to which the solution of the present application is applied.
  • An embodiment of the present application further provides a computer-readable storage medium.
  • the computer-readable storage medium may be volatile or non-volatile, and computer-readable instructions are stored thereon. When executed by one or more processors, the steps in the foregoing request processing method embodiment are realized when executed by one or more processors.
  • the request processing method, device, computer equipment, and storage medium provided in the embodiments of the present application, when calling the first server with the highest priority to process the received first request, if it is not in the first timeout If the first feedback result returned by the first server is not received within the time, the copy obtained by backing up the first request will be forwarded to other servers for processing according to the priority of each server. Therefore, when the first server is abnormal, other servers can be quickly called to process the first request, thereby avoiding returning the result of request processing failure to the user, and ensuring that the processing of the request sent by the user will not cause abnormal timeout. The user experience is guaranteed.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual-rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

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)
  • Hardware Redundancy (AREA)
  • Computer And Data Communications (AREA)

Abstract

本申请揭示了一种请求处理方法、装置、计算机设备和存储介质,其中方法包括:接收客户端发出的第一请求;对第一请求对应的报文进行备份得到副本;获取服务器集群中各服务器的优先级排序,将第一请求发送至优先级最高的第一服务器;判断在第一超时时间内是否接收到第一服务器返回的第一反馈结果;若否,根据优先级排序,依次遍历除第一服务器外的其它服务器,每遍历到一个服务器时,在将副本发送至当前遍历到的服务器后,判断是否在预设的第二超时时间内接收到第二反馈结果;若是,停止遍历,并将第二反馈结果发送给客户端。通过本申请能在第一服务器异常的情况下调用其它的服务器来对第一请求处理,避免出现对第一请求的处理产生异常超时。

Description

请求处理方法、装置、计算机设备和存储介质
本申请要求于2019年04月15日提交中国专利局、申请号为2019103011161,发明名称为“请求处理方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,具体涉及一种请求处理方法、装置、计算机设备和存储介质。
背景技术
当用户通过客户端向服务器集群内的任意一个服务器发送请求时,在经过请求分发服务器对该请求的分发后,如果接收到请求的服务器在对上述请求进行处理的过程中突然宕机,或者出现短暂异常的情况,例如服务器由于网络连接过多产生了OOM(Out Of Memory,内存溢出),则服务器无法向客户端返回与请求对应的反馈信息,使得客户端一直在花费时间等待服务器响应,最后却接收到了请求处理失败的结果,从而造成用户发出的请求不能得到有效的处理,用户体验不好。
技术问题
本申请的主要目的为提供一种请求处理方法、装置、计算机设备和存储介质,现有的服务器在处理用户发出的请求后如果出现异常,会造成用户发出的请求不能得到有效的处理的技术问题。
技术解决方案
为了实现上述申请目的,本申请提出一种请求处理方法,所述方法包括步骤:
接收客户端发出的第一请求;
对所述第一请求对应的报文进行备份得到副本;
获取服务器集群中各服务器的优先级排序,将所述第一请求发送至优先级最高的第一服务器,以便所述第一服务器对所述第一请求进行处理,其中所述优先级排序为按照各所述服务器的优先级数值从小到大的顺序进行排序得到;
判断在预设的第一超时时间内是否接收到所述第一服务器返回的与所述第一请求对应的第一反馈结果;
若在所述第一超时时间内接收到所述第一反馈结果,根据所述优先级排序,依次遍历除所述第一服务器外的其它服务器,每遍历到一个服务器时,在将所述副本发送至当前遍历到的服务器后,判断是否在预设的第二超时时间内接收到所述当前遍历到的服务器返回的与所述副本对应的第二反馈结果;
若在所述第二超时时间内接收到所述第二反馈结果,停止遍历,并将所述第二反馈结果发送给所述客户端。
本申请还提供一种请求处理装置,包括:
接收模块,用于接收客户端发出的第一请求;
备份模块,用于对所述第一请求对应的报文进行备份得到副本;
第一发送模块,用于获取服务器集群中各服务器的优先级排序,将所述第一请求发送至优先级最高的第一服务器,以便所述第一服务器对所述第一请求进行处理,其中所述优先级排序为按照各所述服务器的优先级数值从小到大的顺序进行排序得到;
第一判断模块,用于判断在预设的第一超时时间内是否接收到所述第一服务器返回的与所述第一请求对应的第一反馈结果;
遍历模块,用于若在所述第一超时时间内没有接收到所述第一反馈结果,根据所述优先级排序,依次遍历除所述第一服务器外的其它服务器,每遍历到一个服务器时,在将所述副本发送至当前遍历到的服务器后,判断是否在预设的第二超时时间内接收到所述当前遍历到的服务器返回的与所述副本对应的第二反馈结果;
第二发送模块,用于若在所述第二超时时间内接收到所述第二反馈结果,停止遍历,并将所述第二反馈结果发送给所述客户端。
本申请还提供一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机可读指令,所述处理器执行所述计算机可读指令时实现上述方法的步骤。
本申请还提供一种计算机可读存储介质,其上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现上述方法的步骤。
有益效果
本申请中提供的请求处理方法、装置、计算机设备和存储介质,接收客户端发出的第一请求;对所述第一请求对应的报文进行备份得到副本;获取服务器集群中各服务器的优先级排序,将所述第一请求发送至优先级最高的第一服务器,以便所述第一服务器对所述第一请求进行处理;判断在预设的第一超时时间内是否接收到所述第一服务器返回的与所述第一请求对应的第一反馈结果;若在所述第一超时时间内接收到所述第一反馈结果,根据所述优先级排序,依次遍历除所述第一服务器外的其它服务器,每遍历到一个服务器时,在将所述副本发送至当前遍历到的服务器后,判断是否在预设的第二超时时间内接收到所述当前遍历到的服务器返回的与所述副本对应的第二反馈结果;若在所述第二超时时间内接收到所述第二反馈结果,停止遍历,并将所述第二反馈结果发送给所述客户端。本申请在调用优先级最高的第一服务器对接收到的第一请求进行处理时,如果没有在第一超时时间内没有接收到第一服务器返回的第一反馈结果,则会根据各服务器的优先级排序将通过对第一请求进行备份得到的副本转发到除第一服务器之外的其它的服务器进行处理,从而能够在第一服务器异常的情况下快速地调用其它的服务器对该第一请求进行处理,从而避免了向用户返回请求处理失败的结果,保证了对用户发出的请求处理不会产生异常超时,保障了用户的使用体验。
附图说明
图1 是本申请一实施例的请求处理方法的流程示意图;
图2是本申请另一实施例的请求处理方法的流程示意图;
图3是本申请一实施例的请求处理装置的结构示意图;
图4是本申请一实施例的计算机设备的结构示意图。
本发明的最佳实施方式
应当理解,此处所描述的具体实施例仅仅用于解释本申请,并不用于限定本申请。
参照图1,本申请一实施例的请求处理方法,包括:
S1:接收客户端发出的第一请求;
S2:对所述第一请求对应的报文进行备份得到副本;
S3:获取服务器集群中各服务器的优先级排序,将所述第一请求发送至优先级最高的第一服务器,以便所述第一服务器对所述第一请求进行处理,其中所述优先级排序为按照各所述服务器的优先级数值从小到大的顺序进行排序得到;
S4:判断在预设的第一超时时间内是否接收到所述第一服务器返回的与所述第一请求对应的第一反馈结果;
S5:若在所述第一超时时间内接收到所述第一反馈结果,根据所述优先级排序,依次遍历除所述第一服务器外的其它服务器,每遍历到一个服务器时,在将所述副本发送至当前遍历到的服务器后,判断是否在预设的第二超时时间内接收到所述当前遍历到的服务器返回的与所述副本对应的第二反馈结果;
S6:若在所述第二超时时间内接收到所述第二反馈结果,停止遍历,并将所述第二反馈结果发送给所述客户端。
如上述步骤S1至S6所述,本方法的执行主体为请求处理装置,具体可为请求分发服务器,上述的客户端可为手机,PDA(Personal Digital Assistant,个人数字助理)、膝上型计算机、掌上电脑等等,用户可通过该客户端来发送请求,来获取服务器的对于该请求的业务服务。上述优先级排序是指根据每个服务器的优先级数值进行排序得到的,优先级越高的服务器对应越空闲的工作状态,且处理请求的效率和速率越快,其中上述优先级数值可通过对服务器集群中各服务器的运行参数数据进行计算得到。上述的超时时间则是预先根据各服务器的优先级排序进行设置的,不同优先级的服务器可对应不同的超时时间,例如对于一个相同的请求,优先级越高的服务器对应的超时时间比优先级低的服务器对应的超时时间要小。在本实施例,在接收到用户通过客户端发送的第一请求后,首先对该第一请求的报文进行备份得到副本,并在获取了服务器集群中各服务器的优先级排序后将该第一请求发送到优先级最高的第一服务器,然后进一步判断是否在预设的第一超时时间内接收到第一服务器返回的与该第一请求对应的第一反馈结果,如果接收到了该第一反馈结果,则会将该第一反馈结果发送给客户端,以完成对该第一请求的处理,通过调用优先级最高的第一服务器对该第一请求进行处理,有利于提高对于该第一请求的处理效率,提高用户的使用体验。另外,如果在上述第一超时时间内没有接收到该第一反馈结果,则会根据上述优先级排序,依次遍历除第一服务器之外的其它服务器,每遍历到一个服务器时,在将所述副本发送至当前遍历到的服务器后,判断是否在预设的第二超时时间内接收到所述当前遍历到的服务器返回的与所述副本对应的第二反馈结果,若在第二超时时间内接收到该第二反馈结果,则停止遍历,并将第二反馈结果发送给客户端。中调用第二服务器对该副本进行处理。当第一服务器无法在第一超时时间内返回第一反馈结果时,可认为第一服务器当前处于异常状态,且无法对当前的第一请求进行处理,此时根据各服务器的优先级排序将通过对第一请求进行备份得到的副本转发到除第一服务器之外的其它的服务器进行处理,从而能够在第一服务器异常的情况下快速地调用其它的服务器对该第一请求进行处理,从而避免了向用户返回请求处理失败的结果,保证了对用户发出的请求处理不会产生异常超时,保障了用户的使用体验,另外上述其它的服务器是根据优先级排序对除第一服务器之外的其它的所有服务器进行筛选得出的特殊服务器,且该特殊服务器的优先级相对最高,通过调用该特殊服务器对第一请求进行处理,在保证了对该第一请求的正常处理的情况下,也能有效的保证对该第一请求的处理效率。
参照图2,进一步地,本申请一实施例中,上述步骤S3之前,包括:
S300:获取各所述服务器的运行参数数据;
S301:根据所述运行参数数据,按照预设规则计算各所述服务器的优先级数值;
S302:将各所述服务器的优先级数值按照从小到大的顺序进行排序,得到所述优先级排序。
如上述步骤S300至S302所述,在对第一请求进行处理之前,为了实现从所有的服务器中选出处理效率最高的一个服务器来对该第一请求进行处理,需要计算出每一个服务器的优先级数值,并根据上述优先级数值来对对所有的服务器进行优先级排序。具体地,首先获取每一个服务器的运行参数数据,其中上述运行参数数据包括但不限于CPU使用率、内存占用率、网络使用率,CPU使用率是服务器中运行的程序占用的CPU资源,表示服务器在某个时间点的运行程序的情况,CPU使用率越高,说明该服务器在当前时间运行了较多程序,反之较少,内存占用率是指进程所开销的内存,网络使用率是指网卡带宽的利用率。在获得了每个服务器的运行参数数据后,按照预设规则来计算出每一个服务器的优先级数值,最后将每一个服务器的优先级数值按照从小到大的顺序进行排序,来得到各服务器的优先级排序。其中,上述优先级数值用于表征服务器的负载状态,优先级数值越小表明服务器的负载状态越空闲,则服务器的优先级越高,优先级数值越大表明服务器的负载状态越忙碌,则服务器的优先级越低。另外,对于上述预设规则的具体内容不作限定,例如预设规则是指根据各服务器的运行参数数据以及预设的与各运行参数数据分别对应的权重值,进而来计算出各服务器的运行参数和值,即上述的优先级数值。或者预设规则还可以是指将服务器的每一个运行参数数据直接进行求和处理得到该服务器的运行参数总和,即上述的优先级数值。之后,当接收到用户通过客户端输入的第一请求后,便可以根据上述优先级排序来从所有的服务器中确定出用于处理该第一请求的服务器,并将该第一请求转发到该确定的服务器,以使得该服务器对该第一请求进行处理。在本实施例,根据各所有服务器的优先级排序来从所有的服务器中确定出用于处理该第一请求的服务器,从而实现将第一请求分发到负载较小的服务器上进行处理,提高了对第一请求的处理效率。
进一步地,本申请一实施例中,上述步骤S302,包括:
S3020:设置与各所述运行参数数据分别对应的权重值;
S3021:根据各所述运行参数数据与各所述权重值计算各所述服务器的运行参数和值;
S3022:将所述运行参数和值确定为所述优先级数值。
如上述步骤S3020至S3022所述,上述根据所述运行参数数据,按照预设规则计算各所述服务器的优先级数值的步骤具体包括:首先对每个运行参数设置对应的权重值,然后根据各上述运行参数数据与各上述权重值计算出每个服务器的运行参数和值,并将该运行参数和值确定为优先级数值,以使得通过将计算得出的各服务器的优先级数值按照从小到大的顺序进行排序,得到上述优先级排序。其中,上述与运行参数对应的权重值用于标识每个运行参数在衡量服务器的当前负载状态时所占的比重。运行参数的权重值越大,说明该运行参数所占比重越大。同理,运行指标的预设权重越小,说明该运行参数所占比重越小。例如当服务器的运行参数包括CPU使用率、内存占用率、及网络使用率时,可为CPU使用率设置预设权重为50%,为内存占用率设置预设权重为30%,为网络使用率设置预设权重为20%。可以理解地,各个运行参数对应的权重值的具体数值不作限定,可以由根据具体应用环境进行变更设置。另外,上述运行参数和值,即上述优先级数值用于标识服务器的运行状况,上述优先级数值与服务器的优先级呈负相关关系,且运行参数和值越小表示该服务器当前处理的访问请求越少,即该服务器处于相对空闲的工作状态,该服务器的优先级越高;运行参数和值越大表示该服务器当前处理的访问请求越多,即该物理服务器处于相对忙碌的工作状态,该服务器的优先级越低。举例地,服务器A当前的运行参数数据中的CPU使用率为20%、内存占用率为30%及网络使用率为30%,则服务器A的运行参数和值,即优先级数值为M=20%×50%+30%×30%+30%×20%=0.25。此时,服务器B当前的运行参数数据中的CPU使用率为50%、内存占用率为40%及网络使用率为50%,则物理服务器B的运行参数和值,即优先级数值为M=50%×50%+40%×30%+50%×20%=0.47。服务器C当前的运行参数数据中的CPU使用率为80%、内存占用率为80%、及网络使用率为70%,则物理服务器C的运行参数和值,即优先级数值为M=80%×50%+70%×30%+70%×20%=0.75,因此服务器A、B、C的按照优先级数值从小到大的顺序进行排序得到的优先级排序为A、B、C。
进一步地,本申请一实施例中,当前遍历到的服务器是在所述优先级排序中排序最末的服务器,上述步骤S5之后,包括:
S500:若在所述第二超时时间内没有接收到所述第二反馈结果,则向所述客户端返回请求处理失败信息;
S501:为所有所述服务器添加异常标记;
S502:向维修人员发出维修信息,以便所述维修人员对所有所述服务器进行维修处理。
如上述步骤S500至S502所述,假如当前遍历到的服务器是在所述优先级排序中排序最末的服务器,且在第二超时时间内没有接收到所述第二反馈结果,则表明在遍历完上述所有的其它服务器之后,都不存在能够在对应的超时时间内返回与第一请求对应的反馈信息的服务器,即上述所有的服务器都处于异常状态,因此当前无法对用户发出的第一请求进行处理,进而会向用户的客户端返回请求处理失败信息,向用户表明当前所有的服务器都无法对第一请求进行处理,由于所有的服务器暂时无法提供服务,则可发出故障提醒信息来提醒用户不用再等待,同时会为所有的服务器加上异常标记,以表明所有的服务器均处于异常的状态,并会向维修人员发出维修信息,以使得维修人员对所有的服务器进行维修,具体的发出维修信息的形式可为邮件形式或者发出报警信号。进一步地,在维护人员对所有的服务器进行维修检查,并完全修复好各服务器后,维护人员会返回维修完成信息,在接收到用户上述维修完成信息后,便会解除所有服务器的上述异常标记,从而可通过维修完成的服务器继续为用户提供服务。
进一步地,本申请一实施例中,上述步骤S6之后,包括:
S600:筛选出没有返回与所述第一请求对应的反馈结果的指定服务器,并为所述指定服务器添加异常标记,其中所述指定服务器的数量为一个或多个;
S601:向各所述指定服务器发送心跳信号;
S602:若存在在所述第一预设时间内返回了心跳回复信息的第一指定服务器,则对所述第一指定服务器解除所述异常标记。
如上述步骤S600至S602所述,上述指定服务器是指没有返回与所述第一请求对应的反馈结果的服务器,对于具有异常标记的指定服务器,这些指定服务器可能是出现了宕机情况,或者只是出现了短暂的异常,例如由于处于繁忙状态而无法在对应的超时时间内返回与第一请求对应的反馈结果。在本实施例,通过分别向每一个指定服务器发送心跳信号来检测每一个指定服务器是否处于正常工作状态还是处于异常状态。具体地,预先设置一个心跳响应超时时间,即上述的第一预设时间,例如可设为5s,如果某一个指定服务器在接收到心跳信号的5s内没有向系统返回心跳回复信息,则表明该某一个指定服务器当前处于异常状态;而如果该某一个指定服务器在接收到心跳信号的5s内成功向系统返回了心跳回复信息,则表明该某一个指定服务器当前处于正常工作的状态,则会对该某一个指定服务器解除异常标记。在本实施例,通过向具有异常标记的指定服务器发送心跳信号,来检测指定服务器是否真的处于异常状态,避免出现将只是处于暂时异常的服务器误认为出现了宕机而不能工作的情况,并且可筛选出在第一预设时间内返回了心跳回复信息的第一指定服务器,并对该第一指定服务器解除上述异常标记,从而在接收到新的请求时,可以调用解除了异常标记的第一指定服务器进行处理,有利于从所有的没有异常标记的服务器中选择优先级更高的服务器对新的请求进行处理,保证了对于新的请求的处理效率。
进一步地,本申请一实施例中,上述步骤S601之后,包括:
S6010:若存在在所述第一预设时间内没有返回心跳回复信息的第二指定服务器,则按照预设的时间间隔向所述第二指定服务器发送心跳信息;
S6011:记录所述第二指定服务器没有返回心跳回复信息的次数;
S6012:判断所述次数是否大于预设的次数阈值;
S6013:若是,向维修人员发出维修信息,以便所述维修人员对所述第二指定服务器进行维修处理。
如上述步骤S6010至S6013所述,上述第二指定服务器为在第一预设时间内没有返回心跳回复信息的服务器,如果在预设的时间间隔向第二指定服务器发送了多次心跳信息,而第二指定服务器都没有在上述第一预设时间内对该多次心跳信息进行对应的心跳回复信息的回复,则判定该第二指定服务器确实处于异常状态。具体地,预先设置一个时间间隔,例如每隔一小时一次,以及预先设置一个次数阈值,例如可设为3次,如果第二指定服务器超过3次没有在第一预设时间内返回对应于心跳信息的心跳回复信息,则可以确定该第二指定服务器处于异常状态,例如出现了机器故障或者宕机的状况,此时通过指定形式向维修人员发出维修信息,以使得维修人员对该第二指定服务器检查后进行修复或更换处理,上述指定形式可为邮件形式、短信形式或者报警语音形式,等等,在此不作具体的限定。在本实施例,通过向具有异常标记的第二指定服务器定时发送心跳信号,进而获得第二指定服务器的真实工作状态,若第二指定服务器没有返回心跳回复信息的次数大于上述次数阈值,则判定该第二指定服务器处于异常状态,并可及时地通知维修人员对第二指定服务器进行维修,以避免由于不对出现异常的第二指定服务器进行及时处理而导致更大的损伤,保证整个服务器系统的正常运作。
进一步地,本申请一实施例中,上述步骤S6之后,包括:
S610:判断是否接收到新的第二请求;
S611:若是,根据各所述服务器的标记状态,从所有所述服务器中筛选出没有添加所述异常标记的第三指定服务器;
S612:根据所述优先级排序,从所述第三指定服务器中确定出优先级最高的第二服务器;
S613:将所述第二请求发送至所述第二服务器,以便所述第二服务器对所述第二请求进行处理。
如上述步骤S610至S613所述,当接收到新的第二请求时,首先获取每一个服务器的标记状态,具有异常标记的服务器的状态对应为异常状态,不具有异常标记的服务器的状态对应为正常状态,然后根据上述标记状态从所有服务器中筛选出没有添加异常标记的第三指定服务器,其中上述第三指定服务器为处于正常状态的服务器,只有处于正常状态的服务器才有对该新的第二请求进行处理的权限,即只会从处于正常状态的服务器中挑选出对该第二请求进行处理的服务器。然后根据上述优先级排序,即根据处于正常状态的每一个第三指定服务器在优先级排序中的排序位置信息,从所有的第三指定服务器中选择优先级最高的第二服务器,并将上述第二请求发送到该第二服务器,以通过该第二服务器进行处理并返回对应新的第二请求的第三反馈结果。在本实施例,根据优先级排序,并只从处于正常状态(即没有添加异常标记)的所有服务器中选择优先级最高的第二服务器来对新的第二请求进行处理,避免出现选择了处于异常状态(即添加有异常标记)的服务器来对新的请求进行处理而得不到反馈结果的情况,保证了对新的第二请求的有效处理,另外在所有的处于正常状态的服务器中选择优先级最高的第二服务器来对新接收的第二请求进行处理,有利于提高对于该新的第二请求的处理效率,提高用户的使用体验。
参照图3,本申请一实施例中还提供了一种请求处理装置,包括:
接收模块1,用于接收客户端发出的第一请求;
备份模块2,用于对所述第一请求对应的报文进行备份得到副本;
第一发送模块3,用于获取服务器集群中各服务器的优先级排序,将所述第一请求发送至优先级最高的第一服务器,以便所述第一服务器对所述第一请求进行处理,其中所述优先级排序为按照各所述服务器的优先级数值从小到大的顺序进行排序得到;
第一判断模块4,用于判断在预设的第一超时时间内是否接收到所述第一服务器返回的与所述第一请求对应的第一反馈结果;
遍历模块5,用于若在所述第一超时时间内没有接收到所述第一反馈结果,根据所述优先级排序,依次遍历除所述第一服务器外的其它服务器,每遍历到一个服务器时,在将所述副本发送至当前遍历到的服务器后,判断是否在预设的第二超时时间内接收到所述当前遍历到的服务器返回的与所述副本对应的第二反馈结果;
第二发送模块6,用于若在所述第二超时时间内接收到所述第二反馈结果,停止遍历,并将所述第二反馈结果发送给所述客户端。
本实施例中,上述请求处理装置中的接收模块、备份模块、第一发送模块、第一判断模块、遍历模块与第二发送模块的功能和作用的实现过程具体详见上述请求处理方法中对应步骤S1-S6的实现过程,在此不再赘述。
进一步地,本申请一实施例中,上述请求处理装置,包括:
获取模块,用于获取各所述服务器的运行参数数据;
计算模块,用于根据所述运行参数数据,按照预设规则计算各所述服务器的优先级数值;
排序模块,用于将各所述服务器的优先级数值按照从小到大的顺序进行排序,得到所述优先级排序。
本实施例中,上述请求处理装置中的获取模块、计算模块与排序模块的功能和作用的实现过程具体详见上述请求处理方法中对应步骤S300-S302的实现过程,在此不再赘述。
进一步地,本申请一实施例中,上述计算模块,包括:
设置单元,用于根据设置与各运行参数分别对应的权重值;
计算单元,用于根据各所述运行参数数据与各所述权重值计算各所述服务器的运行参数和值;
确定单元,用于将所述运行参数和值确定为所述优先级数值。
本实施例中,上述请求处理装置中的设置单元、计算单元与确定单元的功能和作用的实现过程具体详见上述请求处理方法中对应步骤S3020-S3022的实现过程,在此不再赘述。
进一步地,本申请一实施例中,当前遍历到的服务器是在所述优先级排序中排序最末的服务器,上述请求处理装置,还包括:
返回模块,用于若在所述第二超时时间内没有接收到所述第二反馈结果,则向所述客户端返回请求处理失败信息;
添加模块,用于为所有所述服务器添加异常标记;
第一维修模块,用于向维修人员发出维修信息,以便所述维修人员对所有所述服务器进行维修处理。
本实施例中,上述请求处理装置中的返回模块、添加模块与第一维修模块的功能和作用的实现过程具体详见上述请求处理方法中对应步骤S500-S502的实现过程,在此不再赘述。
进一步地,本申请一实施例中,上述请求处理装置,还包括:
第一筛选模块,用于筛选出没有返回与所述第一请求对应的反馈结果的指定服务器,并为所述指定服务器添加异常标记,其中所述指定服务器的数量为一个或多个;
第三发送模块,用于向各所述指定服务器发送心跳信号;
解除模块,用于若存在在所述第一预设时间内返回了心跳回复信息的第一指定服务器,则对所述第一指定服务器解除所述异常标记。
本实施例中,上述请求处理装置中的第一筛选模块、第三发送模块与解除模块的功能和作用的实现过程具体详见上述请求处理方法中对应步骤S600-S602的实现过程,在此不再赘述。
进一步地,本申请一实施例中,上述请求处理装置,还包括:
第四发送模块,用于若存在在所述第一预设时间内没有返回心跳回复信息的第二指定服务器,则按照预设的时间间隔向所述第二指定服务器发送心跳信息;
记录模块,用于记录所述第二指定服务器没有返回心跳回复信息的次数;
第二判断模块,用于判断所述次数是否大于预设的次数阈值;
第二维修模块,用于若是,向维修人员发出维修信息,以便所述维修人员对所述第二指定服务器进行维修处理。
本实施例中,上述请求处理装置中的第四发送模块、记录模块、第二判断模块与第二维修模块的功能和作用的实现过程具体详见上述请求处理方法中对应步骤S6010-S6013的实现过程,在此不再赘述。
进一步地,本申请一实施例中,上述请求处理装置,还包括:
第三判断模块,用于判断是否接收到新的第二请求;
第二筛选模块,用于若是,根据各所述服务器的标记状态,从所有所述服务器中筛选出没有添加所述异常标记的第三指定服务器;
确定模块,用于根据所述优先级排序,从所述第三指定服务器中确定出优先级最高的第二服务器;
第五发送模块,用于将所述第二请求发送至所述第二服务器,以便所述第二服务器对所述第二请求进行处理。
本实施例中,上述请求处理装置中的第三判断模块、第二筛选模块、确定模块与第五发送模块的功能和作用的实现过程具体详见上述请求处理方法中对应步骤S610-S613的实现过程,在此不再赘述。
参照图4,本申请实施例中还提供一种计算机设备,该计算机设备可以是服务器,其内部结构可以如图4所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备设计的处理器用于提供计算和控制能力。该计算机设备的存储器包括易失性或非易失性存储介质、内存储器。该易失性或非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为易失性或非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储请求以及服务器的优先级排序等数据。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现上述任一个示例性实施例所示出的请求处理方法。本领域技术人员可以理解,图4中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的装置、计算机设备的限定。
本申请一实施例还提供一种计算机可读存储介质,该计算机可读存储介质可以是易失性的,也可以是非易失性的,其上存储有计算机可读指令,该计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行时实现上述请求处理方法实施例中的步骤。
综上所述,本申请实施例中提供的请求处理方法、装置、计算机设备和存储介质,在调用优先级最高的第一服务器对接收到的第一请求进行处理时,如果没有在第一超时时间内没有接收到第一服务器返回的第一反馈结果,则会根据各服务器的优先级排序将通过对第一请求进行备份得到的副本转发到除第一服务器之外的其它的服务器进行处理,从而能够在第一服务器异常的情况下快速地调用其它的服务器对该第一请求进行处理,从而避免了向用户返回请求处理失败的结果,保证了对用户发出的请求处理不会产生异常超时,保障了用户的使用体验。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性或易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的和实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM通过多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双速据率SDRAM(SSRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。
以上所述仅为本申请的优选实施例,并非因此限制本申请的专利范围,凡是利用本申请说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本申请的专利保护范围内。

Claims (20)

  1. 一种请求处理方法,其特征在于,包括:
    接收客户端发出的第一请求;
    对所述第一请求对应的报文进行备份得到副本;
    获取服务器集群中各服务器的优先级排序,将所述第一请求发送至优先级最高的第一服务器,以便所述第一服务器对所述第一请求进行处理,其中所述优先级排序为按照各所述服务器的优先级数值从小到大的顺序进行排序得到;
    判断在预设的第一超时时间内是否接收到所述第一服务器返回的与所述第一请求对应的第一反馈结果;
    若在所述第一超时时间内没有接收到所述第一反馈结果,根据所述优先级排序,依次遍历除所述第一服务器外的其它服务器,每遍历到一个服务器时,在将所述副本发送至当前遍历到的服务器后,判断是否在预设的第二超时时间内接收到所述当前遍历到的服务器返回的与所述副本对应的第二反馈结果;
    若在所述第二超时时间内接收到所述第二反馈结果,停止遍历,并将所述第二反馈结果发送给所述客户端。
  2. 根据权利要求1所述的请求处理方法,其特征在于,所述获取服务器集群中各服务器的优先级排序,将所述第一请求发送至优先级最高的第一服务器的步骤之前,包括:
    获取各所述服务器的运行参数数据;
    根据所述运行参数数据,按照预设规则计算各所述服务器的优先级数值;
    将各所述服务器的优先级数值按照从小到大的顺序进行排序,得到所述优先级排序。
  3. 根据权利要求2所述的请求处理方法,其特征在于,所述根据所述运行参数数据,按照预设规则计算各所述服务器的优先级数值的步骤,包括:
    设置与各运行参数分别对应的权重值;
    根据各所述运行参数数据与各所述权重值计算各所述服务器的运行参数和值;
    将所述运行参数和值确定为所述优先级数值。
  4. 根据权利要求1所述的请求处理方法,其特征在于,当前遍历到的服务器是在所述优先级排序中排序最末的服务器,所述判断是否在预设的第二超时时间内接收到所述当前遍历到的服务器返回的与所述副本对应的第二反馈结果的步骤之后,包括:
    若在所述第二超时时间内没有接收到所述第二反馈结果,则向所述客户端返回请求处理失败信息;
    为所有所述服务器添加异常标记;
    向维修人员发出维修信息,以便所述维修人员对所有所述服务器进行维修处理。
  5. 根据权利要求1所述的请求处理方法,其特征在于,所述若在所述第二超时时间内接收到所述第二反馈结果,停止遍历,并将所述第二反馈结果发送给所述客户端的步骤之后,包括:
    筛选出没有返回与所述第一请求对应的反馈结果的指定服务器,并为所述指定服务器添加异常标记,其中所述指定服务器的数量为一个或多个;
    向各所述指定服务器发送心跳信号;
    若存在在所述第一预设时间内返回了心跳回复信息的第一指定服务器,则对所述第一指定服务器解除所述异常标记。
  6. 根据权利要求5所述的请求处理方法,其特征在于,所述向各所述指定服务器发送心跳信号的步骤之后,包括:
    若存在在所述第一预设时间内没有返回心跳回复信息的第二指定服务器,则按照预设的时间间隔向所述第二指定服务器发送心跳信息;
    记录所述第二指定服务器没有返回心跳回复信息的次数;
    判断所述次数是否大于预设的次数阈值;
    若是,向维修人员发出维修信息,以便所述维修人员对所述第二指定服务器进行维修处理。
  7. 根据权利要求6所述的请求处理方法,其特征在于,所述若在所述第二超时时间内接收到所述第二反馈结果,停止遍历,并将所述第二反馈结果发送给所述客户端的步骤之后,包括:
    判断是否接收到新的第二请求;
    若是,根据各所述服务器的标记状态,从所有所述服务器中筛选出没有添加所述异常标记的第三指定服务器;
    根据所述优先级排序,从所述第三指定服务器中确定出优先级最高的第二服务器;
    将所述第二请求发送至所述第二服务器,以便所述第二服务器对所述第二请求进行处理。
  8. 一种请求处理装置,其特征在于,包括:
    接收模块,用于接收客户端发出的第一请求;
    备份模块,用于对所述第一请求对应的报文进行备份得到副本;
    第一发送模块,用于获取服务器集群中各服务器的优先级排序,将所述第一请求发送至优先级最高的第一服务器,以便所述第一服务器对所述第一请求进行处理,其中所述优先级排序为按照各所述服务器的优先级数值从小到大的顺序进行排序得到;
    第一判断模块,用于判断在预设的第一超时时间内是否接收到所述第一服务器返回的与所述第一请求对应的第一反馈结果;
    遍历模块,用于若在所述第一超时时间内没有接收到所述第一反馈结果,根据所述优先级排序,依次遍历除所述第一服务器外的其它服务器,每遍历到一个服务器时,在将所述副本发送至当前遍历到的服务器后,判断是否在预设的第二超时时间内接收到所述当前遍历到的服务器返回的与所述副本对应的第二反馈结果;
    第二发送模块,用于若在所述第二超时时间内接收到所述第二反馈结果,停止遍历,并将所述第二反馈结果发送给所述客户端。
  9. 根据权利要求8所述的请求处理装置,其特征在于,所述装置包括:
    获取模块,用于获取各所述服务器的运行参数数据;
    计算模块,用于根据所述运行参数数据,按照预设规则计算各所述服务器的优先级数值;
    排序模块,用于将各所述服务器的优先级数值按照从小到大的顺序进行排序,得到所述优先级排序。
  10. 根据权利要求9所述的请求处理装置,其特征在于,所述计算模块,包括:
    设置单元,用于根据设置与各运行参数分别对应的权重值;
    计算单元,用于根据各所述运行参数数据与各所述权重值计算各所述服务器的运行参数和值;
    确定单元,用于将所述运行参数和值确定为所述优先级数值。
  11. 根据权利要求8所述的请求处理装置,其特征在于,当前遍历到的服务器是在所述优先级排序中排序最末的服务器,所述装置,包括:
    返回模块,用于若在所述第二超时时间内没有接收到所述第二反馈结果,则向所述客户端返回请求处理失败信息;
    添加模块,用于为所有所述服务器添加异常标记;
    第一维修模块,用于向维修人员发出维修信息,以便所述维修人员对所有所述服务器进行维修处理。
  12. 根据权利要求8所述的请求处理装置,其特征在于,当前遍历到的服务器是在所述优先级排序中排序最末的服务器,所述装置,包括:
    第一筛选模块,用于筛选出没有返回与所述第一请求对应的反馈结果的指定服务器,并为所述指定服务器添加异常标记,其中所述指定服务器的数量为一个或多个;
    第三发送模块,用于向各所述指定服务器发送心跳信号;
    解除模块,用于若存在在所述第一预设时间内返回了心跳回复信息的第一指定服务器,则对所述第一指定服务器解除所述异常标记。
  13. 根据权利要求12所述的请求处理装置,其特征在于,所述装置,包括:
    第四发送模块,用于若存在在所述第一预设时间内没有返回心跳回复信息的第二指定服务器,则按照预设的时间间隔向所述第二指定服务器发送心跳信息;
    记录模块,用于记录所述第二指定服务器没有返回心跳回复信息的次数;
    第二判断模块,用于判断所述次数是否大于预设的次数阈值;
    第二维修模块,用于若是,向维修人员发出维修信息,以便所述维修人员对所述第二指定服务器进行维修处理。
  14. 根据权利要求13所述的请求处理装置,其特征在于,所述装置,包括:
    第三判断模块,用于判断是否接收到新的第二请求;
    第二筛选模块,用于若是,根据各所述服务器的标记状态,从所有所述服务器中筛选出没有添加所述异常标记的第三指定服务器;
    确定模块,用于根据所述优先级排序,从所述第三指定服务器中确定出优先级最高的第二服务器;
    第五发送模块,用于将所述第二请求发送至所述第二服务器,以便所述第二服务器对所述第二请求进行处理。
  15. 一种计算机设备,包括存储器和处理器,所述存储器存储有计算机可读指令,其特征在于,所述处理器执行所述计算机可读指令时实现请求处理方法,该请求处理方法,包括:
    接收客户端发出的第一请求;
    对所述第一请求对应的报文进行备份得到副本;
    获取服务器集群中各服务器的优先级排序,将所述第一请求发送至优先级最高的第一服务器,以便所述第一服务器对所述第一请求进行处理,其中所述优先级排序为按照各所述服务器的优先级数值从小到大的顺序进行排序得到;
    判断在预设的第一超时时间内是否接收到所述第一服务器返回的与所述第一请求对应的第一反馈结果;
    若在所述第一超时时间内没有接收到所述第一反馈结果,根据所述优先级排序,依次遍历除所述第一服务器外的其它服务器,每遍历到一个服务器时,在将所述副本发送至当前遍历到的服务器后,判断是否在预设的第二超时时间内接收到所述当前遍历到的服务器返回的与所述副本对应的第二反馈结果;
    若在所述第二超时时间内接收到所述第二反馈结果,停止遍历,并将所述第二反馈结果发送给所述客户端。
  16. 根据权利要求15所述的计算机设备,其特征在于,所述获取服务器集群中各服务器的优先级排序,将所述第一请求发送至优先级最高的第一服务器的步骤之前,包括:
    获取各所述服务器的运行参数数据;
    根据所述运行参数数据,按照预设规则计算各所述服务器的优先级数值;
    将各所述服务器的优先级数值按照从小到大的顺序进行排序,得到所述优先级排序。
  17. 根据权利要求16所述的计算机设备,其特征在于,所述根据所述运行参数数据,按照预设规则计算各所述服务器的优先级数值的步骤,包括:
    设置与各运行参数分别对应的权重值;
    根据各所述运行参数数据与各所述权重值计算各所述服务器的运行参数和值;
    将所述运行参数和值确定为所述优先级数值。
  18. 一种计算机可读存储介质,其上存储有计算机可读指令,其特征在于,所述计算机可读指令被处理器执行时实现请求处理方法,该请求处理方法,包括:
    接收客户端发出的第一请求;
    对所述第一请求对应的报文进行备份得到副本;
    获取服务器集群中各服务器的优先级排序,将所述第一请求发送至优先级最高的第一服务器,以便所述第一服务器对所述第一请求进行处理,其中所述优先级排序为按照各所述服务器的优先级数值从小到大的顺序进行排序得到;
    判断在预设的第一超时时间内是否接收到所述第一服务器返回的与所述第一请求对应的第一反馈结果;
    若在所述第一超时时间内没有接收到所述第一反馈结果,根据所述优先级排序,依次遍历除所述第一服务器外的其它服务器,每遍历到一个服务器时,在将所述副本发送至当前遍历到的服务器后,判断是否在预设的第二超时时间内接收到所述当前遍历到的服务器返回的与所述副本对应的第二反馈结果;
    若在所述第二超时时间内接收到所述第二反馈结果,停止遍历,并将所述第二反馈结果发送给所述客户端。
  19. 根据权利要求18所述的计算机可读存储介质,其特征在于,所述获取服务器集群中各服务器的优先级排序,将所述第一请求发送至优先级最高的第一服务器的步骤之前,包括:
    获取各所述服务器的运行参数数据;
    根据所述运行参数数据,按照预设规则计算各所述服务器的优先级数值;
    将各所述服务器的优先级数值按照从小到大的顺序进行排序,得到所述优先级排序。
  20. 根据权利要求19所述的计算机可读存储介质,其特征在于,所述根据所述运行参数数据,按照预设规则计算各所述服务器的优先级数值的步骤,包括:
    设置与各运行参数分别对应的权重值;
    根据各所述运行参数数据与各所述权重值计算各所述服务器的运行参数和值;
    将所述运行参数和值确定为所述优先级数值。
PCT/CN2019/119567 2019-04-15 2019-11-20 请求处理方法、装置、计算机设备和存储介质 WO2020211378A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910301116.1 2019-04-15
CN201910301116.1A CN110138837B (zh) 2019-04-15 2019-04-15 请求处理方法、装置、计算机设备和存储介质

Publications (1)

Publication Number Publication Date
WO2020211378A1 true WO2020211378A1 (zh) 2020-10-22

Family

ID=67570062

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/119567 WO2020211378A1 (zh) 2019-04-15 2019-11-20 请求处理方法、装置、计算机设备和存储介质

Country Status (2)

Country Link
CN (1) CN110138837B (zh)
WO (1) WO2020211378A1 (zh)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732499A (zh) * 2020-12-30 2021-04-30 广州品唯软件有限公司 一种基于微服务架构的测试方法、装置及计算机系统
CN112861091A (zh) * 2021-03-18 2021-05-28 网易(杭州)网络有限公司 登录方法、装置、电子设备和存储介质
CN112988824A (zh) * 2021-03-15 2021-06-18 平安科技(深圳)有限公司 数据生成方法、装置、计算机设备和存储介质
CN113191146A (zh) * 2021-05-26 2021-07-30 平安国际智慧城市科技股份有限公司 诉求数据的分配方法、装置、计算机设备和存储介质
CN113626693A (zh) * 2021-07-30 2021-11-09 未鲲(上海)科技服务有限公司 产品推荐方法、装置、计算机设备和存储介质
CN113660510A (zh) * 2021-08-19 2021-11-16 杭州时趣信息技术有限公司 一种视频处理云厂商配置方法、装置、系统
CN114095560A (zh) * 2022-01-20 2022-02-25 浙江口碑网络技术有限公司 一种服务对象切换方法及设备
CN115334011A (zh) * 2022-08-09 2022-11-11 成都精灵云科技有限公司 一种服务质量控制方法、装置、服务器及存储介质
CN115660607A (zh) * 2022-12-12 2023-01-31 平安银行股份有限公司 一种审批链自动生成方法、装置以及计算机存储介质
CN116880770A (zh) * 2023-07-27 2023-10-13 山东溯源安全科技有限公司 一种u盘读取控制方法、电子设备及存储介质
CN117639936A (zh) * 2023-12-12 2024-03-01 广西电网有限责任公司贵港供电局 一种基于ip光纤通信的传输方法和装置

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110138837B (zh) * 2019-04-15 2021-12-28 平安科技(深圳)有限公司 请求处理方法、装置、计算机设备和存储介质
KR20210022836A (ko) * 2019-08-21 2021-03-04 현대자동차주식회사 클라이언트 전자 장치, 차량 및 그 제어 방법
CN110781452B (zh) * 2019-09-18 2023-11-24 平安科技(深圳)有限公司 统计任务的处理方法、装置、计算机设备和存储介质
CN110737548B (zh) * 2019-10-28 2022-06-10 聚好看科技股份有限公司 数据请求方法和服务器
CN111045805A (zh) * 2019-12-11 2020-04-21 深圳前海环融联易信息科技服务有限公司 任务执行器的评级方法、装置、计算机设备以及存储介质
CN111541555A (zh) * 2020-03-24 2020-08-14 中国平安人寿保险股份有限公司 群聊优化方法及相关产品
CN111506403A (zh) * 2020-04-03 2020-08-07 北京声智科技有限公司 一种多服务处理方法及装置
CN111488203B (zh) * 2020-04-13 2023-02-28 深圳市友杰智新科技有限公司 录音识别任务的处理方法、装置、计算机设备和存储介质
CN111556142B (zh) * 2020-04-26 2023-04-18 天津中新智冠信息技术有限公司 服务调用方法、装置及系统
CN111741539B (zh) * 2020-08-28 2020-12-08 深圳传音控股股份有限公司 设备连接方法、设备、系统及可读存储介质
CN112235393B (zh) * 2020-10-13 2023-01-24 上海燕汐软件信息科技有限公司 一种基于物流系统的服务稳定方法和装置
CN112270418A (zh) * 2020-10-30 2021-01-26 云账户技术(天津)有限公司 一种银行渠道维护的处理方法
CN113114505B (zh) * 2021-04-13 2022-07-12 广州海鹚网络科技有限公司 基于httpClient的访问请求处理方法及系统
CN113743628A (zh) * 2021-09-18 2021-12-03 重庆允成互联网科技有限公司 维修响应及时率计算方法、装置、计算机设备及存储介质
CN115051910B (zh) * 2022-05-19 2024-06-18 北京声智科技有限公司 请求处理方法、装置、电子设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106412079A (zh) * 2016-10-20 2017-02-15 福建天泉教育科技有限公司 请求处理方法及系统
CN106657426A (zh) * 2015-11-04 2017-05-10 中兴通讯股份有限公司 域名解析请求的处理方法、装置及服务器
CN107888634A (zh) * 2016-09-29 2018-04-06 北京金山云网络技术有限公司 一种分布式存储系统的数据请求方法及装置
CN110138837A (zh) * 2019-04-15 2019-08-16 平安科技(深圳)有限公司 请求处理方法、装置、计算机设备和存储介质
CN110333937A (zh) * 2019-05-30 2019-10-15 平安科技(深圳)有限公司 任务分发方法、装置、计算机设备和存储介质

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3367252B1 (en) * 2010-07-26 2019-10-16 Seven Networks, LLC Context aware traffic management for resource conservation in a wireless network
CN108429800B (zh) * 2010-11-22 2020-04-24 杭州硕文软件有限公司 一种移动设备
CN102404390B (zh) * 2011-11-07 2013-11-27 广东电网公司电力科学研究院 高速实时数据库的智能化动态负载均衡方法
CN107391268A (zh) * 2016-05-17 2017-11-24 阿里巴巴集团控股有限公司 服务请求处理方法及装置
CN109032800A (zh) * 2018-07-26 2018-12-18 郑州云海信息技术有限公司 一种负载均衡调度方法、负载均衡器、服务器及系统
CN109104500A (zh) * 2018-09-29 2018-12-28 广东省信息工程有限公司 一种动态调整的服务器负载均衡方法及装置
CN109584105B (zh) * 2018-11-12 2023-10-17 平安科技(深圳)有限公司 一种服务响应的方法及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657426A (zh) * 2015-11-04 2017-05-10 中兴通讯股份有限公司 域名解析请求的处理方法、装置及服务器
CN107888634A (zh) * 2016-09-29 2018-04-06 北京金山云网络技术有限公司 一种分布式存储系统的数据请求方法及装置
CN106412079A (zh) * 2016-10-20 2017-02-15 福建天泉教育科技有限公司 请求处理方法及系统
CN110138837A (zh) * 2019-04-15 2019-08-16 平安科技(深圳)有限公司 请求处理方法、装置、计算机设备和存储介质
CN110333937A (zh) * 2019-05-30 2019-10-15 平安科技(深圳)有限公司 任务分发方法、装置、计算机设备和存储介质

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112732499A (zh) * 2020-12-30 2021-04-30 广州品唯软件有限公司 一种基于微服务架构的测试方法、装置及计算机系统
CN112988824B (zh) * 2021-03-15 2023-09-26 平安科技(深圳)有限公司 数据生成方法、装置、计算机设备和存储介质
CN112988824A (zh) * 2021-03-15 2021-06-18 平安科技(深圳)有限公司 数据生成方法、装置、计算机设备和存储介质
CN112861091A (zh) * 2021-03-18 2021-05-28 网易(杭州)网络有限公司 登录方法、装置、电子设备和存储介质
CN113191146A (zh) * 2021-05-26 2021-07-30 平安国际智慧城市科技股份有限公司 诉求数据的分配方法、装置、计算机设备和存储介质
CN113626693A (zh) * 2021-07-30 2021-11-09 未鲲(上海)科技服务有限公司 产品推荐方法、装置、计算机设备和存储介质
CN113660510A (zh) * 2021-08-19 2021-11-16 杭州时趣信息技术有限公司 一种视频处理云厂商配置方法、装置、系统
CN114095560A (zh) * 2022-01-20 2022-02-25 浙江口碑网络技术有限公司 一种服务对象切换方法及设备
CN115334011A (zh) * 2022-08-09 2022-11-11 成都精灵云科技有限公司 一种服务质量控制方法、装置、服务器及存储介质
CN115660607A (zh) * 2022-12-12 2023-01-31 平安银行股份有限公司 一种审批链自动生成方法、装置以及计算机存储介质
CN115660607B (zh) * 2022-12-12 2023-04-28 平安银行股份有限公司 一种审批链自动生成方法、装置以及计算机存储介质
CN116880770A (zh) * 2023-07-27 2023-10-13 山东溯源安全科技有限公司 一种u盘读取控制方法、电子设备及存储介质
CN117639936A (zh) * 2023-12-12 2024-03-01 广西电网有限责任公司贵港供电局 一种基于ip光纤通信的传输方法和装置
CN117639936B (zh) * 2023-12-12 2024-05-24 广西电网有限责任公司贵港供电局 一种基于ip光纤通信的传输方法和装置

Also Published As

Publication number Publication date
CN110138837B (zh) 2021-12-28
CN110138837A (zh) 2019-08-16

Similar Documents

Publication Publication Date Title
WO2020211378A1 (zh) 请求处理方法、装置、计算机设备和存储介质
US8010840B2 (en) Generation of problem tickets for a computer system
WO2022068645A1 (zh) 数据库故障发现方法、装置、电子设备及存储介质
CN108733509A (zh) 用于在集群系统中备份和恢复数据的方法和系统
US8305911B2 (en) System and method for identifying and managing service disruptions using network and systems data
US20070168201A1 (en) Formula for automatic prioritization of the business impact based on a failure on a service in a loosely coupled application
CN105933408A (zh) 一种Redis通用中间件的实现方法及装置
CN111064802B (zh) 一种网络请求的处理方法、装置、电子设备及存储介质
CN111782456B (zh) 异常检测方法、装置、计算机设备和存储介质
US20200210293A1 (en) Application health monitoring and automatic remediation
US8103905B2 (en) Detecting and recovering from process failures
JP2010152818A (ja) サーバシステム
CN107040566A (zh) 业务处理方法及装置
US11030024B2 (en) Assigning a severity level to a computing service using tenant telemetry data
CN112671945A (zh) 管理ip代理池的方法、装置、计算机设备及存储介质
JP2006277685A (ja) 障害発生通知プログラム、および通知装置。
CN113905092B (zh) 一种确定可复用代理队列的方法、装置、终端及存储介质
US20220276901A1 (en) Batch processing management
CN111580859B (zh) 一种灰度割接方法、系统及电子设备
CN110955647A (zh) 数据库辅助方法、装置、计算机设备和存储介质
WO2023160278A1 (zh) 一种请求处理方法、装置及存储介质
CN116996517B (zh) 负载均衡方法、装置、电子设备和介质
CN111614747B (zh) 一种信息处理方法及装置
CN116302447B (zh) 一种基于云平台的管理软件的方法及软件管理系统
CN113435782A (zh) 业务变更方法及装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19925382

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19925382

Country of ref document: EP

Kind code of ref document: A1