CN114826904A - Service dependence information obtaining method and device and electronic equipment - Google Patents

Service dependence information obtaining method and device and electronic equipment Download PDF

Info

Publication number
CN114826904A
CN114826904A CN202110083469.6A CN202110083469A CN114826904A CN 114826904 A CN114826904 A CN 114826904A CN 202110083469 A CN202110083469 A CN 202110083469A CN 114826904 A CN114826904 A CN 114826904A
Authority
CN
China
Prior art keywords
service
information
target
network connection
obtaining
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
CN202110083469.6A
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.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network 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 Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202110083469.6A priority Critical patent/CN114826904A/en
Publication of CN114826904A publication Critical patent/CN114826904A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method, a device and electronic equipment for obtaining service dependence information, belonging to the technical field of computers, wherein the method comprises the following steps: acquiring identification information of a target service to be detected; acquiring target network connection information according to the identification information, wherein the target network connection information comprises corresponding network connection information when the target service accesses a network object; and obtaining the service dependence information of the target service according to the target network connection information. The method enables the electronic equipment to conveniently and accurately obtain the service dependence information of the target service.

Description

Service dependence information obtaining method and device and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for obtaining service dependency information, an electronic device, and a computer-readable storage medium.
Background
In an existing software project, especially a software project with a complex architecture, a plurality of services (services) with dependency relationship among each other often need to be completed through team cooperation; in addition, in order to save manpower and material resources, a service in a software project may also rely on one or more third-party services, i.e. a third-party library, where a service is a computer program for supporting various functions, and generally a service may be understood as a process, which is usually run in an Operating System (OS), for example, a Linux system, a Windows system, or other system backgrounds, and waits for connection requests of other services by monitoring a certain Port (Port) to provide the functions supported by the service to the outside.
As the architecture of the existing software project tends to be more and more complicated, the number of services in the software project is more and more, and the dependency relationship among the services is more and more complicated. In the process of implementing the application, the inventor finds that when the service of the service depends on information, a large amount of time is generally consumed by manpower to arrange the information into a document, and the accuracy is relatively low because the manual arrangement possibly has carelessness; on the other hand, when a certain service dependency is changed, the existing method also needs to manually update the corresponding record in the document in time and update the corresponding configuration information of the dependency in the service, and the steps are complicated.
Disclosure of Invention
An object of the embodiments of the present disclosure is to provide a new technical solution for obtaining service dependency information.
According to a first aspect of the present disclosure, there is provided a service dependency information obtaining method, the method including:
acquiring identification information of a target service to be detected;
acquiring target network connection information according to the identification information, wherein the target network connection information comprises corresponding network connection information when the target service accesses a network object;
and obtaining the service dependence information of the target service according to the target network connection information.
Optionally, the identification information includes a process identification of the target service;
the obtaining of the target network connection information according to the identification information includes:
and monitoring a network connection request initiated when the target service accesses a network object according to the process identification so as to obtain the target network connection information.
Optionally, the obtaining service dependency information of the target service according to the target network connection information includes:
obtaining address data of a network object accessed by the target service from the target network connection information;
and obtaining the service dependence information according to the address data.
Optionally, the obtaining the service dependency information according to the address data includes:
and obtaining the service dependence information from a preset corresponding relation between the service and the address data according to the address data.
Optionally, the target network connection information includes at least one of:
the target service accesses the corresponding network connection information of the network object within the preset time length;
and the target service accesses the corresponding network connection information when accessing the network object in a function test period.
Optionally, the network connection request comprises a transmission control protocol based request.
Optionally, after obtaining the service dependency information, the method further comprises:
acquiring the update information of the service in the service dependence information;
and updating the configuration information corresponding to the service dependence in the target service according to the updating information.
According to a second aspect of the present disclosure, there is provided a service dependency information obtaining apparatus including:
the identification information acquisition module is used for acquiring identification information of a target service to be detected;
a network connection information obtaining module, configured to obtain target network connection information according to the identification information, where the target network connection information includes corresponding network connection information when the target service accesses a network object;
and the service dependence information obtaining module is used for obtaining the service dependence information of the target service according to the target network connection information.
According to a third aspect of the present disclosure, there is also provided an electronic device, including the apparatus of the second aspect; alternatively, the first and second liquid crystal display panels may be,
the electronic device includes:
a memory for storing executable instructions;
a processor configured to execute the electronic device to perform the method according to any one of the first aspect.
According to a fourth aspect of the present disclosure, there is also provided a computer-readable storage medium storing a computer program readable and executable by a computer, the computer program being configured to perform the method according to any one of the first aspect when the computer program is read and executed by the computer.
According to the embodiment of the disclosure, when the service dependency information of the target service to be detected needs to be acquired, manual participation is not needed, but in the running process of the target service, the electronic device acquires the corresponding network connection information when the target service accesses the network object according to the identification information of the target service so as to acquire the target network connection information, and then, the service dependency information of the target service can be conveniently and accurately acquired according to the target network connection information.
Other features of the present disclosure and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which proceeds with reference to the accompanying drawings.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a schematic view of an application scenario of a service dependency information obtaining method provided by an embodiment of the present disclosure.
Fig. 2 is a schematic block diagram showing a hardware configuration that can be used to implement the service dependency information obtaining method of an embodiment.
Fig. 3 is a flowchart illustrating a service dependency information obtaining method according to an embodiment of the present disclosure.
Fig. 4 is a schematic diagram of a process for obtaining target network connection information according to an embodiment of the present disclosure.
Fig. 5 is a schematic block diagram of a service dependency information obtaining apparatus provided by an embodiment of the present disclosure.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the disclosure, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, further discussion thereof is not required in subsequent figures.
For solving the problems of complicated steps and low accuracy that may exist when service dependency information of a service in a software project is acquired in the prior art, an embodiment of the present disclosure provides a method for acquiring service dependency information, please refer to fig. 1, which is an application scenario diagram of the method for acquiring service dependency information provided by the embodiment of the present disclosure.
As shown in fig. 1, in specific implementation, when service dependency information of a target service to be detected needs to be acquired, a user may send identification information of the target service to an electronic device 1000 through a terminal device used by the user, or the electronic device 1000 may acquire the identification information from a preset location, for example, a data table in which the identification information of the target service to be detected is stored in a database; then, the electronic device 1000 obtains the target network connection information corresponding to the target service according to the identification information, and according to the target network connection information, the electronic device 1000 can conveniently and accurately obtain the service dependency information of the target service.
The identification information may be a process identification, i.e., PID, of the target service, and the electronic device 1000 may obtain the target network connection information by executing a "tcpconnect-PPID" command, and further obtain the service dependency information of the target service according to the target network connection information.
It should be noted that "tcpconnect" is a dynamic tracking tool for performance monitoring in the Linux system, i.e. a command in bcc-tools, and is only an example here; in a specific implementation, in a Linux system or other operating systems, other tools or instructions may also be used to obtain the target network connection information, which is not limited herein.
< hardware configuration >
Fig. 2 is a schematic block diagram showing a hardware configuration that can be used to implement the service dependency information obtaining method of an embodiment.
As shown in fig. 2, the electronic device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, and an input device 1600. The processor 1100 may be, for example, a central processing unit CPU or the like. The memory 1200 includes, for example, a ROM (read only memory), a RAM (random access memory), a nonvolatile memory such as a hard disk, and the like. The interface device 1300 includes, for example, a USB interface, a serial interface, and the like. Communication device 1400 is capable of wired or wireless communication, for example. The display device 1500 is, for example, a liquid crystal display panel. The input device 1600 may include, for example, a touch screen, a keyboard, and the like.
In this embodiment, the electronic device 1000 may be used to participate in implementing a method according to any embodiment of the present disclosure.
The electronic device 1000 may be a server, for example, a blade server, a rack server, or the like, and the server 1100 may also be a server cluster deployed in a cloud, which is not limited herein. Of course, with the continuous advancement of the technology, the electronic device 1000 may also be a terminal device, for example, a smart phone, a portable computer, a desktop computer, a tablet computer, or the like, and the terminal device may obtain corresponding information in each step of the method from a server in an interactive manner to execute the corresponding step.
In any of the embodiments of the present disclosure, the memory 1200 of the electronic device 1000 is configured to store instructions for controlling the processor 1100 to operate so as to support implementation of a method according to any of the embodiments of the present disclosure. The skilled person can design the instructions according to the disclosed solution of the present disclosure. How the instructions control the operation of the processor is well known in the art and will not be described in detail herein.
It should be understood by those skilled in the art that although a plurality of means of the electronic device 1000 are shown in fig. 2, the electronic device 1000 of the embodiments of the present disclosure may refer to only some of the means therein, for example, only the processor 1100 and the memory 1200. This is well known in the art and will not be described in further detail herein.
< method examples >
Please refer to fig. 3, which is a flowchart illustrating a method for obtaining service dependency information according to an embodiment of the disclosure. The method for obtaining service dependency information provided in this embodiment may be applied to an electronic device, for example, the electronic device 1000 shown in fig. 2.
As shown in FIG. 3, the method may include the following steps S3100-S3300, described in detail below.
Step S3100, acquiring identification information of the target service to be detected.
In this embodiment, the target service may be one or more services in the software project, for example, the target service may be a service providing a login function, a service providing a payment function, and the like.
The identification information is information for uniquely identifying the target service, and may be, for example, one or more of a name of the target service, address data of the target service, a current process identifier of the service, and the like, where the address data of the target service generally includes an Internet Protocol (IP) address and a Port (Port).
The internet protocol is a network layer protocol in a transmission control protocol/internet protocol (TCP/IP) system. Specifically, the internetworking protocol is used to improve the scalability of the network: on one hand, the method solves the problem of network interconnection and realizes interconnection and intercommunication of large-scale and heterogeneous networks; and secondly, the coupling relation between the top network application and the bottom network technology is divided, so that the independent development of the top network application and the bottom network technology is facilitated. The internet protocol generally provides a connectionless, unreliable, and best-effort packet transfer service for electronic devices based on end-to-end design principles.
Specifically, when the electronic device implementing the method is a server, a user can connect to the server through a terminal device and send identification information of a target service to be detected to the server; or, the user may pre-configure the identification information of the target service to be detected at a preset position, and the server obtains the identification information from the preset position in response to a preset trigger condition, where the preset position may be in a certain data table of the database server, for example, the preset trigger condition may be receiving instruction information sent by the user to instruct to start executing the method, and this is not particularly limited here.
Step S3200, obtaining target network connection information according to the identification information, where the target network connection information includes network connection information corresponding to the target service when accessing the network object.
The network object refers to a physical object or a virtual object in the network, for example, the physical object may be a server or a terminal device, and the virtual object may be another service in the server.
In this embodiment, in order to conveniently and accurately obtain the service dependency information of the target service, specifically, according to the identification information of the target service, the information is obtained by monitoring a network connection request initiated when the target service accesses the network object in the operation process, and according to the information, the information of the service on which the target service depends is obtained.
Specifically, in a software project, when performing communication between services, for example, when performing communication based on a hypertext transfer protocol (HTTP), from a bottom layer, an initiator generally initiates a network connection request based on a Transmission Control Protocol (TCP), and performs data transmission after the network connection is successfully established, so that in a process of running a target service, all network-out requests initiated by the target service in the running process can be obtained by monitoring and filtering a network packet in an electronic device, for example, a server, run by the target service, and further, the target network connection information described in this embodiment is obtained.
It should be noted that, in practice, a service may generally include a plurality of functions, and the frequency of executing different functions during the operation of the service is often different, so in order to obtain the service-dependent information of a service as accurately and comprehensively as possible, in this embodiment, the target network connection information corresponding to the target service may include at least one of the following: the target service accesses the corresponding network connection information of the network object within the preset time length; and the target service accesses the corresponding network connection information when accessing the network object in a function test period.
That is, after the target service is deployed in the test environment or the production environment, in a server operated by the target service within a preset time period, for example, within one natural month, all network connection information corresponding to the target service accessing the network object within the one natural month may be monitored and obtained to obtain the target network connection information.
In addition, in consideration of timeliness, in order to quickly and accurately obtain all service dependency information of the target service, after the target service is deployed in the test environment, the tester may execute a complete cycle of functional test on the target service, and in the process of executing the functional test by the tester, in the server operated by the target service, the corresponding network connection information of the target service when accessing the network object in the test cycle is monitored and obtained.
Of course, in specific implementation, the target network connection information may also be network connection information corresponding to the target service obtained in other periods when accessing the network object, and is not described herein again.
In one embodiment, the identification information of the target service comprises a process identification of the target service; then, the obtaining the target network connection information according to the identification information includes: and monitoring the network connection request of the target service in the running process according to the process identification so as to obtain the target network connection information.
In this embodiment, how to monitor a network connection request of a target service in an operating process is described by taking the target service as a service operating in a Linux system as an example.
In particular, in the Linux system, the network connection request in the running process can be monitored through an ebpf-based tool component, for example, bcc-Tools, wherein the ebpf originates from a network filtering framework bpf (berkeleypacketfilter), and in the Linux system, the ebpf can be used in the fields of kernel tracking, performance monitoring and the like.
Please refer to fig. 4, which is a schematic diagram illustrating a process for obtaining target network connection information according to an embodiment of the present disclosure. As shown in fig. 4, when the process identifier of the target service is "48532", the network connection request of the target service during the running process may be obtained through a command "tcpconnect" in the bcc-Tools tool component for tracking and filtering the network packet, that is, the network connection request of the target service during the running process may be obtained by executing the command "tcpconnect-P48532".
It should be noted that the information output by the "tcpconnect" command generally includes "PID", "COMM", "IP", "SADDR", "DADDR", "DPORT" fields, where PID is a process number of a service initiating a network connection request; COMM is a command that initiates a request; IP is used to indicate the version of the internet protocol on which the initiated network connection request is based, e.g., 4 characterizes IPv 4; SADDR is the IP address of the service that initiated the request, DADDR is the network address of the network object that the request accesses, DPORT is the port of the network object that the request accesses.
In specific implementation, when the identification information of the target service is other information, for example, the name of the target service, the target network connection information of the target service object may also be obtained by indirectly obtaining the process identification of the target service, for example, when the name of the target service is "service001", the process identification of the target service object may be obtained through a "ps-ef | grep" service001"| grep-v" grep "| awk '{ private $2 }'" command, where relevant descriptions about "ps", "grep", and "awk" are provided, and are not described herein again because detailed descriptions exist in the prior art.
In addition, in this embodiment, the network connection request includes a request based on a transmission control protocol, and in a specific implementation, the network connection request may also be a request based on a transmission control protocol, for example, a request based on a hypertext transfer protocol.
After step S3200, step S3300 is executed to obtain the service dependency information of the target service according to the target network connection information.
After the target network connection information is obtained through the steps, the service dependence information of the target service can be obtained according to the target network connection information.
Specifically, the obtaining service dependency information of the target service according to the target network connection information includes: obtaining address data of a network object accessed by the target service from the target network connection information; and obtaining the service dependence information according to the address data.
In the present embodiment, the address data is generally composed of an IP address and a port, and for example, the address data may be composed of "DADDR" and "DPORT".
Wherein the obtaining the service dependency information according to the address data includes: and acquiring the service dependence information from a preset corresponding relation between the service and the address data according to the address data.
In specific implementation, the preset correspondence between the service and the address data may be obtained from a database server by the electronic device, or the correspondence may be stored in a file in advance, which is not limited herein.
That is, in practice, since the correspondence between the existing service and the address data in the software project can be generally obtained in advance, after the address data of the target service accessing the network object at the time of running is obtained through steps S2100 and S2200, the address data can be used as an index, and the correspondence is queried to obtain information of another service on which the target service depends, that is, service dependency information.
It should be noted that, after obtaining the service dependency information of the target service through the above processing, in order to save manpower and material resources, the method provided in this embodiment further includes: acquiring the update information of the service in the service dependence information; and updating the configuration information corresponding to the service dependence in the target service according to the updating information.
In summary, in the method of this embodiment, when the service dependency information of the target service to be detected needs to be acquired, instead of manual participation, in the running process of the target service, the electronic device acquires the information of the network address accessed by the target service according to the identification information of the target service to acquire the target network connection information, and then, according to the target network connection information, the service dependency information of the target service can be conveniently and accurately acquired. The method can save manpower and material resources, is convenient for the user to update and deploy the target service in time, and improves the user experience.
< apparatus embodiment >
Corresponding to the above embodiment, in this embodiment, a service dependency information obtaining apparatus is also provided. Please refer to fig. 5, which is a schematic block diagram of a service dependency information obtaining apparatus provided in an embodiment of the present disclosure. As shown in fig. 5, the apparatus 5000 may include an identification information obtaining module 5100, a network connection information obtaining module 5200 and a service dependency information obtaining module 5300.
The identification information obtaining module 5100 is configured to obtain identification information of a target service to be detected.
The network connection information obtaining module 5200 is configured to obtain target network connection information according to the identification information, where the target network connection information includes information of a network address accessed by the target service.
In one embodiment, the identification information includes a process identification of the target service; the network connection information obtaining module 5200, when obtaining the target network connection information according to the identification information, is specifically configured to: and monitoring a network connection request initiated when the target service accesses a network object according to the process identification so as to obtain the target network connection information.
The service dependency information obtaining module 5300 is configured to obtain the service dependency information of the target service according to the target network connection information.
In one embodiment, the service dependency information acquisition module 5300 includes:
an address data obtaining submodule, configured to obtain address data of a network object accessed by the target service from the target network connection information;
and the service dependence information obtaining submodule is used for obtaining the service dependence information according to the address data.
In this embodiment, when obtaining the service dependency information according to the address data, the service dependency information obtaining sub-module may be configured to: and acquiring the service dependence information from a preset corresponding relation between the service and the address data according to the address data.
In one embodiment, after obtaining the service dependency information, the apparatus 5000 further includes a configuration information update module configured to: acquiring the update information of the service in the service dependence information; and updating the configuration information corresponding to the service dependence in the target service according to the updating information.
< apparatus embodiment >
Corresponding to the above embodiments, in this embodiment, an electronic device is further provided, which may include the service dependency information obtaining apparatus 6000 according to any embodiment of the present disclosure, and is configured to implement the service dependency information obtaining method according to any embodiment of the present disclosure.
As shown in fig. 6, the electronic device 6000 may further include a processor 6200 and a memory 6100, the memory 6100 for storing executable instructions; the processor 6200 is configured to operate the electronic device according to control of the instruction to perform a service dependent information obtaining method according to any embodiment of the present disclosure.
The above modules of the apparatus 5000 may be implemented by the processor 6200 executing the instructions to perform a service dependency information obtaining method according to any embodiment of the present disclosure.
< media examples >
In this embodiment, a computer-readable storage medium is further provided, which stores a computer program that can be read and executed by a computer, and when the computer program is read and executed by the computer, the computer program is configured to perform the method according to any of the above embodiments of the present disclosure.
The present disclosure may be systems, methods, and/or computer program products. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a Static Random Access Memory (SRAM), a portable compact disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as punch cards or in-groove raised structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or to an external computer or external storage device via a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present disclosure may be assembler instructions, Instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry that can execute the computer-readable program instructions implements aspects of the present disclosure by utilizing the state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present disclosure are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer-readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer-readable program instructions may also be stored in a computer-readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer-readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present disclosure, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present disclosure is defined by the appended claims.

