CN114124757A - Parameter adjusting method, device, related equipment and storage medium - Google Patents

Parameter adjusting method, device, related equipment and storage medium Download PDF

Info

Publication number
CN114124757A
CN114124757A CN202010804391.8A CN202010804391A CN114124757A CN 114124757 A CN114124757 A CN 114124757A CN 202010804391 A CN202010804391 A CN 202010804391A CN 114124757 A CN114124757 A CN 114124757A
Authority
CN
China
Prior art keywords
service
resource occupation
parameter
business
occupation information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010804391.8A
Other languages
Chinese (zh)
Inventor
戴礼松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tenpay Payment Technology Co Ltd
Original Assignee
Tenpay Payment Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tenpay Payment Technology Co Ltd filed Critical Tenpay Payment Technology Co Ltd
Priority to CN202010804391.8A priority Critical patent/CN114124757A/en
Publication of CN114124757A publication Critical patent/CN114124757A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/20Traffic policing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a parameter adjusting method, a parameter adjusting device, related equipment and a storage medium, wherein the method comprises the following steps: acquiring system resource occupation information of a business system in the process of providing business service through an equipment monitoring system; acquiring machine resource occupation information of each service device in the service system through proxy equipment; generating a service restriction parameter according to the system resource occupation information and the machine resource occupation information; and storing the service limiting parameter into a target memory so that after the target business equipment reads the service limiting parameter from the target memory, processing a calling request about the business service received in the business system according to the service limiting parameter, realizing dynamic adjustment of the service limiting parameter of the business system and improving the safety and stability of the business system.

Description

