[go: up one dir, main page]

CN108572898A - A kind of method, apparatus of control interface, equipment and storage medium - Google Patents

A kind of method, apparatus of control interface, equipment and storage medium Download PDF

Info

Publication number
CN108572898A
CN108572898A CN201710130763.1A CN201710130763A CN108572898A CN 108572898 A CN108572898 A CN 108572898A CN 201710130763 A CN201710130763 A CN 201710130763A CN 108572898 A CN108572898 A CN 108572898A
Authority
CN
China
Prior art keywords
interface
performance index
counter
index
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710130763.1A
Other languages
Chinese (zh)
Other versions
CN108572898B (en
Inventor
弋佐明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710130763.1A priority Critical patent/CN108572898B/en
Publication of CN108572898A publication Critical patent/CN108572898A/en
Application granted granted Critical
Publication of CN108572898B publication Critical patent/CN108572898B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/302Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/327Alarm or error message display

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a kind of method, apparatus of control interface, equipment and storage medium, is avoided that the not available problem of emergency case lower interface, and notify developer in time, not only improves the usage experience that interface availability also improves user.The method of the present invention includes the interface identifier for preserving each interface and the threshold value of the corresponding performance indicator of each interface identifier;The performance indicator data of interface to be monitored are obtained every the setting period, then judge whether the performance indicator data are more than the threshold value of the performance indicator corresponding to the interface identifier of the interface to be monitored, if so, the index counter corresponding to the performance indicator is added 1, and output warning message;Otherwise, by the index counter O reset corresponding to the performance indicator;Whether the value of judge index counter is more than or equal to the first setting value, if it is, current limliting interface is called to carry out current limliting, and output warning message to interface to be monitored;Otherwise, whether the value for repeating judge index counter is more than or equal to the first setting value.

Description

Method, device, equipment and storage medium for controlling interface
Technical Field
The present invention relates to the field of computer and software technologies thereof, and in particular, to a method, an apparatus, a device, and a storage medium for controlling an interface.
Background
The interface, namely the API (application programming interface) of the interaction between software systems, is an external communication method separated by internal operation, so that the interface can be modified internally without influencing the mode of interaction between the outside and the interface. In the existing interface service development and maintenance process, a universal management interface is usually adopted to carry out multi-dimensional monitoring on the interface service so as to achieve the interface service early warning effect, but even if performance fluctuation or service unavailability of the interface service can be found in time, long time is still spent in the period from finding a problem to informing relevant developers to solve the problem, so that the interface calling party has no service availability, the interface availability is reduced, and the user experience is finally influenced.
In the prior art, a current limiting scheme is usually adopted to improve interface service availability, for example, if the number TPS of transactions or transactions that can be processed by a system per second for an interface service is monitored to be greater than a current limiting threshold, the interface is limited, and service unavailability caused by excessive interface traffic is avoided. In the prior art, related interface current limiting operation can be manually carried out through a background management system; a developer can also develop related current limiting functions, such as a token bucket algorithm, according to the service system, all the flows need to obtain a certain amount of tokens before being released, and the interface can execute the flow limiting function only when enough tokens are obtained; otherwise, the server resource is not consumed.
The prior art has the following defects:
1. for the scheme of manually performing interface current limiting operation, the operation process needs to be manually controlled, the flexibility is not high, and the current limiting threshold is not clear.
2. For the current limiting function developed according to the service system, the service coupling degree is high, the universality is not provided, and meanwhile, the maintenance cost of the service system is increased.
Disclosure of Invention
In view of this, the present invention provides a method, an apparatus, a device, and a storage medium for controlling an interface, which can avoid the problem that the interface is unavailable in an emergency, and can notify relevant developers to solve the problem in time when the problem is found, thereby improving the usability of the interface and finally improving the user experience.
To achieve the above object, according to a first aspect of the present invention, there is provided a method of controlling an interface.
The method for controlling the interface comprises the following steps: saving the interface identification of each interface and the threshold value of the performance index corresponding to each interface identification; the interface is used for providing services for the outside; acquiring performance index data of an interface to be monitored every set period, judging whether the performance index data is larger than a threshold value of a performance index corresponding to an interface identifier of the interface to be monitored, if so, adding 1 to an index counter corresponding to the performance index, and outputting warning information; otherwise, resetting the index counter corresponding to the performance index; judging whether the value of the index counter is larger than or equal to a first set value or not, if so, calling a current limiting interface to limit the current of the interface to be monitored, and outputting warning information; otherwise, repeatedly judging whether the value of the index counter is larger than or equal to a first set value.
Optionally, after the step of adding 1 to the index counter corresponding to the performance index, the method further includes: storing the interface identification of the interface to be monitored into an alarm queue, judging whether the performance index data of the interface corresponding to the interface identification in the alarm queue is smaller than the threshold value of the performance index corresponding to the interface identification in the acquired performance index data, if so, adding 1 to a first interface counter, and removing the interface identification out of the alarm queue when the value of the first interface counter is equal to a second set value; otherwise, the first interface counter is cleared, 1 is added to the index counter corresponding to the performance index which is greater than the threshold value, and the index counter corresponding to the performance index which is less than or equal to the threshold value is cleared.
Optionally, after the step of limiting the current of the interface to be monitored, the method further includes: putting the interface identifier of the interface to be monitored into a current-limiting monitoring queue, judging whether the performance index data of the interface corresponding to the interface identifier in the current-limiting monitoring queue is smaller than the threshold value of the performance index corresponding to the interface identifier in the acquired performance index data, if so, adding 1 to a second interface counter, and deleting the current-limiting interface and removing the interface identifier out of the current-limiting monitoring queue when the value of the second interface counter is equal to a third set value; otherwise, the second interface counter is cleared, 1 is added to the index counter corresponding to the performance index which is greater than the threshold value, and the index counter corresponding to the performance index which is less than or equal to the threshold value is cleared.
According to a second aspect of the present invention, there is provided an apparatus for controlling an interface.
The device for controlling the interface of the invention comprises: the storage module is used for storing the interface identification of each interface and the threshold value of the performance index corresponding to each interface identification; the interface is used for providing services for the outside; the comparison module is used for acquiring performance index data of the interface to be monitored every set period, then judging whether the performance index data is larger than a threshold value of a performance index corresponding to the interface identifier of the interface to be monitored, if so, adding 1 to an index counter corresponding to the performance index, and outputting warning information; otherwise, resetting the index counter corresponding to the performance index; the first judgment module is used for judging whether the value of the index counter is larger than or equal to a first set value or not, if so, calling a current limiting interface to limit the current of the interface to be monitored, and outputting warning information; otherwise, repeatedly judging whether the value of the index counter is larger than or equal to a first set value.
Optionally, the monitoring device further includes a second determining module, configured to store the interface identifier of the interface to be monitored in an alarm queue, and determine, in the obtained performance index data, whether the performance index data of the interface corresponding to the interface identifier in the alarm queue is smaller than a threshold of the performance index corresponding to the interface identifier, if so, add 1 to the first interface counter, and remove the interface identifier from the alarm queue when the value of the first interface counter is equal to a second set value; otherwise, the first interface counter is cleared, 1 is added to the index counter corresponding to the performance index which is greater than the threshold value, and the index counter corresponding to the performance index which is less than or equal to the threshold value is cleared.
Optionally, the system further includes a third determining module, configured to put the interface identifier of the interface to be monitored into a current-limiting monitoring queue, and determine, in the obtained performance index data, whether the performance index data of the interface corresponding to the interface identifier in the current-limiting monitoring queue is smaller than a threshold of the performance index corresponding to the interface identifier, if so, add 1 to a second interface counter, and delete the current-limiting interface and remove the interface identifier from the current-limiting monitoring queue when a value of the second interface counter is equal to a third set value; otherwise, the second interface counter is cleared, 1 is added to the index counter corresponding to the performance index which is greater than the threshold value, and the index counter corresponding to the performance index which is less than or equal to the threshold value is cleared.
According to a third aspect of the present invention, there is provided an apparatus for controlling an interface.
The apparatus for controlling an interface of the present invention comprises: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the one processor, the instructions being executable by the at least one processor to cause the at least one processor to perform the method of controlling an interface provided by the present invention.
According to a fourth aspect of the present invention, a computer-readable storage medium is provided.
The non-transitory computer readable storage medium of the present invention stores computer instructions for causing the computer to perform the method of controlling an interface provided by the present invention.
According to the technical scheme of the invention, as the definite threshold value of the interface performance index is set, the dynamic monitoring of the interface to be monitored is realized by periodically comparing the acquired performance index data of the interface with the corresponding threshold value, the problem that the interface is unavailable under emergency is avoided, and related developers can be timely informed to solve the problem when the problem is found, so that the interface availability is improved, and the use experience of a user is finally improved
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is a schematic diagram of a method of controlling an interface according to an embodiment of the invention;
FIG. 2 is a schematic diagram of an apparatus for controlling an interface according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a device for controlling an interface according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic diagram of a method of controlling an interface according to an embodiment of the present invention. As shown in fig. 1, the method for controlling an interface according to the embodiment of the present invention mainly includes steps S10 to S16.
Step S10: and storing the interface identification of each interface and the threshold value of the performance index corresponding to each interface identification. The interface is used for providing services for the outside; in the step, an interface identifier of an interface which needs dynamic current-limiting monitoring and a threshold value of a performance index corresponding to the interface identifier are stored in a database; the database can be mysql, a distributed memory system (Memcache) or a distributed application program coordination service (Zookeeper).
Step S11: and acquiring performance index data of the interface to be monitored every set period. In step S11, it is assumed that the set period is 5 minutes, that is, the performance index data of the interface to be monitored is acquired every 5 minutes.
Step S12, determining whether the performance index data is greater than the threshold of the performance index corresponding to the interface identifier of the interface to be monitored, if yes, executing step S13; otherwise, step S14 is executed.
Step S13: and adding 1 to an index counter corresponding to the performance index, storing the interface identifier of the interface to be monitored into an alarm queue, and outputting alarm information. The index counter is used for recording the times that the index is continuously larger than the index set threshold value. Taking one of the interfaces as an example: after the performance index data of the interface is acquired (assuming that the performance index data includes TP99 and the number of requests), comparing the performance index TP99 and the number of requests with the threshold of the performance index corresponding to the interface identifier of the interface stored in step S10, if the performance index data of TP99 is greater than the threshold set by the indicator, adding 1 to the indicator counter corresponding to TP99, and meanwhile, placing the interface identifier of the interface into an alarm queue, and sending alarm information to an interface principal of the interface to play a role in reminding; wherein, the warning information can be sent by means of mails, short messages and the like.
Step S14: and clearing the index counter corresponding to the performance index. And if the acquired performance index data is less than or equal to the threshold, clearing an index counter corresponding to the interface to indicate that the index is not continuously greater than the set threshold.
Step S15: judging whether the value of the index counter is larger than or equal to a first set value, if so, executing step S16; otherwise, step S15 is repeatedly performed. In step S15, assuming that the first set value is 3, when the value of the index counter is 3, it indicates that the index is larger than the set threshold value of the index three consecutive times.
Step S16: and calling a current limiting interface to limit the current of the interface to be monitored, putting the interface identifier of the interface to be monitored into a current limiting monitoring queue, and outputting warning information. In the step, the current-limiting interface is called to limit the current of the interface in time, and meanwhile, the interface identifier of the interface is placed in a current-limiting monitoring queue to be monitored, so that the problem that the service is unavailable due to overlarge flow of the interface is avoided.
For an interface corresponding to an interface identifier in an alarm queue, after performance index data of an interface to be monitored in the next period is acquired, judging whether the performance index data of the interface corresponding to the interface identifier in the alarm queue is smaller than a threshold of a performance index corresponding to the interface identifier (namely, the index TP99 and the request number in the example are both smaller than the set thresholds of the two indexes), if so, adding 1 to a first interface counter, and removing the interface identifier from the alarm queue when the value of the first interface counter is equal to a second set value (assuming that the second set value is 5); otherwise, the first interface counter is cleared, 1 is added to the index counter corresponding to the performance index which is greater than the threshold value, and the index counter corresponding to the performance index which is less than or equal to the threshold value is cleared. The first interface counter is used for recording the continuous normal operation times of the interface corresponding to the interface identification in the alarm queue, and if the continuous normal operation times reach a second set value, the interface can operate normally, so that the interface identification is removed from the alarm queue, and the dynamic monitoring of the interface corresponding to the interface identification in the alarm queue is realized.
For an interface corresponding to an interface identifier in a current-limiting monitoring queue, after performance index data of an interface to be monitored in the next period is acquired, judging whether the performance index data of the interface corresponding to the interface identifier in the current-limiting monitoring queue is smaller than a threshold value of a performance index corresponding to the interface identifier, if so, adding 1 to a second interface counter, and when the value of the second interface counter is equal to a third set value, deleting the current-limiting interface and removing the interface identifier out of the current-limiting monitoring queue; otherwise, the second interface counter is cleared, 1 is added to the index counter corresponding to the performance index which is greater than the threshold value, and the index counter corresponding to the performance index which is less than or equal to the threshold value is cleared. And the second interface counter is used for recording the continuous normal operation times of the interface corresponding to the interface identifier in the current-limiting monitoring alignment, and if the continuous normal operation times reach a third set value, the interface can normally operate, so that the current-limiting interface is deleted, and the interface identifier is removed from the current-limiting monitoring queue. Therefore, the dynamic monitoring of the interface corresponding to the interface identifier in the current-limiting monitoring queue is realized.
Fig. 2 is a schematic diagram of an apparatus for controlling an interface according to an embodiment of the present invention. As shown in fig. 2, the apparatus 20 for controlling an interface according to an embodiment of the present invention mainly includes: a storage module 21, a comparison module 22, and a first judgment module 23; the storage module 21 is configured to store the interface identifier of each interface and the threshold of the performance index corresponding to each interface identifier; the comparison module 22 is configured to obtain performance index data of the interface to be monitored every set period, then determine whether the performance index data is greater than a threshold of a performance index corresponding to an interface identifier of the interface to be monitored, if so, add 1 to an index counter corresponding to the performance index, and output warning information; otherwise, resetting the index counter corresponding to the performance index; the first judging module 23 is configured to judge whether the value of the index counter is greater than or equal to a first set value, and if so, invoke a current limiting interface to limit the current of the interface to be monitored, and output warning information; otherwise, repeatedly judging whether the value of the index counter is larger than or equal to a first set value. Wherein the interface is used for providing services for the outside;
the device 20 for controlling an interface may further include a second determining module (not shown in the figure), configured to store the interface identifier of the interface to be monitored into an alarm queue, and determine, from the obtained performance index data, whether the performance index data of the interface corresponding to the interface identifier in the alarm queue is smaller than a threshold of the performance index corresponding to the interface identifier, if so, add 1 to the first interface counter, and remove the interface identifier from the alarm queue when the value of the first interface counter is equal to a second set value; otherwise, the first interface counter is cleared, 1 is added to the index counter corresponding to the performance index which is greater than the threshold value, and the index counter corresponding to the performance index which is less than or equal to the threshold value is cleared.
The device 20 for controlling an interface may further include a third determining module (not shown in the figure), configured to put the interface identifier of the interface to be monitored into the current-limiting monitoring queue, and determine, in the obtained performance index data, whether the performance index data of the interface corresponding to the interface identifier in the current-limiting monitoring queue is smaller than the threshold of the performance index corresponding to the interface identifier, if so, add 1 to the second interface counter, and delete the current-limiting interface and remove the interface identifier from the current-limiting monitoring queue when the value of the second interface counter is equal to a third set value; otherwise, the second interface counter is cleared, 1 is added to the index counter corresponding to the performance index which is greater than the threshold value, and the index counter corresponding to the performance index which is less than or equal to the threshold value is cleared.
The invention also provides an electronic device and a readable storage medium according to the embodiment of the invention.
The electronic device of the present invention includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the one processor, the instructions being executable by the at least one processor to cause the at least one processor to perform the method of controlling an interface provided by the present invention.
The non-transitory computer readable storage medium of the present invention stores computer instructions for causing the computer to perform the method of controlling an interface provided by the present invention.
Fig. 3 is a schematic diagram of a hardware structure of an electronic device for controlling an interface method according to an embodiment of the present invention. As shown in fig. 3, the electronic device 30 includes: one or more processors 31 and a memory 32, with one processor 31 being an example in fig. 3. The memory 32 is a non-transitory computer readable storage medium provided by the present invention.
The electronic device controlling the interface method may further include: an input device 33 and an output device 34.
The processor 31, the memory 32, the input device 33 and the output device 34 may be connected by a bus or other means, and fig. 3 illustrates the connection by a bus as an example.
The memory 32 is a non-transitory computer readable storage medium, and can be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the method of controlling the interface in the embodiment of the present invention (for example, the saving module 21, the comparing module 22, and the first determining module 23 shown in fig. 2). The processor 31 executes various functional applications of the server and data processing, i.e. the method of implementing the control interface in the above-described method embodiments, by running non-transitory software programs, instructions and modules stored in the memory 32.
The memory 32 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of a device of the control interface, and the like. Further, the memory 32 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 32 may optionally include memory located remotely from the processor 31, which may be connected to the devices of the control interface via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 33 may receive an input of an interface identification or a threshold value of a performance index corresponding to the interface identification, and generate a key signal input related to user setting and function control of a device controlling the interface. The output device 34 may include a display device such as a display screen.
The one or more modules are stored in the memory 32 and, when executed by the one or more processors 31, perform the method of controlling an interface in any of the method embodiments described above.
According to the technical scheme of the embodiment of the invention, as the definite threshold value of the interface performance index is set, the dynamic monitoring of the interface to be monitored is realized by periodically comparing the acquired performance index data of the interface with the corresponding threshold value, the problem that the interface is unavailable under emergency is avoided, and related developers can be timely notified to solve the problem when the problem is found, so that the interface availability is improved, and the use experience of a user is finally improved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method of controlling an interface, comprising:
saving the interface identification of each interface and the threshold value of the performance index corresponding to each interface identification; the interface is used for providing services for the outside;
acquiring performance index data of an interface to be monitored every set period, judging whether the performance index data is larger than a threshold value of a performance index corresponding to an interface identifier of the interface to be monitored, if so, adding 1 to an index counter corresponding to the performance index, and outputting warning information; otherwise, resetting the index counter corresponding to the performance index;
judging whether the value of the index counter is larger than or equal to a first set value or not, if so, calling a current limiting interface to limit the current of the interface to be monitored, and outputting warning information; otherwise, repeatedly judging whether the value of the index counter is larger than or equal to a first set value.
2. The method of claim 1, wherein the step of adding 1 to the index counter corresponding to the performance index further comprises:
storing the interface identification of the interface to be monitored into an alarm queue, judging whether the performance index data of the interface corresponding to the interface identification in the alarm queue is smaller than the threshold value of the performance index corresponding to the interface identification in the acquired performance index data, if so, adding 1 to a first interface counter, and removing the interface identification out of the alarm queue when the value of the first interface counter is equal to a second set value; otherwise, the first interface counter is cleared, 1 is added to the index counter corresponding to the performance index which is greater than the threshold value, and the index counter corresponding to the performance index which is less than or equal to the threshold value is cleared.
3. The method of claim 1, wherein after the step of throttling the interface to be monitored, the method further comprises:
putting the interface identifier of the interface to be monitored into a current-limiting monitoring queue, judging whether the performance index data of the interface corresponding to the interface identifier in the current-limiting monitoring queue is smaller than the threshold value of the performance index corresponding to the interface identifier in the acquired performance index data, if so, adding 1 to a second interface counter, and deleting the current-limiting interface and removing the interface identifier out of the current-limiting monitoring queue when the value of the second interface counter is equal to a third set value; otherwise, the second interface counter is cleared, 1 is added to the index counter corresponding to the performance index which is greater than the threshold value, and the index counter corresponding to the performance index which is less than or equal to the threshold value is cleared.
4. An apparatus for controlling an interface, comprising:
the storage module is used for storing the interface identification of each interface and the threshold value of the performance index corresponding to each interface identification; the interface is used for providing services for the outside;
the comparison module is used for acquiring performance index data of the interface to be monitored every set period, then judging whether the performance index data is larger than a threshold value of a performance index corresponding to an interface identifier of the interface to be monitored, if so, adding 1 to an index counter corresponding to the performance index, and outputting warning information; otherwise, resetting the index counter corresponding to the performance index;
the first judgment module is used for judging whether the value of the index counter is larger than or equal to a first set value or not, if so, calling a current limiting interface to limit the current of the interface to be monitored, and outputting warning information; otherwise, repeatedly judging whether the value of the index counter is larger than or equal to a first set value.
5. The apparatus according to claim 4, further comprising a second determining module, configured to store the interface identifier of the interface to be monitored into an alarm queue, and determine, from the obtained performance index data, whether the performance index data of the interfaces corresponding to the interface identifiers in the alarm queue are all smaller than a threshold of the performance index corresponding to the interface identifier, if so, add 1 to the first interface counter, and remove the interface identifier from the alarm queue when the value of the first interface counter is equal to a second set value; otherwise, the first interface counter is cleared, 1 is added to the index counter corresponding to the performance index which is greater than the threshold value, and the index counter corresponding to the performance index which is less than or equal to the threshold value is cleared.
6. The apparatus according to claim 4, further comprising a third determining module, configured to put the interface identifier of the interface to be monitored into a current-limiting monitoring queue, and determine, in the obtained performance index data, whether the performance index data of the interfaces corresponding to the interface identifiers in the current-limiting monitoring queue are all smaller than a threshold of the performance index corresponding to the interface identifier, if yes, add 1 to a second interface counter, and delete the current-limiting interface and remove the interface identifier from the current-limiting monitoring queue when a value of the second interface counter is equal to a third set value; otherwise, the second interface counter is cleared, 1 is added to the index counter corresponding to the performance index which is greater than the threshold value, and the index counter corresponding to the performance index which is less than or equal to the threshold value is cleared.
7. An apparatus for controlling an interface, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the one processor to cause the at least one processor to perform the method of any one of claims 1 to 3.
8. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1 to 3.
CN201710130763.1A 2017-03-07 2017-03-07 Method, device, equipment and storage medium for controlling interface Active CN108572898B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710130763.1A CN108572898B (en) 2017-03-07 2017-03-07 Method, device, equipment and storage medium for controlling interface

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710130763.1A CN108572898B (en) 2017-03-07 2017-03-07 Method, device, equipment and storage medium for controlling interface

Publications (2)

Publication Number Publication Date
CN108572898A true CN108572898A (en) 2018-09-25
CN108572898B CN108572898B (en) 2021-11-02

Family

ID=63576938

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710130763.1A Active CN108572898B (en) 2017-03-07 2017-03-07 Method, device, equipment and storage medium for controlling interface

Country Status (1)

Country Link
CN (1) CN108572898B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039937A (en) * 2018-09-26 2018-12-18 深圳壹账通智能科技有限公司 Dynamic current limiting method, apparatus, computer equipment and storage medium
CN109903175A (en) * 2019-03-26 2019-06-18 众安在线财产保险股份有限公司 A kind of Insurance core system monitor supervision platform
CN111064677A (en) * 2019-11-11 2020-04-24 福建天泉教育科技有限公司 Flow control method based on back-end access quantity and storage medium
CN111262795A (en) * 2020-01-08 2020-06-09 京东数字科技控股有限公司 Service interface-based current limiting method and device, electronic equipment and storage medium
CN112272106A (en) * 2020-09-28 2021-01-26 苏州浪潮智能科技有限公司 Multi-site data synchronization abnormity warning method, device, equipment and product
CN112579396A (en) * 2020-12-25 2021-03-30 上海安畅网络科技股份有限公司 Dynamic current limiting method, device and equipment for software system
CN113315718A (en) * 2021-03-31 2021-08-27 阿里巴巴新加坡控股有限公司 System, method and apparatus for adaptive current limiting
CN114650232A (en) * 2020-12-02 2022-06-21 中盈优创资讯科技有限公司 Network quality analysis method and device based on QOS queue flow

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986515A (en) * 2014-05-09 2014-08-13 浙江中烟工业有限责任公司 Performance index monitoring method of fiber channel switch
CN104168333A (en) * 2014-09-01 2014-11-26 广东电网公司信息中心 Working method of PROXZONE service platform
US9344446B2 (en) * 2010-12-30 2016-05-17 Verisign, Inc. Systems and methods for malware detection and scanning
CN105893150A (en) * 2016-03-31 2016-08-24 腾讯科技(深圳)有限公司 Interface calling frequency control and interface calling request processing method and device
CN106339312A (en) * 2015-07-17 2017-01-18 腾讯科技(深圳)有限公司 API (application programming interface) testing method and system
CN106371973A (en) * 2016-08-31 2017-02-01 广州品唯软件有限公司 Data processing method, equipment and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9344446B2 (en) * 2010-12-30 2016-05-17 Verisign, Inc. Systems and methods for malware detection and scanning
CN103986515A (en) * 2014-05-09 2014-08-13 浙江中烟工业有限责任公司 Performance index monitoring method of fiber channel switch
CN104168333A (en) * 2014-09-01 2014-11-26 广东电网公司信息中心 Working method of PROXZONE service platform
CN106339312A (en) * 2015-07-17 2017-01-18 腾讯科技(深圳)有限公司 API (application programming interface) testing method and system
CN105893150A (en) * 2016-03-31 2016-08-24 腾讯科技(深圳)有限公司 Interface calling frequency control and interface calling request processing method and device
CN106371973A (en) * 2016-08-31 2017-02-01 广州品唯软件有限公司 Data processing method, equipment and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
REST: "API设计要点", 《API设计要点 *
三石雨: "服务接口API限流Rate Limit", 《服务接口API限流RATE LIMIT》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109039937A (en) * 2018-09-26 2018-12-18 深圳壹账通智能科技有限公司 Dynamic current limiting method, apparatus, computer equipment and storage medium
CN109039937B (en) * 2018-09-26 2023-05-12 深圳壹账通智能科技有限公司 Dynamic current limiting method, dynamic current limiting device, computer equipment and storage medium
CN109903175A (en) * 2019-03-26 2019-06-18 众安在线财产保险股份有限公司 A kind of Insurance core system monitor supervision platform
CN111064677A (en) * 2019-11-11 2020-04-24 福建天泉教育科技有限公司 Flow control method based on back-end access quantity and storage medium
CN111262795A (en) * 2020-01-08 2020-06-09 京东数字科技控股有限公司 Service interface-based current limiting method and device, electronic equipment and storage medium
CN111262795B (en) * 2020-01-08 2024-02-06 京东科技控股股份有限公司 Service interface-based current limiting method and device, electronic equipment and storage medium
CN112272106A (en) * 2020-09-28 2021-01-26 苏州浪潮智能科技有限公司 Multi-site data synchronization abnormity warning method, device, equipment and product
CN114650232A (en) * 2020-12-02 2022-06-21 中盈优创资讯科技有限公司 Network quality analysis method and device based on QOS queue flow
CN114650232B (en) * 2020-12-02 2024-03-12 中盈优创资讯科技有限公司 Network quality analysis method and device based on QOS queue flow
CN112579396A (en) * 2020-12-25 2021-03-30 上海安畅网络科技股份有限公司 Dynamic current limiting method, device and equipment for software system
CN113315718A (en) * 2021-03-31 2021-08-27 阿里巴巴新加坡控股有限公司 System, method and apparatus for adaptive current limiting
CN113315718B (en) * 2021-03-31 2023-11-14 阿里巴巴新加坡控股有限公司 System, method and device for self-adaptive current limiting

Also Published As

Publication number Publication date
CN108572898B (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN108572898B (en) Method, device, equipment and storage medium for controlling interface
US10558544B2 (en) Multiple modeling paradigm for predictive analytics
CN112650576B (en) Resource scheduling method, device, equipment, storage medium and computer program product
CN110753112A (en) Elastic expansion method and device of cloud service
US20170091013A1 (en) Pcie error reporting and throttling
CN109308252A (en) A kind of fault location processing method and device
CN102609309A (en) Strategy scheduling system for cloud computing and strategy scheduling method for cloud computing
US10305974B2 (en) Ranking system
US8196151B1 (en) Detecting queue problems using messages entering and leaving a queue during a time period
US10135751B2 (en) Automated split of work in a cloud environment
CN110933172A (en) Remote monitoring system and method based on cloud computing
CN110990245A (en) Micro-service operation state judgment method and device based on call chain data
CN106970696B (en) Electronic equipment management method and electronic equipment
CN112817772A (en) Data communication method, device, equipment and storage medium
CN113127187B (en) Method and device for cluster expansion and contraction capacity
CN107426012B (en) Fault recovery method and device based on super-fusion architecture
CN110113187B (en) Configuration updating method and device, configuration server and configuration system
CN111949421B (en) SDK calling method, device, electronic equipment and computer readable storage medium
US20150195174A1 (en) Traffic data collection apparatus, traffic data collection method and program
CN111597056B (en) Distributed scheduling method, system, storage medium and equipment
US9843550B2 (en) Processing messages in a data messaging system using constructed resource models
CN108804152B (en) Method and device for adjusting configuration parameters
CN110955579A (en) Ambari-based large data platform monitoring method
CN110493071B (en) Messaging system resource balancing device, method and device
CN109460291B (en) Electronic device, method for elastically controlling server cluster 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
GR01 Patent grant
GR01 Patent grant