Parameter adjustment methods, devices, related equipment and storage media

By obtaining resource occupation information of business systems and business equipment, generating service limit parameters, and dynamically adjusting service restrictions of business systems, the problem of overloading business calls in the existing technology is solved, and the efficient and stable operation and security improvement of the business system is achieved.

CN114124757BActive Publication Date: 2025-03-14TENPAY PAID TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202010804391.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-11
Publication Date
2025-03-14
Estimated Expiration
2040-08-11

AI Technical Summary

Technical Problem

In the prior art, when designing a business system, although performance is judged through stress testing and designing a protection mechanism, there is still a situation of overloading the business call volume, which affects the stability and security of the system.

Method used

The system resource occupancy information of the business system is obtained through the equipment monitoring system, and the machine resource occupancy information of the business equipment is obtained through the proxy device. The service restriction parameters are generated based on this information, and the service limitations of the business system are dynamically adjusted so as to process the call request.

Benefits of technology

Real-time update of service restriction parameters of the business system is realized, flexibility in adjusting service restriction parameters is improved, and the accuracy of service restriction parameters obtained by business equipment is ensured, thereby achieving accurate processing of call requests and improving the security and stability of the business system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114124757B_ABST
    Figure CN114124757B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a parameter adjustment method, apparatus, related equipment and storage medium, wherein the method comprises: obtaining system resource occupancy information of a business system in the process of providing business services through a device monitoring system; obtaining machine resource occupancy information of each business device in the business system through a proxy device; generating service restriction parameters according to the system resource occupancy information and the machine resource occupancy information; storing the service restriction parameters in a target memory so that after the target business device reads the service restriction parameters from the target memory, it processes the call request for the business service received in the business system according to the service restriction parameters, thereby realizing dynamic adjustment of the service restriction parameters of the business system and improving the security and stability of the business system.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a parameter adjustment method, apparatus, related equipment and storage medium. Background Art

[0002] With the continuous development of computer network technology, the correlation between users' production and life and the network is gradually strengthened. Therefore, the current client calls the business system used to respond to user operations in the network more and more frequently. In order to protect the security of the business system when it is called and avoid problems such as call errors caused by business system crashes, management users need to design the business system in advance, configure the various software and hardware resources included in the business system, and manually protect the performance of the business system and business equipment.

[0003] Currently, when designing a business system, stress testing methods can be used to judge the performance of the business system, and protection mechanisms can be designed for the business system based on the judgment results to ensure the stability and security of the business system. However, in actual use, there is still a situation where the business call volume is overloaded, which affects the stability and security of the system. Summary of the invention

[0004] The embodiments of the present invention provide a parameter adjustment method, an apparatus, related equipment and a storage medium, which can realize dynamic adjustment of the service restriction parameters of a business system, and can improve the security and stability of the business system.

[0005] In one aspect, an embodiment of the present invention provides a parameter adjustment method, comprising:

[0006] Obtain information about system resource usage of business systems in the process of providing business services through the equipment monitoring system;

[0007] Obtaining machine resource occupancy information of each business device in the business system through a proxy device;

[0008] generating a service restriction parameter according to the system resource occupancy information and the machine resource occupancy information;

[0009] The service restriction parameter is stored in the target memory, so that after the target business device reads the service restriction parameter from the target memory, it processes the call request for the business service received in the business system according to the service restriction parameter.

[0010] In another aspect, an embodiment of the present invention provides a parameter adjustment method, comprising:

[0011] Acquire a service restriction parameter from a target memory, wherein the service restriction parameter is generated by a speed limit configuration device according to system resource occupancy information and machine resource occupancy information and stored in the target memory, wherein the system resource occupancy information is acquired by the speed limit configuration device through a device monitoring system, and the machine resource occupancy information is acquired by the speed limit configuration device through a proxy device;

[0012] The call request for the business service is processed according to the service restriction parameter.

[0013] In another aspect, an embodiment of the present invention provides a parameter adjustment device, comprising:

[0014] An acquisition unit, used to acquire, through a device monitoring system, system resource occupancy information of a business system in the process of providing business services;

[0015] The acquisition unit is further used to acquire the machine resource occupancy information of each business device in the business system through the proxy device;

[0016] A generating unit, configured to generate a service restriction parameter according to the system resource occupancy information and the machine resource occupancy information;

[0017] The storage unit is used to store the service restriction parameter in the target memory, so that after the target business device reads the service restriction parameter from the target memory, it processes the call request for the business service received in the business system according to the service restriction parameter.

[0018] In another aspect, an embodiment of the present invention provides a parameter adjustment device, comprising:

[0019] an acquisition unit, configured to acquire a service restriction parameter from a target memory, wherein the service restriction parameter is generated by a speed limit configuration device according to system resource occupancy information and machine resource occupancy information and stored in the target memory, wherein the system resource occupancy information is acquired by the speed limit configuration device through a device monitoring system, and the machine resource occupancy information is acquired by the speed limit configuration device through a proxy device;

[0020] A processing unit is used to process the call request of the business service according to the service restriction parameter.

[0021] On the other hand, an embodiment of the present invention provides a speed limit configuration device, including a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are connected to each other, wherein the memory is used to store a computer program that supports a terminal to execute the above method, the computer program includes program instructions, and the processor is configured to call the program instructions to perform the following steps:

[0022] Obtain information about system resource usage of business systems in the process of providing business services through the equipment monitoring system;

[0023] Obtaining machine resource occupancy information of each business device in the business system through a proxy device;

[0024] generating a service restriction parameter according to the system resource occupancy information and the machine resource occupancy information;

[0025] The service restriction parameter is stored in the target memory, so that after the target business device reads the service restriction parameter from the target memory, it processes the call request for the business service received in the business system according to the service restriction parameter.

[0026] In another aspect, an embodiment of the present invention provides a target service device, including a processor, an input device, an output device, and a memory, wherein the processor, the input device, the output device, and the memory are connected to each other, wherein the memory is used to store a computer program that supports a terminal to execute the above method, wherein the computer program includes program instructions, and the processor is configured to call the program instructions to execute the following steps:

[0027] Acquire a service restriction parameter from a target memory, wherein the service restriction parameter is generated by a speed limit configuration device according to system resource occupancy information and machine resource occupancy information and stored in the target memory, wherein the system resource occupancy information is acquired by the speed limit configuration device through a device monitoring system, and the machine resource occupancy information is acquired by the speed limit configuration device through a proxy device;

[0028] The call request for the business service is processed according to the service restriction parameter.

[0029] On the other hand, an embodiment of the present invention provides a computer-readable storage medium, in which program instructions are stored. When the program instructions are executed by a processor, they are used to execute the parameter adjustment method described in the first aspect and the parameter adjustment method described in the second aspect.

[0030] In an embodiment of the present invention, after the speed limit configuration device obtains the system resource occupancy information through the device monitoring system and obtains the machine resource occupancy information through the proxy device, it can generate service restriction parameters according to the system resource occupancy information and the machine resource occupancy information, so that the service restriction parameters can be stored in the target memory, so that the target business device can read the service restriction parameters from the target memory, and process the call request of the business service based on the service restriction parameters, so that the speed limit configuration device can realize real-time update of the service restriction parameters, which can improve the flexibility of adjusting the service restriction parameters, ensure the accuracy of the service restriction parameters obtained by the business device, and thus realize accurate processing of the call request. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0032] Figure 1 is a schematic diagram of a parameter adjustment system provided by an embodiment of the present invention;

[0033] Figure 2 is a schematic flow chart of a parameter adjustment method provided by an embodiment of the present invention;

[0034] Figure 3a is a schematic diagram of a user operation provided by an embodiment of the present invention;

[0035] Figure 3b It is a schematic diagram of a logical operation of responding to a call request corresponding to a user operation provided by an embodiment of the present invention;

[0036] Figure 3c is a schematic diagram of a parameter adjustment system provided by an embodiment of the present invention;