Parameter adjusting method, device, related equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a parameter adjusting method, an apparatus, a related device, and a storage medium.
Background
With the continuous development of computer network technology, the relevance between the production and life of users and the network is gradually enhanced, so that the current client calls a service system in the network for responding to the user operation more frequently, and in order to protect the safety of the service system when being called and avoid the problems of calling error caused by the crash of the service system, the management user needs to design the service system in advance, configure various software and hardware resources included in the service system, and manually realize the protection of the performance of the service system and service equipment.
Currently, when a business system is designed, a pressure test method can be adopted to judge the performance of the business system, and a protection mechanism is designed for the business system according to a judgment result to ensure the stability and the safety of the business system, but in the actual use process, the condition of overload of a business call volume still exists to influence the stability and the safety of the system.
Disclosure of Invention
The embodiment of the invention provides a parameter adjusting method, a parameter adjusting device, related equipment and a storage medium, which can realize dynamic adjustment of service limiting parameters of a service system and can improve the safety and stability of the service system.
In one aspect, an embodiment of the present invention provides a parameter adjusting method, including:
acquiring system resource occupation information of a business system in the process of providing business service through an equipment monitoring system;
acquiring machine resource occupation information of each service device in the service system through proxy equipment;
generating a service restriction parameter according to the system resource occupation information and the machine resource occupation information;
and storing the service limitation parameter into a target memory, so that after the target business equipment reads the service limitation parameter from the target memory, the calling request of the business service received in the business system is processed according to the service limitation parameter.
In another aspect, an embodiment of the present invention provides a parameter adjusting method, including:
acquiring a service limiting parameter from a target memory, wherein the service limiting parameter is generated by speed-limiting configuration equipment according to system resource occupation information and machine resource occupation information and is stored in the target memory, the system resource occupation information is acquired by the speed-limiting configuration equipment through an equipment monitoring system, and the machine resource occupation information is acquired by the speed-limiting configuration equipment through agent equipment;
and processing the calling request of the business service according to the service limiting parameter.
In another aspect, an embodiment of the present invention provides a parameter adjusting apparatus, including:
the acquisition unit is used for acquiring system resource occupation information of the business system in the process of providing business service through the equipment monitoring system;
the acquiring unit is further configured to acquire machine resource occupation information of each service device in the service system through the proxy device;
the generating unit is used for generating service limiting parameters according to the system resource occupation information and the machine resource occupation information;
and the storage unit is used for storing the service limiting parameter into a target memory so that the target business equipment processes the calling request about the business service received in the business system according to the service limiting parameter after reading the service limiting parameter from the target memory.
In another aspect, an embodiment of the present invention provides a parameter adjusting apparatus, including:
the system comprises an acquisition unit, a target storage and a management unit, wherein the acquisition unit is used for acquiring service limiting parameters from the target storage, the service limiting parameters are generated by speed-limiting configuration equipment according to system resource occupation information and machine resource occupation information and stored in the target storage, the system resource occupation information is acquired by the speed-limiting configuration equipment through an equipment monitoring system, and the machine resource occupation information is acquired by the speed-limiting configuration equipment through proxy equipment;
and the processing unit is used for processing the calling request of the business service according to the service limiting parameter.
In another aspect, an embodiment of the present invention provides a speed limit configuration device, which includes a processor, an input device, an output device, and a memory, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program that supports a terminal to execute the foregoing method, the computer program includes program instructions, and the processor is configured to call the program instructions and perform the following steps:
acquiring system resource occupation information of a business system in the process of providing business service through an equipment monitoring system;
acquiring machine resource occupation information of each service device in the service system through proxy equipment;
generating a service restriction parameter according to the system resource occupation information and the machine resource occupation information;
and storing the service limitation parameter into a target memory, so that after the target business equipment reads the service limitation parameter from the target memory, the calling request of the business service received in the business system is processed according to the service limitation parameter.
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, where the processor, the input device, the output device, and the memory are connected to each other, where the memory is used to store a computer program that supports a terminal to execute the foregoing method, where the computer program includes program instructions, and the processor is configured to call the program instructions, and perform the following steps:
acquiring a service limiting parameter from a target memory, wherein the service limiting parameter is generated by speed-limiting configuration equipment according to system resource occupation information and machine resource occupation information and is stored in the target memory, the system resource occupation information is acquired by the speed-limiting configuration equipment through an equipment monitoring system, and the machine resource occupation information is acquired by the speed-limiting configuration equipment through agent equipment;
and processing the calling request of the business service according to the service limiting parameter.
In still another aspect, an embodiment of the present invention provides a computer-readable storage medium, in which program instructions are stored, and when the program instructions are executed by a processor, the computer-readable storage medium is configured to perform the parameter adjustment method according to the first aspect and the parameter adjustment method according to the second aspect.
In the embodiment of the invention, after the speed limit configuration equipment acquires system resource occupation information through the equipment monitoring system and acquires machine resource occupation information through the proxy equipment, the speed limit configuration equipment can generate the service limiting parameter according to the system resource occupation information and the machine resource occupation information, so that the service limiting parameter can be stored in the target memory, the target business equipment can read the service limiting parameter from the target memory and process the calling request of the business service based on the service limiting parameter, the speed limit configuration equipment realizes the real-time updating of the service limiting parameter, the flexibility of adjusting the service limiting parameter can be improved, the accuracy of the service limiting parameter acquired by the business equipment is ensured, and the accurate processing of the calling request can be realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of a parameter adjustment system according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a parameter adjusting method according to an embodiment of the present invention;
FIG. 3a is a schematic diagram of a user operation provided by an embodiment of the present invention;
fig. 3b is a schematic diagram of a logic operation responding to a call request corresponding to a user operation according to an embodiment of the present invention;
FIG. 3c is a diagram of a parameter adjustment system according to an embodiment of the present invention;
FIG. 4 is a schematic flow chart of a parameter adjusting method according to an embodiment of the present invention;
FIG. 5 is a schematic block diagram of a parameter adjustment apparatus provided in an embodiment of the present invention;
FIG. 6 is a schematic block diagram of a parameter adjustment apparatus provided in an embodiment of the present invention;
fig. 7 is a schematic block diagram of a speed limit configuration device according to an embodiment of the present invention;
fig. 8 is a schematic block diagram of a target service device according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a parameter adjusting method, which enables speed limit configuration equipment to realize dynamic adjustment of service limiting parameters when the service equipment processes a call request based on system resource occupation information corresponding to a service system and machine resource occupation information of the service equipment in the service system, thereby improving the adjusting efficiency aiming at the service limiting parameters. In one embodiment, when the speed limit configuration device dynamically adjusts the service limit parameter, the speed limit configuration device may first obtain system resource occupation information of a service system in a process of providing service services through a monitoring system, where the service system includes a plurality of service devices, each service device may provide a plurality of different service services, and the service services are called by a client through a service interface of the service device to implement a response to a calling request initiated by the client; in addition, the speed limit configuration device may obtain the machine resource occupation information of the service device providing the service while obtaining the system resource occupation information of the service system, where the system resource occupation information includes system resource occupation values of multiple different types, and the system health degree (or global health degree) of the service server may be used to describe the system resource occupation values of different types, such as an interface call success rate, or interface processing time consumption, and it may be understood that the interface call success rate or the interface processing time consumption is the system resource occupation value. In an embodiment, the machine resource occupation information also includes machine resource occupation values of multiple different types, and similarly, the machine health degree may be used to describe the machine resource occupation values of different types, such as a utilization rate of a central processing unit, a memory utilization rate, a disk utilization rate, a network card utilization rate, an operating system utilization rate, and the like, where the speed limit configuration device may be a server device or a terminal device, which is not limited in the embodiment of the present invention.
In one embodiment, the parameter adjusting system shown in fig. 1 includes a service device 10, an agent device 11, a device monitoring system 12, and a speed limit configuration device 13 in a service system, where the service device 10 is any one of a plurality of service devices included in the service system, the service device 10 and the agent device 11 are associated through a target storage, 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 acquires the system resource occupation information and the machine resource occupation information, the system resource occupation information and the machine resource occupation information are respectively acquired from the agent device 11 and the device monitoring system 12, in a specific implementation, the service device 10 may store the machine resource occupation information in the target memory, and correspondingly, the agent device 11 may read the machine resource occupation information from the target memory and may further transmit the machine resource occupation information to the speed limit configuration device 13. In addition, the service device 10 may also report system resource occupation information of a corresponding service system to the device monitoring system 12, the speed-limiting configuration device 13 may obtain the system resource occupation information from the device monitoring system 12, after obtaining the system resource occupation information and the machine resource occupation information, the speed-limiting configuration device 13 may generate a service restriction parameter according to the system resource occupation information and the machine resource occupation information, and further, the speed-limiting configuration device 13 may send the generated service restriction parameter to a service device (e.g., the service device 10 shown in fig. 1) in the service system.
In one embodiment, the service device and the proxy device are associated based on the target memory, so that after the proxy device stores the service restriction parameter in the target memory, the service device can read the service restriction parameter from the target memory, thereby processing a service call request initiated by a client based on the service restriction parameter. In an embodiment, the service device may read the service restriction parameter from the target storage based on a device requirement of the service device, for example, the service device may read the service restriction parameter from the target storage according to a preset time interval, or the service device may further perform, when receiving a call request from the client, acquisition of the service restriction parameter from the target storage, which may improve flexibility of the service device in acquiring the service restriction parameter.
In an embodiment, after obtaining the service restriction parameter, when processing the call request of the service based on the service restriction parameter, the service device may compare the current call volume of the client for the service with the call threshold indicated by the service restriction parameter, and if the current call volume is greater than the call threshold indicated by the service restriction parameter, the service device may randomly discard the received call request after receiving the call request for the service subsequently, or may directly prohibit the client from calling the service subsequently. In one embodiment, the business services may include one or more of an information publishing service, a relationship chain storage service, and an information storage service, the invocation request for the business services including one or more of an information publishing invocation request, a user attention invocation request, a user query invocation request, and a home page query invocation request, it being understood that the information publishing invocation request is detected by the business apparatus upon detection of the publication of the work, the user attention invocation request is detected by the business apparatus upon detection of the user attention operation, the user query invocation request is detected by the business apparatus upon detection of the user query operation, and the home page query invocation request is detected by the business apparatus upon detection of the home page query operation, wherein the information publishing invocation request invokes the information publishing service, the user attention invocation request, and the user inquiry and call request calls the relation chain storage service, and the homepage inquiry and call request calls the information storage service.
In one embodiment, the business service is further associated with one or more databases, such as a relational chain MYSQL (a relational data management system) database for storing a list of interests for each user and the interest relationships among users; in addition, the database can also be a work MySQL database, and the work MySQL database is used for storing all works issued by each user, namely the total data corresponding to each user; in addition, the database may also be a personal work list REDIS-ZSET, where the personal work list REDIS-ZSET performs data segmentation on user data (including works published by users, publication time, and the like) based on user identification dimensions, and stores key information that users may publish works, where the key information may be, for example, a list of work publication identifiers (such as identity identifiers of works, or keyword information of works, and the like), work publication time, and publication status.
Referring to fig. 2, a schematic flow chart of a parameter adjusting method according to an embodiment of the present invention is shown, where the method can be applied to the above speed limit configuration device, and as shown in fig. 2, the method can include:
s201, system resource occupation information of the business system in the process of providing business service is obtained through the equipment monitoring system.
S202, machine resource occupation information of each service device in the service system is obtained through the proxy device.
In step S201 and step S202, the speed limit configuration device may acquire the system resource occupation information and the machine resource occupation information when detecting a management operation for the service system, and in one embodiment, when the speed limit configuration device acquires the system resource occupation information and the machine resource occupation information, the speed limit configuration device may acquire the system resource occupation information first and then acquire the machine resource occupation information, or the speed limit configuration device may acquire the machine resource occupation information first and then acquire the system resource occupation information, or the speed limit configuration device may also acquire the machine resource occupation information and the system resource occupation information at the same time. In one embodiment, the system resource occupation information is used to indicate a global health degree (or a system health degree) of the business system, where the system health degree may be determined according to one or both of an interface call success rate and an interface call time consumption, where the interface refers to a service interface of a business device in the business system for providing business services, and it can be understood that the size of the global health degree (or the system resource occupation information) may determine a speed at which the business system responds to a current call request, and if the global health degree is better, it indicates that the system resource occupation in the business system is less, and correspondingly, it is determined that the speed at which the business system responds to the current call request is faster; if the global health is worse, it indicates that the current invocation request occupies most of the system resources of the business system, then the business system may be determined to respond to the current invocation request more slowly.
In one embodiment, the machine resource occupation information is used to indicate a machine health degree of a single service device in the service system, and the machine health degree is used to measure a usage condition of a service component in the service device, and similarly, if the machine health degree is worse, it indicates that a speed of responding to a current call request is slower, and if the machine health degree is better, it indicates that a speed of responding to the current call request is faster, where the current call request is responded, that is, a service device for providing service services in the service system responds to the current call request, where the service component of the service device includes one or more of a Central Processing Unit (CPU), a memory, a disk, a network card, and an operating system, and correspondingly, the machine health degree is based on a usage rate of the Central Processing Unit, the utilization rate of the memory, the utilization rate of the disk, the utilization rate of the network card and the utilization rate of the operating system are determined.
In one embodiment, after responding to a call request initiated by a client, a service device in a service system sends response information for the call request to a device monitoring system for monitoring the operation condition of the service system, wherein the response information comprises response time consumption for the call request and a call success rate; or, after the service device responds to the call request, the service device determines the system resource occupation information of the corresponding system device directly based on the call request, and sends the determined system resource occupation information to the device monitoring system, so that the speed limit configuration device can obtain the system resource occupation information from the device monitoring system. In one embodiment, the Call request received by the service device is, for example, a Remote Procedure Call (RPC) based Call request. In an embodiment, the service device may further store the machine resource occupation information of the device in a target storage, so that the proxy device connected to the target storage may obtain the machine resource occupation information from the target storage, and further, the speed limit configuration device may obtain the machine resource occupation information from the proxy device, where the service device is a service device that provides the service among the plurality of service devices of the service system.
After the speed limit configuration device obtains the system resource occupation information of the service system and the machine resource occupation information of the service device, a service restriction parameter can be generated based on the system resource occupation information and the machine resource occupation information, that is, step S203 is executed, so that the service device can perform restriction processing on the call request initiated by the client based on the service restriction parameter.
S203, generating a service limiting parameter according to the system resource occupation information and the machine resource occupation information.
In an embodiment, when the speed limit configuration device generates the service restriction parameter according to the system resource occupation information and the machine resource occupation information, it may first determine whether the service system reaches a system bottleneck based on the system resource occupation information and the machine resource occupation information, and it can be understood that, when the service system reaches the system bottleneck, if the service system continues to respond to the call request of the client, the problem of service system crash may be caused, so when the service system reaches the system bottleneck, the service system needs to perform restriction processing on the condition that the service system responds to the call request, so as to protect the service system. In an embodiment, the speed limit configuration device may determine whether the service system reaches a bottleneck based on the resource occupation information or the machine resource occupation information, and specifically, determine whether the service system reaches the system bottleneck may be as shown in table 1:
TABLE 1
Figure BDA0002627636190000081
In one embodiment, as shown in table 1, it can be determined whether the service system reaches the system bottleneck through whether the machine resource occupation information reaches the corresponding bottleneck and whether the system resource occupation information reaches the corresponding bottleneck, specifically, when any occupation information of the system resource occupation information and the machine resource occupation information reaches the corresponding bottleneck, the speed limit configuration device considers that the service system reaches the system bottleneck, in a specific implementation, the speed limit configuration device can extract the resource occupation value of the target type from the system resource occupation values of the plurality of different types included in the system resource occupation information and the machine resource occupation values of the plurality of different types included in the machine resource occupation information, so as to compare the resource occupation value of the target type with the bottleneck threshold configured for the target type, and when the resource occupation value of the target type is greater than or equal to the bottleneck threshold, it may be determined that the business system reaches a system bottleneck. The machine resource occupation information can be determined according to one or more of the utilization rate of a central processing unit, the utilization rate of a memory, the utilization rate of a disk, the utilization rate of a network card and the utilization rate of an operating system, the system resource occupation information can be determined according to the interface calling success rate or the interface processing time consumption, so that the understanding can be realized, one or more resource occupation values can be selected from the utilization rate of the central processing unit, the memory utilization rate, the utilization rate of the disk, the utilization rate of the network card, the utilization rate of the operating system and the interface calling success rate or the interface processing time consumption as target types of the speed-limiting configuration equipment, and therefore the resource occupation value of the target type can be compared with a bottleneck threshold value configured for the target type, and whether a service system reaches the bottleneck of the system or not can be determined. In one embodiment, the determination of whether the traffic system has reached the bottleneck based on the resource occupancy value of the target type may be one or more of:
the value range of the utilization rate of the central processing unit is 0% -100%, and if the value of the utilization rate of the central processing unit is 95% (assuming that the corresponding bottleneck threshold value is 85%), the current central processing unit is very unhealthy; or, the number of processes in the running state of the average load may also be used to indicate whether the central processing unit reaches the corresponding bottleneck, where the value range of the number of processes is 0 to N (N is an integer greater than the number of machine cores of the device), if the number of processes is 3000 (assuming that the corresponding bottleneck threshold is 1500), since 1 core can only process 1 process at each time, and since 3000 is greater than the number of machine cores of the device, when the number of processes is 3000, it indicates that a process in the running state is waiting to be executed, it indicates that the central processing unit is very unhealthy.
Secondly, the value range of the memory utilization rate is 0% -100%, wherein if the value of the memory utilization rate is 88% (assuming that the corresponding bottleneck threshold value is 85%), the current memory is very unhealthy.
The value range of the utilization rate of the disk is 0% -100%, wherein if the value range of the utilization rate of the disk is 90% (assuming that the corresponding bottleneck threshold value is 88%), the current disk is very unhealthy; or, the disk may further determine whether the disk reaches the corresponding bottleneck by using the read-write rate of the disk, and similarly, the value range of the read-write rate of the disk is also 0% to 100%, where if the value of the read-write rate of the disk is 78% (assuming that the corresponding bottleneck threshold is 70%), it indicates that the current disk is very unhealthy.
And fourthly, the value range of the utilization rate of the network card is 0-100%, wherein if the value range of the utilization rate of the network card is 80% (assuming that the corresponding bottleneck threshold value is 75%), the current network card is very unhealthy.
Determining the utilization rate of the operating system according to the number of opened files of the operating system, wherein the value range of the utilization rate of the operating system is 0-65535; if the operating system utilization rate is 50000 (assuming that the corresponding bottleneck threshold is 45000); indicating that the current operating system is very unhealthy; or, the usage rate of the operating system may also be determined by the number of network connections, and the value of the number of network connections may also be 0 to 65535, if the value of the number of network connections is 30000 (assuming that the corresponding bottleneck threshold is 28000); indicating that the current operating system is very unhealthy.
Sixthly, the value range of the interface calling success rate is 0-100%, wherein the interface calling success rate is determined to be unhealthy when the value of the interface calling success rate is less than the corresponding bottleneck threshold value, and if the value of the interface calling success rate is 8% (assuming that the corresponding bottleneck threshold value is 60%), the current service interface is very unhealthy; correspondingly, the interface call failure rate is also in a value range of 0% -100%, wherein if the value of the interface failure rate is 90% (assuming that the corresponding bottleneck threshold value is 60%), it indicates that the current service interface is very unhealthy.
And the value range of the consumed interface processing time is 0.001-65.535 seconds, and if the value of the consumed interface processing time is 30 seconds (assuming that the corresponding bottleneck threshold value is 25), the current service interface is very unhealthy.
In an embodiment, the bottleneck threshold configured for the target type may be set by itself based on system requirements, for example, when the resource occupancy value of the target type is the utilization rate of the central processing unit, the corresponding bottleneck threshold may be 80% or 85%, and when the resource occupancy value of the target type is the memory utilization rate, the corresponding bottleneck threshold may be 90, and the like, it may be understood that the corresponding bottleneck thresholds configured for the different types of resource occupancy values may be the same or different, and when the speed limit configuration device detects that any resource occupancy value is greater than the corresponding bottleneck threshold, it determines that the service system reaches the system bottleneck, and may generate the corresponding service restriction parameter 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 parameter based on the system resource occupation information and the machine resource occupation information, the restriction parameter corresponding to the resource occupation information that enables the service system to reach the system bottleneck can be used as the service restriction parameter. In one embodiment, if the speed limit configuration device determines that the service system reaches the system bottleneck based on the utilization rate of the central processing unit, the limiting parameter corresponding to the utilization rate of the central processing unit may be used as the service limiting parameter, specifically, if the speed limit configuration device determines that the service system reaches the system bottleneck when the utilization rate of the central processing unit is 80%, and if the limiting parameter corresponding to the central processing unit is 80% is 3000 call requests per second, the service limiting parameter may be 3000 call requests per second.
S204, storing the service limiting parameter into a target memory, so that after the target business equipment reads the service limiting parameter from the target memory, the calling request of the business service received in the business system is processed according to the service limiting parameter.
In an embodiment, after determining the service restriction parameter, in order to enable a target service device (the target service device is any service device in the service system) to obtain the service restriction parameter and process a call request for a service based on the service restriction parameter, in a specific implementation, the speed restriction 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, and after storing the service restriction parameter in the target memory, the target service device may read the service restriction parameter from the target memory. After the target service server reads the service restriction parameter, a call request of the service can be processed based on the service restriction parameter, in a specific implementation, after the target service device receives the call request of the client to the service, the call amount of the service currently called after the call request is executed can be determined, further, the target service device can compare the determined call amount of the service currently called with a call amount threshold value indicated by the service restriction parameter, if the current call amount is greater than the call amount threshold value, the target service device can execute frequency-limiting processing based on the call request, for example, a specific error code is returned or the call request is discarded. In an embodiment, after the target service device completes processing of the call request, the success rate for processing the call request, the interface call time consumption information and other information may be reported to the device monitoring system, so that the device monitoring system may update the system resource occupation information based on the success rate for the call request, the interface call time consumption information and other information to obtain new system resource occupation information, and further, the speed limit configuration device may obtain the new system resource occupation information from the device monitoring system to implement a cyclic update of the service restriction parameter.
In the embodiment of the invention, after the speed limit configuration equipment acquires system resource occupation information through the equipment monitoring system and acquires machine resource occupation information through the proxy equipment, the speed limit configuration equipment can generate the service limiting parameter according to the system resource occupation information and the machine resource occupation information, so that the service limiting parameter can be stored in the target memory, the target business equipment can read the service limiting parameter from the target memory and process the calling request of the business service based on the service limiting parameter, the speed limit configuration equipment realizes the real-time updating of the service limiting parameter, the flexibility of adjusting the service limiting parameter can be improved, the accuracy of the service limiting parameter acquired by the business equipment is ensured, and the accurate processing of the calling request can be realized.
In an embodiment, the service may be, for example, a service supporting an information distribution application running in the client, and after the client detects execution of a user operation in the information distribution application, the client calls a corresponding service in the service device to implement correspondence to the user operation. In one embodiment, the operation that the user can perform in the information publishing application may be as shown in fig. 3a, and the user performing the user operation in the information publishing application may be an author user or a browsing user, where the author user refers to a user uploading information in the information publishing application, and the browsing user refers to a non-author user, that is, a user not uploading information in the information publishing application. As shown in fig. 3a, the user operations that the author user can perform in the information publishing application include:
management operations for posts, articles, or feeds, such as a posting operation or a deleting operation;
management operations on posts, articles or feeds, such as browsing operations, praise operations, comment operations and the like;
and thirdly, paying attention to other users, such as paying attention, canceling attention, checking attention (fan) list, checking feeds (an information unit set consisting of a plurality of information units) and the like.
In one embodiment, the user operations performed by the browsing user in the information distribution application include the second operation and the third operation described above. In one embodiment, the logic for the service system to perform the service operation can be as shown in fig. 3b, and the service system can provide service services including: correspondingly, when the business system provides corresponding business services, the business system needs to call one or more related databases, wherein the database needing to be called comprises a database stored in a relation chain, a database stored in a work, a database stored in a personal homepage and the like, wherein the database stored in the relation chain is used for storing the relation (namely attention) among users in the information distribution application, the database stored in the work is used for storing each work in the information distribution application, and the database stored in the personal homepage is used for storing a personal work list. In one embodiment, when a client receives a user operation and sends a call request for a business service, generated based on the user operation, to a service system to implement a response to the user operation, based on the business operation, a business process executed when the business system responds to the corresponding call request includes:
firstly, aiming at a post executed by an author user or a release operation of a feed, namely, a request information release service, storing the feed in a MySQL database of works, and storing key information of the feed in a personal work list REDIS-ZSE;
executing the concerned operation of the user-request relation chain storage service, and storing the concerned relation into a relation chain MySQL database;
checking operation of the concern list and checking operation of concern relations (concerned users, concerned users and the like) -request relation chain storage service, inquiring a relation chain MYSQL database, and then calculating and returning;
fourthly, issuing operation to the work information, requesting a relation chain storage service, inquiring a relation chain MYSQL database and a personal work list REDIS-ZSE work MySQL database, and then calculating and returning.
It can be understood that, when the service system responds to the call request, in order to implement protection of the service system, the speed limit configuration device may adjust a service restriction parameter of the service device in the service system, so that the service device may respond to the call request based on the restriction of the service restriction parameter, thereby implementing protection of the service system, as shown in fig. 3c, the system resource occupation information in fig. 3c is used to indicate the health degree of the system/global, the interface call success rate, the interface call time consumption, and the like are considered, the machine resource occupation information is used to indicate the health degree of a single service device, and the performances of the CPU, the memory, the hard disk, the network card, and the like are considered. In one embodiment, based on the machine resource occupation information and the global resource occupation information, a maximum allowable value of a corresponding interface calling amount in the business equipment can be determined, the maximum allowable value is a calling threshold value corresponding to the service limiting parameter, the management end is controlled by a manager and is used for managing the service limiting parameter, the service limiting parameter determined by the speed limiting configuration equipment can be checked and modified, and the modified service limiting parameter is issued to the speed limiting configuration equipment; the speed limit configuration equipment is used for receiving the calling amount of the business equipment and the machine resource occupation information reported by the agent equipment, acquiring the system resource occupation information of the business equipment from the equipment monitoring system, determining the service limiting parameter corresponding to the business equipment based on the machine resource occupation information and the system resource occupation information, and sending the service limiting parameter to the agent equipment.
In one embodiment, the proxy device is configured to obtain a service restriction parameter of the service device from the speed limit configuration device, store the service restriction parameter in the shared memory, obtain a call volume of the service device and machine resource occupation information from the shared memory, and send the call volume and machine resource occupation information fee to the speed limit configuration device; the service device comprises a service software system for responding to one or more invocation requests in the client, by reading the service restriction parameter in the shared memory, each time the client calls the service device, the corresponding call volume is increased, and the call volume obtained after the increase is stored in the shared memory, further, if the service equipment compares the call volume with the call threshold value indicated by the server limiting parameter, the call volume is determined to be larger than the call threshold value, the service device can execute frequency-limited processing to protect the service system, such as returning a specific error code or losing the call request of the client, and sending the system resource occupation information such as the calling success rate, the calling time consumption and the like after responding to the calling request to the equipment monitoring system. It should be noted that the agent device and the service device may be two different devices, and the two different devices always maintain an association relationship through a shared memory, or the agent device and the service device may also be different modules in the same device, and the shared memory is a memory in the same device.
In an embodiment, please refer to the schematic flow chart of a parameter adjusting method shown in fig. 4, which is used for describing in detail an adjusting process of a service restriction device and a process of a target service device processing a service invocation request based on a service restriction parameter, as shown in fig. 4, the method may include:
s401, the speed limit configuration equipment obtains system resource occupation information of the business system in the process of providing business service through the equipment monitoring system.
S402, the speed limit configuration equipment obtains the machine resource occupation information of each service equipment in the service system through the proxy equipment.
In steps S401 and S402, before acquiring system resource occupation information of a business system in a process of providing business services by a business system through an equipment monitoring system, speed limit configuration equipment may first determine whether a management operation for a business component for providing the business services in the business system is detected; if the speed limit configuration device determines that the management operation aiming at the service component is detected, the step of acquiring the system resource occupation information of the service system in the process of providing the service by the service system through the device monitoring system is triggered and executed, wherein the management operation aiming at the service component comprises one or two of an increasing operation aiming at the service component and a reducing operation aiming at the service component, so that the adjustment of the speed limit configuration device on the service limiting parameter can better adapt to the increase or reduction of the service component, and the flexibility of the adjustment on the service limiting parameter can be effectively improved.
In one embodiment, in order to better adapt to capacity expansion and capacity reduction of a service system and a condition of system update when a service restriction parameter is adjusted, the speed limit configuration device may further determine whether a management operation for the service system is detected before acquiring system resource occupation information of the service system in a process of providing a service by the service system through a device monitoring system; and when the determination is yes, triggering and executing a step of acquiring system resource occupation information of the business system in the process of providing the business service by the equipment monitoring system, wherein the management operation aiming at the business system comprises one or more of capacity expansion operation aiming at the business system, capacity reduction operation aiming at the business system and updating operation aiming at the business system, and the accuracy of determining the service limiting parameters of the speed limiting configuration equipment under the condition of capacity expansion or capacity reduction of the business system is improved on the basis of detection of the management operation of the business system by the speed limiting configuration equipment.
In an embodiment, after acquiring the system resource occupation information of the service system and the machine resource occupation information of the corresponding service device from the device monitoring system, the speed limit configuration device may determine the service restriction parameter based on the system resource occupation information and the machine resource occupation information, that is, execute step S403.
And S403, the speed limit configuration equipment generates a service limit parameter according to the system resource occupation information and the machine resource occupation information.
In one implementation, when the speed limit configuration device generates the service restriction parameter according to the system resource occupation information and the machine resource occupation information, it may determine a current configuration parameter of the service system, where the configuration parameter is obtained according to a target call volume corresponding to the service system, where a manager may set the current configuration parameter through an interface displayed at a management end and send the set current configuration parameter to the speed limit configuration device, where it is understood that the current configuration parameter is an initial call volume threshold value used for indicating a call volume to be displayed for the service device, and the initial call volume threshold value indicated by the current configuration parameter may be, for example, 1000/sec. The speed limit configuration device may generate a corresponding service restriction parameter based on the determined current configuration parameter, the system resource occupation value and the machine resource occupation value, that is, the speed limit configuration device may adjust the current configuration parameter based on the system resource occupation information and the machine resource occupation information to obtain an adjusted configuration parameter, and may further use the adjusted configuration parameter as the service restriction parameter of the service system, where the adjusted configuration parameter may be, for example, 3000 a second.
In one embodiment, the system resource occupation information includes system resource occupation values of a plurality of different types, the machine resource occupation information includes machine resource occupation values of a plurality of different types, and the speed-limiting configuration device may compare the resource occupation value of a target type with a bottleneck threshold configured for the target type according to a comparison rule when adjusting the current configuration parameter based on the system resource occupation information and the machine resource occupation information to obtain an adjusted configuration parameter, where the resource occupation value of the target resource type is: after the speed-limiting configuration device compares the resource occupation value of the target type with the bottleneck threshold, if the system resource occupation value of the target type reaches the bottleneck threshold according to the comparison result, the current configuration parameter can be adjusted to obtain the adjusted configuration parameter. The service limiting equipment can also sequence the system resource occupation values of various different types and the machine resource occupation values of various different types before comparison is carried out based on a comparison rule, so that the resource occupation value of the target type can be determined according to a sequencing result. The sorting is determined according to priorities corresponding to different types, the priorities may be preset, or the priorities may also be times for the service system to reach the system bottleneck under a historical (i.e., a historical time period) condition according to resource occupation values of the multiple different types, if the times for the service system to reach the resource occupation value of the system bottleneck under the historical condition are that the CPU usage rate is 8 times, the memory usage rate is 6 times, and the interface call success rate is 7 times, the resource occupation value of the target type determined by the speed limit configuration device is the CPU usage rate.
In one embodiment, the service restriction parameter may also be a system restriction parameter corresponding to a system, and a single machine, respectively, and a machine restriction parameter, when the speed limit configuration device adjusts the current configuration parameters according to the system resource occupation information and the machine resource occupation information, it is also possible that when it is detected that there is a system resource occupation value that reaches the corresponding bottleneck threshold value among the system resource occupation values included in the system resource occupation information, adjusting the system limiting parameter, or if detecting that the machine resource occupation value reaching the corresponding bottleneck threshold exists in the machine resource occupation values included in the machine resource occupation information, adjusting the machine limiting parameter, therefore, the service system or the service equipment can be limited based on the adjusted system resource limiting parameter or machine resource limiting parameter.
In one embodiment, when the speed-limiting configuration device generates the service restriction parameter according to the system resource occupation information and the machine resource occupation information, it may generate an initial restriction parameter according to the system resource occupation information and the machine resource occupation information, that is, update the current configuration parameter to obtain an initial restriction parameter, and further, the speed-limiting configuration device may display the generated initial restriction parameter on a parameter management interface and determine whether an adjustment operation for the service restriction parameter is detected from the parameter management interface; if so, taking the adjusted initial limiting parameter as a service limiting parameter; if not, the initial limiting parameter is used as the service limiting parameter, so that the generated service limiting parameter can better meet the current requirement. After the speed limit configuration device generates the service restriction parameter, the service device may respond to the received call request based on the service restriction parameter, that is, the service device may proceed to step S404.
S404, the speed limit configuration equipment stores the service limiting parameter into a target memory.
S405, the target service device obtains the service restriction parameter from the target storage.
S406, the target business device processes the calling request of the business service according to the service limiting parameter.
In steps S404 to S406, after the speed limit configuration device generates the service restriction parameter, the speed limit configuration device may send the service restriction parameter to the target business device through the target storage, so that the target business device reads the service restriction parameter from the target storage, and then processes the call request of the business service according to the service restriction parameter, where the target storage includes a shared memory, the proxy device and the target business device are associated through the target storage, when the speed limit configuration device stores the service restriction parameter in the target storage, the service restriction parameter is generated to the proxy device first, the proxy device stores the service restriction parameter in the target storage, and correspondingly, after the proxy device stores the service restriction parameter in the target storage, the target business device may be based on a connection relationship with the target storage, the service restriction parameter is retrieved from the target storage. After the target service device obtains the service restriction parameter, the call request of the service may be processed based on the service restriction parameter, where the service includes: one or more of an information publishing service, a relationship chain storage service, and an information storage service; the call request includes: issuing a call request for information, paying attention to the call request by a user, inquiring the call request by the user, and inquiring the call request by a homepage.
In an embodiment, when the target business device processes the call request of the business service based on the service restriction parameter, it may first determine a total amount of calls currently made to the business system by the client and a call threshold indicated by the service restriction parameter, further, the target business device may compare the determined total amount of calls with the call threshold, and if the total amount of calls is greater than the call threshold, perform frequency-limited processing on the subsequently received call request of the client, such as randomly discarding the call request, or denying access to the business system, returning a specific error code, and the like, so as to implement protection of the business system, where the call operation may be generated by the client based on detected killing operations per second, crawler operations, and the like.
In the embodiment of the invention, after acquiring the system resource occupation information and the machine resource occupation information, the speed limit configuration device can determine the service restriction parameter based on the system resource occupation information and the machine resource occupation information, so that the service restriction parameter can be stored in the target memory, the target business device can acquire the service restriction parameter from the target memory based on the connection relation between the target business device and the target memory, so as to process the calling request of the business service according to the service restriction parameter, so that the target business device can process the calling request initiated by the client based on the service restriction parameter acquired from the speed limit configuration device, so that the target business device can restrict the calling request when determining that the corresponding business system reaches the system bottleneck, thereby protecting the business system, the safety of the business system is improved.
Based on the description of the above embodiment of the parameter adjusting method, an embodiment of the present invention further provides a parameter adjusting apparatus, where the parameter adjusting apparatus may be a computer program (including a program code) running in the above speed limit configuration device. The parameter adjusting apparatus can be used to execute the parameter adjusting method executed by the speed limit configuration device in fig. 2 and fig. 4, please refer to fig. 5, and the parameter adjusting apparatus includes: an acquisition unit 501, a generation unit 502 and a storage unit 503.
An obtaining unit 501, configured to obtain, by an equipment monitoring system, system resource occupation information of a service system in a process of providing a service;
the obtaining unit 501 is further configured to obtain machine resource occupation information of each service device in the service system through a proxy device;
a generating unit 502, configured to generate a service restriction parameter according to the system resource occupation information and the machine resource occupation information;
a storage unit 503, configured to store the service restriction parameter in a target memory, so that after the target service device reads the service restriction parameter from the target memory, the service restriction parameter is processed according to a call request related to a service received in the service system.
In an embodiment, the generating unit 502 is specifically configured to:
determining the current configuration parameters of the service system, wherein the configuration parameters are obtained according to the target call volume corresponding to the service system;
adjusting the current configuration parameters based on the system resource occupation information and the machine resource occupation information to obtain adjusted configuration parameters;
and taking the adjusted configuration parameters as service limiting parameters of the business system.
In one embodiment, the target storage comprises a shared memory, and the proxy device and the service device are associated through the target storage; the storage unit 503 is specifically configured to:
sending the service restriction parameter to the proxy device to cause the proxy device to store the service restriction parameter in the target memory.
In one embodiment, the system resource occupancy information includes a plurality of different types of system resource occupancy values, and the machine resource occupancy information includes a plurality of different types of machine resource occupancy values; the generating unit 502 is specifically configured to:
according to a comparison rule, comparing the resource occupation value of the target type with a bottleneck threshold configured for the target type to obtain a comparison result, wherein the resource occupation value of the target resource type is as follows: any of the plurality of different types of system resource occupancy values or the plurality of different types of machine resource occupancy values;
and if the system resource occupation value of the target type reaches the bottleneck threshold value according to the comparison result, adjusting the current configuration parameter to obtain the adjusted configuration parameter.
In one embodiment, the apparatus further comprises: a sorting unit 504 and a determination unit 505.
A sorting unit 504, configured to sort the system resource occupation values of the multiple different types and the machine resource occupation values of the multiple different types, where the sorting is determined according to priorities corresponding to the different types;
a determining unit 505, configured to determine, according to the sorting result, a resource occupation value of the target type.
In one embodiment, the apparatus further comprises: a judging unit 506.
A determining unit 506, configured to determine whether a management operation for a business component in the business system for providing the business service is detected;
if yes, triggering and executing the step of acquiring system resource occupation information of the business system in the process of providing business service through the equipment monitoring system;
wherein the management operation for the service component comprises: one or both of an increase operation for the service component and a decrease operation for the service component.
In an embodiment, the determining unit 506 is further configured to determine whether a management operation for the business system is detected;
if yes, triggering and executing the step of acquiring system resource occupation information of the business system in the process of providing business service through the equipment monitoring system;
wherein the management operation for the business system comprises: one or more of a capacity expansion operation for the business system, a capacity reduction operation for the business system, and an update operation for the business system.
In one embodiment, the generating unit 502, in particular a hospital:
generating an initial limiting parameter according to the system resource occupation information and the machine resource occupation information;
displaying the generated initial limiting parameters on a parameter management interface;
determining whether an adjustment operation for the service restriction parameter is detected from the parameter management interface;
if so, taking the adjusted initial limiting parameter as a service limiting parameter;
and if not, taking the initial limiting parameter as the service limiting parameter.
In the embodiment of the present invention, after the obtaining unit 501 obtains the system resource occupation information through the device monitoring system, and the obtaining unit 501 obtains the machine resource occupation information through the proxy device, the generating unit 502 may generate the service restriction parameter according to the system resource occupation information and the machine resource occupation 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, so that the real-time update of the service restriction parameter is realized, the flexibility of adjusting the service restriction parameter is improved, the accuracy of the service restriction parameter obtained by the business device is ensured, and the accurate processing of the call request is realized.
Based on the description of the foregoing parameter adjustment method embodiment, an embodiment of the present invention further provides a parameter adjustment apparatus, where the parameter adjustment apparatus may be a computer program (including a program code) running in the target service device. The parameter adjusting apparatus can be used to execute the parameter adjusting method executed by the target service device in fig. 4, please refer to fig. 6, and the parameter adjusting apparatus includes: an acquisition unit 601 and a processing unit 602.
An obtaining unit 601, configured to obtain a service restriction parameter from a target memory, where the service restriction parameter is generated by a speed limit configuration device according to system resource occupation information and machine resource occupation information, and is stored in the target memory, the system resource occupation information is obtained by the speed limit configuration device through a device monitoring system, and the machine resource occupation information is obtained by the speed limit configuration device through a proxy device;
a processing unit 602, configured to process the call request of the service according to the service restriction parameter.
In one embodiment, the business services include: one or more of an information publishing service, a relationship chain storage service, and an information storage service;
the call request includes: the information issuing call request, the user attention call request, the user inquiry call request, and the homepage inquiry call request.
In the embodiment of the present invention, based on the connection relationship with the target memory, the obtaining unit 601 may obtain the service restriction parameter from the target memory, so that the processing unit 602 may process the call request of the service according to the service restriction parameter, so that the call request initiated by the client may be processed based on the service restriction parameter obtained in the speed limit configuration device, and thus the call request may be restricted when it is determined that the corresponding service system reaches the system bottleneck, thereby protecting the service system and improving the security of the service system.
Fig. 7 is a block diagram schematically illustrating a structure of a speed limit configuration device according to an embodiment of the present invention. The speed limit configuration device in the present embodiment shown in fig. 7 may include: one or more processors 701; one or more input devices 702, one or more output devices 703, and memory 704. The processor 701, the input device 702, the output device 703, and the memory 704 are connected by a bus 705. The memory 704 is used to store a computer program comprising program instructions, and the processor 701 is used to execute the program instructions stored by the memory 704.
The memory 704 may include volatile memory (volatile memory), such as random-access memory (RAM); the memory 704 may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a solid-state drive (SSD), etc.; the memory 704 may also comprise a combination of the above types of memory.
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), or the like. The PLD may be a field-programmable gate array (FPGA), a General Array Logic (GAL), or the like. The processor 701 may also be a combination of the above structures.
In an embodiment of the present invention, the memory 704 is configured to store a computer program, the computer program includes program instructions, and the processor 701 is configured to execute the program instructions stored in the memory 704, so as to implement the steps of the corresponding method performed by the speed limit configuration apparatus in fig. 2 and 4.
In one embodiment, the processor 701 is configured to call the program instructions to perform:
acquiring system resource occupation information of a business system in the process of providing business service through an equipment monitoring system;
acquiring machine resource occupation information of each service device in the service system through proxy equipment;
generating a service restriction parameter according to the system resource occupation information and the machine resource occupation information;
and storing the service limitation parameter into a target memory, so that after the target business equipment reads the service limitation parameter from the target memory, the calling request of the business service received in the business system is processed according to the service limitation parameter.
In one embodiment, the processor 701 is configured to call the program instructions to perform:
determining the current configuration parameters of the service system, wherein the configuration parameters are obtained according to the target call volume corresponding to the service system;
adjusting the current configuration parameters based on the system resource occupation information and the machine resource occupation information to obtain adjusted configuration parameters;
and taking the adjusted configuration parameters as service limiting parameters of the business system.
In one embodiment, the target storage comprises a shared memory, and the proxy device and the service device are associated through the target storage; the processor 701 is configured to call the program instructions for performing:
sending the service restriction parameter to the proxy device to cause the proxy device to store the service restriction parameter in the target memory.
In one embodiment, the system resource occupancy information includes a plurality of different types of system resource occupancy values, and the machine resource occupancy information includes a plurality of different types of machine resource occupancy values; the processor 701 is configured to call the program instructions for performing:
according to a comparison rule, comparing the resource occupation value of the target type with a bottleneck threshold configured for the target type to obtain a comparison result, wherein the resource occupation value of the target resource type is as follows: any of the plurality of different types of system resource occupancy values or the plurality of different types of machine resource occupancy values;
and if the system resource occupation value of the target type reaches the bottleneck threshold value according to the comparison result, adjusting the current configuration parameter to obtain the adjusted configuration parameter.
In one embodiment, the processor 701 is configured to call the program instructions to perform:
sorting the system resource occupation values of the plurality of different types and the machine resource occupation values of the plurality of different types, wherein the sorting is determined according to priorities corresponding to the different types;
and determining the resource occupation value of the target type according to the sequencing result.
In one embodiment, the processor 701 is configured to call the program instructions to perform:
judging whether a management operation aiming at a business component for providing the business service in the business system is detected;
if yes, triggering and executing the step of acquiring system resource occupation information of the business system in the process of providing business service through the equipment monitoring system;
wherein the management operation for the service component comprises: one or both of an increase operation for the service component and a decrease operation for the service component.
In one embodiment, the processor 701 is configured to call the program instructions to perform:
judging whether a management operation aiming at the business system is detected;
if yes, triggering and executing the step of acquiring system resource occupation information of the business system in the process of providing business service through the equipment monitoring system;
wherein the management operation for the business system comprises: one or more of a capacity expansion operation for the business system, a capacity reduction operation for the business system, and an update operation for the business system.
In one embodiment, the processor 701 is configured to call the program instructions to perform:
generating an initial limiting parameter according to the system resource occupation information and the machine resource occupation information;
displaying the generated initial limiting parameters on a parameter management interface;
determining whether an adjustment operation for the service restriction parameter is detected from the parameter management interface;
if so, taking the adjusted initial limiting parameter as a service limiting parameter;
and if not, taking the initial limiting parameter as the service limiting parameter.
Fig. 8 is a schematic block diagram of a structure of a target service device according to an embodiment of the present invention. The target service device in the embodiment shown in fig. 8 may include: one or more processors 801; one or more input devices 802, one or more output devices 803, and memory 804. The processor 801, the input device 802, the output device 803, and the memory 804 described above are connected by a bus 805. The memory 804 is used for storing a computer program comprising program instructions, and the processor 801 is used for executing the program instructions stored by the memory 804.
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 (flash memory), a solid-state drive (SSD), etc.; the memory 804 may also comprise a combination of the above-described types of memory.
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), or the like. The PLD may be a field-programmable gate array (FPGA), a General Array Logic (GAL), or the like. The processor 801 may also be a combination of the above structures.
In the embodiment of the present invention, the memory 804 is used for storing a computer program, the computer program includes program instructions, and the processor 801 is used for executing the program instructions stored in the memory 804, so as to implement the steps of the method corresponding to the target service device as described above in fig. 4.
In one embodiment, the processor 801 is configured to call the program instructions for performing:
acquiring a service limiting parameter from a target memory, wherein the service limiting parameter is generated by speed-limiting configuration equipment according to system resource occupation information and machine resource occupation information and is stored in the target memory, the system resource occupation information is acquired by the speed-limiting configuration equipment through an equipment monitoring system, and the machine resource occupation information is acquired by the speed-limiting configuration equipment through agent equipment;
and processing the calling request of the business service according to the service limiting parameter.
In one embodiment, the business services include: one or more of an information publishing service, a relationship chain storage service, and an information storage service;
the call request includes: the information issuing call request, the user attention call request, the user inquiry call request, and the homepage inquiry call request.
Embodiments of the present invention provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method embodiments as shown in fig. 2 or fig. 4. The computer-readable storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a particular embodiment, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (15)