Claims (10)

1. A method for obtaining service dependency information, comprising:
acquiring identification information of a target service to be detected;
acquiring target network connection information according to the identification information, wherein the target network connection information comprises corresponding network connection information when the target service accesses a network object;
and obtaining the service dependence information of the target service according to the target network connection information.
2. The method of claim 1, wherein the identification information comprises a process identification of the target service;
the obtaining of the target network connection information according to the identification information includes:
and monitoring a network connection request initiated when the target service accesses a network object according to the process identification so as to obtain the target network connection information.
3. The method of claim 1, wherein obtaining the service dependency information of the target service according to the target network connection information comprises:
obtaining address data of a network object accessed by the target service from the target network connection information;
and obtaining the service dependence information according to the address data.
4. The method of claim 3, wherein obtaining the service dependency information according to the address data comprises:
and acquiring the service dependence information from a preset corresponding relation between the service and the address data according to the address data.
5. The method of claim 1, wherein the target network connection information comprises at least one of:
the target service accesses the corresponding network connection information of the network object within the preset time length;
and the target service accesses the corresponding network connection information when accessing the network object in a function test period.
6. The method of claim 2, wherein the network connection request comprises a transmission control protocol based request.
7. The method of claim 1, wherein after obtaining the service dependency information, the method further comprises:
acquiring the update information of the service in the service dependence information;
and updating the configuration information corresponding to the service dependence in the target service according to the updating information.
8. A service dependency information acquisition apparatus, comprising:
the identification information acquisition module is used for acquiring identification information of a target service to be detected;
a network connection information obtaining module, configured to obtain target network connection information according to the identification information, where the target network connection information includes corresponding network connection information when the target service accesses a network object;
and the service dependence information obtaining module is used for obtaining the service dependence information of the target service according to the target network connection information.
9. An electronic device comprising the apparatus of claim 8; alternatively, the first and second electrodes may be,
the electronic device includes:
a memory for storing executable instructions;
a processor configured to execute the electronic device to perform the method according to any one of claims 1 to 7 according to the control of the instruction.
10. A computer-readable storage medium, in which a computer program is stored which is readable and executable by a computer, and which, when read by the computer, is adapted to perform the method according to any one of claims 1 to 7.
CN202110083469.6A 2021-01-21 2021-01-21 Service dependence information obtaining method and device and electronic equipment Pending CN114826904A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110083469.6A CN114826904A (en) 2021-01-21 2021-01-21 Service dependence information obtaining method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110083469.6A CN114826904A (en) 2021-01-21 2021-01-21 Service dependence information obtaining method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN114826904A true CN114826904A (en) 2022-07-29