[0037] Figure 4 is a schematic flow chart of a parameter adjustment method provided by an embodiment of the present invention;

[0038] Figure 5 is a schematic block diagram of a parameter adjustment device provided by an embodiment of the present invention;

[0039] Figure 6 is a schematic block diagram of a parameter adjustment device provided by an embodiment of the present invention;

[0040] Figure 7 is a schematic block diagram of a speed limit configuration device provided by an embodiment of the present invention;

[0041] Figure 8 It is a schematic block diagram of a target service device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0042] The embodiment of the present invention proposes a parameter adjustment method, which enables the speed limit configuration device to dynamically adjust the service restriction parameters of the business device when processing the call request based on the system resource occupancy information corresponding to the business system and the machine resource occupancy information of the business device in the business system, thereby improving the adjustment efficiency of the service restriction parameters. In one embodiment, when the speed limit configuration device dynamically adjusts the service restriction parameters, it can first obtain the system resource occupancy information of the business system in the process of providing business services through the monitoring system, wherein the business system includes multiple business devices, each business device can provide a variety of different business services, and the business service is called by the client through the service interface of the business device to respond to the call request initiated by the client; in addition, the speed limit configuration device can also obtain the machine resource occupancy information of the business device providing the business service while obtaining the system resource occupancy information of the business system, wherein the system resource occupancy information includes multiple different types of system resource occupancy values, and the system health (or global health) of the business server can be used to describe different types of system resource occupancy values, such as the interface call success rate, or the interface processing time, etc. It can be understood that the interface call success rate or the interface processing time is the above-mentioned system resource occupancy value. In one embodiment, the machine resource occupancy information also includes a plurality of different types of machine resource occupancy values. Similarly, the machine health can be used to describe different types of machine resource occupancy values, such as central processing unit utilization, memory utilization, disk utilization, network card utilization, operating system utilization, etc., wherein the speed limit configuration device can be a server device or a terminal device, which is not limited in the embodiments of the present invention.