1. A method of parameter adjustment, comprising:
acquiring system resource occupation information of a business system in the process of providing business service through an equipment monitoring system;
acquiring machine resource occupation information of each service device in the service system through proxy equipment;
generating a service restriction parameter according to the system resource occupation information and the machine resource occupation information;
and storing the service limitation parameter into a target memory, so that after the target business equipment reads the service limitation parameter from the target memory, the calling request of the business service received in the business system is processed according to the service limitation parameter.
2. The method of claim 1, wherein generating service restriction parameters according to the system resource occupancy information and the machine resource occupancy information comprises:
determining the current configuration parameters of the service system, wherein the configuration parameters are obtained according to the target call volume corresponding to the service system;
adjusting the current configuration parameters based on the system resource occupation information and the machine resource occupation information to obtain adjusted configuration parameters;
and taking the adjusted configuration parameters as service limiting parameters of the business system.
3. The method of claim 1, wherein the target storage comprises a shared memory, and wherein the agent device and the business device are associated via the target storage; the storing the service restriction parameter in a target memory comprises:
sending the service restriction parameter to the proxy device to cause the proxy device to store the service restriction parameter in the target memory.
4. The method of claim 2, wherein the system resource occupancy information comprises a plurality of different types of system resource occupancy values, and wherein the machine resource occupancy information comprises a plurality of different types of machine resource occupancy values; the adjusting the current configuration parameter based on the system resource occupation information and the machine resource occupation information to obtain an adjusted configuration parameter includes:
according to a comparison rule, comparing the resource occupation value of the target type with a bottleneck threshold configured for the target type to obtain a comparison result, wherein the resource occupation value of the target resource type is as follows: any of the plurality of different types of system resource occupancy values or the plurality of different types of machine resource occupancy values;
and if the system resource occupation value of the target type reaches the bottleneck threshold value according to the comparison result, adjusting the current configuration parameter to obtain the adjusted configuration parameter.
5. The method according to claim 4, wherein before comparing the system resource occupation value of the target type with the bottleneck threshold configured for the target type according to the comparison rule, the method further comprises:
sorting the system resource occupation values of the plurality of different types and the machine resource occupation values of the plurality of different types, wherein the sorting is determined according to priorities corresponding to the different types;
and determining the resource occupation value of the target type according to the sequencing result.
6. The method according to claim 1, wherein before the obtaining, by the device monitoring system, system resource occupation information of the business system in the process of providing the business service, the method further comprises:
judging whether a management operation aiming at a business component for providing the business service in the business system is detected;
if yes, triggering and executing the step of acquiring system resource occupation information of the business system in the process of providing business service through the equipment monitoring system;
wherein the management operation for the service component comprises: one or both of an increase operation for the service component and a decrease operation for the service component.
7. The method according to claim 1, wherein before the obtaining, by the device monitoring system, system resource occupation information of the business system in the process of providing the business service, the method further comprises:
judging whether a management operation aiming at the business system is detected;
if yes, triggering and executing the step of acquiring system resource occupation information of the business system in the process of providing business service through the equipment monitoring system;
wherein the management operation for the business system comprises: one or more of a capacity expansion operation for the business system, a capacity reduction operation for the business system, and an update operation for the business system.
8. The method of claim 1, wherein generating service restriction parameters according to the system resource occupancy information and the machine resource occupancy information comprises:
generating an initial limiting parameter according to the system resource occupation information and the machine resource occupation information;
displaying the generated initial limiting parameters on a parameter management interface;
determining whether an adjustment operation for the service restriction parameter is detected from the parameter management interface;
if so, taking the adjusted initial limiting parameter as a service limiting parameter;
and if not, taking the initial limiting parameter as the service limiting parameter.
9. A method of parameter adjustment, comprising:
acquiring a service limiting parameter from a target memory, wherein the service limiting parameter is generated by speed-limiting configuration equipment according to system resource occupation information and machine resource occupation information and is stored in the target memory, the system resource occupation information is acquired by the speed-limiting configuration equipment through an equipment monitoring system, and the machine resource occupation information is acquired by the speed-limiting configuration equipment through agent equipment;
and processing the calling request of the business service according to the service limiting parameter.
10. The method of claim 9, wherein the business service comprises: one or more of an information publishing service, a relationship chain storage service, and an information storage service;
the call request includes: the information issuing call request, the user attention call request, the user inquiry call request, and the homepage inquiry call request.
11. A parameter adjustment device, comprising:
the acquisition unit is used for acquiring system resource occupation information of the business system in the process of providing business service through the equipment monitoring system;
the acquiring unit is further configured to acquire machine resource occupation information of each service device in the service system through the proxy device;
the generating unit is used for generating service limiting parameters according to the system resource occupation information and the machine resource occupation information;
and the storage unit is used for storing the service limiting parameter into a target memory so that the target business equipment processes the calling request about the business service received in the business system according to the service limiting parameter after reading the service limiting parameter from the target memory.
12. A parameter adjustment device, comprising:
the system comprises an acquisition unit, a target storage and a management unit, wherein the acquisition unit is used for acquiring service limiting parameters from the target storage, the service limiting parameters are generated by speed-limiting configuration equipment according to system resource occupation information and machine resource occupation information and stored in the target storage, the system resource occupation information is acquired by the speed-limiting configuration equipment through an equipment monitoring system, and the machine resource occupation information is acquired by the speed-limiting configuration equipment through proxy equipment;
and the processing unit is used for processing the calling request of the business service according to the service limiting parameter.
13. A speed limit configuration device comprising a processor, an input device, an output device and a memory, the processor, the input device, the output device and the memory being interconnected, wherein the memory is configured to store a computer program comprising program instructions, and the processor is configured to invoke the program instructions to perform the method of any of claims 1 to 8.
14. A target service device comprising a processor, an input device, an output device and a memory, said processor, said input device, said output device and said memory being interconnected, wherein said memory is adapted to store a computer program comprising program instructions, said processor being configured to invoke said program instructions to perform the method of claims 9 and 10.
15. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program comprising program instructions which, when executed by a processor, cause the processor to carry out the method according to any one of claims 1 to 10.
CN202010804391.8A 2020-08-11 2020-08-11 Parameter adjusting method, device, related equipment and storage medium Pending CN114124757A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010804391.8A CN114124757A (en) 2020-08-11 2020-08-11 Parameter adjusting method, device, related equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010804391.8A CN114124757A (en) 2020-08-11 2020-08-11 Parameter adjusting method, device, related equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114124757A true CN114124757A (en) 2022-03-01