Family

ID=82524523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110083469.6A Pending CN114826904A (en) 2021-01-21 2021-01-21 Service dependence information obtaining method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114826904A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090168699A1 (en) * 2007-12-28 2009-07-02 Shih-Chieh Lo Method for establishing a network connection and network device thereof
CN102567055A (en) * 2010-12-23 2012-07-11 微软公司 Satisfying application dependencies
CN109451497A (en) * 2018-11-23 2019-03-08 Oppo广东移动通信有限公司 Wireless network connecting method and device, electronic equipment, storage medium
CN111597235A (en) * 2020-05-21 2020-08-28 北京学之途网络科技有限公司 Data processing method and device and electronic equipment
CN111831317A (en) * 2020-06-02 2020-10-27 北京百度网讯科技有限公司 Method and device for acquiring dependency relationship between services, electronic equipment and storage medium
CN112235352A (en) * 2020-09-17 2021-01-15 浙江数链科技有限公司 Service dependence combing method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090168699A1 (en) * 2007-12-28 2009-07-02 Shih-Chieh Lo Method for establishing a network connection and network device thereof
CN102567055A (en) * 2010-12-23 2012-07-11 微软公司 Satisfying application dependencies
CN109451497A (en) * 2018-11-23 2019-03-08 Oppo广东移动通信有限公司 Wireless network connecting method and device, electronic equipment, storage medium
CN111597235A (en) * 2020-05-21 2020-08-28 北京学之途网络科技有限公司 Data processing method and device and electronic equipment
CN111831317A (en) * 2020-06-02 2020-10-27 北京百度网讯科技有限公司 Method and device for acquiring dependency relationship between services, electronic equipment and storage medium
CN112235352A (en) * 2020-09-17 2021-01-15 浙江数链科技有限公司 Service dependence combing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
(美)大卫•卡拉维拉,(意)洛伦佐•丰塔纳著;范彬,狄卫华译: "《Linux内核观测技术BPF》", 31 August 2020, 北京:机械工业出版社, pages: 98 - 100 *