[0043] In one embodiment, Figure 1The parameter adjustment system shown includes a business device 10, an agent device 11, a device monitoring system 12, and a speed limit configuration device 13 in a business system, wherein the business device 10 is any business device among the multiple business devices included in the business system, the business device 10 and the agent device 11 are associated through a target memory, and the speed limit configuration device 13 establishes communication connections with the agent device 11 and the device monitoring system 12 respectively. When the speed limit configuration device 13 obtains system resource occupancy information and machine resource occupancy information, it obtains them from the agent device 11 and the device monitoring system 12 respectively. In a specific implementation, the business device 10 can store the machine resource occupancy information in the target memory, and correspondingly, the agent device 11 can read the machine resource occupancy information from the target memory, and can further send the machine resource occupancy information to the speed limit configuration device 13. In addition, the business device 10 may also report the system resource occupancy information of the corresponding business system to the device monitoring system 12, and the speed limit configuration device 13 may obtain the system resource occupancy information from the device monitoring system 12. After obtaining the system resource occupancy information and the machine resource occupancy information, the speed limit configuration device 13 may generate a service restriction parameter according to the system resource occupancy information and the machine resource occupancy information. Further, the speed limit configuration device 13 may send the generated service restriction parameter to the business device in the business system (such as Figure 1 The service device 10 shown in FIG.

[0044] When the speed limit configuration device sends the generated service restriction parameters to the business device, it may first send the service restriction configuration parameters to the proxy device. After receiving the service restriction parameters, the proxy device may store the service restriction parameters in the target memory. In one embodiment, since the business device and the proxy device are associated based on the target memory, after the proxy device stores the service restriction parameters in the target memory, the business device may read the service restriction parameters from the target memory, thereby processing the call request for the business service initiated by the client based on the service restriction parameters. In one embodiment, the business device may read the service restriction parameters from the target memory based on its own device requirements, such as the business device may read the service restriction parameters from the target memory at a preset time interval, or the business device may also obtain the service restriction parameters from the target memory when receiving the call request from the client, which can improve the flexibility of the business device in obtaining the service restriction parameters.

[0045] In one embodiment, after the business device obtains the service restriction parameters, when processing the call request for the business service based on the service restriction parameters, the business device may compare the current call volume of the client for the business service with the call threshold indicated by the service restriction parameters. If the current call volume is greater than the call threshold indicated by the service restriction parameters, the business device may randomly discard the received call request for the business service after subsequently receiving the call request for the business service, or the business device may directly prohibit the client from calling the business service in the future. In one embodiment, the business service may include one or more of an information publishing service, a relationship chain storage service, and an information storage service. The call request for the business service includes one or more of an information publishing call request, a user attention call request, a user query call request, and a homepage query call request. It can be understood that the information publishing call request is detected by the business device when the work is detected to be published, the user attention call request is detected by the business device when the user attention operation is detected, the user query call request is detected by the business device when the user query operation is detected, and the homepage query call request is detected by the business device when the homepage query operation is detected. Among them, the information publishing call request will call the information publishing service, the user attention call request and the user query call request will call the relationship chain storage service, and the homepage query call request will call the information storage service.

[0046] In one embodiment, the above-mentioned business service is also associated with one or more databases, which may be, for example, a relationship chain MYSQL (a relational data management system) database, which is used to store each user's follow list and the follow relationships between users; in addition, the database may also be a work MySQL database, which is used to store all works published by each user, that is, the full data corresponding to each user; in addition, the database may also be a personal work list REDIS-ZSET, which divides user data (including works published by users, publishing time, etc.) based on the user identification dimension, and stores key information about users who will publish works, which may be, for example, a list of work publishing identification (such as the identity of the work, or keyword information of the work, etc.), work publishing time, and publishing status.

[0047] See also Figure 2 , is a schematic flow chart of a parameter adjustment method proposed in an embodiment of the present invention, which can be applied to the above-mentioned speed limit configuration device, such as Figure 2 As shown, the method may include:

[0048] S201, obtaining, through a device monitoring system, information on system resource usage of a business system in the process of providing business services.

[0049] S202: Obtain machine resource occupancy information of each business device in the business system through a proxy device.

[0050] In step S201 and step S202, the speed limit configuration device may acquire the system resource occupancy information and the machine resource occupancy information when detecting the management operation for the business system. In one embodiment, when acquiring the system resource occupancy information and the machine resource occupancy information, the speed limit configuration device may first acquire the system resource occupancy information and then acquire the machine resource occupancy information. Alternatively, the speed limit configuration device may first acquire the machine resource occupancy information and then acquire the system resource occupancy information. Alternatively, the speed limit configuration device may also acquire the machine resource occupancy information and the system resource occupancy information at the same time. In one embodiment, the system resource occupancy information is used to indicate the global health (or system health) of the business system, wherein the system health can be determined based on one or both of the interface call success rate and the interface call time. The interface refers to the service interface of the business equipment used to provide business services in the business system. It can be understood that the size of the global health (or system resource occupancy information) can determine how quickly the business system responds to the current call request. If the global health is better, it means that the system resources in the business system are occupied less, and correspondingly, it is determined that the business system responds to the current call request faster; and if the global health is worse, it means that the current call request has occupied most of the system resources of the business system, then it can be determined that the business system responds to the current call request slower.

[0051] In one embodiment, the machine resource occupancy information is used to indicate the machine health of a single business device in the business system, and the machine health is used to measure the usage of business components in the business device. Similarly, if the machine health is worse, the response to the current call request is slower, and if the machine health is better, the response to the current call request is faster. Responding to the current call request means that the business device used to provide business services in the business system responds to the current call request. The business components of the business device include one or more of a central processing unit (CPU), memory, disk, network card, and operating system. Correspondingly, the machine health is determined based on one or more of the utilization rate of the central processing unit, memory utilization, disk utilization, network card utilization, and operating system utilization.

[0052] In one embodiment, after responding to the call request initiated by the client, the business device in the business system will send a response message to the device monitoring system that monitors the operation of the business system. The response message includes the response time for the call request and the call success rate. After the device monitoring system obtains the response message, the system resource occupancy information of the business system can be determined based on the response information, so that the speed limit configuration device can obtain the system resource occupancy information from the device monitoring system; or, after the business device responds to the call request, it can directly determine the system resource occupancy information of the corresponding system device based on the call request, and send the determined system resource occupancy information to the device monitoring system, so that the speed limit configuration device can obtain the system resource occupancy information from the device monitoring system. In one embodiment, the call request received by the business device is, for example, a call request based on a remote procedure call (RPC). In one embodiment, the business device may also store the machine resource occupancy information of the device in the target memory, so that the proxy device connected to the target memory can obtain the machine resource occupancy information from the target memory. Furthermore, the speed limit configuration device can also obtain the machine resource occupancy information from the proxy device, wherein the business device is a business device among multiple business devices of the business system that provides the above-mentioned business services.

[0053] After the speed limit configuration device obtains the system resource occupancy information of the business system and the machine resource occupancy information of the business device, it can generate service restriction parameters based on the system resource occupancy information and the machine resource occupancy information, that is, execute step S203, so that the business device can limit the call request initiated by the client based on the service restriction parameters.

[0054] S203: Generate a service restriction parameter according to the system resource occupancy information and the machine resource occupancy information.

[0055] In one embodiment, when the speed limit configuration device generates service restriction parameters according to the system resource occupancy information and the machine resource occupancy information, it can first determine whether the business system has reached a system bottleneck based on the system resource occupancy information and the machine resource occupancy information. It can be understood that when the business system reaches a system bottleneck, if the business system continues to respond to the client's call request, it may cause the business system to crash. Therefore, when the business system reaches the system bottleneck, it is necessary to limit the business system's response to the call request to protect the business system. In one embodiment, the speed limit configuration device can determine whether the business system has reached a bottleneck based on the resource occupancy information or the machine resource occupancy information. Specifically, the determination of whether the business system has reached a system bottleneck can be shown in Table 1:

[0056] Table 1

[0057]

[0058] In one embodiment, it can be seen from the above Table 1 that whether the machine resource occupancy information reaches the corresponding bottleneck, and whether the system resource occupancy information reaches the corresponding bottleneck, it can be determined whether the business system has reached the system bottleneck. Specifically, when the system resource occupancy information and any occupancy information in the machine resource occupancy information reach the corresponding bottleneck, the speed limit configuration device considers that the business system has reached the system bottleneck. In a specific implementation, the speed limit configuration device can select a resource occupancy value of a target type from a plurality of different types of system resource occupancy values ​​included in the system resource occupancy information, and a plurality of different types of machine resource occupancy values ​​included in the machine resource occupancy information, so that the resource occupancy value of the target type can be compared with the bottleneck threshold configured for the target type. When the resource occupancy value of the target type is greater than or equal to the bottleneck threshold, it can be determined that the business system has reached the system bottleneck. The machine resource occupancy information can be determined based on one or more of the CPU usage, memory usage, disk usage, network card usage, and operating system usage. The system resource occupancy information can be determined based on the interface call success rate or the interface processing time. It can be understood that the speed limit configuration device can select one or more of the CPU usage, memory usage, disk usage, network card usage, operating system usage, and interface call success rate, or interface processing time as the resource occupancy value of the target type, so that the resource occupancy value of the target type can be compared with the bottleneck threshold configured for the target type to determine whether the business system has reached the system bottleneck. In one embodiment, judging whether the business system has reached the bottleneck based on the resource occupancy value of the target type can be one or more of the following:

[0059] ① The CPU usage rate ranges from 0% to 100%. If the CPU usage rate is 95% (assuming the corresponding bottleneck threshold is 85%), it indicates that the current CPU is very unhealthy. Alternatively, the number of processes in the running state of the average load can also be used to indicate whether the CPU has reached the corresponding bottleneck. The number of processes ranges from 0 to N (N is an integer greater than the number of cores of the device). If the number of processes is 3000 (assuming the corresponding bottleneck threshold is 1500), since 1 core can only process 1 process at each moment, and since 3000 is greater than the number of cores of the device, when the process value is 3000, it indicates that there are running processes waiting to be executed, which indicates that the CPU is very unhealthy.

[0060] ② The value range of memory usage is 0% to 100%. If the memory usage is 88% (assuming the corresponding bottleneck threshold is 85%), it indicates that the current memory is very unhealthy.

[0061] ③ The value range of disk usage is 0% to 100%. If the value range of disk usage is 90% (assuming the corresponding bottleneck threshold is 88%), it indicates that the current disk is very unhealthy; alternatively, the disk can also use the read and write rate of the disk to determine whether the disk has reached the corresponding bottleneck. Similarly, the value range of the disk read and write rate is also 0% to 100%. If the disk read and write rate is 78% (assuming the corresponding bottleneck threshold is 70%), it indicates that the current disk is very unhealthy.

[0062] ④ The network card usage rate ranges from 0% to 100%. If the network card usage rate ranges to 80% (assuming the corresponding bottleneck threshold is 75%), it indicates that the current network card is very unhealthy.

[0063] ⑤ The operating system usage rate is determined by the number of files opened by the operating system, where the value range of the operating system usage rate is 0 to 65535; if the value of the operating system usage rate is 50000 (assuming the corresponding bottleneck threshold is 45000), it indicates that the current operating system is very unhealthy; or, the operating system usage rate can also be determined by the number of network connections, and the value of the number of network connections can also be 0 to 65535. If the value of the number of network connections is 30000 (assuming the corresponding bottleneck threshold is 28000), it indicates that the current operating system is very unhealthy.

[0064] ⑥ The interface call success rate ranges from 0% to 100%, among which, the interface call success rate is determined to be unhealthy when it is less than the corresponding bottleneck threshold. If the interface call success rate is 8% (assuming the corresponding bottleneck threshold is 60%), it indicates that the current service interface is very unhealthy; Correspondingly, there is also an interface call failure rate, and the interface failure rate ranges from 0% to 100%. Among them, if the interface failure rate is 90% (assuming the corresponding bottleneck threshold is 60%), it indicates that the current service interface is very unhealthy.

[0065] ⑦ The interface processing time ranges from 0.001 seconds to 65.535 seconds. If the interface processing time is 30 seconds (assuming the corresponding bottleneck threshold is 25), it indicates that the current service interface is very unhealthy.

[0066] In one embodiment, the bottleneck threshold configured for the target type can be set based on system requirements. For example, when the resource occupancy value of the target type is the CPU usage rate, the corresponding bottleneck threshold can be 80% or 85%, etc., and when the resource occupancy value of the target type is the memory usage rate, the corresponding bottleneck threshold can be 90, etc. It can be understood that the corresponding bottleneck thresholds configured for different types of resource occupancy values ​​can be the same or different. When the speed limit configuration device detects that any resource occupancy value is greater than the corresponding bottleneck threshold, it determines that the business system has reached a system bottleneck, and can generate corresponding service restriction parameters based on the system resource occupancy information and the machine resource occupancy information. In a specific implementation, when the speed limit configuration device generates the service restriction parameters based on the system resource occupancy information and the machine resource occupancy information, the restriction parameters corresponding to the resource occupancy information that causes the business system to reach the system bottleneck can be used as the service restriction parameters. In one embodiment, if the speed limit configuration device determines that the business system has reached a system bottleneck based on the usage rate of the central processing unit, the limit parameter corresponding to the usage rate of the central processing unit can be used as the service limit parameter. Specifically, if the speed limit configuration device determines that the business system has reached a system bottleneck when the usage rate of the central processing unit is 80%, if the limit parameter corresponding to the central processing unit being 80% is 3000 call requests per second, then the service limit parameter can be determined to be 3000 call requests per second.

[0067] S204, storing the service restriction parameter in the target memory, so that after the target business device reads the service restriction parameter from the target memory, it processes the call request for the business service received in the business system according to the service restriction parameter.

[0068] In one embodiment, after determining the service restriction parameter, in order to enable the target business device (the target business device is any business device in the business system) to obtain the service restriction parameter and process the call request for the business service based on the service restriction parameter, in a specific implementation, the speed limit configuration device may first send the service restriction parameter to the proxy device, and after receiving the service restriction parameter, the proxy device may further store the service restriction parameter in the target memory. After the proxy device stores the service restriction parameter in the target memory, the target business device may read the service restriction parameter from the target memory. After the target business server reads the service restriction parameter, it can process the call request of the business service based on the service restriction parameter. In a specific implementation, after receiving the call request of the business service from the client, the target business device can determine the current call volume of the business service after executing the call request. Further, the target business device can compare the determined current call volume of the business service with the call volume threshold indicated by the service restriction parameter. If the current call volume is greater than the call volume threshold, the target business device can perform frequency limiting processing based on the call request, such as returning a specific error code or discarding the call request. In one embodiment, after the target business device completes processing the call request, it can report the success rate of processing the call request and the interface call time to the device monitoring system, so that the device monitoring system can update the system resource occupancy information based on the success rate of the call request and the interface call time to obtain new system resource occupancy information. Further, the speed limit configuration device can obtain the new system resource occupancy information from the device monitoring system to achieve cyclic update of the service restriction parameter.

[0069] In an embodiment of the present invention, after the speed limit configuration device obtains the system resource occupancy information through the device monitoring system and obtains the machine resource occupancy information through the proxy device, it can generate service restriction parameters according to the system resource occupancy information and the machine resource occupancy information, so that the service restriction parameters can be stored in the target memory, so that the target business device can read the service restriction parameters from the target memory, and process the call request of the business service based on the service restriction parameters, so that the speed limit configuration device can realize real-time update of the service restriction parameters, which can improve the flexibility of adjusting the service restriction parameters, ensure the accuracy of the service restriction parameters obtained by the business device, and thus realize accurate processing of the call request.

[0070] In one embodiment, the business service may be, for example, a service that supports the operation of an information publishing application in a client. After the client detects the execution of a user operation in the information publishing application, it calls the corresponding business service in the business device to respond to the user operation. In one embodiment, the operations that a user can perform in the information publishing application may be as follows: Figure 3a As shown, the user who performs user operations in the information publishing application can be an author user or a browsing user, wherein the author user refers to the user who uploads information in the information publishing application, and the browsing user refers to the non-author user, that is, the user who does not upload information in the information publishing application. Figure 3a As shown, the user operations that the author user can perform in the information publishing application include:

[0071] ① Management operations on posts, articles, or feeds (a unit of information), such as publishing or deleting operations;

[0072] ②Management operations on posts, articles, or feeds, such as browsing, liking, or commenting;

[0073] ③ Operations on following other users, such as following, unfollowing, viewing the follow (fan) list, viewing feeds (a set of information units consisting of multiple information units), etc.

[0074] In one embodiment, the user operation performed by the browsing user in the information publishing application includes the second operation and the third operation mentioned above. In one embodiment, the logic of the business system performing the business operation can be as follows: Figure 3b As shown, the business services that can be provided by the business system include: information publishing service, relationship chain storage service, and one or more of information storage service and personal homepage service. Correspondingly, when providing the corresponding business services, the business system needs to call one or more related databases. The databases that need to be called include databases for relationship chain storage, databases for works storage, databases for personal homepage storage, etc., wherein the database for relationship chain storage is used to store the association (i.e., attention) relationship between users in the information publishing application, the database for works storage is used to store the works in the information publishing application, and the database for personal homepage storage is used to store a list of personal works. In one embodiment, when the client receives a user operation and sends a call request for a business service generated based on the user operation to the service system to respond to the user operation, the business process executed by the business system in response to the corresponding call request based on the above business operation includes:

[0075] ① For the post or feed publishing operation performed by the author user - request the information publishing service, save the feed in the work MySQL database, and save the key information of the feed to the personal work list REDIS-ZSET;

[0076] ②Execute the follow operation for the user - request the relationship chain storage service and save the follow relationship to the relationship chain MySQL database;

[0077] ③ View the follow list and the follow relationship (followed user, followed user, etc.) - request the relationship chain storage service, query the relationship chain MYSQL database, and then calculate and return;

[0078] ④ Publishing operation of work information - requesting relationship chain storage service, querying relationship chain MYSQL database, personal work list REDIS-ZSET work MySQL database, and then calculating and returning.

[0079] It is understandable that when the business system responds to the call request, in order to protect the business system, the rate limit configuration device can adjust the service restriction parameters of the business device in the business system, so that the business device can respond to the call request based on the restriction of the service restriction parameters, thereby protecting the business system. Figure 3c As shown, Figure 3c The system resource occupancy information in is used to indicate the health of the system / globality, taking into account the interface call success rate, interface call time, etc. The machine resource occupancy information is used to indicate the health of a single business device, taking into account the performance of the CPU, memory, hard disk, network card, etc. In one embodiment, based on the machine resource occupancy information and the global resource occupancy information, the maximum allowable value of the corresponding interface call amount in the business device can be determined, and the maximum allowable value is the call threshold corresponding to the service restriction parameter. The management end is controlled by the management personnel and is used to manage the service restriction parameters. The service restriction parameters determined by the speed limit configuration device can be viewed and modified, and the modified service restriction parameters can be sent to the speed limit configuration device; the speed limit configuration device is used to receive the call amount of the business device reported by the proxy device, as well as the machine resource occupancy information, and obtain the system resource occupancy information of the business device from the device monitoring system. Based on the machine resource occupancy information and the system resource occupancy information, the speed limit configuration device can determine the service restriction parameters corresponding to the business device, and send the service restriction parameters to the proxy device.

[0080] In one embodiment, the proxy device is used to obtain the service limit parameters of the business device from the speed limit configuration device, and store the service limit parameters in the shared memory, and obtain the call volume of the business device and the machine resource occupancy information from the shared memory, and send the call volume and the machine resource occupancy information to the speed limit configuration device; the business device includes a business software system, and the business software system is used to respond to one or more call requests from the client. By reading the service limit parameters in the shared memory, each time the client calls the business device, the corresponding call volume will increase, and the call volume obtained after the increase will be stored in the shared memory. Further, if the business device compares the call volume with the call threshold indicated by the server limit parameter and determines that the call volume is greater than the call threshold, it means that the business system where the business device is located has reached a system bottleneck, and the business device can perform frequency limiting processing to achieve protection of the business system, such as returning a specific error code or losing the call request of the client, and sending the call success rate and call time after responding to the call request. System resource occupancy information such as sending to the device monitoring system. It should be noted that the proxy device and the business device can be two different devices, and the two different devices always maintain an association relationship through shared memory, or the proxy device and the business device can also be different modules in the same device, and the shared memory is the memory in the same device.

[0081] In one embodiment, see Figure 4 The schematic flow chart of a parameter adjustment method shown in FIG. 1 is used to describe in detail the adjustment process of the service restriction device and the process of the target service device processing the service service call request based on the service restriction parameter, such as Figure 4 As shown, the method may include:

[0082] S401: The rate limit configuration device obtains system resource usage information of the business system in the process of providing business services through the device monitoring system.

[0083] S402: The speed limit configuration device obtains machine resource occupancy information of each service device in the service system through a proxy device.

[0084] In step S401 and step S402, before the speed limit configuration device obtains the system resource occupancy information of the business system in the process of providing business services through the device monitoring system, it can first determine whether a management operation on the business component in the business system for providing the business service is detected; if the speed limit configuration device determines that a management operation on the business component is detected, it triggers the execution of the step of obtaining the system resource occupancy information of the business system in the process of providing business services through the device monitoring system, wherein the management operation on the business component includes one or both of an increase operation on the business component and a decrease operation on the business component, so that the adjustment of the service restriction parameters by the speed limit configuration device can better adapt to the increase or decrease of the business components, and can effectively improve the flexibility of adjusting the service restriction parameters.

[0085] In one embodiment, in order to better adapt to the expansion and reduction of the business system and the system update when adjusting the service restriction parameters, the speed limit configuration device may also determine whether a management operation for the business system is detected before obtaining the system resource occupancy information of the business system in the process of providing business services through the device monitoring system; and when it is determined to be yes, trigger the execution of the step of obtaining the system resource occupancy information of the business system in the process of providing business services through the device monitoring system, wherein the management operation for the business system includes one or more of an expansion operation for the business system, a reduction operation for the business system, and an update operation for the business system. Based on the detection of the management operation of the business system, the speed limit configuration device improves the accuracy of the speed limit configuration device in determining the service restriction parameters when the business system is expanded or reduced.

[0086] In one embodiment, after the speed limit configuration device obtains the system resource occupancy information of the business system and the machine resource occupancy information of the corresponding business device from the device monitoring system, it can determine the service restriction parameters based on the system resource occupancy information and the machine resource occupancy information, that is, turn to execute step S403.

[0087] S403: The speed limit configuration device generates a service limit parameter according to the system resource occupancy information and the machine resource occupancy information.

[0088] In one implementation, when the speed limit configuration device generates the service limit parameter according to the system resource occupancy information and the machine resource occupancy information, it can first determine the current configuration parameter of the business system, which is obtained according to the target call volume corresponding to the business system, wherein the administrator can set the current configuration parameter through the interface displayed by the management terminal, and send the set current configuration parameter to the speed limit configuration device. It can be understood that the current configuration parameter is used to indicate the initial call volume threshold for displaying the call volume of the business device, and the initial call volume threshold indicated by the current configuration parameter can be, for example, 1000 / second. The speed limit configuration device can generate the corresponding service limit parameter based on the determined current configuration parameter, the system resource occupancy value and the machine resource occupancy value, that is, the speed limit configuration device can adjust the current configuration parameter based on the system resource occupancy information and the machine resource occupancy information to obtain the adjusted configuration parameter, and can further use the adjusted configuration parameter as the service limit parameter of the business system, wherein the adjusted configuration parameter can be, for example, 3000 / second.

[0089] In one embodiment, the system resource occupancy information includes multiple different types of system resource occupancy values, and the machine resource occupancy information includes multiple different types of machine resource occupancy values. When the speed limit configuration device adjusts the current configuration parameters based on the system resource occupancy information and the machine resource occupancy information to obtain the adjusted configuration parameters, the resource occupancy value of the target type can be compared with the bottleneck threshold configured for the target type according to the comparison rule, wherein the resource occupancy value of the target type is: any one of the multiple different types of system resource occupancy values ​​or the multiple different types of machine resource occupancy values. After the speed limit configuration device compares the resource occupancy value of the target type with the bottleneck threshold, if it is determined according to the comparison result that the system resource occupancy value of the target type reaches the bottleneck threshold, the current configuration parameters can be adjusted to obtain the adjusted configuration parameters. In order to improve the comparison efficiency of the speed limit configuration device and improve the efficiency of adjusting the service restriction parameters, the service restriction device can also sort the multiple different types of system resource occupancy values ​​and the multiple different types of machine resource occupancy values ​​before comparing based on the comparison rule, so as to determine the resource occupancy value of the target type according to the sorting result. Among them, the sorting is determined according to the priority corresponding to different types, and the priority can be preset, or the priority can also be based on the number of times that the business system reaches the system bottleneck under historical (i.e., a historical time period) circumstances based on the multiple different types of resource occupancy values. For example, under historical circumstances, the number of resource occupancy values ​​that caused the business system to reach the system bottleneck was 8 times for CPU usage, 6 times for memory usage, and 7 times for interface call success rate. Then the resource occupancy value of the target type determined by the speed limit configuration device is the CPU usage.

[0090] In one embodiment, the service restriction parameter may also be a system restriction parameter corresponding to the system and a single machine respectively, and a machine restriction parameter. Then, when the speed limit configuration device adjusts the current configuration parameters according to the system resource occupancy information and the machine resource occupancy information, it may also adjust the system restriction parameter when it is detected that the system resource occupancy value included in the system resource occupancy information contains a system resource occupancy value that reaches the corresponding bottleneck threshold. Alternatively, if it is detected that the machine resource occupancy value included in the machine resource occupancy information contains a machine resource occupancy value that reaches the corresponding bottleneck threshold, the machine restriction parameter is adjusted, so that the business system or business equipment can be restricted based on the adjusted system resource restriction parameter or machine resource restriction parameter.

[0091] In one embodiment, when the speed limit configuration device generates service restriction parameters according to the system resource occupancy information and the machine resource occupancy information, it may first generate initial restriction parameters according to the system resource occupancy information and the machine resource occupancy information, that is, update the above-mentioned current configuration parameters to obtain initial restriction parameters. Further, the speed limit configuration device may display the generated initial restriction parameters on the parameter management interface, and determine whether an adjustment operation for the service restriction parameters is detected from the parameter management interface; if so, the adjusted initial restriction parameters are used as the service restriction parameters; if not, the initial restriction parameters are used as the service restriction parameters, so that the generated service restriction parameters can be more in line with current needs. After the speed limit configuration device generates the service restriction parameters, the business device may respond to the received call request based on the service restriction parameters, that is, turn to execute step S404.

[0092] S404: The rate limit configuration device stores the service limit parameters in a target memory.

[0093] S405: The target service device obtains service restriction parameters from the target storage.

[0094] S406: The target service device processes the call request for the business service according to the service restriction parameter.

[0095] In steps S404 to S406, after generating the service restriction parameters, the speed limit configuration device may send the service restriction parameters to the target business device through the target memory, so that the target business device reads the service restriction parameters from the target memory and processes the call request of the business service according to the service restriction parameters, wherein the target memory includes a shared memory, and the proxy device and the target business device are associated through the target memory. When the speed limit configuration device stores the service restriction parameters in the target memory, the service restriction parameters are first sent to the proxy device, and the proxy device then stores the service restriction parameters in the target memory. Correspondingly, after the proxy device stores the service restriction parameters in the target memory, the target business device can obtain the service restriction parameters from the target memory based on the connection relationship between the proxy device and the target memory. After the target business device obtains the service restriction parameter, it can process the call request of the business service based on the service restriction parameter, wherein the business service includes: information publishing service, relationship chain storage service, and one or more of the information storage service; the call request includes: one or more of the information publishing call request, user attention call request, user query call request, and homepage query call request.

[0096] In one embodiment, when the target business device processes the call request for the business service based on the service restriction parameter, it may first determine the total amount of calls currently made by the client to the business system and the call threshold indicated by the service restriction parameter. Furthermore, the target business device may compare the determined total amount of calls with the call threshold. If the total amount of calls is greater than the call threshold, the subsequent call requests from the client are frequency limited, such as randomly discarding the call request, or refusing access to the business system, returning a specific error code, etc., thereby protecting the business system. The call operation may be generated by the client based on a detected flash sale operation, crawler operation, etc.

[0097] In an embodiment of the present invention, after obtaining the system resource occupancy information and the machine resource occupancy information, the speed limit configuration device can determine the service restriction parameters based on the system resource occupancy information and the machine resource occupancy information, so that the service restriction parameters can be stored in the target memory. The target business device can obtain the service restriction parameters from the target memory based on the connection relationship between the target business device and the target memory, so as to process the call request of the business service according to the service restriction parameters, so that the target business device can process the call request initiated by the client based on the service restriction parameters obtained from the speed limit configuration device, so that when the target business device determines that the corresponding business system has reached a system bottleneck, the call request can be restricted, thereby protecting the business system and improving the security of the business system.

[0098] Based on the description of the above parameter adjustment method embodiment, the present invention also proposes a parameter adjustment device, which can be a computer program (including program code) running in the above speed limit configuration device. The parameter adjustment device can be used to perform the following steps: Figure 2 and Figure 4 For parameter adjustment methods for speed limit configuration device execution, see Figure 5 The parameter adjustment device includes: an acquisition unit 501, a generation unit 502 and a storage unit 503.

[0099] An acquisition unit 501 is used to acquire, through a device monitoring system, system resource occupancy information of a business system in the process of providing business services;

[0100] The acquisition unit 501 is further configured to acquire machine resource occupancy information of each business device in the business system through a proxy device;

[0101] A generating unit 502, configured to generate a service restriction parameter according to the system resource occupancy information and the machine resource occupancy information;

[0102] The storage unit 503 is used to store the service restriction parameter in the target memory, so that after the target business device reads the service restriction parameter from the target memory, it processes the call request for the business service received in the business system according to the service restriction parameter.

[0103] In one embodiment, the generating unit 502 is specifically configured to:

[0104] Determine current configuration parameters of the business system, where the configuration parameters are obtained according to a target call volume corresponding to the business system;

[0105] Based on the system resource occupancy information and the machine resource occupancy information, adjusting the current configuration parameters to obtain adjusted configuration parameters;

[0106] The adjusted configuration parameters are used as service restriction parameters of the business system.

[0107] In one embodiment, the target memory includes a shared memory, and the proxy device and the service device are associated through the target memory; the storage unit 503 is specifically used for:

[0108] The service restriction parameter is sent to the proxy device, so that the proxy device stores the service restriction parameter in the target memory.

[0109] In one embodiment, the system resource occupancy information includes multiple different types of system resource occupancy values, and the machine resource occupancy information includes multiple different types of machine resource occupancy values; the generating unit 502 is specifically configured to:

[0110] According to the comparison rule, the resource occupancy value of the target type is compared with the bottleneck threshold configured for the target type to obtain a comparison result, wherein the resource occupancy value of the target type is: any one of the system resource occupancy values ​​of the multiple different types or the machine resource occupancy values ​​of the multiple different types;

[0111] If it is determined according to the comparison result that the system resource occupancy value of the target type has reached the bottleneck threshold, the current configuration parameters are adjusted to obtain adjusted configuration parameters.

[0112] In one embodiment, the device further includes: a sorting unit 504 and a determining unit 505 .

[0113] A sorting unit 504, configured to sort the plurality of different types of system resource occupancy values ​​and the plurality of different types of machine resource occupancy values, wherein the sorting is determined according to priorities corresponding to different types;

[0114] The determining unit 505 is configured to determine the resource occupancy value of the target type according to the sorting result.

[0115] In one embodiment, the device further includes: a judging unit 506 .

[0116] A determination unit 506, configured to determine whether a management operation on a business component in the business system for providing the business service is detected;

[0117] If so, triggering the step of obtaining the system resource occupancy information of the business system in the process of providing business services through the device monitoring system;

[0118] The management operation for the service component includes: one or both of an adding operation for the service component and a reducing operation for the service component.

[0119] In one embodiment, the determining unit 506 is further configured to determine whether a management operation directed to the business system is detected;

[0120] If so, triggering the step of obtaining the system resource occupancy information of the business system in the process of providing business services through the device monitoring system;

[0121] The management operation for the business system includes one or more of an expansion operation for the business system, a reduction operation for the business system, and an update operation for the business system.

[0122] In one embodiment, the generating unit 502 specifically includes:

[0123] generating an initial restriction parameter according to the system resource occupancy information and the machine resource occupancy information;

[0124] Displaying the generated initial restriction parameters on the parameter management interface;

[0125] Determining whether an adjustment operation for the service restriction parameter is detected from the parameter management interface;

[0126] If yes, the adjusted initial restriction parameter is used as the service restriction parameter;

[0127] If not, the initial restriction parameter is used as the service restriction parameter.

[0128] In an embodiment of the present invention, after the acquisition unit 501 acquires the system resource occupancy information through the device monitoring system and the machine resource occupancy information through the proxy device, the generation unit 502 may generate a service restriction parameter according to the system resource occupancy information and the machine resource occupancy information, so that the storage unit 503 may store the service restriction parameter in the target memory, so that the target business device may read the service restriction parameter from the target memory, and process the call request of the business service based on the service restriction parameter, thereby realizing real-time update of the service restriction parameter, improving the flexibility of adjusting the service restriction parameter, and ensuring the accuracy of the service restriction parameter acquired by the business device, so as to realize accurate processing of the call request.

[0129] Based on the description of the above parameter adjustment method embodiment, the present invention also proposes a parameter adjustment device, which can be a computer program (including program code) running in the above target service device. The parameter adjustment device can be used to perform the following steps: Figure 4 For parameter adjustment methods for target service devices, see Figure 6 The parameter adjustment device includes: an acquisition unit 601 and a processing unit 602.

[0130] The acquisition unit 601 is used to acquire a service restriction parameter from a target memory, wherein the service restriction parameter is generated by a rate limit configuration device according to system resource occupancy information and machine resource occupancy information and stored in the target memory, wherein the system resource occupancy information is acquired by the rate limit configuration device through a device monitoring system, and the machine resource occupancy information is acquired by the rate limit configuration device through a proxy device;

[0131] The processing unit 602 is used to process the call request of the business service according to the service restriction parameter.

[0132] In one embodiment, the business service includes: one or more of: information publishing service, relationship chain storage service, and information storage service;

[0133] The call request includes: one or more of an information release call request, a user attention call request, a user query call request, and a homepage query call request.

[0134] In an embodiment of the present invention, based on the connection relationship between the target memory and the acquisition unit 601, the service restriction parameter can be obtained from the target memory, so that the processing unit 602 can process the call request of the business service according to the service restriction parameter, so that the call request initiated by the client can be processed based on the service restriction parameter obtained in the speed limit configuration device, so that when it is determined that the corresponding business system has reached a system bottleneck, the call request can be restricted, thereby protecting the business system and improving the security of the business system.

[0135] See also Figure 7 , is a schematic block diagram of a speed limit configuration device provided by an embodiment of the present invention. Figure 7 The speed limit configuration device in the embodiment shown may include: one or more processors 701; one or more input devices 702, one or more output devices 703 and a memory 704. The processor 701, the input device 702, the output device 703 and the memory 704 are connected via a bus 705. The memory 704 is used to store a computer program, the computer program includes program instructions, and the processor 701 is used to execute the program instructions stored in the memory 704.

[0136] The memory 704 may include a volatile memory, such as a random-access memory (RAM); the memory 704 may also include a non-volatile memory, such as a flash memory, a solid-state drive (SSD), etc.; the memory 704 may also include a combination of the above types of memory.

[0137] The processor 701 may be a central processing unit (CPU). The processor 701 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), etc. The PLD may be a field-programmable gate array (FPGA), a generic array logic (GAL), etc. The processor 701 may also be a combination of the above structures.