Family

ID=80373667

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010804391.8A Pending CN114124757A (en) 2020-08-11 2020-08-11 Parameter adjusting method, device, related equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114124757A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115525362A (en) * 2022-09-29 2022-12-27 建信金融科技有限责任公司 Parameter changing method and device based on operating system kernel parameter adjusting platform

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608788A (en) * 2017-08-29 2018-01-19 北京三快在线科技有限公司 A kind of control method, device and equipment
CN110996352A (en) * 2019-12-20 2020-04-10 众安在线财产保险股份有限公司 Flow control method and device, computer equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107608788A (en) * 2017-08-29 2018-01-19 北京三快在线科技有限公司 A kind of control method, device and equipment
CN110996352A (en) * 2019-12-20 2020-04-10 众安在线财产保险股份有限公司 Flow control method and device, computer equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115525362A (en) * 2022-09-29 2022-12-27 建信金融科技有限责任公司 Parameter changing method and device based on operating system kernel parameter adjusting platform
CN115525362B (en) * 2022-09-29 2023-09-15 建信金融科技有限责任公司 Parameter changing method and device based on kernel parameter adjusting platform of operating system

Similar Documents

Publication Publication Date Title
CN108683604B (en) Concurrent access control method, terminal device, and medium
CN108491450B (en) Data caching method, device, server and storage medium
CN111756644B (en) Hot spot current limiting method, system, equipment and storage medium
CN108897854B (en) Monitoring method and device for overtime task
CN109800204B (en) Data distribution method and related product
WO2022057231A1 (en) Method and apparatus for accessing server, device, and storage medium
CN109933610B (en) Data processing method, device, computer equipment and storage medium
CN111680210B (en) Information searching method, device, searching gateway and storage medium
CN114223177A (en) Access control method, device, server and computer readable medium
CN110457255B (en) Method, server and computer readable storage medium for archiving data
CN114124757A (en) Parameter adjusting method, device, related equipment and storage medium
US10579676B2 (en) Highly scalable fine grained rate limiting
CN112491650B (en) Method for dynamically analyzing call loop condition between services and related equipment
WO2018189736A1 (en) System and method for dynamic management of private data
CN115277588B (en) Fusing current limiting system based on middle platform system
CN111767481A (en) Access processing method, device, equipment and storage medium
CN113590180B (en) Detection strategy generation method and device
CN115955384A (en) Error code returning method, device and system
CN113783912A (en) Request distribution method, device and storage medium
CN112699116A (en) Data processing method and system
CN114650252B (en) Routing method and device based on enterprise service bus and computer equipment
CN105468603A (en) Data selection method and apparatus
CN110598472B (en) Equipment identification method, device, server and storage medium
CN117294578B (en) Communication method, system, computer equipment and storage medium
CN112637110B (en) Method for detecting password, password detection device and storage medium

Legal Events

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