Similar Documents

Publication Publication Date Title
CN110442524B (en) Method and device for testing web service interface with authentication authorization
US10652083B1 (en) System and method for a self service portal and automation for internally hosted virtual server resources
US9584364B2 (en) Reporting performance capabilities of a computer resource service
US10503341B2 (en) Usability analysis for user interface based systems
US20150033134A1 (en) Visually Depicting Cloud Resource Utilization During Execution Of An Application
WO2021023149A1 (en) Method and apparatus for dynamically returning message
CN111913884A (en) Distributed test method, device, equipment, system and readable storage medium
CN112925652A (en) Application resource deployment method, device, electronic equipment and medium
CN112015468A (en) Interface document processing method and device, electronic equipment and storage medium
CN106790171B (en) Session control method, device, computer readable storage medium and equipment
CN111615171B (en) Access method and device of wireless local area network
CN110597580B (en) Screen capturing method and device
CN114826904A (en) Service dependence information obtaining method and device and electronic equipment
TW201445446A (en) System and method of boot configuration of cabinet server
CN110858175A (en) Test control method, master control equipment, controlled equipment and test system
EP3594823A1 (en) Information display method, terminal and server
CN113760727A (en) Interface regression testing method and device
CN113535020B (en) Method, apparatus, device, medium and product for generating application icons
CN111506499B (en) Method and device for detecting availability of parameters in applet and electronic equipment
CN111176982B (en) Test interface generation method and device
CN114706772A (en) Installation environment detection method, device, equipment and storage medium
CN112491828A (en) Message analysis method, device, server and storage medium
CN112966201A (en) Object processing method, device, electronic equipment and storage medium
US20240168901A1 (en) Systems and methods for managing information across multiple applications
US9298597B2 (en) Automated testing of websites based on mode

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