[0138] In the embodiment of the present invention, the memory 704 is used to store a computer program, the computer program includes program instructions, and the processor 701 is used to execute the program instructions stored in the memory 704 to implement the above-mentioned Figure 2 and Figure 4 The steps of the corresponding method executed by the speed limit configuration device.

[0139] In one embodiment, the processor 701 is configured to call the program instructions to execute:

[0140] Obtain information about system resource usage of business systems in the process of providing business services through the equipment monitoring system;

[0141] Obtaining machine resource occupancy information of each business device in the business system through a proxy device;

[0142] generating a service restriction parameter according to the system resource occupancy information and the machine resource occupancy information;

[0143] The service restriction parameter is stored in the target memory, so that after the target business device reads the service restriction parameter from the target memory, it processes the call request for the business service received in the business system according to the service restriction parameter.

[0144] In one embodiment, the processor 701 is configured to call the program instructions to execute:

[0145] Determine current configuration parameters of the business system, where the configuration parameters are obtained according to a target call volume corresponding to the business system;

[0146] Based on the system resource occupancy information and the machine resource occupancy information, adjusting the current configuration parameters to obtain adjusted configuration parameters;

[0147] The adjusted configuration parameters are used as service restriction parameters of the business system.

[0148] In one embodiment, the target memory includes a shared memory, and the proxy device and the service device are associated through the target memory; the processor 701 is configured to call the program instruction to execute:

