WO2019169724A1 - Server concurrency control method and device, computer device, and storage medium - Google Patents

Server concurrency control method and device, computer device, and storage medium Download PDF

Info

Publication number
WO2019169724A1
WO2019169724A1 PCT/CN2018/085263 CN2018085263W WO2019169724A1 WO 2019169724 A1 WO2019169724 A1 WO 2019169724A1 CN 2018085263 W CN2018085263 W CN 2018085263W WO 2019169724 A1 WO2019169724 A1 WO 2019169724A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
requests
current
concurrent
request
Prior art date
Application number
PCT/CN2018/085263
Other languages
French (fr)
Chinese (zh)
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 WO2019169724A1 publication Critical patent/WO2019169724A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/568Storing data temporarily at an intermediate stage, e.g. caching
    • 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
    • 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/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • 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/56Provisioning of proxy services
    • H04L67/566Grouping or aggregating service requests, e.g. for unified processing

Definitions

  • the present application relates to the field of information technology, and in particular, to a server concurrency control method, apparatus, computer device, and storage medium.
  • Eclipse Eclipse is an open source, Java-based extensible development platform
  • Eclipse's entire IDE is a plug-in that provides new extension points for other plug-ins to extend.
  • the client initiates a large number of requests to the database server, due to the upper limit of the processing capacity of the database server, the performance of the database server is degraded, and finally the application is down.
  • the present invention provides a server concurrency control method, apparatus, computer device, and storage medium, which is intended to solve the problem that when a client initiates a large number of requests to a database server in the prior art, the database server cannot optimize the request to reach the upper limit. As a result, the performance of the database server is degraded, and the application is down.
  • the present application provides a server concurrency control method, which includes: acquiring a current running parameter of a database server, and a weight corresponding to an operation index included in the running parameter, according to the running parameter and the running index. Corresponding weights obtain the server performance comprehensive value; if the server performance comprehensive value is greater than the preset performance comprehensive value threshold, the current application service concurrent number is obtained, and the current application service concurrent number is set as the preset application service to bear the maximum concurrent number; Obtain the current number of requests of the database server, determine whether the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications; if the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications, the number of valid requests exceeds the number of services.
  • the request with the maximum number of concurrent requests is forwarded to the backup cache server; if the total number of requests cached in the backup cache server exceeds the preset throw request threshold, the notification information for notifying the database server is sent to the designated terminal; New is detected within the time interval Increase the database server, obtain the cached request from the alternate cache server, and respond accordingly.
  • the present application provides a server concurrency control device, which includes: an integrated value calculation unit, configured to acquire a current running parameter of a database server, and a weight corresponding to an operating index included in the operating parameter, according to the running The parameter and the weight corresponding to the running index are obtained by the server performance comprehensive value; the maximum concurrent number adjusting unit is configured to obtain the current application service concurrent number of the server if the server performance comprehensive value is greater than the preset performance comprehensive value threshold, and the current application The service concurrent number is set to the default application service to bear the maximum number of concurrent; the determining unit is configured to obtain the current number of requests of the database server, determine whether the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications, and request the forwarding unit, If the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications, the request for exceeding the maximum number of concurrent requests of the valid requests is forwarded to the alternate cache server; the notification unit is configured to be cached in the alternate cache server.
  • the total number of requests exceeds the default throw Obtaining a threshold, sending notification information for notifying the database server to the designated terminal; and a re-response unit, configured to obtain a cache request from the backup cache server if a new database server is detected within a preset time interval, and Corresponding response.
  • the present application further provides a computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor implementing the computer program
  • a computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor implementing the computer program
  • the present application also provides a storage medium, wherein the storage medium stores a computer program, the computer program comprising program instructions, the program instructions, when executed by a processor, causing the processor to execute the application
  • the application provides a server concurrency control method, device, computer device and storage medium. This method implements the request to forward the maximum number of concurrent calls beyond the service to the alternate cache server, and notifies the new database server to improve the running performance of the server.
  • FIG. 1 is a schematic flowchart of a server concurrent number control method according to an embodiment of the present application
  • FIG. 2 is another schematic flowchart of a server concurrent number control method according to an embodiment of the present disclosure
  • FIG. 3 is another schematic flowchart of a server concurrency control method according to an embodiment of the present application.
  • FIG. 4 is another schematic flowchart of a server concurrency control method according to an embodiment of the present disclosure
  • FIG. 5 is a schematic block diagram of a server concurrent number control apparatus according to an embodiment of the present application.
  • FIG. 6 is another schematic block diagram of a server concurrent number control apparatus according to an embodiment of the present disclosure.
  • FIG. 7 is another schematic block diagram of a server concurrent number control apparatus according to an embodiment of the present disclosure.
  • FIG. 8 is another schematic block diagram of a server concurrent number control apparatus according to an embodiment of the present application.
  • FIG. 9 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a method for controlling the number of concurrent servers according to an embodiment of the present application.
  • the method is applied to terminals such as desktop computers, laptop computers, and tablet computers.
  • the method includes steps S101 to S106.
  • the current running parameters of the database server are obtained, including multiple running indicators, such as server CPU usage (mainly server CPU usage), memory usage (mainly server memory usage), and throughput (ie, Throughput, common unit is MB/s), response time (time when the server responds to the request), etc.; each running indicator is pre-set to have a weight value, such as the CPU usage weight value is 0.2, the memory usage weight value For 0.2, the weight value of the throughput is 0.4, and the weight of the response time is 0.2.
  • the server performance comprehensive value can be calculated, such as:
  • the comprehensive performance index of the database server can be monitored in real time, and the judgment result of comparing the comprehensive performance index with the preset performance comprehensive value threshold is used as a criterion for whether the database server is currently overloaded, and provides a judgment for subsequent judgment. index.
  • server performance comprehensive value is greater than a preset performance comprehensive value threshold, obtain the current application service concurrent number of the server, and set the current application service concurrent number to the preset application service to bear the maximum concurrent number.
  • the server performance comprehensive value is greater than a preset performance comprehensive value threshold (eg, the performance comprehensive value threshold is 2, and the calculated server performance integrated value 2.54 is greater than 2)
  • the current application service of the database server is immediately acquired.
  • the number of concurrents will be the maximum number of concurrency for the default application service. That is, when the server performance comprehensive value is greater than the performance comprehensive value threshold and the database server reaches the critical state of the downtime, the current application service concurrent number of the database server should be set as the default application service to withstand the maximum number of concurrent to receive a certain number.
  • the number of connections makes the server buffered before it goes down. However, in order to avoid unrestricted increase in the number of connections, it should be further determined whether the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications.
  • the method further includes: S103a, performing statistics by the AtomicInteger class to obtain the accumulated concurrency number of the database server; S103b, and accumulating the concurrent number of the acquired database server The initial concurrency number corresponding to the current statistical period is subtracted, and the current number of requests corresponding to the current time period is obtained.
  • the statistics are obtained by using the java.util.concurrent.atomic.AtomicInteger class in the JDK to obtain the cumulative number of concurrent connections of the database server; the cumulative number of concurrent databases obtained is subtracted from the current statistical period.
  • the initial number of concurrency the current number of requests corresponding to the current time period.
  • the cumulative number of concurrent connections of the database server is obtained by the java.util.concurrent.atomic.AtomicInteger class as the first statistical value;
  • the initial concurrent time corresponding to the current statistical period is obtained from the starting time of the specified time (for example, 12:00), and the initial concurrent number is subtracted from the first statistical value, that is, the current number of requests corresponding to the current time period is obtained.
  • the AtomicInteger class can accurately count the accumulated concurrency of the database server, and subtract the initial concurrency number corresponding to the current statistical period to obtain the current number of requests corresponding to the current time period. After obtaining the current number of requests corresponding to the current time period, it can be determined whether it reaches the threshold that causes the server to crash.
  • the method further includes:
  • S103c Obtain a current request number of the database server by using a Java filter, and filter and intercept the request that does not satisfy the preset release condition in the request corresponding to the current request number, and obtain a valid request number corresponding to the current request number.
  • the Java filter when the Java filter monitors the request of the database server, it filters all current requests of the database server in the current time period according to the preset interception performance, and releases a specified number of requests (the specified quantity is The application service is subject to the maximum number of concurrency. Requests that exceed the specified number are sent to the alternate cache server based on the address of the cache server configured in the Java filter. If the current number of requests is greater than the maximum number of concurrent applications, the database server can no longer respond to requests that exceed the maximum number of concurrent applications. If the forwarding or throwing process is not taken, the server may be down. The strategy adopted is to forward requests that exceed the service's maximum number of concurrency to the alternate cache server.
  • each request is given a queuing number, and the queuing number exceeds the request of the application service to withstand the maximum number of concurrent requests. Then forward to the alternate cache server; where the alternate cache server can be a separate space for the space set in the database server.
  • the manner in which requests exceeding the maximum concurrent number of applications are forwarded is taken in order to keep every request as a response as possible.
  • the notification increases the database server.
  • the above database server may be in a standby state or in a shutdown state. Once the newly added database server receives the request cached in the backup cache server, it processes and responds in time.
  • the method further includes:
  • the request for obtaining the cache in the backup cache server is immediately forwarded to the newly added database server for processing and response.
  • the new database server is not detected within the preset time interval, after the preset time threshold is exceeded, some application requests exceeding the server load are thrown (that is, the cached request in the alternate cache server is thrown) , do not connect to the database to execute database scripts to reduce the running load of the server.
  • the method forwards the request exceeding the maximum concurrent number of services to the alternate cache server, and notifies the newly added database server, thereby improving the running performance of the server.
  • FIG. 5 is a schematic block diagram of a server concurrent number control apparatus according to an embodiment of the present application.
  • the server concurrency control device 100 can be installed in a desktop computer, a tablet computer, a laptop computer, or the like.
  • the server concurrency control device 100 includes an integrated value calculation unit 101, a maximum concurrency adjustment unit 102, a determination unit 103, a request forwarding unit 104, a notification unit 105, and a re-response unit 106.
  • the integrated value calculation unit 101 is for. Obtain the current running parameters of the database server and the weights corresponding to the running indicators included in the running parameters, and obtain the server performance comprehensive value according to the operating parameters and the weights corresponding to the running indexes.
  • the current running parameters of the database server are obtained, including multiple running indicators, such as server CPU usage (mainly server CPU usage), memory usage (mainly server memory usage), and throughput (ie, Throughput, common unit is MB/s), response time (time when the server responds to the request), etc.; each running indicator is pre-set to have a weight value, such as the CPU usage weight value is 0.2, the memory usage weight value For 0.2, the weight value of the throughput is 0.4, and the weight of the response time is 0.2.
  • the server performance comprehensive value can be calculated, such as:
  • the comprehensive performance index of the database server can be monitored in real time, and the judgment result of comparing the comprehensive performance index with the preset performance comprehensive value threshold is used as a criterion for whether the database server is currently overloaded, and provides a judgment for subsequent judgment. index.
  • the maximum number of concurrency adjustment unit 102 is configured to obtain the current application service concurrent number if the server performance comprehensive value is greater than the preset performance comprehensive value threshold, and set the current application service concurrent number to the preset application service to bear the maximum concurrent number.
  • the server performance comprehensive value is greater than a preset performance comprehensive value threshold (eg, the performance comprehensive value threshold is 2, and the calculated server performance integrated value 2.54 is greater than 2)
  • the current application service of the database server is immediately acquired.
  • the number of concurrents will be the maximum number of concurrency for the default application service. That is, when the server performance comprehensive value is greater than the performance comprehensive value threshold and the database server reaches the critical state of the downtime, the current application service concurrent number of the database server should be set as the default application service to withstand the maximum number of concurrent to receive a certain number.
  • the number of connections makes the server buffered before it goes down. However, in order to avoid unrestricted increase in the number of connections, it should be further determined whether the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications.
  • the determining unit 103 is configured to obtain the current number of requests of the database server, and determine whether the number of valid requests in the current request number is greater than the maximum concurrent number of the application service.
  • the server concurrent number control apparatus 100 further includes:
  • the accumulating unit 103a is configured to perform statistics by the AtomicInteger class to obtain the accumulated concurrency number of the database server.
  • the current request number calculating unit 103b is configured to subtract the accumulated concurrency number of the acquired database server from the initial concurrency corresponding to the current statistical period. Number, get the current number of requests corresponding to the current time period.
  • the statistics are obtained by using the java.util.concurrent.atomic.AtomicInteger class in the JDK to obtain the cumulative number of concurrent connections of the database server; the cumulative number of concurrent databases obtained is subtracted from the current statistical period.
  • the initial number of concurrency the current number of requests corresponding to the current time period.
  • the cumulative number of concurrent connections of the database server is obtained by the java.util.concurrent.atomic.AtomicInteger class as the first statistical value;
  • the initial concurrent time corresponding to the current statistical period is obtained from the starting time of the specified time (for example, 12:00), and the initial concurrent number is subtracted from the first statistical value, that is, the current number of requests corresponding to the current time period is obtained.
  • the AtomicInteger class can accurately count the accumulated concurrency of the database server, and subtract the initial concurrency number corresponding to the current statistical period to obtain the current number of requests corresponding to the current time period. After obtaining the current number of requests corresponding to the current time period, it can be determined whether it reaches the threshold that causes the server to crash.
  • the server concurrent number control apparatus 100 further includes:
  • the filtering unit 103c is configured to obtain the current number of requests of the database server by using the Java filter, and filter and intercept the request that does not satisfy the preset release condition in the request corresponding to the current number of requests, and obtain a valid request number corresponding to the current number of requests.
  • the Java filter when the Java filter monitors the request of the database server, it filters all current requests of the database server in the current time period according to the preset interception performance, and releases a specified number of requests (the specified quantity is The application service is subject to the maximum number of concurrency. Requests that exceed the specified number are sent to the alternate cache server based on the address of the cache server configured in the Java filter. If the current number of requests is greater than the maximum number of concurrent applications, the database server can no longer respond to requests that exceed the maximum number of concurrent applications. If the forwarding or throwing process is not taken, the server may be down. The strategy adopted is to forward requests that exceed the service's maximum number of concurrency to the alternate cache server.
  • each request is given a queuing number, and the queuing number exceeds the request of the application service to withstand the maximum number of concurrent requests. Then forward to the alternate cache server; where the alternate cache server can be a separate space for the space set in the database server.
  • the request forwarding unit 104 is configured to forward, if the number of valid requests in the current request quantity is greater than the maximum number of concurrent applications, the request exceeding the maximum concurrent number of services in the valid request number is forwarded to the backup cache server.
  • the notification unit 105 is configured to send, to the designated terminal, notification information for notifying the increase database server, if the total number of requests cached in the backup cache server exceeds a preset throw request threshold.
  • the manner in which requests exceeding the maximum concurrent number of applications are forwarded is taken in order to keep every request as a response as possible.
  • the notification increases the database server.
  • the above database server may be in a standby state or in a shutdown state. Once the newly added database server receives the request cached in the backup cache server, it processes and responds in time.
  • the re-response unit 106 is configured to: if a new database server is detected within a preset time interval, obtain a cache request from the backup cache server, and respond accordingly.
  • the server concurrent number control apparatus 100 further includes:
  • the requesting and ejecting unit 107 is configured to: if a new database server is not detected within a preset time interval, the cached request in the alternate cache server is thrown.
  • the request for obtaining the cache in the backup cache server is immediately forwarded to the newly added database server for processing and response.
  • the new database server is not detected within the preset time interval, after the preset time threshold is exceeded, some application requests exceeding the server load are thrown (that is, the cached request in the alternate cache server is thrown) , do not connect to the database to execute database scripts to reduce the running load of the server.
  • the device forwards the request exceeding the maximum concurrent number of services to the backup cache server, and notifies the newly added database server, thereby improving the running performance of the server.
  • the above server concurrency control means can be implemented in the form of a computer program which can be run on a computer device as shown in FIG.
  • FIG. 9 is a schematic block diagram of a computer device according to an embodiment of the present application.
  • the computer device 500 device can be a terminal.
  • the terminal can be an electronic device such as a tablet computer, a notebook computer, a desktop computer, or a personal digital assistant.
  • the computer device 500 includes a processor 502, a memory, and a network interface 505 connected by a system bus 501, wherein the memory can include a non-volatile storage medium 503 and an internal memory 504.
  • the non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032.
  • the computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a server concurrency control method.
  • the processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500.
  • the internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503, which when executed by the processor 502, may cause the processor 502 to perform a server concurrency control method.
  • the network interface 505 is used for network communication, such as sending assigned tasks and the like. It will be understood by those skilled in the art that the structure shown in FIG. 9 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 of the computer device 500 to which the solution of the present application is applied, and a specific computer device. 500 may include more or fewer components than shown, or some components may be combined, or have different component arrangements.
  • the processor 502 is configured to run a computer program 5032 stored in the memory to implement the following functions: acquiring a current running parameter of the database server, and a weight corresponding to the running index included in the running parameter, according to the operating parameter and The weight corresponding to the running index is obtained by the server performance comprehensive value; if the server performance comprehensive value is greater than the preset performance comprehensive value threshold, the current application service concurrent number of the server is obtained, and the current application service concurrent number is set as the preset application service.
  • the maximum number of concurrent requests the current number of requests from the database server, whether the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications; if the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications, the application will be effective.
  • the request exceeding the maximum concurrent number of the service is forwarded to the backup cache server; if the total number of requests cached in the backup cache server exceeds the preset throw request threshold, the notification information for notifying the database server is sent to the designated terminal; If at the preset time A new database server is detected in the interval, and the cached request is obtained from the alternate cache server, and the response is corresponding.
  • the processor 502 further performs the following operations: performing statistics by using the AtomicInteger class to obtain the accumulated concurrent number of the database server; and subtracting the accumulated concurrent number of the acquired database server, and subtracting the initial concurrent number corresponding to the current statistical period. , get the current number of requests corresponding to the current time period.
  • the processor 502 further performs the following operations: acquiring, by the Java filter, the current number of requests of the database server, and filtering and intercepting the request that does not meet the preset release condition in the request corresponding to the current number of requests, and obtaining and currently The number of valid requests corresponding to the number of requests.
  • the processor 502 also performs the following operations: if a new database server is not detected within a preset time interval, the cached request in the alternate cache server is thrown.
  • the embodiment of the computer device shown in FIG. 9 does not constitute a limitation on the specific configuration of the computer device.
  • the computer device may include more or fewer components than illustrated. Or combine some parts, or different parts.
  • the computer device may include only a memory and a processor. In such an embodiment, the structure and functions of the memory and the processor are the same as those of the embodiment shown in FIG. 9, and details are not described herein.
  • the processor 502 may be a central processing unit (CPU), and the processor 502 may also be another general-purpose processor, a digital signal processor (DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc.
  • the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • a storage medium in another embodiment of the present application, is provided.
  • the storage medium can be a computer readable storage medium.
  • the storage medium stores a computer program, wherein the computer program includes program instructions.
  • the server concurrency control method of the embodiment of the present application is implemented when the program instruction is executed by the processor.
  • the storage medium may be an internal storage unit of the aforementioned device, such as a hard disk or a memory of the device.
  • the storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a smart memory card (SMC), a secure digital (SD) card, and a flash memory card. (Flash Card), etc.
  • the storage medium may also include both an internal storage unit of the device and an external storage device.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present application discloses a server concurrency control method and device, a computer device, and a storage medium. The method comprises: calculating a server overall performance value according to a current operating parameter of a database server and weights in one-to-one correspondence with operating indexes therein; if the server overall performance value is greater than an overall performance value threshold, setting the number of current application service concurrencies of the server to be the maximum number of concurrencies supported by an application service; if a number of valid requests in the acquired current requests is greater than the maximum number of concurrencies supported by the application service, forwarding, to a standby cache server, requests exceeding the maximum number of concurrencies supported by the application service; and if a total number of cached requests in the standby cache server exceeds a throw-out request threshold, sending notification information providing notification of an increase in database servers. The method enables requests exceeding the maximum number of concurrencies supported by the application service to be forwarded to the standby cache server and the provision of notification for increasing database servers, improving server operating performance.

Description

服务器并发数控制方法、装置、计算机设备及存储介质Server concurrency control method, device, computer device and storage medium
本申请要求于2018年3月9日提交中国专利局、申请号为201810195292.7、申请名称为“服务器并发数控制方法、装置、计算机设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on March 9, 2018, the Chinese Patent Office, Application No. 201101195292.7, and the application name is "Server Concurrency Control Method, Apparatus, Computer Equipment, and Storage Medium", the entire contents of which are The citations are incorporated herein by reference.
技术领域Technical field
本申请涉及信息技术领域,尤其涉及一种服务器并发数控制方法、装置、计算机设备及存储介质。The present application relates to the field of information technology, and in particular, to a server concurrency control method, apparatus, computer device, and storage medium.
背景技术Background technique
普通的系统,在编译发布之后,系统就不允许进行更改或扩充了,如果要进行某个功能的扩充,则必须要修改代码重新编译发布。使用插件可以很好地解决这个问题。Eclipse(Eclipse是一个开放源代码的、基于Java的可扩展开发平台)插件系统是非常成功的插件框架结构,Eclipse整个IDE就是一个插件,其提供了新的扩展点供其他插件来扩展。当插件系统中,客户端向数据库服务器发起大量请求时,由于数据库服务器的处理量存在上限,会导致数据库服务器的性能下降,最终使应用宕机。Ordinary systems, after the compilation and release, the system does not allow changes or extensions. If you want to expand a function, you must modify the code to recompile and release. Using a plugin can solve this problem very well. Eclipse (Eclipse is an open source, Java-based extensible development platform) plug-in system is a very successful plug-in framework, Eclipse's entire IDE is a plug-in that provides new extension points for other plug-ins to extend. In the plug-in system, when the client initiates a large number of requests to the database server, due to the upper limit of the processing capacity of the database server, the performance of the database server is degraded, and finally the application is down.
发明内容Summary of the invention
本申请提供了一种服务器并发数控制方法、装置、计算机设备及存储介质,旨在解决现有技术中客户端向数据库服务器发起大量请求时,由于数据库服务器无法对达到上限的请求进行优化处理,而导致数据库服务器的性能下降,及使得应用宕机的问题。The present invention provides a server concurrency control method, apparatus, computer device, and storage medium, which is intended to solve the problem that when a client initiates a large number of requests to a database server in the prior art, the database server cannot optimize the request to reach the upper limit. As a result, the performance of the database server is degraded, and the application is down.
第一方面,本申请提供了一种服务器并发数控制方法,其包括:获取数据库服务器当前的运行参数,及与运行参数所包括运行指标一一对应的权重,根据运行参数及与运行指标一一对应的权重获取服务器性能综合值;若服务器性能综合值大于预设的性能综合值阈值,获取服务器的当前应用服务并发数,将当前应用服务并发数置为预设的应用服务承受最大并发数;获取数据库服务器 的当前请求数,判断当前请求数中的有效请求数是否大于应用服务承受最大并发数;若当前请求数中的有效请求数大于应用服务承受最大并发数,将有效请求数中超出服务承受最大并发数的请求转发至备用缓存服务器;若备用缓存服务器中所缓存的请求总数超出预设的抛出请求阈值,向指定终端发送用于通知增加数据库服务器的通知信息;若在预设的时间间隔内检测到有新增数据库服务器,从备用缓存服务器中获取缓存的请求,并对应响应。In a first aspect, the present application provides a server concurrency control method, which includes: acquiring a current running parameter of a database server, and a weight corresponding to an operation index included in the running parameter, according to the running parameter and the running index. Corresponding weights obtain the server performance comprehensive value; if the server performance comprehensive value is greater than the preset performance comprehensive value threshold, the current application service concurrent number is obtained, and the current application service concurrent number is set as the preset application service to bear the maximum concurrent number; Obtain the current number of requests of the database server, determine whether the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications; if the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications, the number of valid requests exceeds the number of services. The request with the maximum number of concurrent requests is forwarded to the backup cache server; if the total number of requests cached in the backup cache server exceeds the preset throw request threshold, the notification information for notifying the database server is sent to the designated terminal; New is detected within the time interval Increase the database server, obtain the cached request from the alternate cache server, and respond accordingly.
第二方面,本申请提供了一种服务器并发数控制装置,其包括:综合值计算单元,用于获取数据库服务器当前的运行参数,及与运行参数所包括运行指标一一对应的权重,根据运行参数及与运行指标一一对应的权重获取服务器性能综合值;最大并发数调整单元,用于若服务器性能综合值大于预设的性能综合值阈值,获取服务器的当前应用服务并发数,将当前应用服务并发数置为预设的应用服务承受最大并发数;判断单元,用于获取数据库服务器的当前请求数,判断当前请求数中的有效请求数是否大于应用服务承受最大并发数;请求转发单元,用于若当前请求数中的有效请求数大于应用服务承受最大并发数,将有效请求数中超出服务承受最大并发数的请求转发至备用缓存服务器;通知单元,用于若备用缓存服务器中所缓存的请求总数超出预设的抛出请求阈值,向指定终端发送用于通知增加数据库服务器的通知信息;重新响应单元,用于若在预设的时间间隔内检测到有新增数据库服务器,从备用缓存服务器中获取缓存的请求,并对应响应。In a second aspect, the present application provides a server concurrency control device, which includes: an integrated value calculation unit, configured to acquire a current running parameter of a database server, and a weight corresponding to an operating index included in the operating parameter, according to the running The parameter and the weight corresponding to the running index are obtained by the server performance comprehensive value; the maximum concurrent number adjusting unit is configured to obtain the current application service concurrent number of the server if the server performance comprehensive value is greater than the preset performance comprehensive value threshold, and the current application The service concurrent number is set to the default application service to bear the maximum number of concurrent; the determining unit is configured to obtain the current number of requests of the database server, determine whether the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications, and request the forwarding unit, If the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications, the request for exceeding the maximum number of concurrent requests of the valid requests is forwarded to the alternate cache server; the notification unit is configured to be cached in the alternate cache server. The total number of requests exceeds the default throw Obtaining a threshold, sending notification information for notifying the database server to the designated terminal; and a re-response unit, configured to obtain a cache request from the backup cache server if a new database server is detected within a preset time interval, and Corresponding response.
第三方面,本申请又提供了一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现本申请提供的任一项所述的服务器并发数控制方法。In a third aspect, the present application further provides a computer device comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, the processor implementing the computer program The server concurrency number control method according to any one of the preceding claims.
第四方面,本申请还提供了一种存储介质,其中所述存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行本申请提供的任一项所述的服务器并发数控制方法。In a fourth aspect, the present application also provides a storage medium, wherein the storage medium stores a computer program, the computer program comprising program instructions, the program instructions, when executed by a processor, causing the processor to execute the application The server concurrency control method described in any one of the above.
本申请提供一种服务器并发数控制方法、装置、计算机设备及存储介质。该方法实现了将超出服务承受最大并发数的请求转发至备用缓存服务器,并通知新增数据库服务器,提高了服务器的运行性能。The application provides a server concurrency control method, device, computer device and storage medium. This method implements the request to forward the maximum number of concurrent calls beyond the service to the alternate cache server, and notifies the new database server to improve the running performance of the server.
附图说明DRAWINGS
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings used in the description of the embodiments will be briefly described below. Obviously, the drawings in the following description are some embodiments of the present application, For the ordinary technicians, other drawings can be obtained based on these drawings without any creative work.
图1为本申请实施例提供的一种服务器并发数控制方法的示意流程图;FIG. 1 is a schematic flowchart of a server concurrent number control method according to an embodiment of the present application;
图2为本申请实施例提供的一种服务器并发数控制方法的另一示意流程图;FIG. 2 is another schematic flowchart of a server concurrent number control method according to an embodiment of the present disclosure;
图3为本申请实施例提供的一种服务器并发数控制方法的另一示意流程图;FIG. 3 is another schematic flowchart of a server concurrency control method according to an embodiment of the present application;
图4为本申请实施例提供的一种服务器并发数控制方法的另一示意流程图;FIG. 4 is another schematic flowchart of a server concurrency control method according to an embodiment of the present disclosure;
图5为本申请实施例提供的一种服务器并发数控制装置的示意性框图;FIG. 5 is a schematic block diagram of a server concurrent number control apparatus according to an embodiment of the present application;
图6为本申请实施例提供的一种服务器并发数控制装置的另一示意性框图;FIG. 6 is another schematic block diagram of a server concurrent number control apparatus according to an embodiment of the present disclosure;
图7为本申请实施例提供的一种服务器并发数控制装置的另一示意性框图;FIG. 7 is another schematic block diagram of a server concurrent number control apparatus according to an embodiment of the present disclosure;
图8为本申请实施例提供的一种服务器并发数控制装置的另一示意性框图;FIG. 8 is another schematic block diagram of a server concurrent number control apparatus according to an embodiment of the present application;
图9为本申请实施例提供的一种计算机设备的示意性框图。FIG. 9 is a schematic block diagram of a computer device according to an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the drawings in the embodiments of the present application. It is obvious that the described embodiments are a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
请参阅图1,图1是本申请实施例提供的一种服务器并发数控制方法的示意流程图。该方法应用于台式电脑、手提电脑、平板电脑等终端中。如图1所示,该方法包括步骤S101~S106。Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a method for controlling the number of concurrent servers according to an embodiment of the present application. The method is applied to terminals such as desktop computers, laptop computers, and tablet computers. As shown in FIG. 1, the method includes steps S101 to S106.
S101、获取数据库服务器当前的运行参数,及与运行参数所包括运行指标一一对应的权重,根据运行参数及与运行指标一一对应的权重获取服务器性能综合值。S101. Obtain a current running parameter of the database server, and a weight corresponding to the running index included in the running parameter, and obtain a server performance comprehensive value according to the running parameter and the weight corresponding to the running index.
在一实施例中,所述运行参数所包括运行指标包括服务器CPU使用率、服务器内存使用率、吞吐量、响应时间,并通过服务器性能综合值=CPU使用率*第一权重值+服务器内存使用率*第二权重值+吞吐量*第三权重值+响应时间*第四权重值,计算获取服务器性能综合值。在本实施例中,获取数据库服务器当前的运行参数,包括多个运行指标,如服务器CPU使用情况(主要是服务器CPU 使用率)、内存使用情况(主要是服务器内存使用率)、吞吐量(即Throughput,常用单位是MB/s)、响应时间(服务器对请求作出响应的时间)等;每一运行指标都预先设置有权重值,如CPU使用情况的权重值为0.2,内存使用情况的权重值为0.2,吞吐量的权重值为0.4,响应时间的权重值为0.2;当获取了当前的运行参数,及对应的权重值,就能计算得到服务器性能综合值,如:In an embodiment, the running parameters include running indicators including server CPU usage, server memory usage, throughput, response time, and through server performance integrated value=CPU usage rate* first weight value+server memory usage. Rate * second weight value + throughput * third weight value + response time * fourth weight value, calculate the acquisition server performance integrated value. In this embodiment, the current running parameters of the database server are obtained, including multiple running indicators, such as server CPU usage (mainly server CPU usage), memory usage (mainly server memory usage), and throughput (ie, Throughput, common unit is MB/s), response time (time when the server responds to the request), etc.; each running indicator is pre-set to have a weight value, such as the CPU usage weight value is 0.2, the memory usage weight value For 0.2, the weight value of the throughput is 0.4, and the weight of the response time is 0.2. When the current running parameters and the corresponding weight values are obtained, the server performance comprehensive value can be calculated, such as:
服务器性能综合值=CPU使用情况*0.2+内存使用情况*0.2+吞吐量*0.4+响应时间*0.2=0.9*0.2+0.8*0.2+5*0.4+1*0.2=2.54;Server performance integrated value = CPU usage * 0.2 + memory usage * 0.2 + throughput * 0.4 + response time * 0.2 = 0.9 * 0.2 + 0.8 * 0.2 + 5 * 0.4 + 1 * 0.2 = 2.54;
通过上述计算,能实时监控数据库服务器的综合性能指标,将该综合性能指标与预设的性能综合值阈值相比的判断结果,作为数据库服务器当前是否超负荷运行的标准,为后续判断提供了判断指标。Through the above calculation, the comprehensive performance index of the database server can be monitored in real time, and the judgment result of comparing the comprehensive performance index with the preset performance comprehensive value threshold is used as a criterion for whether the database server is currently overloaded, and provides a judgment for subsequent judgment. index.
S102、若服务器性能综合值大于预设的性能综合值阈值,获取服务器的当前应用服务并发数,将当前应用服务并发数置为预设的应用服务承受最大并发数。S102. If the server performance comprehensive value is greater than a preset performance comprehensive value threshold, obtain the current application service concurrent number of the server, and set the current application service concurrent number to the preset application service to bear the maximum concurrent number.
在本实施例中,若服务器性能综合值大于预设的性能综合值阈值(如性能综合值阈值为2,上述计算的服务器性能综合值2.54是大于2),则立即获取数据库服务器的当前应用服务并发数将其为预设的应用服务承受最大并发数。也就是通过服务器性能综合值大于性能综合值阈值而判定数据库服务器到达宕机的临界状态时,应立即将数据库服务器的当前应用服务并发数置为预设的应用服务承受最大并发数以接收一定数量的连接数,使得服务器在宕机之前有一定缓冲。但是为了避免无限制的增加连接数,应进一步判断当前请求数中的有效请求数是否大于应用服务承受最大并发数。In this embodiment, if the server performance comprehensive value is greater than a preset performance comprehensive value threshold (eg, the performance comprehensive value threshold is 2, and the calculated server performance integrated value 2.54 is greater than 2), the current application service of the database server is immediately acquired. The number of concurrents will be the maximum number of concurrency for the default application service. That is, when the server performance comprehensive value is greater than the performance comprehensive value threshold and the database server reaches the critical state of the downtime, the current application service concurrent number of the database server should be set as the default application service to withstand the maximum number of concurrent to receive a certain number. The number of connections makes the server buffered before it goes down. However, in order to avoid unrestricted increase in the number of connections, it should be further determined whether the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications.
S103、获取数据库服务器的当前请求数,判断当前请求数中的有效请求数是否大于应用服务承受最大并发数。S103. Obtain a current number of requests of the database server, and determine whether the number of valid requests in the current request number is greater than the maximum concurrent number of the application service.
在一实施例中,如图2所示,在所述步骤S103之前还包括:S103a、通过AtomicInteger类进行统计以获取数据库服务器的累计的并发数;S103b、将所获取数据库服务器的累计的并发数,减去当前统计时段对应的初始并发数,得到与当前时段对应的当前请求数。In an embodiment, as shown in FIG. 2, before the step S103, the method further includes: S103a, performing statistics by the AtomicInteger class to obtain the accumulated concurrency number of the database server; S103b, and accumulating the concurrent number of the acquired database server The initial concurrency number corresponding to the current statistical period is subtracted, and the current number of requests corresponding to the current time period is obtained.
在本实施例中,先通过JDK中的java.util.concurrent.atomic.AtomicInteger类进行统计以获取数据库服务器的累计的并发数;将所获取数据库服务器的累计的并发数,减去当前统计时段对应的初始并发数,得到与当前时段对应的当前 请求数。例如,在某一指定时刻(如12:00)开始一直到截止时刻(如12:05),通过java.util.concurrent.atomic.AtomicInteger类获取数据库服务器的累计的并发数为第一统计数值;而从指定时刻的起始时刻(如12:00)具有当前统计时段对应的初始并发数,由第一统计数值减去初始并发数,即得到与当前时段对应的当前请求数。通过AtomicInteger类能准确的统计数据库服务器的累计的并发数,并在减去当前统计时段对应的初始并发数,即可得到与当前时段对应的当前请求数。获取了与当前时段对应的当前请求数后,即可判断其是否达到导致服务器宕机的阈值。In this embodiment, the statistics are obtained by using the java.util.concurrent.atomic.AtomicInteger class in the JDK to obtain the cumulative number of concurrent connections of the database server; the cumulative number of concurrent databases obtained is subtracted from the current statistical period. The initial number of concurrency, the current number of requests corresponding to the current time period. For example, at a specified time (such as 12:00) until the deadline (such as 12:05), the cumulative number of concurrent connections of the database server is obtained by the java.util.concurrent.atomic.AtomicInteger class as the first statistical value; The initial concurrent time corresponding to the current statistical period is obtained from the starting time of the specified time (for example, 12:00), and the initial concurrent number is subtracted from the first statistical value, that is, the current number of requests corresponding to the current time period is obtained. The AtomicInteger class can accurately count the accumulated concurrency of the database server, and subtract the initial concurrency number corresponding to the current statistical period to obtain the current number of requests corresponding to the current time period. After obtaining the current number of requests corresponding to the current time period, it can be determined whether it reaches the threshold that causes the server to crash.
在一实施例中,如图3所示,在所述步骤S103b之后还包括:In an embodiment, as shown in FIG. 3, after the step S103b, the method further includes:
S103c、通过Java过滤器获取数据库服务器的当前请求数,将当前请求数所对应请求中不满足预设的放行条件的请求进行过滤拦截,得到与当前请求数对应的有效请求数。S103c: Obtain a current request number of the database server by using a Java filter, and filter and intercept the request that does not satisfy the preset release condition in the request corresponding to the current request number, and obtain a valid request number corresponding to the current request number.
在本实施例中,当Java过滤器监控数据库服务器的请求时,其会根据预先设置的拦截性能,来对当前时段的数据库服务器的所有当前请求进行过滤,放行指定数量的请求(该指定数量即应用服务承受最大并发数),超出指定数量的请求则将根据Java过滤器中配置的缓存服务器的地址,被发送至备用缓存服务器。其中,若当前请求数大于应用服务承受最大并发数,则表示数据库服务器无法再响应超出应用服务承受最大并发数的请求,如果不采取转发或者抛出处理,则容易导致服务器宕机,此时可采取的策略是将超出服务承受最大并发数的请求转发至备用缓存服务器。由于数据库服务器所接收的请求是采取队列的方式排序,即根据请求发来的时间先后顺序在队列中排队,每一请求都会对应赋予一排队号,将排队号超出应用服务承受最大并发数的请求则转发至备用缓存服务器;其中备用缓存服务器可以是数据库服务器中单独设置的一块空间较小的存储空间。In this embodiment, when the Java filter monitors the request of the database server, it filters all current requests of the database server in the current time period according to the preset interception performance, and releases a specified number of requests (the specified quantity is The application service is subject to the maximum number of concurrency. Requests that exceed the specified number are sent to the alternate cache server based on the address of the cache server configured in the Java filter. If the current number of requests is greater than the maximum number of concurrent applications, the database server can no longer respond to requests that exceed the maximum number of concurrent applications. If the forwarding or throwing process is not taken, the server may be down. The strategy adopted is to forward requests that exceed the service's maximum number of concurrency to the alternate cache server. Since the requests received by the database server are sorted by means of queues, that is, queued according to the chronological order sent by the requests, each request is given a queuing number, and the queuing number exceeds the request of the application service to withstand the maximum number of concurrent requests. Then forward to the alternate cache server; where the alternate cache server can be a separate space for the space set in the database server.
S104、若当前请求数中的有效请求数大于应用服务承受最大并发数,将有效请求数中超出服务承受最大并发数的请求转发至备用缓存服务器。S104. If the number of valid requests in the current request number is greater than the maximum number of concurrent applications, the request exceeding the maximum concurrent number of services in the valid request number is forwarded to the backup cache server.
S105、若备用缓存服务器中所缓存的请求总数超出预设的抛出请求阈值,向指定终端发送用于通知增加数据库服务器的通知信息。S105. If the total number of requests cached in the backup cache server exceeds a preset throw request threshold, send notification information for notifying the database server to the designated terminal.
在本实施例中,采取将超出应用服务承受最大并发数的请求转发的方式,是为了尽量保持每一请求都得到响应。为了得到及时的响应,需检测备用缓存 服务器中所缓存的请求总数是否超出预设的抛出请求阈值,若备用缓存服务器中所缓存的请求总数超出预设的抛出请求阈值时,则应及时的通知增加数据库服务器。上述数据库服务器可能之前是待机状态,或是关机状态,新增的数据库服务器一旦接收了备用缓存服务器中所缓存的请求,则及时进行处理并响应。In this embodiment, the manner in which requests exceeding the maximum concurrent number of applications are forwarded is taken in order to keep every request as a response as possible. In order to obtain a timely response, it is necessary to detect whether the total number of requests cached in the backup cache server exceeds a preset throw request threshold. If the total number of requests cached in the backup cache server exceeds a preset throw request threshold, it should be timely. The notification increases the database server. The above database server may be in a standby state or in a shutdown state. Once the newly added database server receives the request cached in the backup cache server, it processes and responds in time.
S106、若在预设的时间间隔内检测到有新增数据库服务器,从备用缓存服务器中获取缓存的请求,并对应响应。S106. If a new database server is detected within a preset time interval, the cache request is obtained from the backup cache server, and the response is corresponding.
在一实施例中,如图4所示,在所述步骤S106之后还包括:In an embodiment, as shown in FIG. 4, after the step S106, the method further includes:
S107、若在预设的时间间隔内未检测到有新增数据库服务器,将备用缓存服务器中缓存的请求抛出。S107. If a new database server is not detected within a preset time interval, the cached request in the alternate cache server is thrown.
在本实施例中,当在预设的时间间隔内未检测到新增数据库服务器,则立即将备用缓存服务器中获取缓存的请求转发至新增数据库服务器进行处理和响应。当在预设的时间间隔内,并未检测到新增的数据库服务器,则在超出预设的时间阈值后,抛出部分超出服务器负荷的应用请求(即将备用缓存服务器中缓存的请求抛出),不连接数据库去执行数据库脚本,以减小服务器的运行负荷。In this embodiment, when the newly added database server is not detected within the preset time interval, the request for obtaining the cache in the backup cache server is immediately forwarded to the newly added database server for processing and response. When the new database server is not detected within the preset time interval, after the preset time threshold is exceeded, some application requests exceeding the server load are thrown (that is, the cached request in the alternate cache server is thrown) , do not connect to the database to execute database scripts to reduce the running load of the server.
可见,该方法实将超出服务承受最大并发数的请求转发至备用缓存服务器,并通知新增数据库服务器,提高了服务器的运行性能。It can be seen that the method forwards the request exceeding the maximum concurrent number of services to the alternate cache server, and notifies the newly added database server, thereby improving the running performance of the server.
本申请实施例还提供一种服务器并发数控制装置,该服务器并发数控制装置用于执行前述任一项服务器并发数控制方法。具体地,请参阅图5,图5是本申请实施例提供的一种服务器并发数控制装置的示意性框图。服务器并发数控制装置100可以安装于台式电脑、平板电脑、手提电脑、等终端中。The embodiment of the present application further provides a server concurrency control device, which is used to execute any of the foregoing server concurrency control methods. Specifically, please refer to FIG. 5. FIG. 5 is a schematic block diagram of a server concurrent number control apparatus according to an embodiment of the present application. The server concurrency control device 100 can be installed in a desktop computer, a tablet computer, a laptop computer, or the like.
如图5所示,服务器并发数控制装置100包括综合值计算单元101、最大并发数调整单元102、判断单元103、请求转发单元104、通知单元105、及重新响应单元106。As shown in FIG. 5, the server concurrency control device 100 includes an integrated value calculation unit 101, a maximum concurrency adjustment unit 102, a determination unit 103, a request forwarding unit 104, a notification unit 105, and a re-response unit 106.
综合值计算单元101,用于。获取数据库服务器当前的运行参数,及与运行参数所包括运行指标一一对应的权重,根据运行参数及与运行指标一一对应的权重获取服务器性能综合值。The integrated value calculation unit 101 is for. Obtain the current running parameters of the database server and the weights corresponding to the running indicators included in the running parameters, and obtain the server performance comprehensive value according to the operating parameters and the weights corresponding to the running indexes.
在一实施例中,所述运行参数所包括运行指标包括服务器CPU使用率、服务器内存使用率、吞吐量、响应时间,并通过服务器性能综合值=CPU使用率*第一权重值+服务器内存使用率*第二权重值+吞吐量*第三权重值+响应时间*第 四权重值,计算获取服务器性能综合值。在本实施例中,获取数据库服务器当前的运行参数,包括多个运行指标,如服务器CPU使用情况(主要是服务器CPU使用率)、内存使用情况(主要是服务器内存使用率)、吞吐量(即Throughput,常用单位是MB/s)、响应时间(服务器对请求作出响应的时间)等;每一运行指标都预先设置有权重值,如CPU使用情况的权重值为0.2,内存使用情况的权重值为0.2,吞吐量的权重值为0.4,响应时间的权重值为0.2;当获取了当前的运行参数,及对应的权重值,就能计算得到服务器性能综合值,如:In an embodiment, the running parameters include running indicators including server CPU usage, server memory usage, throughput, response time, and through server performance integrated value=CPU usage rate* first weight value+server memory usage. Rate * second weight value + throughput * third weight value + response time * fourth weight value, calculate the acquisition server performance integrated value. In this embodiment, the current running parameters of the database server are obtained, including multiple running indicators, such as server CPU usage (mainly server CPU usage), memory usage (mainly server memory usage), and throughput (ie, Throughput, common unit is MB/s), response time (time when the server responds to the request), etc.; each running indicator is pre-set to have a weight value, such as the CPU usage weight value is 0.2, the memory usage weight value For 0.2, the weight value of the throughput is 0.4, and the weight of the response time is 0.2. When the current running parameters and the corresponding weight values are obtained, the server performance comprehensive value can be calculated, such as:
服务器性能综合值=CPU使用情况*0.2+内存使用情况*0.2+吞吐量*0.4+响应时间*0.2=0.9*0.2+0.8*0.2+5*0.4+1*0.2=2.54;Server performance integrated value = CPU usage * 0.2 + memory usage * 0.2 + throughput * 0.4 + response time * 0.2 = 0.9 * 0.2 + 0.8 * 0.2 + 5 * 0.4 + 1 * 0.2 = 2.54;
通过上述计算,能实时监控数据库服务器的综合性能指标,将该综合性能指标与预设的性能综合值阈值相比的判断结果,作为数据库服务器当前是否超负荷运行的标准,为后续判断提供了判断指标。Through the above calculation, the comprehensive performance index of the database server can be monitored in real time, and the judgment result of comparing the comprehensive performance index with the preset performance comprehensive value threshold is used as a criterion for whether the database server is currently overloaded, and provides a judgment for subsequent judgment. index.
最大并发数调整单元102,用于若服务器性能综合值大于预设的性能综合值阈值,获取服务器的当前应用服务并发数,将当前应用服务并发数置为预设的应用服务承受最大并发数。The maximum number of concurrency adjustment unit 102 is configured to obtain the current application service concurrent number if the server performance comprehensive value is greater than the preset performance comprehensive value threshold, and set the current application service concurrent number to the preset application service to bear the maximum concurrent number.
在本实施例中,若服务器性能综合值大于预设的性能综合值阈值(如性能综合值阈值为2,上述计算的服务器性能综合值2.54是大于2),则立即获取数据库服务器的当前应用服务并发数将其为预设的应用服务承受最大并发数。也就是通过服务器性能综合值大于性能综合值阈值而判定数据库服务器到达宕机的临界状态时,应立即将数据库服务器的当前应用服务并发数置为预设的应用服务承受最大并发数以接收一定数量的连接数,使得服务器在宕机之前有一定缓冲。但是为了避免无限制的增加连接数,应进一步判断当前请求数中的有效请求数是否大于应用服务承受最大并发数。In this embodiment, if the server performance comprehensive value is greater than a preset performance comprehensive value threshold (eg, the performance comprehensive value threshold is 2, and the calculated server performance integrated value 2.54 is greater than 2), the current application service of the database server is immediately acquired. The number of concurrents will be the maximum number of concurrency for the default application service. That is, when the server performance comprehensive value is greater than the performance comprehensive value threshold and the database server reaches the critical state of the downtime, the current application service concurrent number of the database server should be set as the default application service to withstand the maximum number of concurrent to receive a certain number. The number of connections makes the server buffered before it goes down. However, in order to avoid unrestricted increase in the number of connections, it should be further determined whether the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications.
判断单元103,用于获取数据库服务器的当前请求数,判断当前请求数中的有效请求数是否大于应用服务承受最大并发数。The determining unit 103 is configured to obtain the current number of requests of the database server, and determine whether the number of valid requests in the current request number is greater than the maximum concurrent number of the application service.
在一实施例中,如图6所示,所述服务器并发数控制装置100还包括:In an embodiment, as shown in FIG. 6, the server concurrent number control apparatus 100 further includes:
累计单元103a,用于通过AtomicInteger类进行统计以获取数据库服务器的累计的并发数;当前请求数计算单元103b,用于将所获取数据库服务器的累计的并发数,减去当前统计时段对应的初始并发数,得到与当前时段对应的当前请求数。The accumulating unit 103a is configured to perform statistics by the AtomicInteger class to obtain the accumulated concurrency number of the database server. The current request number calculating unit 103b is configured to subtract the accumulated concurrency number of the acquired database server from the initial concurrency corresponding to the current statistical period. Number, get the current number of requests corresponding to the current time period.
在本实施例中,先通过JDK中的java.util.concurrent.atomic.AtomicInteger类进行统计以获取数据库服务器的累计的并发数;将所获取数据库服务器的累计的并发数,减去当前统计时段对应的初始并发数,得到与当前时段对应的当前请求数。例如,在某一指定时刻(如12:00)开始一直到截止时刻(如12:05),通过java.util.concurrent.atomic.AtomicInteger类获取数据库服务器的累计的并发数为第一统计数值;而从指定时刻的起始时刻(如12:00)具有当前统计时段对应的初始并发数,由第一统计数值减去初始并发数,即得到与当前时段对应的当前请求数。通过AtomicInteger类能准确的统计数据库服务器的累计的并发数,并在减去当前统计时段对应的初始并发数,即可得到与当前时段对应的当前请求数。获取了与当前时段对应的当前请求数后,即可判断其是否达到导致服务器宕机的阈值。In this embodiment, the statistics are obtained by using the java.util.concurrent.atomic.AtomicInteger class in the JDK to obtain the cumulative number of concurrent connections of the database server; the cumulative number of concurrent databases obtained is subtracted from the current statistical period. The initial number of concurrency, the current number of requests corresponding to the current time period. For example, at a specified time (such as 12:00) until the deadline (such as 12:05), the cumulative number of concurrent connections of the database server is obtained by the java.util.concurrent.atomic.AtomicInteger class as the first statistical value; The initial concurrent time corresponding to the current statistical period is obtained from the starting time of the specified time (for example, 12:00), and the initial concurrent number is subtracted from the first statistical value, that is, the current number of requests corresponding to the current time period is obtained. The AtomicInteger class can accurately count the accumulated concurrency of the database server, and subtract the initial concurrency number corresponding to the current statistical period to obtain the current number of requests corresponding to the current time period. After obtaining the current number of requests corresponding to the current time period, it can be determined whether it reaches the threshold that causes the server to crash.
在一实施例中,如图7所示,所述服务器并发数控制装置100还包括:In an embodiment, as shown in FIG. 7, the server concurrent number control apparatus 100 further includes:
过滤单元103c,用于通过Java过滤器获取数据库服务器的当前请求数,将当前请求数所对应请求中不满足预设的放行条件的请求进行过滤拦截,得到与当前请求数对应的有效请求数。The filtering unit 103c is configured to obtain the current number of requests of the database server by using the Java filter, and filter and intercept the request that does not satisfy the preset release condition in the request corresponding to the current number of requests, and obtain a valid request number corresponding to the current number of requests.
在本实施例中,当Java过滤器监控数据库服务器的请求时,其会根据预先设置的拦截性能,来对当前时段的数据库服务器的所有当前请求进行过滤,放行指定数量的请求(该指定数量即应用服务承受最大并发数),超出指定数量的请求则将根据Java过滤器中配置的缓存服务器的地址,被发送至备用缓存服务器。其中,若当前请求数大于应用服务承受最大并发数,则表示数据库服务器无法再响应超出应用服务承受最大并发数的请求,如果不采取转发或者抛出处理,则容易导致服务器宕机,此时可采取的策略是将超出服务承受最大并发数的请求转发至备用缓存服务器。由于数据库服务器所接收的请求是采取队列的方式排序,即根据请求发来的时间先后顺序在队列中排队,每一请求都会对应赋予一排队号,将排队号超出应用服务承受最大并发数的请求则转发至备用缓存服务器;其中备用缓存服务器可以是数据库服务器中单独设置的一块空间较小的存储空间。In this embodiment, when the Java filter monitors the request of the database server, it filters all current requests of the database server in the current time period according to the preset interception performance, and releases a specified number of requests (the specified quantity is The application service is subject to the maximum number of concurrency. Requests that exceed the specified number are sent to the alternate cache server based on the address of the cache server configured in the Java filter. If the current number of requests is greater than the maximum number of concurrent applications, the database server can no longer respond to requests that exceed the maximum number of concurrent applications. If the forwarding or throwing process is not taken, the server may be down. The strategy adopted is to forward requests that exceed the service's maximum number of concurrency to the alternate cache server. Since the requests received by the database server are sorted by means of queues, that is, queued according to the chronological order sent by the requests, each request is given a queuing number, and the queuing number exceeds the request of the application service to withstand the maximum number of concurrent requests. Then forward to the alternate cache server; where the alternate cache server can be a separate space for the space set in the database server.
请求转发单元104,用于若当前请求数中的有效请求数大于应用服务承受最大并发数,将有效请求数中超出服务承受最大并发数的请求转发至备用缓存服务器。The request forwarding unit 104 is configured to forward, if the number of valid requests in the current request quantity is greater than the maximum number of concurrent applications, the request exceeding the maximum concurrent number of services in the valid request number is forwarded to the backup cache server.
通知单元105,用于若备用缓存服务器中所缓存的请求总数超出预设的抛出请求阈值,向指定终端发送用于通知增加数据库服务器的通知信息。The notification unit 105 is configured to send, to the designated terminal, notification information for notifying the increase database server, if the total number of requests cached in the backup cache server exceeds a preset throw request threshold.
在本实施例中,采取将超出应用服务承受最大并发数的请求转发的方式,是为了尽量保持每一请求都得到响应。为了得到及时的响应,需检测备用缓存服务器中所缓存的请求总数是否超出预设的抛出请求阈值,若备用缓存服务器中所缓存的请求总数超出预设的抛出请求阈值时,则应及时的通知增加数据库服务器。上述数据库服务器可能之前是待机状态,或是关机状态,新增的数据库服务器一旦接收了备用缓存服务器中所缓存的请求,则及时进行处理并响应。In this embodiment, the manner in which requests exceeding the maximum concurrent number of applications are forwarded is taken in order to keep every request as a response as possible. In order to obtain a timely response, it is necessary to detect whether the total number of requests cached in the backup cache server exceeds a preset throw request threshold. If the total number of requests cached in the backup cache server exceeds a preset throw request threshold, it should be timely. The notification increases the database server. The above database server may be in a standby state or in a shutdown state. Once the newly added database server receives the request cached in the backup cache server, it processes and responds in time.
重新响应单元106,用于若在预设的时间间隔内检测到有新增数据库服务器,从备用缓存服务器中获取缓存的请求,并对应响应。The re-response unit 106 is configured to: if a new database server is detected within a preset time interval, obtain a cache request from the backup cache server, and respond accordingly.
在一实施例中,如图8所示,所述服务器并发数控制装置100还包括还包括:In an embodiment, as shown in FIG. 8, the server concurrent number control apparatus 100 further includes:
请求抛出单元107,用于若在预设的时间间隔内未检测到有新增数据库服务器,将备用缓存服务器中缓存的请求抛出。The requesting and ejecting unit 107 is configured to: if a new database server is not detected within a preset time interval, the cached request in the alternate cache server is thrown.
在本实施例中,当在预设的时间间隔内未检测到新增数据库服务器,则立即将备用缓存服务器中获取缓存的请求转发至新增数据库服务器进行处理和响应。当在预设的时间间隔内,并未检测到新增的数据库服务器,则在超出预设的时间阈值后,抛出部分超出服务器负荷的应用请求(即将备用缓存服务器中缓存的请求抛出),不连接数据库去执行数据库脚本,以减小服务器的运行负荷。In this embodiment, when the newly added database server is not detected within the preset time interval, the request for obtaining the cache in the backup cache server is immediately forwarded to the newly added database server for processing and response. When the new database server is not detected within the preset time interval, after the preset time threshold is exceeded, some application requests exceeding the server load are thrown (that is, the cached request in the alternate cache server is thrown) , do not connect to the database to execute database scripts to reduce the running load of the server.
可见,该装置实现将超出服务承受最大并发数的请求转发至备用缓存服务器,并通知新增数据库服务器,提高了服务器的运行性能。It can be seen that the device forwards the request exceeding the maximum concurrent number of services to the backup cache server, and notifies the newly added database server, thereby improving the running performance of the server.
上述服务器并发数控制装置可以实现为一种计算机程序的形式,该计算机程序可以在如图9所示的计算机设备上运行。The above server concurrency control means can be implemented in the form of a computer program which can be run on a computer device as shown in FIG.
请参阅图9,图9是本申请实施例提供的一种计算机设备的示意性框图。该计算机设备500设备可以是终端。该终端可以是平板电脑、笔记本电脑、台式电脑、个人数字助理等电子设备。Please refer to FIG. 9. FIG. 9 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 device can be a terminal. The terminal can be an electronic device such as a tablet computer, a notebook computer, a desktop computer, or a personal digital assistant.
参阅图9,该计算机设备500包括通过系统总线501连接的处理器502、存储器和网络接口505,其中,存储器可以包括非易失性存储介质503和内存储器504。该非易失性存储介质503可存储操作系统5031和计算机程序5032。该计 算机程序5032包括程序指令,该程序指令被执行时,可使得处理器502执行一种服务器并发数控制方法。该处理器502用于提供计算和控制能力,支撑整个计算机设备500的运行。该内存储器504为非易失性存储介质503中的计算机程序5032的运行提供环境,该计算机程序5032被处理器502执行时,可使得处理器502执行一种服务器并发数控制方法。该网络接口505用于进行网络通信,如发送分配的任务等。本领域技术人员可以理解,图9中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备500的限定,具体的计算机设备500可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Referring to FIG. 9, the computer device 500 includes a processor 502, a memory, and a network interface 505 connected by a system bus 501, wherein the memory can include a non-volatile storage medium 503 and an internal memory 504. The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions that, when executed, cause the processor 502 to perform a server concurrency control method. The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500. The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503, which when executed by the processor 502, may cause the processor 502 to perform a server concurrency control method. The network interface 505 is used for network communication, such as sending assigned tasks and the like. It will be understood by those skilled in the art that the structure shown in FIG. 9 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 of the computer device 500 to which the solution of the present application is applied, and a specific computer device. 500 may include more or fewer components than shown, or some components may be combined, or have different component arrangements.
其中,所述处理器502用于运行存储在存储器中的计算机程序5032,以实现如下功能:获取数据库服务器当前的运行参数,及与运行参数所包括运行指标一一对应的权重,根据运行参数及与运行指标一一对应的权重获取服务器性能综合值;若服务器性能综合值大于预设的性能综合值阈值,获取服务器的当前应用服务并发数,将当前应用服务并发数置为预设的应用服务承受最大并发数;获取数据库服务器的当前请求数,判断当前请求数中的有效请求数是否大于应用服务承受最大并发数;若当前请求数中的有效请求数大于应用服务承受最大并发数,将有效请求数中超出服务承受最大并发数的请求转发至备用缓存服务器;若备用缓存服务器中所缓存的请求总数超出预设的抛出请求阈值,向指定终端发送用于通知增加数据库服务器的通知信息;若在预设的时间间隔内检测到有新增数据库服务器,从备用缓存服务器中获取缓存的请求,并对应响应。The processor 502 is configured to run a computer program 5032 stored in the memory to implement the following functions: acquiring a current running parameter of the database server, and a weight corresponding to the running index included in the running parameter, according to the operating parameter and The weight corresponding to the running index is obtained by the server performance comprehensive value; if the server performance comprehensive value is greater than the preset performance comprehensive value threshold, the current application service concurrent number of the server is obtained, and the current application service concurrent number is set as the preset application service. The maximum number of concurrent requests; the current number of requests from the database server, whether the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications; if the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications, the application will be effective. The request exceeding the maximum concurrent number of the service is forwarded to the backup cache server; if the total number of requests cached in the backup cache server exceeds the preset throw request threshold, the notification information for notifying the database server is sent to the designated terminal; If at the preset time A new database server is detected in the interval, and the cached request is obtained from the alternate cache server, and the response is corresponding.
在一实施例中,处理器502还执行如下操作:通过服务器性能综合值=CPU使用率*第一权重值+服务器内存使用率*第二权重值+吞吐量*第三权重值+响应时间*第四权重值,计算获取服务器性能综合值;其中所述运行参数所包括运行指标包括服务器CPU使用率、服务器内存使用率、吞吐量、响应时间。In an embodiment, the processor 502 also performs the following operations: through server performance integration value = CPU usage rate * first weight value + server memory usage rate * second weight value + throughput * third weight value + response time * The fourth weight value is calculated to obtain a server performance comprehensive value; wherein the running parameter includes an operating indicator including a server CPU usage rate, a server memory usage rate, a throughput, and a response time.
在一实施例中,处理器502还执行如下操作:通过AtomicInteger类进行统计以获取数据库服务器的累计的并发数;将所获取数据库服务器的累计的并发数,减去当前统计时段对应的初始并发数,得到与当前时段对应的当前请求数。In an embodiment, the processor 502 further performs the following operations: performing statistics by using the AtomicInteger class to obtain the accumulated concurrent number of the database server; and subtracting the accumulated concurrent number of the acquired database server, and subtracting the initial concurrent number corresponding to the current statistical period. , get the current number of requests corresponding to the current time period.
在一实施例中,处理器502还执行如下操作:通过Java过滤器获取数据库服务器的当前请求数,将当前请求数所对应请求中不满足预设的放行条件的请 求进行过滤拦截,得到与当前请求数对应的有效请求数。In an embodiment, the processor 502 further performs the following operations: acquiring, by the Java filter, the current number of requests of the database server, and filtering and intercepting the request that does not meet the preset release condition in the request corresponding to the current number of requests, and obtaining and currently The number of valid requests corresponding to the number of requests.
在一实施例中,处理器502还执行如下操作:若在预设的时间间隔内未检测到有新增数据库服务器,将备用缓存服务器中缓存的请求抛出。In an embodiment, the processor 502 also performs the following operations: if a new database server is not detected within a preset time interval, the cached request in the alternate cache server is thrown.
本领域技术人员可以理解,图9中示出的计算机设备的实施例并不构成对计算机设备具体构成的限定,在其他实施例中,计算机设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。例如,在一些实施例中,计算机设备可以仅包括存储器及处理器,在这样的实施例中,存储器及处理器的结构及功能与图9所示实施例一致,在此不再赘述。It will be understood by those skilled in the art that the embodiment of the computer device shown in FIG. 9 does not constitute a limitation on the specific configuration of the computer device. In other embodiments, the computer device may include more or fewer components than illustrated. Or combine some parts, or different parts. For example, in some embodiments, the computer device may include only a memory and a processor. In such an embodiment, the structure and functions of the memory and the processor are the same as those of the embodiment shown in FIG. 9, and details are not described herein.
应当理解,在本申请实施例中,处理器502可以是中央处理单元(Central Processing Unit,CPU),该处理器502还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be another general-purpose processor, a digital signal processor (DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
在本申请的另一实施例中提供一种存储介质。该存储介质可以为计算机可读存储介质。该存储介质存储有计算机程序,其中计算机程序包括程序指令。该程序指令被处理器执行时实现本申请实施例的服务器并发数控制方法。In another embodiment of the present application, a storage medium is provided. The storage medium can be a computer readable storage medium. The storage medium stores a computer program, wherein the computer program includes program instructions. The server concurrency control method of the embodiment of the present application is implemented when the program instruction is executed by the processor.
所述存储介质可以是前述设备的内部存储单元,例如设备的硬盘或内存。所述存储介质也可以是所述设备的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储介质还可以既包括所述设备的内部存储单元也包括外部存储设备。The storage medium may be an internal storage unit of the aforementioned device, such as a hard disk or a memory of the device. The storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a smart memory card (SMC), a secure digital (SD) card, and a flash memory card. (Flash Card), etc. Further, the storage medium may also include both an internal storage unit of the device and an external storage device.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的设备、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the device, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The foregoing is only a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto, and any equivalents can be easily conceived by those skilled in the art within the technical scope disclosed in the present application. Modifications or substitutions are intended to be included within the scope of the present application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims.

Claims (20)

  1. 一种服务器并发数控制方法,其特征在于,包括:A server concurrency number control method, comprising:
    获取数据库服务器当前的运行参数,及与运行参数所包括运行指标一一对应的权重,根据运行参数及与运行指标一一对应的权重获取服务器性能综合值;Obtaining a current running parameter of the database server, and a weight corresponding to the running index included in the running parameter, and obtaining a comprehensive performance value of the server according to the running parameter and the weight corresponding to the running index;
    若服务器性能综合值大于预设的性能综合值阈值,获取服务器的当前应用服务并发数,将当前应用服务并发数置为预设的应用服务承受最大并发数;If the server performance comprehensive value is greater than the preset performance comprehensive value threshold, obtain the current application service concurrent number of the server, and set the current application service concurrent number to the preset application service to bear the maximum concurrent number;
    获取数据库服务器的当前请求数,判断当前请求数中的有效请求数是否大于应用服务承受最大并发数;Obtain the current number of requests of the database server, and determine whether the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications;
    若当前请求数中的有效请求数大于应用服务承受最大并发数,将有效请求数中超出服务承受最大并发数的请求转发至备用缓存服务器;If the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications, the request exceeding the maximum concurrent number of services in the number of valid requests is forwarded to the alternate cache server;
    若备用缓存服务器中所缓存的请求总数超出预设的抛出请求阈值,向指定终端发送用于通知增加数据库服务器的通知信息;If the total number of requests cached in the backup cache server exceeds a preset throw request threshold, sending notification information for notifying the database server to the designated terminal;
    若在预设的时间间隔内检测到有新增数据库服务器,从备用缓存服务器中获取缓存的请求,并对应响应。If a new database server is detected within the preset time interval, the cache request is obtained from the backup cache server, and the response is corresponding.
  2. 根据权利要求1所述的服务器并发数控制方法,其特征在于,所述运行参数所包括运行指标包括服务器CPU使用率、服务器内存使用率、吞吐量、响应时间;The server concurrency control method according to claim 1, wherein the running parameters include running indicators including server CPU usage, server memory usage, throughput, and response time;
    所述根据运行参数及与运行指标一一对应的权重获取服务器性能综合值,包括:The obtaining the server performance comprehensive value according to the running parameter and the weight corresponding to the running index, including:
    通过服务器性能综合值=CPU使用率*第一权重值+服务器内存使用率*第二权重值+吞吐量*第三权重值+响应时间*第四权重值,计算获取服务器性能综合值。The server performance comprehensive value is calculated by the server performance integrated value = CPU usage rate * first weight value + server memory usage rate * second weight value + throughput * third weight value + response time * fourth weight value.
  3. 根据权利要求1所述的服务器并发数控制方法,其特征在于,所述获取数据库服务器的当前请求数之前,还包括:The server concurrency control method according to claim 1, wherein before the obtaining the current number of requests of the database server, the method further comprises:
    通过AtomicInteger类进行统计以获取数据库服务器的累计的并发数;Statistics are collected by the AtomicInteger class to obtain the cumulative number of concurrent connections of the database server;
    将所获取数据库服务器的累计的并发数,减去当前统计时段对应的初始并发数,得到与当前时段对应的当前请求数。The accumulated concurrent number of the obtained database server is subtracted from the initial concurrent number corresponding to the current statistical period, and the current number of requests corresponding to the current time period is obtained.
  4. 根据权利要求3所述的服务器并发数控制方法,其特征在于,所述将所获取数据库服务器的累计的并发数,减去当前统计时段对应的初始并发数,得 到与当前时段对应的当前请求数之后,还包括:The server concurrency number control method according to claim 3, wherein the accumulated concurrent number of the acquired database server is subtracted from the initial concurrent number corresponding to the current statistical period, and the current number of requests corresponding to the current time period is obtained. After that, it also includes:
    通过Java过滤器获取数据库服务器的当前请求数,将当前请求数所对应请求中不满足预设的放行条件的请求进行过滤拦截,得到与当前请求数对应的有效请求数。The current number of requests of the database server is obtained by the Java filter, and the request that does not meet the preset release condition in the request corresponding to the current number of requests is filtered and intercepted, and the number of valid requests corresponding to the current number of requests is obtained.
  5. 根据权利要求1所述的服务器并发数控制方法,其特征在于,所述若在预设的时间间隔内检测到有新增数据库服务器,从备用缓存服务器中获取缓存的请求,并对应响应之后,还包括:The server concurrency control method according to claim 1, wherein if a new database server is detected within a preset time interval, a cache request is obtained from the backup cache server, and after the response is received, Also includes:
    若在预设的时间间隔内未检测到有新增数据库服务器,将备用缓存服务器中缓存的请求抛出。If no new database server is detected within the preset time interval, the cached request in the alternate cache server is thrown.
  6. 一种服务器并发数控制装置,其特征在于,包括:A server concurrency control device, comprising:
    综合值计算单元,用于获取数据库服务器当前的运行参数,及与运行参数所包括运行指标一一对应的权重,根据运行参数及与运行指标一一对应的权重获取服务器性能综合值;The comprehensive value calculation unit is configured to obtain a current running parameter of the database server, and a weight corresponding to the running index included in the running parameter, and obtain a comprehensive value of the server performance according to the running parameter and the weight corresponding to the running index;
    最大并发数调整单元,用于若服务器性能综合值大于预设的性能综合值阈值,获取服务器的当前应用服务并发数,将当前应用服务并发数置为预设的应用服务承受最大并发数;The maximum number of concurrent adjustment units is configured to obtain the current application service concurrent number if the server performance comprehensive value is greater than the preset performance comprehensive value threshold, and set the current application service concurrent number as the preset application service to bear the maximum concurrent number;
    判断单元,用于获取数据库服务器的当前请求数,判断当前请求数中的有效请求数是否大于应用服务承受最大并发数;The determining unit is configured to obtain the current number of requests of the database server, and determine whether the number of valid requests in the current request number is greater than the maximum concurrent number of the application service;
    请求转发单元,用于若当前请求数中的有效请求数大于应用服务承受最大并发数,将有效请求数中超出服务承受最大并发数的请求转发至备用缓存服务器;The request forwarding unit is configured to: if the number of valid requests in the current request number is greater than the maximum concurrent number of the application service, forward the request that exceeds the maximum concurrent number of services in the valid request number to the backup cache server;
    通知单元,用于若备用缓存服务器中所缓存的请求总数超出预设的抛出请求阈值,向指定终端发送用于通知增加数据库服务器的通知信息;a notification unit, configured to send, to the designated terminal, notification information for notifying the increase database server, if the total number of requests cached in the backup cache server exceeds a preset throw request threshold;
    重新响应单元,用于若在预设的时间间隔内检测到有新增数据库服务器,从备用缓存服务器中获取缓存的请求,并对应响应。The re-response unit is configured to: if a new database server is detected within a preset time interval, obtain a cache request from the backup cache server, and respond accordingly.
  7. 根据权利要求6所述的服务器并发数控制装置,其特征在于,还包括:The server concurrency control device according to claim 6, further comprising:
    累计单元,用于通过AtomicInteger类进行统计以获取数据库服务器的累计的并发数;Cumulative unit for performing statistics by the AtomicInteger class to obtain the cumulative number of concurrent connections of the database server;
    当前请求数计算单元,用于将所获取数据库服务器的累计的并发数,减去当前统计时段对应的初始并发数,得到与当前时段对应的当前请求数。The current request number calculation unit is configured to subtract the initial concurrent number corresponding to the current statistical period by the accumulated concurrent number of the acquired database server, and obtain the current number of requests corresponding to the current time period.
  8. 根据权利要求7所述的服务器并发数控制装置,其特征在于,还包括:The server concurrency control device according to claim 7, further comprising:
    过滤单元,用于通过Java过滤器获取数据库服务器的当前请求数,将当前请求数所对应请求中不满足预设的放行条件的请求进行过滤拦截,得到与当前请求数对应的有效请求数。The filtering unit is configured to obtain the current number of requests of the database server through the Java filter, and filter and intercept the request that does not meet the preset release condition in the request corresponding to the current number of requests, and obtain a valid request number corresponding to the current number of requests.
  9. 根据权利要求6所述的服务器并发数控制装置,其特征在于,所述运行参数所包括运行指标包括服务器CPU使用率、服务器内存使用率、吞吐量、响应时间;The server concurrency control device according to claim 6, wherein the running parameter includes an operating indicator including a server CPU usage rate, a server memory usage rate, a throughput, and a response time;
    所述综合值计算单元用于通过服务器性能综合值=CPU使用率*第一权重值+服务器内存使用率*第二权重值+吞吐量*第三权重值+响应时间*第四权重值,计算获取服务器性能综合值。The comprehensive value calculation unit is configured to calculate by using server performance integrated value=CPU usage rate*first weight value+server memory usage rate*second weight value+throughput*third weight value+response time*fourth weight value Get the server performance composite value.
  10. 根据权利要求6所述的服务器并发数控制装置,其特征在于,还包括:The server concurrency control device according to claim 6, further comprising:
    请求抛出单元,用于若在预设的时间间隔内未检测到有新增数据库服务器,将备用缓存服务器中缓存的请求抛出。The requesting unit is configured to throw a cached request in the alternate cache server if a new database server is not detected within a preset time interval.
  11. 一种计算机设备,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现以下步骤:A computer apparatus comprising a memory, a processor, and a computer program stored on the memory and operative on the processor, wherein the processor, when executing the computer program, implements the following steps:
    获取数据库服务器当前的运行参数,及与运行参数所包括运行指标一一对应的权重,根据运行参数及与运行指标一一对应的权重获取服务器性能综合值;Obtaining a current running parameter of the database server, and a weight corresponding to the running index included in the running parameter, and obtaining a comprehensive performance value of the server according to the running parameter and the weight corresponding to the running index;
    若服务器性能综合值大于预设的性能综合值阈值,获取服务器的当前应用服务并发数,将当前应用服务并发数置为预设的应用服务承受最大并发数;If the server performance comprehensive value is greater than the preset performance comprehensive value threshold, obtain the current application service concurrent number of the server, and set the current application service concurrent number to the preset application service to bear the maximum concurrent number;
    获取数据库服务器的当前请求数,判断当前请求数中的有效请求数是否大于应用服务承受最大并发数;Obtain the current number of requests of the database server, and determine whether the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications;
    若当前请求数中的有效请求数大于应用服务承受最大并发数,将有效请求数中超出服务承受最大并发数的请求转发至备用缓存服务器;If the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications, the request exceeding the maximum concurrent number of services in the number of valid requests is forwarded to the alternate cache server;
    若备用缓存服务器中所缓存的请求总数超出预设的抛出请求阈值,向指定终端发送用于通知增加数据库服务器的通知信息;If the total number of requests cached in the backup cache server exceeds a preset throw request threshold, sending notification information for notifying the database server to the designated terminal;
    若在预设的时间间隔内检测到有新增数据库服务器,从备用缓存服务器中获取缓存的请求,并对应响应。If a new database server is detected within the preset time interval, the cache request is obtained from the backup cache server, and the response is corresponding.
  12. 根据权利要求11所述的计算机设备,其特征在于,所述运行参数所包括运行指标包括服务器CPU使用率、服务器内存使用率、吞吐量、响应时间;The computer device according to claim 11, wherein the operating parameters include operating indicators including server CPU usage, server memory usage, throughput, and response time;
    所述根据运行参数及与运行指标一一对应的权重获取服务器性能综合值,包括:The obtaining the server performance comprehensive value according to the running parameter and the weight corresponding to the running index, including:
    通过服务器性能综合值=CPU使用率*第一权重值+服务器内存使用率*第二权重值+吞吐量*第三权重值+响应时间*第四权重值,计算获取服务器性能综合值。The server performance comprehensive value is calculated by the server performance integrated value = CPU usage rate * first weight value + server memory usage rate * second weight value + throughput * third weight value + response time * fourth weight value.
  13. 根据权利要求11所述的计算机设备,其特征在于,所述获取数据库服务器的当前请求数之前,还包括:The computer device according to claim 11, wherein before the obtaining the current number of requests of the database server, the method further comprises:
    通过AtomicInteger类进行统计以获取数据库服务器的累计的并发数;Statistics are collected by the AtomicInteger class to obtain the cumulative number of concurrent connections of the database server;
    将所获取数据库服务器的累计的并发数,减去当前统计时段对应的初始并发数,得到与当前时段对应的当前请求数。The accumulated concurrent number of the obtained database server is subtracted from the initial concurrent number corresponding to the current statistical period, and the current number of requests corresponding to the current time period is obtained.
  14. 根据权利要求13所述的计算机设备,其特征在于,所述将所获取数据库服务器的累计的并发数,减去当前统计时段对应的初始并发数,得到与当前时段对应的当前请求数之后,还包括:The computer device according to claim 13, wherein the accumulated concurrent number of the acquired database server is subtracted from the initial concurrent number corresponding to the current statistical period, and the current number of requests corresponding to the current time period is obtained, and include:
    通过Java过滤器获取数据库服务器的当前请求数,将当前请求数所对应请求中不满足预设的放行条件的请求进行过滤拦截,得到与当前请求数对应的有效请求数。The current number of requests of the database server is obtained by the Java filter, and the request that does not meet the preset release condition in the request corresponding to the current number of requests is filtered and intercepted, and the number of valid requests corresponding to the current number of requests is obtained.
  15. 根据权利要求11所述的计算机设备,其特征在于,所述若在预设的时间间隔内检测到有新增数据库服务器,从备用缓存服务器中获取缓存的请求,并对应响应之后,还包括:The computer device according to claim 11, wherein if the newly added database server is detected within a preset time interval, the cache request is obtained from the backup cache server, and after the response, the method further includes:
    若在预设的时间间隔内未检测到有新增数据库服务器,将备用缓存服务器中缓存的请求抛出。If no new database server is detected within the preset time interval, the cached request in the alternate cache server is thrown.
  16. 一种存储介质,其特征在于,所述存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行以下操作:A storage medium, characterized in that the storage medium stores a computer program, the computer program comprising program instructions that, when executed by a processor, cause the processor to perform the following operations:
    获取数据库服务器当前的运行参数,及与运行参数所包括运行指标一一对应的权重,根据运行参数及与运行指标一一对应的权重获取服务器性能综合值;Obtaining a current running parameter of the database server, and a weight corresponding to the running index included in the running parameter, and obtaining a comprehensive performance value of the server according to the running parameter and the weight corresponding to the running index;
    若服务器性能综合值大于预设的性能综合值阈值,获取服务器的当前应用服务并发数,将当前应用服务并发数置为预设的应用服务承受最大并发数;If the server performance comprehensive value is greater than the preset performance comprehensive value threshold, obtain the current application service concurrent number of the server, and set the current application service concurrent number to the preset application service to bear the maximum concurrent number;
    获取数据库服务器的当前请求数,判断当前请求数中的有效请求数是否大于应用服务承受最大并发数;Obtain the current number of requests of the database server, and determine whether the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications;
    若当前请求数中的有效请求数大于应用服务承受最大并发数,将有效请求数中超出服务承受最大并发数的请求转发至备用缓存服务器;If the number of valid requests in the current number of requests is greater than the maximum number of concurrent applications, the request exceeding the maximum concurrent number of services in the number of valid requests is forwarded to the alternate cache server;
    若备用缓存服务器中所缓存的请求总数超出预设的抛出请求阈值,向指定终端发送用于通知增加数据库服务器的通知信息;If the total number of requests cached in the backup cache server exceeds a preset throw request threshold, sending notification information for notifying the database server to the designated terminal;
    若在预设的时间间隔内检测到有新增数据库服务器,从备用缓存服务器中获取缓存的请求,并对应响应。If a new database server is detected within the preset time interval, the cache request is obtained from the backup cache server, and the response is corresponding.
  17. 根据权利要求16所述的存储介质,其特征在于,所述运行参数所包括运行指标包括服务器CPU使用率、服务器内存使用率、吞吐量、响应时间;The storage medium according to claim 16, wherein the operating parameters include operating indicators including server CPU usage, server memory usage, throughput, and response time;
    所述根据运行参数及与运行指标一一对应的权重获取服务器性能综合值,包括:The obtaining the server performance comprehensive value according to the running parameter and the weight corresponding to the running index, including:
    通过服务器性能综合值=CPU使用率*第一权重值+服务器内存使用率*第二权重值+吞吐量*第三权重值+响应时间*第四权重值,计算获取服务器性能综合值。The server performance comprehensive value is calculated by the server performance integrated value = CPU usage rate * first weight value + server memory usage rate * second weight value + throughput * third weight value + response time * fourth weight value.
  18. 根据权利要求16所述的存储介质,其特征在于,所述获取数据库服务器的当前请求数之前,还包括:The storage medium according to claim 16, wherein before the obtaining the current number of requests of the database server, the method further comprises:
    通过AtomicInteger类进行统计以获取数据库服务器的累计的并发数;Statistics are collected by the AtomicInteger class to obtain the cumulative number of concurrent connections of the database server;
    将所获取数据库服务器的累计的并发数,减去当前统计时段对应的初始并发数,得到与当前时段对应的当前请求数。The accumulated concurrent number of the obtained database server is subtracted from the initial concurrent number corresponding to the current statistical period, and the current number of requests corresponding to the current time period is obtained.
  19. 根据权利要求18所述的存储介质,其特征在于,所述将所获取数据库服务器的累计的并发数,减去当前统计时段对应的初始并发数,得到与当前时段对应的当前请求数之后,还包括:The storage medium according to claim 18, wherein the accumulated concurrent number of the acquired database server is subtracted from the initial concurrent number corresponding to the current statistical period, and the current number of requests corresponding to the current time period is obtained, and include:
    通过Java过滤器获取数据库服务器的当前请求数,将当前请求数所对应请求中不满足预设的放行条件的请求进行过滤拦截,得到与当前请求数对应的有效请求数。The current number of requests of the database server is obtained by the Java filter, and the request that does not meet the preset release condition in the request corresponding to the current number of requests is filtered and intercepted, and the number of valid requests corresponding to the current number of requests is obtained.
  20. 根据权利要求16所述的存储介质,其特征在于,所述若在预设的时间间隔内检测到有新增数据库服务器,从备用缓存服务器中获取缓存的请求,并对应响应之后,还包括:The storage medium according to claim 16, wherein if the newly added database server is detected within a preset time interval, the cache request is obtained from the backup cache server, and after the response, the method further includes:
    若在预设的时间间隔内未检测到有新增数据库服务器,将备用缓存服务器中缓存的请求抛出。If no new database server is detected within the preset time interval, the cached request in the alternate cache server is thrown.
PCT/CN2018/085263 2018-03-09 2018-05-02 Server concurrency control method and device, computer device, and storage medium WO2019169724A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810195292.7 2018-03-09
CN201810195292.7A CN108551465B (en) 2018-03-09 2018-03-09 Server concurrency control method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2019169724A1 true WO2019169724A1 (en) 2019-09-12

Family

ID=63516121

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/085263 WO2019169724A1 (en) 2018-03-09 2018-05-02 Server concurrency control method and device, computer device, and storage medium

Country Status (2)

Country Link
CN (1) CN108551465B (en)
WO (1) WO2019169724A1 (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968590A (en) * 2019-12-23 2020-04-07 北京奇艺世纪科技有限公司 Task execution method and device, electronic equipment and computer readable storage medium
CN111371873A (en) * 2020-02-26 2020-07-03 厦门网宿有限公司 Web service election method and device and server
CN111694839A (en) * 2020-04-28 2020-09-22 平安科技(深圳)有限公司 Time series index construction method and device based on big data and computer equipment
CN111767137A (en) * 2020-06-03 2020-10-13 北京奇艺世纪科技有限公司 System deployment method, device, electronic equipment and storage medium
CN111858046A (en) * 2020-07-13 2020-10-30 海尔优家智能科技(北京)有限公司 Service request processing method and device, storage medium and electronic device
CN112346867A (en) * 2020-11-06 2021-02-09 平安科技(深圳)有限公司 Configuration method and device of sliding window, computer equipment and storage medium
CN112486755A (en) * 2020-12-11 2021-03-12 北京金山云网络技术有限公司 Server detection method, detection device, electronic equipment and storage medium
CN113590410A (en) * 2021-06-20 2021-11-02 济南浪潮数据技术有限公司 Resource request method, system, device and medium
CN113824768A (en) * 2021-08-23 2021-12-21 北京天融信网络安全技术有限公司 Health check method and device in load balancing system and flow forwarding method
CN115379014A (en) * 2022-07-19 2022-11-22 中国电信股份有限公司 Data request distribution method and device, and electronic equipment
CN116489090A (en) * 2023-06-16 2023-07-25 北京百度网讯科技有限公司 Flow control method, device, system, electronic equipment and storage medium
CN116886790A (en) * 2023-09-06 2023-10-13 北京大禹智芯科技有限公司 Method for supporting dynamic high concurrency TOE

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109450975A (en) * 2018-10-10 2019-03-08 海南高灯科技有限公司 Concurrency performance optimization method, device, electronic equipment, readable storage medium storing program for executing
CN109472680A (en) * 2018-10-26 2019-03-15 中国银行股份有限公司 A kind of accounting processing method and system
CN109446464B (en) * 2018-11-09 2021-02-02 深圳高灯计算机科技有限公司 Concurrency number determination method and device and server
CN109857592B (en) * 2019-01-04 2023-09-15 平安科技(深圳)有限公司 Data recovery control method, server and storage medium
CN110311952B (en) * 2019-05-23 2022-05-20 网宿科技股份有限公司 HTTP speed limiting method and device
CN110222034A (en) * 2019-06-04 2019-09-10 北京奇艺世纪科技有限公司 A kind of database maintenance method and device
CN111045805A (en) * 2019-12-11 2020-04-21 深圳前海环融联易信息科技服务有限公司 Method and device for rating task executor, computer equipment and storage medium
CN111740880A (en) * 2020-06-12 2020-10-02 浪潮电子信息产业股份有限公司 Server operation method, operation system and related device
CN111694669B (en) * 2020-06-12 2024-08-20 深圳前海微众银行股份有限公司 Task processing method and device
CN112052264B (en) * 2020-08-05 2021-08-10 北京五八信息技术有限公司 Business data query method and device, electronic equipment and readable storage medium
CN111913795B (en) * 2020-08-07 2023-04-07 上海许继电气有限公司 High-concurrency processing method, system equipment and medium for relay substation end fault
CN111984437A (en) * 2020-08-31 2020-11-24 平安医疗健康管理股份有限公司 DRG packet server RPC service processing method and device and computer equipment
CN112463321B (en) * 2020-11-19 2022-06-21 苏州浪潮智能科技有限公司 Process concurrency number prediction method and device and process concurrency number control method and device
CN113746920B (en) * 2021-09-03 2023-11-28 北京知道创宇信息技术股份有限公司 Data forwarding method and device, electronic equipment and computer readable storage medium
CN114244902B (en) * 2022-02-28 2022-05-17 北京金堤科技有限公司 High-concurrency service request processing method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915374A (en) * 2012-11-07 2013-02-06 北京搜狐新媒体信息技术有限公司 Method, device and system for controlling access to database resources
CN102999377A (en) * 2012-11-30 2013-03-27 北京东方通科技股份有限公司 Service concurrent access control method and device
CN104408110A (en) * 2014-11-24 2015-03-11 北京奇虎科技有限公司 Method, device and system for requesting data
CN104408088A (en) * 2014-11-11 2015-03-11 北京奇虎科技有限公司 Control method and device for concurrent requests
CN105872048A (en) * 2016-03-30 2016-08-17 联想(北京)有限公司 Control method and electronic equipment
CN106330754A (en) * 2016-08-31 2017-01-11 东软集团股份有限公司 Access request control method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103561055B (en) * 2013-10-11 2016-08-17 山东省计算中心 Web application automatic elastic extended method under conversation-based cloud computing environment
US9779127B2 (en) * 2014-03-31 2017-10-03 Wal-Mart Stores, Inc. Integrating database management system and external cache
CN106803815B (en) * 2015-11-26 2020-03-24 阿里巴巴集团控股有限公司 Flow control method and device
CN106250500A (en) * 2016-07-29 2016-12-21 广州唯品会信息科技有限公司 The dynamic management approach of database connection pool and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915374A (en) * 2012-11-07 2013-02-06 北京搜狐新媒体信息技术有限公司 Method, device and system for controlling access to database resources
CN102999377A (en) * 2012-11-30 2013-03-27 北京东方通科技股份有限公司 Service concurrent access control method and device
CN104408088A (en) * 2014-11-11 2015-03-11 北京奇虎科技有限公司 Control method and device for concurrent requests
CN104408110A (en) * 2014-11-24 2015-03-11 北京奇虎科技有限公司 Method, device and system for requesting data
CN105872048A (en) * 2016-03-30 2016-08-17 联想(北京)有限公司 Control method and electronic equipment
CN106330754A (en) * 2016-08-31 2017-01-11 东软集团股份有限公司 Access request control method and device

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110968590A (en) * 2019-12-23 2020-04-07 北京奇艺世纪科技有限公司 Task execution method and device, electronic equipment and computer readable storage medium
CN111371873A (en) * 2020-02-26 2020-07-03 厦门网宿有限公司 Web service election method and device and server
CN111694839A (en) * 2020-04-28 2020-09-22 平安科技(深圳)有限公司 Time series index construction method and device based on big data and computer equipment
CN111767137B (en) * 2020-06-03 2023-09-01 北京奇艺世纪科技有限公司 System deployment method and device, electronic equipment and storage medium
CN111767137A (en) * 2020-06-03 2020-10-13 北京奇艺世纪科技有限公司 System deployment method, device, electronic equipment and storage medium
CN111858046A (en) * 2020-07-13 2020-10-30 海尔优家智能科技(北京)有限公司 Service request processing method and device, storage medium and electronic device
CN111858046B (en) * 2020-07-13 2024-05-24 海尔优家智能科技(北京)有限公司 Service request processing method and device, storage medium and electronic device
CN112346867A (en) * 2020-11-06 2021-02-09 平安科技(深圳)有限公司 Configuration method and device of sliding window, computer equipment and storage medium
CN112346867B (en) * 2020-11-06 2024-05-14 平安科技(深圳)有限公司 Configuration method and device of sliding window, computer equipment and storage medium
CN112486755A (en) * 2020-12-11 2021-03-12 北京金山云网络技术有限公司 Server detection method, detection device, electronic equipment and storage medium
CN113590410B (en) * 2021-06-20 2023-12-22 济南浪潮数据技术有限公司 Resource request method, system, equipment and medium
CN113590410A (en) * 2021-06-20 2021-11-02 济南浪潮数据技术有限公司 Resource request method, system, device and medium
CN113824768B (en) * 2021-08-23 2022-11-15 北京天融信网络安全技术有限公司 Health check method and device in load balancing system and flow forwarding method
CN113824768A (en) * 2021-08-23 2021-12-21 北京天融信网络安全技术有限公司 Health check method and device in load balancing system and flow forwarding method
CN115379014A (en) * 2022-07-19 2022-11-22 中国电信股份有限公司 Data request distribution method and device, and electronic equipment
CN115379014B (en) * 2022-07-19 2024-03-19 中国电信股份有限公司 Data request distribution method and device and electronic equipment
CN116489090A (en) * 2023-06-16 2023-07-25 北京百度网讯科技有限公司 Flow control method, device, system, electronic equipment and storage medium
CN116489090B (en) * 2023-06-16 2023-10-24 北京百度网讯科技有限公司 Flow control method, device, system, electronic equipment and storage medium
CN116886790A (en) * 2023-09-06 2023-10-13 北京大禹智芯科技有限公司 Method for supporting dynamic high concurrency TOE

Also Published As

Publication number Publication date
CN108551465B (en) 2020-06-09
CN108551465A (en) 2018-09-18

Similar Documents

Publication Publication Date Title
WO2019169724A1 (en) Server concurrency control method and device, computer device, and storage medium
WO2021184586A1 (en) Private cloud monitoring method and apparatus based on non-flat network, and computer device and storage medium
CN106452818B (en) Resource scheduling method and system
US9930111B2 (en) Techniques for web server management
WO2019090998A1 (en) Data monitoring method and apparatus, computer device and storage medium
JP5418250B2 (en) Abnormality detection apparatus, program, and abnormality detection method
US9641413B2 (en) Methods and computer program products for collecting storage resource performance data using file system hooks
US9584617B2 (en) Allocating cache request in distributed cache system based upon cache object and marker identifying mission critical data
US8700765B2 (en) Methods and computer program products for monitoring and reporting network application performance
US8516509B2 (en) Methods and computer program products for monitoring system calls using safely removable system function table chaining
US20170155560A1 (en) Management systems for managing resources of servers and management methods thereof
US8589537B2 (en) Methods and computer program products for aggregating network application performance metrics by process pool
JP2012521607A (en) Distributed application monitoring
US11354299B2 (en) Method and system for a high availability IP monitored by both OS/network and database instances
US8909761B2 (en) Methods and computer program products for monitoring and reporting performance of network applications executing in operating-system-level virtualization containers
WO2016155360A1 (en) Method, related apparatus and system for processing service request
US9027025B2 (en) Real-time database exception monitoring tool using instance eviction data
US10776245B2 (en) Analyzing physical machine impact on business transaction performance
US20210105317A1 (en) Real time multi-tenant workload tracking and auto throttling
US20170272541A1 (en) Local enforcement of computer resource quotas
CN109726151B (en) Method, apparatus, and medium for managing input-output stack
CN110661717A (en) Current limiting method and device and electronic equipment
US20120072258A1 (en) Methods and computer program products for identifying and monitoring related business application processes
WO2015070666A1 (en) Method, device and system for adjusting target system performance
JP6167625B2 (en) Packet recording device

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 08/12/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18908459

Country of ref document: EP

Kind code of ref document: A1