CN110727555A - Service interface management method, device, medium and computer equipment - Google Patents

Service interface management method, device, medium and computer equipment Download PDF

Info

Publication number
CN110727555A
CN110727555A CN201910893825.3A CN201910893825A CN110727555A CN 110727555 A CN110727555 A CN 110727555A CN 201910893825 A CN201910893825 A CN 201910893825A CN 110727555 A CN110727555 A CN 110727555A
Authority
CN
China
Prior art keywords
service interface
state information
state
cache
server
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
CN201910893825.3A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN201910893825.3A priority Critical patent/CN110727555A/en
Publication of CN110727555A publication Critical patent/CN110727555A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available
    • 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/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data

Abstract

The invention provides a service interface management method, a service interface management device, a computer storage medium and computer equipment; the method comprises the following steps: sending an interface state detection request to a server on a detection list to obtain state information of a service interface of the server; updating a service interface state table according to the state information of the service interface; responding to an interface state acquisition request from a server with information acquisition permission, and acquiring state information corresponding to the interface state acquisition request from the updated service interface state table; and sending the state information to a server with information acquisition authority. By the technical scheme, the state information of the service interfaces deployed on all the servers in the framework can be managed in order, and the service interfaces with abnormal states can be positioned quickly.

Description

Service interface management method, device, medium and computer equipment
Technical Field
The invention relates to the field of micro services, in particular to a service interface management method, a service interface management device, a service interface management medium and computer equipment.
Background
The method for positioning the problems comprises the steps that a plurality of servers are included in a micro-service interface framework, each server is provided with a plurality of different application services, namely the service interfaces, but the servers cannot directly acquire state information of the service interfaces deployed by other external servers, so that the problem positioning is not well performed when the service interfaces deployed by the servers have problems, for example, the service interface of a certain server is abnormal, because the service interface of the server actually has a plurality of communication interactions with the service interfaces of other servers in the processing process, the reason for the abnormality is difficult to specify at once when the service interface of the server is abnormal, the problem can be positioned only by inquiring logs and checking layer by layer when the problem occurs, and the efficiency of the method for positioning the problems is low.
Disclosure of Invention
The invention provides a service interface management method, a device, a medium and computer equipment aiming at the defects of the prior art.
An embodiment of the present invention provides a service interface management method according to a first aspect, including:
sending an interface state detection request to a server on a detection list to obtain state information of a service interface of the server;
updating a service interface state table according to the state information of the service interface;
responding to an interface state acquisition request from a server with information acquisition permission, and acquiring state information corresponding to the interface state acquisition request from the updated service interface state table;
and sending the state information to the server with the information acquisition authority.
Further, the sending the state information to the server with the information acquisition right later includes:
storing the state information in a cache;
and when the cache duration of the state information is greater than a preset cache duration threshold, deleting the state information from the cache.
Further, the acquiring the state information corresponding to the interface state acquisition request from the updated service interface state table includes:
determining a service interface identifier corresponding to the interface state acquisition request;
judging whether the cache stores state information corresponding to the service interface identifier or not;
if the service interface identifier is stored, acquiring state information corresponding to the service interface identifier from a cache;
and if not, acquiring the state information corresponding to the service interface identifier from a service interface state table in a preset database.
Further, the obtaining the state information corresponding to the service interface identifier from the cache includes:
and resetting the cache duration corresponding to the state information corresponding to the service interface identifier.
Further, the obtaining the state information corresponding to the service interface identifier from the cache includes:
calculating information acquisition frequency corresponding to the state information corresponding to the service interface identifier in a preset time interval;
and if the information acquisition frequency is greater than a preset frequency threshold, adding the service interface identifier into a cache white list.
Further, when the cache duration of the state information is greater than a preset cache duration threshold, deleting the state information from the cache includes:
when the cache duration of the state information is greater than a preset cache duration threshold, judging whether a service interface identifier corresponding to the state information is contained in a cache white list or not;
if the state information is contained in the cache white list, the state information is not deleted from the cache;
and if the state information is not contained in the cache white list, deleting the state information from the cache.
Further, the updating the service interface state table according to the state information of the service interface includes:
determining a service interface identifier of the service interface;
and covering the historical state information corresponding to the service interface identifier in a service interface state table with the state information.
An embodiment of the present invention provides a service interface management apparatus according to a second aspect, including:
the system comprises a state information acquisition module, a state information acquisition module and a state information acquisition module, wherein the state information acquisition module is used for sending an interface state detection request to a server on a detection list and acquiring the state information of a service interface of the server;
the state table updating module is used for updating the service interface state table according to the state information of the service interface;
an acquisition request response module, configured to respond to an interface state acquisition request from a server having an information acquisition permission, and acquire, from the updated service interface state table, state information of a service interface corresponding to the interface state acquisition request;
and the state information sending module is used for sending the state information to the server with the information acquisition authority.
Embodiments of the present invention provide according to a third aspect a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements the service interface management method described above.
An embodiment of the present invention provides a computer device according to a fourth aspect, the computer device including:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the service interface management method described above.
In the embodiment of the invention, a service registration center sends an interface state detection request to a server on a detection list so as to obtain the state information of a service interface of the server, and a service interface state table is updated according to the state information of the service interface; responding to an interface state acquisition request from a server with information acquisition permission, and acquiring state information corresponding to the interface state acquisition request from the updated service interface state table; the state information is sent to the server with the information acquisition authority, the service registration center is established to intensively record and manage the state information of the service interface deployed on the server inside the framework, the server inside the framework and the external server can inquire the state information of the service interface from the service registration center, and when the service interface is in an abnormal state, the service interface in the abnormal state can be quickly positioned.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flow chart illustrating a service interface management method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a service interface management apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative only and should not be construed as limiting the invention.
It will be understood by those skilled in the art that, unless otherwise specified, the singular forms "a", "an", "the" and "the" may include the plural forms as well, and the "first" and "second" used herein are only used to distinguish one technical feature from another and are not intended to limit the order, number, etc. of the technical features. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
An embodiment of the present invention provides a service interface management method, and the following detailed description is provided with reference to the accompanying drawings. As shown in fig. 1, the service interface management method provided in the embodiment of the present invention includes the following steps:
s110: sending an interface state detection request to a server on a detection list to obtain state information of a service interface of the server;
s120: updating a service interface state table according to the state information of the service interface;
s130: responding to an interface state acquisition request from a server with information acquisition permission, and acquiring state information corresponding to the interface state acquisition request from the updated service interface state table;
s140: and sending the state information to the server with the information acquisition authority.
In this embodiment, the service registry may be an application installed on any one of the servers in the framework of the microservice, or may be an application installed on a server newly added in the framework of the microservice. The service registration center is responsible for detecting the state information of the service interface deployed on the server on the detection list, including the name of the service interface, the corresponding server identifier, the ip address and the port number of the service interface, the running state, i.e. the running is normal or abnormal, and the starting state, i.e. the starting or stopping, and the like. The detection list records server identifiers of servers allowed to be detected inside the frame and server identifiers of servers allowed to be detected outside the frame, and it can be understood that the detection list is configured by a manager according to an actual application scenario, for example, all servers inside the frame are listed in the detection list, or only a part of servers inside the frame are listed in the detection list. For a server outside the framework, engineering of the external server needs to import a jar package developed in advance by a developer into a package path of a function of the external server, and add a service query method in a start class. In this way, the external server has the function of providing the interface state of the service interface deployed on the server to the service registry for query.
The service registration center may periodically send the interface state detection request to the servers on the detection list, and the detection frequency, that is, the frequency at which the service registration center sends the interface state detection request to the relevant server, is determined according to a specific application scenario, for example, once every five minutes.
The method comprises the steps that a service registration center sends an interface state detection request to a server on a detection list, after the server receives the interface state detection request, state information of all deployed service interfaces is sent to the service registration center, the service registration center records the state information of the service interfaces fed back by the server in a service interface state table stored in a preset database, wherein each service interface has a corresponding unique service interface identifier, and a mapping relation exists between the service interface identifier and the state information of the service interface identifier.
When a server inside or outside a frame wants to acquire state information of a certain service interface, the server needs to acquire information acquisition permission from a service registration center first and then can send an interface state acquisition request to the service registration center, and after receiving the interface state acquisition request, the service registration center inquires a service interface state table, acquires state information corresponding to the interface state acquisition request sent by the server from the service interface state table, and then feeds back the acquired state information of the service interface to the server sending the interface state acquisition request.
In the embodiment, the service registration center is established to centrally record and manage the state information of the service interface deployed on the server inside the framework, so that both the server inside the framework and the external server can inquire the state information of the service interface from the service registration center, and when the service interface is in an abnormal state, the service interface in the abnormal state can be quickly positioned.
In one embodiment, further comprising:
and when the running state in the state information of the service interface of the server is abnormal, sending abnormal alarm information to a manager terminal.
When a certain service interface operates abnormally, abnormal warning information is automatically sent to a manager terminal, so that managers can quickly know the abnormal state of the service interface.
Further, when the service registration center makes the running state of the service interface abnormal, the service interface identifier of the service interface is recorded in the running abnormal table, the running abnormal table is counted regularly, the service interface identifier of the service interface with the running abnormal frequency exceeding a preset abnormal frequency threshold value in a preset time period is determined, and the service interface identifier is sent to the manager terminal.
In one embodiment, step S120: updating a service interface state table according to the state information of the service interface, comprising:
s121: determining a service interface identifier of the service interface;
s122: and covering the historical state information corresponding to the service interface identifier in a service interface state table with the state information.
In this embodiment, after detecting the state information of the relevant service interface, the service registry determines the service interface identifier of the service interface, stores the latest detected state information of the service interface into the service interface state table, and deletes the historical state information corresponding to the service interface identifier, so as to save the storage space.
Preferably, if the detected status information of the service interface is unchanged from the last detected status information, no update is performed.
In one embodiment, step S140: sending the state information to the server with the information acquisition authority, and then:
s150: storing the state information in a cache;
s160: and when the cache duration of the state information is greater than a preset cache duration threshold, deleting the state information from the cache.
In this embodiment, if the state information of a certain service interface is requested to be acquired, the service registry stores the state information in a cache, so that the state information can be acquired more quickly when the service registry needs to acquire the state information next time. It should be noted that only the latest detected state information corresponding to the service interface is stored in the cache.
However, the storage space of the cache is more limited than that of the database, and therefore, after the state information of the service interface is stored in the cache, the time when the state information of the service interface is stored in the cache, that is, the cache duration, is recorded. The service registration center monitors the cache duration corresponding to the state information of the service interface stored in the cache, and when the cache duration of the state information is greater than a preset cache duration threshold value preset by a manager, for example, 30 minutes, the state information is deleted from the cache to release the cache space.
Further, in step S130, acquiring the state information corresponding to the interface state acquisition request from the updated service interface state table includes:
s131: determining a service interface identifier corresponding to the interface state acquisition request;
s132: judging whether the cache stores state information corresponding to the service interface identifier or not;
s133: if the service interface identifier is stored, acquiring state information corresponding to the service interface identifier from a cache;
s134: and if not, acquiring the state information corresponding to the service interface identifier from a service interface state table in a preset database.
In this embodiment, on the basis of storing the state information of the service interface in the cache, if the service registration center receives the interface state acquisition request, the service interface identifier included in the interface state acquisition request is determined first, where the service interface identifier is a unique identifier used for distinguishing service interfaces, and the service registration center establishes a mapping relationship between the service interface identifier of the service interface and the state information after detecting the state information of the service interface, so that the state information corresponding to the service interface identifier can be determined through the service interface identifier. Then the service registration center judges whether the state information of the service interface identifier is stored in the cache, if the state information of the service interface identifier is stored in the cache, the state information of the service interface identifier is directly obtained from the cache; if the state information of the service interface identifier is not stored in the cache, the state information of the service interface identifier needs to be acquired from a service interface state table in a preset database.
It should be noted that, when the service registration center detects the state information of the service interface, the service registration center updates the service interface state table in the preset database, and also updates the relevant state information stored in the cache. Preferably, if the detected status information of the service interface is unchanged from the last detected status information, no update is performed.
In one embodiment, in step S133, obtaining the status information corresponding to the service interface identifier from the cache, and then includes:
and resetting the cache duration corresponding to the state information corresponding to the service interface identifier.
In this embodiment, if the state information in the cache is acquired by the server request, the corresponding cache duration is reset to zero, and the state information is counted again.
It will be readily appreciated that after the state information is again clocked, the service registry will again reset its corresponding cache duration to zero if it is again requested to be retrieved by the server.
In one embodiment, in step S133, obtaining the status information corresponding to the service interface identifier from the cache, and then includes:
calculating information acquisition frequency corresponding to the state information corresponding to the service interface identifier in a preset time interval;
and if the information acquisition frequency is greater than a preset frequency threshold, adding the service interface identifier into a cache white list.
In this embodiment, the frequency of the state information of a part of the service interfaces requested to be acquired by the server may be very high, and therefore, the corresponding cache duration needs to be frequently reset. For the service interfaces in the cache white list, the cache duration in the cache does not need to be calculated for the service interfaces.
The preset time interval and the preset frequency threshold may be configured by a manager.
The information obtaining frequency may be obtained by dividing the information obtaining frequency corresponding to the state information by a preset time interval, for example, the preset time interval is 2 days, and the information obtaining frequency is 10 times, and then dividing the information obtaining frequency by the preset time interval, that is, 10 times divided by 2 days, may obtain the information obtaining frequency of 5 times/day.
Further, the steps of: when the cache duration of the state information is greater than a preset cache duration threshold, deleting the state information from the cache, including:
when the cache duration of the state information is greater than a preset cache duration threshold, judging whether a service interface identifier corresponding to the state information is contained in a cache white list or not;
if the state information is contained in the cache white list, the state information is not deleted from the cache;
and if the state information is not contained in the cache white list, deleting the state information from the cache.
In order to better understand the technical solution of the present invention, the present invention further provides a service interface management apparatus, as shown in fig. 2, including the following modules:
a status information obtaining module 110, configured to send an interface status detection request to a server on a detection list, and obtain status information of a service interface of the server;
a status table updating module 120, configured to update a service interface status table according to the status information of the service interface;
an obtaining request responding module 130, configured to respond to an interface state obtaining request from a server having an information obtaining authority, and obtain state information corresponding to the interface state obtaining request from the updated service interface state table;
a status information sending module 140, configured to send the status information to the server having the information obtaining authority.
In one embodiment, further comprising:
and the alarm information sending module is used for sending abnormal alarm information to the administrator terminal when the running state in the state information of the service interface of the server is abnormal.
In one embodiment, after executing the function corresponding to the status information sending module 140, the service interface management apparatus provided by the present invention further executes the functions corresponding to the following modules:
a state information storage module 150, configured to store the state information in a cache;
the state information deleting module 160 is configured to delete the state information from the cache when the cache duration of the state information is greater than a preset cache duration threshold.
In one embodiment, the get request response module 130 includes:
an interface identifier determining submodule 131, configured to determine a service interface identifier corresponding to the interface state obtaining request;
the judging submodule 132 is configured to judge whether state information corresponding to the service interface identifier is stored in the cache;
a first status information obtaining sub-module 133, configured to, when the cache stores the status information corresponding to the service interface identifier, obtain the status information corresponding to the service interface identifier from the cache;
the second status information obtaining sub-module 134 is configured to, when the cache does not store the status information corresponding to the service interface identifier, obtain the status information corresponding to the service interface identifier from a service interface status table in a preset database.
In one embodiment, after executing the function corresponding to the first status information obtaining sub-module 133, the obtaining request responding module 130 further executes the following functions corresponding to the sub-modules:
and the cache duration resetting submodule is used for resetting the cache duration corresponding to the state information corresponding to the service interface identifier.
In one embodiment, after executing the function corresponding to the first status information obtaining sub-module 133, the obtaining request responding module 130 further executes the following functions corresponding to the sub-modules:
the frequency calculation submodule is used for calculating the information acquisition frequency corresponding to the state information corresponding to the service interface identifier in a preset time interval;
and the white list adding module is used for adding the service interface identifier into a cache white list when the information acquisition frequency is greater than a preset frequency threshold.
In one embodiment, the status information deleting module 160 includes:
the cache duration judgment submodule S161 is configured to, when the cache duration of the state information is greater than a preset cache duration threshold, judge whether a service interface identifier corresponding to the state information is included in a cache white list;
the execution sub-module 162 is configured to not delete the state information from the cache when the service interface identifier corresponding to the state information is included in the cache white list, and delete the state information from the cache when the service interface identifier corresponding to the state information is not included in the cache white list.
In one embodiment, the status table updating module 120 includes:
an identifier determining submodule 121, configured to determine a service interface identifier of the service interface;
and the status table updating submodule 122 is configured to enable the status information to cover historical status information corresponding to the service interface identifier in the service interface status table.
It should be noted that the service interface management apparatus provided in the embodiment of the present invention can implement the functions implemented by the service interface management method in the embodiment of the present invention, and specific implementation of the functions refers to the description in the service interface management method, which is not described herein again.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the service interface management method. The storage medium includes, but is not limited to, any type of disk (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROMs (Read-Only memories), RAMs (Random AcceSS memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable Programmable Read-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage medium includes any medium that stores or transmits information in a form readable by a device (e.g., a computer). Which may be a read-only memory, magnetic or optical disk, or the like.
An embodiment of the present invention further provides a computer device, where the computer device includes:
one or more processors 210;
a storage device 220 for storing one or more programs 200,
when the one or more programs 200 are executed by the one or more processors 210, the one or more processors 210 are caused to implement the service interface management method described above.
Fig. 3 is a schematic structural diagram of the computer device of the present invention, which includes a processor 210, a storage device 220, an input unit 230, a display unit 240, and other components. Those skilled in the art will appreciate that the structural elements shown in fig. 3 do not constitute a limitation of all computer devices and may include more or fewer components than those shown, or some of the components may be combined. The storage device 220 may be used to store the application program 200 and various functional modules, and the processor 210 executes the application program 200 stored in the storage device 220, thereby performing various functional applications of the apparatus and data processing. The storage 220 may be an internal memory or an external memory, or include both internal and external memories. The memory may comprise read-only memory, Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a usb-disk, a magnetic tape, etc. The disclosed memory devices include, but are not limited to, these types of memory devices. The disclosed storage device 220 is provided by way of example only and not by way of limitation.
The input unit 230 is used for receiving input of signals and receiving related requests of selecting voice files and the like input by users. The input unit 230 may include a touch panel and other input devices. The touch panel can collect touch operations of a user on or near the touch panel (for example, operations of the user on or near the touch panel by using any suitable object or accessory such as a finger, a stylus and the like) and drive the corresponding connecting device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like. The display unit 240 may be used to display information input by a user or information provided to the user and various menus of the computer device. The display unit 240 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 210 is a control center of the computer device, connects various parts of the entire computer using various interfaces and lines, and performs various functions and processes data by operating or executing software programs and/or modules stored in the storage device 220 and calling data stored in the storage device.
In one embodiment, a computer device includes one or more processors 210, and one or more storage 220, one or more applications 200, wherein the one or more applications 200 are stored in the storage 220 and configured to be executed by the one or more processors 210, the one or more applications 200 configured to perform the service interface management method described in the above embodiments.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
It should be understood that each functional unit in the embodiments of the present invention may be integrated into one processing module, each unit may exist alone physically, or two or more units may be integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for service interface management, comprising:
sending an interface state detection request to a server on a detection list to obtain state information of a service interface of the server;
updating a service interface state table according to the state information of the service interface;
responding to an interface state acquisition request from a server with information acquisition permission, and acquiring state information corresponding to the interface state acquisition request from the updated service interface state table;
and sending the state information to the server with the information acquisition authority.
2. The service interface management method of claim 1,
the sending the state information to the server with the information acquisition right then includes:
storing the state information in a cache;
and when the cache duration of the state information is greater than a preset cache duration threshold, deleting the state information from the cache.
3. The service interface management method of claim 2,
the acquiring, from the updated service interface state table, state information corresponding to the interface state acquisition request includes:
determining a service interface identifier corresponding to the interface state acquisition request;
judging whether the cache stores state information corresponding to the service interface identifier or not;
if the service interface identifier is stored, acquiring state information corresponding to the service interface identifier from a cache;
and if not, acquiring the state information corresponding to the service interface identifier from a service interface state table in a preset database.
4. The service interface management method of claim 3,
the obtaining of the state information corresponding to the service interface identifier from the cache includes:
and resetting the cache duration corresponding to the state information corresponding to the service interface identifier.
5. The service interface management method of claim 4,
the obtaining of the state information corresponding to the service interface identifier from the cache includes:
calculating information acquisition frequency corresponding to the state information corresponding to the service interface identifier in a preset time interval;
and if the information acquisition frequency is greater than a preset frequency threshold, adding the service interface identifier into a cache white list.
6. The service interface management method of claim 5,
when the cache duration of the state information is greater than a preset cache duration threshold, deleting the state information from the cache, including:
when the cache duration of the state information is greater than a preset cache duration threshold, judging whether a service interface identifier corresponding to the state information is contained in a cache white list or not;
if the state information is contained in the cache white list, the state information is not deleted from the cache;
and if the state information is not contained in the cache white list, deleting the state information from the cache.
7. The service interface management method of claim 1,
the updating of the service interface state table according to the state information of the service interface includes:
determining a service interface identifier of the service interface;
and covering the historical state information corresponding to the service interface identifier in a service interface state table with the state information.
8. A service interface management apparatus, comprising:
the system comprises a state information acquisition module, a state information acquisition module and a state information acquisition module, wherein the state information acquisition module is used for sending an interface state detection request to a server on a detection list and acquiring the state information of a service interface of the server;
the state table updating module is used for updating the service interface state table according to the state information of the service interface;
an acquisition request response module, configured to respond to an interface state acquisition request from a server having an information acquisition permission, and acquire state information corresponding to the interface state acquisition request from the updated service interface state table;
and the state information sending module is used for sending the state information to the server with the information acquisition authority.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a service interface management method according to any one of claims 1 to 7.
10. A computer device, characterized in that the computer device comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the service interface management method of any one of claims 1-7.
CN201910893825.3A 2019-09-20 2019-09-20 Service interface management method, device, medium and computer equipment Pending CN110727555A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910893825.3A CN110727555A (en) 2019-09-20 2019-09-20 Service interface management method, device, medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910893825.3A CN110727555A (en) 2019-09-20 2019-09-20 Service interface management method, device, medium and computer equipment

Publications (1)

Publication Number Publication Date
CN110727555A true CN110727555A (en) 2020-01-24

Family

ID=69219316

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910893825.3A Pending CN110727555A (en) 2019-09-20 2019-09-20 Service interface management method, device, medium and computer equipment

Country Status (1)

Country Link
CN (1) CN110727555A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112860399A (en) * 2021-02-03 2021-05-28 科东(广州)软件科技有限公司 Network port state detection method, device, equipment and storage medium of industrial server
CN113760398A (en) * 2020-09-29 2021-12-07 北京沃东天骏信息技术有限公司 Interface calling method, server, system and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789439A (en) * 2016-12-30 2017-05-31 郑州云海信息技术有限公司 A kind of service state monitoring method and device
CN107832163A (en) * 2017-11-29 2018-03-23 努比亚技术有限公司 A kind of buffering updating method, server and computer-readable recording medium
CN108270639A (en) * 2017-02-13 2018-07-10 广州市动景计算机科技有限公司 The method, apparatus and system of business interface monitoring
CN109525654A (en) * 2018-11-02 2019-03-26 北京奇艺世纪科技有限公司 A kind of data acquisition, sending method, device, client and server
CN110134528A (en) * 2019-04-15 2019-08-16 平安普惠企业管理有限公司 Interface message storage call method, device and the terminal device of micro services frame

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789439A (en) * 2016-12-30 2017-05-31 郑州云海信息技术有限公司 A kind of service state monitoring method and device
CN108270639A (en) * 2017-02-13 2018-07-10 广州市动景计算机科技有限公司 The method, apparatus and system of business interface monitoring
CN107832163A (en) * 2017-11-29 2018-03-23 努比亚技术有限公司 A kind of buffering updating method, server and computer-readable recording medium
CN109525654A (en) * 2018-11-02 2019-03-26 北京奇艺世纪科技有限公司 A kind of data acquisition, sending method, device, client and server
CN110134528A (en) * 2019-04-15 2019-08-16 平安普惠企业管理有限公司 Interface message storage call method, device and the terminal device of micro services frame

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113760398A (en) * 2020-09-29 2021-12-07 北京沃东天骏信息技术有限公司 Interface calling method, server, system and storage medium
CN112860399A (en) * 2021-02-03 2021-05-28 科东(广州)软件科技有限公司 Network port state detection method, device, equipment and storage medium of industrial server
CN112860399B (en) * 2021-02-03 2022-03-25 科东(广州)软件科技有限公司 Network port state detection method, device, equipment and storage medium of industrial server

Similar Documents

Publication Publication Date Title
US8707386B2 (en) Policy processing system, method, and program
CN100417081C (en) Method, system for checking and repairing a network configuration
JP4650203B2 (en) Information system and management computer
US20130191516A1 (en) Automated configuration error detection and prevention
US7127722B2 (en) Method and apparatus for avoiding multiple processing of the same IPMI system event
JP2004227359A (en) Operation management method for storage system based on policy
US11706080B2 (en) Providing dynamic serviceability for software-defined data centers
CN109299064B (en) Database monitoring method and terminal equipment
US11582083B2 (en) Multi-tenant event sourcing and audit logging in a cloud-based computing infrastructure
US9514176B2 (en) Database update notification method
CN107453932B (en) Distributed storage system management method and device
CN110727555A (en) Service interface management method, device, medium and computer equipment
US7801989B2 (en) Dynamically updating subcomponents in a tiered remote monitoring system
EP2006789A2 (en) Storage unit information control system for user terminal
KR101999458B1 (en) Rule-based action triggering in a provider network
US11500663B1 (en) Predictive virtual machine launch-based capacity management
CN111342986B (en) Distributed node management method and device, distributed system and storage medium
US9032014B2 (en) Diagnostics agents for managed computing solutions hosted in adaptive environments
US20120016972A1 (en) Snmp agent device and configuration undo method
US11461461B2 (en) Systems and methods for managing and securing computer systems
CN113297424A (en) Video plan configuration and video content query method and device
US20060136522A1 (en) Computer system, storage management program call-up method, and storage system
US8468121B1 (en) Resolving resource time intervals in a distributed system
US20120136979A1 (en) Method for managing distinct ip addresses in a system and related system
US20030200309A1 (en) Transmission network system

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