[0149] The service restriction parameter is sent to the proxy device, so that the proxy device stores the service restriction parameter in the target memory.

[0150] In one embodiment, the system resource occupancy information includes multiple different types of system resource occupancy values, and the machine resource occupancy information includes multiple different types of machine resource occupancy values; the processor 701 is configured to call the program instruction to execute:

[0151] According to the comparison rule, the resource occupancy value of the target type is compared with the bottleneck threshold configured for the target type to obtain a comparison result, wherein the resource occupancy value of the target type is: any one of the system resource occupancy values ​​of the multiple different types or the machine resource occupancy values ​​of the multiple different types;

[0152] If it is determined according to the comparison result that the system resource occupancy value of the target type has reached the bottleneck threshold, the current configuration parameters are adjusted to obtain adjusted configuration parameters.

[0153] In one embodiment, the processor 701 is configured to call the program instructions to execute:

[0154] Sorting the plurality of different types of system resource occupancy values ​​and the plurality of different types of machine resource occupancy values, wherein the order is determined according to priorities corresponding to different types;

[0155] The resource occupancy value of the target type is determined according to the sorting result.

[0156] In one embodiment, the processor 701 is configured to call the program instructions to execute:

[0157] Determining whether a management operation on a business component in the business system for providing the business service is detected;

[0158] If so, triggering the step of obtaining the system resource occupancy information of the business system in the process of providing business services through the device monitoring system;

[0159] The management operation for the service component includes: one or both of an adding operation for the service component and a reducing operation for the service component.

[0160] In one embodiment, the processor 701 is configured to call the program instructions to execute:

[0161] Determining whether a management operation on the business system is detected;

[0162] If so, triggering the step of obtaining the system resource occupancy information of the business system in the process of providing business services through the device monitoring system;

[0163] The management operation for the business system includes one or more of an expansion operation for the business system, a reduction operation for the business system, and an update operation for the business system.

[0164] In one embodiment, the processor 701 is configured to call the program instructions to execute:

[0165] generating an initial restriction parameter according to the system resource occupancy information and the machine resource occupancy information;

[0166] Displaying the generated initial restriction parameters on the parameter management interface;

[0167] Determining whether an adjustment operation for the service restriction parameter is detected from the parameter management interface;

[0168] If yes, the adjusted initial restriction parameter is used as the service restriction parameter;

[0169] If not, the initial restriction parameter is used as the service restriction parameter.

[0170] See also Figure 8 , is a schematic block diagram of a target service device provided by an embodiment of the present invention. Figure 8 The target service device in the embodiment shown may include: one or more processors 801; one or more input devices 802, one or more output devices 803 and a memory 804. The processor 801, the input device 802, the output device 803 and the memory 804 are connected via a bus 805. The memory 804 is used to store a computer program, the computer program includes program instructions, and the processor 801 is used to execute the program instructions stored in the memory 804.

[0171] The memory 804 may include a volatile memory (volatile memory), such as a random-access memory (RAM); the memory 804 may also include a non-volatile memory (non-volatile memory), such as a flash memory, a solid-state drive (SSD), etc.; the memory 804 may also include a combination of the above types of memory.

[0172] The processor 801 may be a central processing unit (CPU). The processor 801 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), etc. The PLD may be a field-programmable gate array (FPGA), a generic array logic (GAL), etc. The processor 801 may also be a combination of the above structures.

[0173] In the embodiment of the present invention, the memory 804 is used to store a computer program, the computer program includes program instructions, and the processor 801 is used to execute the program instructions stored in the memory 804 to implement the above-mentioned Figure 4 The steps of the corresponding method of the target business device.

[0174] In one embodiment, the processor 801 is configured to call the program instructions to execute:

[0175] Acquire a service restriction parameter from a target memory, wherein the service restriction parameter is generated by a speed limit configuration device according to system resource occupancy information and machine resource occupancy information and stored in the target memory, wherein the system resource occupancy information is acquired by the speed limit configuration device through a device monitoring system, and the machine resource occupancy information is acquired by the speed limit configuration device through a proxy device;

[0176] The call request for the business service is processed according to the service restriction parameter.

[0177] In one embodiment, the business service includes: one or more of: information publishing service, relationship chain storage service, and information storage service;

[0178] The call request includes: one or more of an information release call request, a user attention call request, a user query call request, and a homepage query call request.

[0179] The embodiment of the present invention provides a computer program product or a computer program, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the above-mentioned Figure 2 or Figure 4The method embodiment shown in the figure. Wherein, the computer-readable storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0180] What is disclosed above is only a partial embodiment of the present invention, which certainly cannot be used to limit the scope of rights of the present invention. Ordinary technicians in this field can understand that all or part of the processes of implementing the above embodiments and making equivalent changes according to the claims of the present invention still fall within the scope of the invention.

Claims

1. A parameter adjustment method, characterized in that: The method is performed by a rate limit configuration device, and the method includes: The system resource occupancy information of the business system in the process of providing business services is obtained through the device monitoring system, and the system resource occupancy information includes the interface call success rate and the interface processing time consumption, and the interface is the service interface of the business device for providing the business service; the system resource occupancy information is updated by the device monitoring system according to the call success rate and response time consumption for this call request fed back by the business device after the call request initiated by the client is responded to; Obtaining machine resource occupancy information of each of the multiple business devices in the business system from the target memory through the proxy device, the machine resource occupancy information including the utilization rate of the central processing unit, memory utilization rate, disk utilization rate, network card utilization rate and operating system utilization rate of the business device; the machine resource occupancy information is stored in the target memory by the business device; The number of times that the business system reaches the system bottleneck in a historical time period is counted for each different type of resource occupation value in the system resource occupation information and the machine resource occupation information, and the resource occupation value of the target type that causes the business system to reach the system bottleneck the most times in a historical time period is compared with the bottleneck threshold configured for the target type, and when the resource occupation value of the target type reaches the bottleneck threshold configured for the target type, the current service restriction parameter is adjusted to obtain the adjusted service restriction parameter; The adjusted service restriction parameter is sent to the proxy device. After the proxy device stores the adjusted service restriction parameter in a target memory, the target business device reads the service restriction parameter from the target memory and processes the call request for the business service received in the business system according to the service restriction parameter. The processing of the call request for the business service received in the business system specifically includes: determining the current call volume of the business service after executing the call request for the business service, comparing the determined current call volume of the business service with the call volume threshold indicated by the service restriction parameter, and if the current call volume of the business service is greater than the call volume threshold, discarding the call request for the business service.

2. The method according to claim 1, characterized in that: The method further comprises: Sorting the resource occupancy values ​​of different types in the system resource occupancy information and the machine resource occupancy information, wherein the sorting is determined according to the priorities corresponding to the different types; The resource occupancy value of the target type is determined according to the sorting result.

3. The method according to claim 1, characterized in that Before obtaining the system resource occupancy information of the business system in the process of providing business services through the device monitoring system, the method further includes: Determining whether a management operation on a business component in the business system for providing the business service is detected; If so, triggering the step of obtaining the system resource occupancy information of the business system in the process of providing business services through the device monitoring system; The management operation for the service component includes: one or both of an adding operation for the service component and a reducing operation for the service component.

4. The method according to claim 1, characterized in that: Before obtaining the system resource occupancy information of the business system in the process of providing business services through the device monitoring system, the method further includes: Determining whether a management operation on the business system is detected; If so, triggering the step of obtaining the system resource occupancy information of the business system in the process of providing business services through the device monitoring system; The management operation for the business system includes one or more of an expansion operation for the business system, a reduction operation for the business system, and an update operation for the business system.

5. The method according to claim 1, characterized in that The method further comprises: generating an initial restriction parameter according to the system resource occupancy information and the machine resource occupancy information; Displaying the generated initial restriction parameters on the parameter management interface; Determining whether an adjustment operation for the service restriction parameter is detected from the parameter management interface; If yes, the adjusted initial restriction parameter is used as the current service restriction parameter; If not, the initial restriction parameter is used as the current service restriction parameter.

6. A parameter adjustment method, characterized in that: The method is performed by a service device, and the method includes: Acquire service restriction parameters from the target memory, the service restriction parameters are stored in the target memory by the speed limit configuration device according to the system resource occupancy information and the machine resource occupancy information, the system resource occupancy information is acquired by the speed limit configuration device through the device monitoring system, the system resource occupancy information includes the interface call success rate and the interface processing time, the interface is the service interface of the business device for providing business services; the system resource occupancy information is updated by the device monitoring system according to the call success rate and the response time for this call request fed back by the business device after the business device completes the response to the call request initiated by the client; the machine resource occupancy information is acquired by the speed limit configuration device from the target memory through the proxy device, the machine resource occupancy information includes the business device The utilization rate of the central processing unit, memory utilization rate, disk utilization rate, network card utilization rate and operating system utilization rate of the equipment; the machine resource occupancy information is stored by the business equipment in the target memory; the service restriction parameter is the number of times the business system reaches the system bottleneck in a historical time period by the speed limit configuration device counting the resource occupancy values ​​of different types in the system resource occupancy information and the machine resource occupancy information, and comparing the resource occupancy value of the target type that causes the business system to reach the system bottleneck the most times in a historical time period with the bottleneck threshold configured for the target type. When the resource occupancy value of the target type reaches the bottleneck threshold configured for the target type, the current service restriction parameter is adjusted to obtain the adjusted service restriction parameter; The call request for the business service is processed according to the service restriction parameter, and the processing of the call request for the business service specifically includes: determining the current call volume of the business service after executing the call request for the business service, comparing the determined current call volume of the business service with the call volume threshold indicated by the service restriction parameter, and if the current call volume of the business service is greater than the call volume threshold, discarding the call request for the business service.

7. The method according to claim 6, characterized in that The business services include: information publishing services, relationship chain storage services, and one or more of information storage services; The call request includes: one or more of an information release call request, a user attention call request, a user query call request, and a homepage query call request.

8. A parameter adjustment device, characterized in that: The device is applied to a speed limit configuration device, and the device comprises: An acquisition unit is used to acquire, through a device monitoring system, system resource occupancy information of a business system in a process of providing a business service, wherein the system resource occupancy information includes an interface call success rate and an interface processing time consumption, wherein the interface is a service interface of a business device for providing the business service; the system resource occupancy information is updated by the device monitoring system according to a call success rate and a response time consumption for this call request fed back by the business device after the business device completes responding to a call request initiated by a client; The acquisition unit is further used to acquire machine resource occupancy information of each business device in the multiple business devices in the business system from the target memory through the proxy device, wherein the machine resource occupancy information includes the utilization rate of the central processing unit, the memory utilization rate, the disk utilization rate, the network card utilization rate and the operating system utilization rate of the business device; the machine resource occupancy information is stored in the target memory by the business device; a generating unit, configured to count the number of times that the business system reaches a system bottleneck according to the resource occupation values ​​of different types in the system resource occupation information and the machine resource occupation information within a historical time period, compare the resource occupation value of the target type that causes the business system to reach the system bottleneck the most times within a historical time period with the bottleneck threshold configured for the target type, and adjust the current service restriction parameter when the resource occupation value of the target type reaches the bottleneck threshold configured for the target type to obtain the adjusted service restriction parameter; A storage unit is used to send the adjusted service restriction parameter to the proxy device. After the proxy device stores the adjusted service restriction parameter in the target memory, the target business device reads the service restriction parameter from the target memory and processes the call request for the business service received in the business system according to the service restriction parameter. The processing of the call request for the business service received in the business system specifically includes: determining the current call volume of the business service after executing the call request for the business service, comparing the determined current call volume of the business service with the call volume threshold indicated by the service restriction parameter, and if the current call volume of the business service is greater than the call volume threshold, discarding the call request for the business service.

9. The device according to claim 8, characterized in that The device also includes: A sorting unit, used to sort the resource occupancy values ​​of different types in the system resource occupancy information and the machine resource occupancy information, wherein the sorting is determined according to the priorities corresponding to the different types; A determination unit is used to determine the resource occupancy value of the target type according to the sorting result.

10. The device according to claim 8, characterized in that The device also includes: A judgment unit is specifically used to judge whether a management operation on a business component in the business system for providing the business service is detected; if so, trigger the execution of the step of obtaining system resource occupancy information of the business system in the process of providing business services through the device monitoring system; wherein, the management operation on the business component includes: one or both of an increase operation on the business component and a decrease operation on the business component.

11. The device according to claim 8, characterized in that The device also includes: A judgment unit is specifically used to judge whether a management operation for the business system is detected; if so, it triggers the execution of the step of obtaining system resource occupancy information of the business system in the process of providing business services through the equipment monitoring system; wherein, the management operation for the business system includes: one or more of an expansion operation for the business system, a reduction operation for the business system, and an update operation for the business system.

12. The device according to claim 8, characterized in that The generating unit is further used to generate initial restriction parameters according to the system resource occupancy information and the machine resource occupancy information; display the generated initial restriction parameters on a parameter management interface; determine whether an adjustment operation for the service restriction parameters is detected from the parameter management interface; if so, use the adjusted initial restriction parameters as the current service restriction parameters; if not, use the initial restriction parameters as the current service restriction parameters.

13. A parameter adjustment device, characterized in that: The device is applied to a business device, and the device includes: An acquisition unit is used to acquire service restriction parameters from a target memory, wherein the service restriction parameters are stored in the target memory by a speed limit configuration device according to system resource occupancy information and machine resource occupancy information, wherein the system resource occupancy information is acquired by the speed limit configuration device through a device monitoring system, wherein the system resource occupancy information includes an interface call success rate and an interface processing time consumption, wherein the interface is a service interface of a business device for providing business services; the system resource occupancy information is updated by the device monitoring system according to a call success rate and a response time consumption for this call request fed back by the business device after the business device completes a response to a call request initiated by a client; the machine resource occupancy information is acquired by the speed limit configuration device from the target memory through a proxy device; the machine resource occupancy information includes the The utilization rate of the central processing unit, memory utilization rate, disk utilization rate, network card utilization rate and operating system utilization rate of the business equipment; the machine resource occupancy information is stored by the business equipment in the target memory; the service restriction parameter is the number of times the business system reaches the system bottleneck in a historical time period by the speed limit configuration device counting the resource occupancy values ​​of different types in the system resource occupancy information and the machine resource occupancy information, and comparing the resource occupancy value of the target type that causes the business system to reach the system bottleneck the most times in a historical time period with the bottleneck threshold configured for the target type, and when the resource occupancy value of the target type reaches the bottleneck threshold configured for the target type, the current service restriction parameter is adjusted to obtain the adjusted service restriction parameter; A processing unit is used to process a call request for a business service according to the service restriction parameter, wherein the processing of the call request for the business service specifically includes: determining a current call volume for the business service after executing the call request for the business service, comparing the determined current call volume for the business service with a call volume threshold indicated by the service restriction parameter, and if the current call volume for the business service is greater than the call volume threshold, discarding the call request for the business service.

14. The device according to claim 13, characterized in that The business services include: information publishing service, relationship chain storage service, and one or more of the information storage service; the call request includes: information publishing call request, user attention call request, user query call request, and one or more of the homepage query call request.

15. A speed limit configuration device, characterized in that: The method comprises a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 5.

16. A target service device, characterized in that: The method comprises a processor, an input device, an output device and a memory, wherein the processor, the input device, the output device and the memory are interconnected, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to call the program instructions to execute the method as claimed in claim 6 or 7.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the processor is enabled to perform the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Flow control method and device, computer equipment and storage medium

    CN110996352A