Operation and maintenance method and device of business platform, operation and maintenance system, equipment and storage medium
By responding to the alarm information in the business platform and determining the target start -stop instructions, the service start -stop processing is automatically carried out, and the problem of high efficiency of artificial operation in existing technologies has been solved, and efficient alarm information processing and resource saving are achieved.
Patent Information
- Application Number
- CN202411401528.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-08
- Publication Date
- 2025-01-24
AI Technical Summary
After the service node alerts, the existing technology requires staff to manually log in to the server and enter commands through shell scripts to start and stop the service, resulting in high labor costs, high resource consumption and low efficiency.
Provide a business platform operation and maintenance method, determine the target start -stop instructions by responding to the alarm information, and start and stop the target service based on the start -stop process of the packaging. There is no need to log in to the server to reduce resource consumption.
The efficiency of the alarm information processing has been improved, the cost and resource consumption are reduced, and the automatic verification of the firewall configuration has been achieved.
Smart Images

Figure CN119363559A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to an operation and maintenance method, device, operation and maintenance system, equipment and storage medium of a business platform. Background Art
[0002] After a service node in the network issues an alarm, a staff member is generally required to log in to the corresponding server to view the alarm information and manually enter commands to start or stop the service to handle the alarm information.
[0003] The commands for starting and stopping services generally rely on interpreted scripting languages (shell), which requires staff to be familiar with interpreted scripting languages, resulting in high labor costs. At the same time, manual login to the corresponding server to manually start and stop services requires reliance on command files, which consumes a large proportion of server network link resources and memory resources. Summary of the invention
[0004] The present application provides an operation and maintenance method, device, operation and maintenance system, equipment and storage medium of a business platform to improve the processing efficiency of alarm information.
[0005] In a first aspect, the present application provides an operation and maintenance method of a business platform, comprising:
[0006] In response to the alarm information of the target service in the business platform, determine the target start and stop instructions; wherein different start and stop instructions are encapsulated with corresponding start and stop processes;
[0007] According to the target start-stop process corresponding to the target start-stop instruction, start-stop processing is performed on the target service;
[0008] If the target service is in the startup state after the start / stop process is completed, it is verified whether the firewall configuration of the target service is successful in response to the input IP address.
[0009] In an achievable manner, the verifying whether the firewall configuration of the target service is successful in response to the input IP address includes:
[0010] Determine a first connectivity result between a first IP address to be tested and a target IP address of the target service; wherein the first IP address to be tested is an IP address configured by a firewall of the target service;
[0011] If the first connectivity result indicates a connectivity failure, it indicates that the firewall configuration of the target service has failed;
[0012] If the first connectivity result indicates successful connectivity, determine whether the firewall configuration of the target service is successful based on the second connectivity result between the second IP address to be tested and the target IP address; wherein the second IP address to be tested is not an IP address configured for the firewall of the target service.
[0013] In an implementable manner, determining whether the firewall configuration of the target service is successful based on the second connectivity result between the second IP address to be tested and the target IP address includes:
[0014] If the second connection result indicates that the connection is successful, it indicates that the firewall configuration of the target service has failed;
[0015] If the second connection result indicates that the connection fails, it indicates that the firewall configuration of the target service is successful.
[0016] In one achievable manner, the target start / stop instruction includes one of a restart instruction, a start instruction, and a stop instruction.
[0017] In one possible implementation, the method further includes:
[0018] Obtaining a query request; wherein the query request indicates a target database in the business platform;
[0019] Querying the data in the target database to obtain query results;
[0020] In response to the download request for the query result, the query result is downloaded.
[0021] In one achievable manner, querying the data in the target database to obtain query results includes:
[0022] Obtaining target account information of the query request sender, and determining whether the account corresponding to the target account information has query authority to query the data in the target database;
[0023] If the account corresponding to the target account information of the account information has the query permission, query the data in the target database to obtain the query result;
[0024] If the account corresponding to the target account information of the account information does not have the query authority, information indicating a query error is fed back.
[0025] In a second aspect, the present application provides an operation and maintenance device for a business platform, including: a start-stop instruction determination module, which is used to determine a target start-stop instruction in response to an alarm message of a target service in the business platform; wherein different start-stop instructions are encapsulated with corresponding start-stop processes;
[0026] A start-stop processing module, used to start and stop the target service according to the target start-stop process corresponding to the target start-stop instruction;
[0027] The firewall configuration verification module is used to verify whether the firewall configuration of the target service is successful in response to the input IP address if the target service is in the startup state after the start and stop processing is completed.
[0028] In a third aspect, the present application provides an operation and maintenance system, wherein the operation and maintenance system is communicatively connected to a business platform, wherein the business platform includes multiple services, and wherein the operation and maintenance system includes:
[0029] An alarm module, the alarm module is connected to the services in the business platform for obtaining alarm information of the services;
[0030] A start-stop module, wherein the start-stop module is connected to each service in the business platform through communication, the start-stop module is provided with at least one start-stop unit, each start-stop unit is encapsulated with a corresponding start-stop instruction, and the start-stop module performs start-stop processing on each service through the start-stop instruction of the start-stop unit;
[0031] A firewall verification module, which is connected to each service in the business platform for verifying whether each service in the business platform is connected;
[0032] The data query module is connected to the business platform for querying the data in the business platform.
[0033] In a fourth aspect, the present application provides an electronic device, comprising: a processor and a memory; the memory is used to store instructions; the processor is used to execute the instructions in the memory, so that the electronic device executes the method described in the first aspect.
[0034] In a fifth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the method described in the first aspect.
[0035] In a sixth aspect, the present application provides a computer program product, including a computer program, which implements the method described in the first aspect when executed by a processor.
[0036] The operation and maintenance method, device, operation and maintenance system, equipment and storage medium of the business platform provided by the present application, by setting the start and stop instructions, different start and stop instructions encapsulate the start and stop process, so that after obtaining the alarm information, by selecting the target start and stop instruction, the target service is started and stopped by the target start and stop process encapsulated by the target start and stop instruction. This process does not require logging into the server, and consumes a small proportion of the server's network link resources and memory resources; and there is no need to set commands through the shell language, which improves the efficiency of alarm information processing and reduces labor costs; at the same time, after the service is started, the IP address can be entered to verify whether the firewall configuration is successful. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0038] Figure 1 This is an implementation scenario diagram shown for an exemplary embodiment;
[0039] Figure 2 The diagram is a schematic diagram of the interaction between the operation and maintenance system and the business platform shown in an exemplary embodiment;
[0040] Figure 3 This is a schematic diagram of the structure of an operation and maintenance system shown in an exemplary embodiment;
[0041] Figure 4 This is a flow chart of an operation and maintenance method of a business platform shown as an exemplary embodiment;
[0042] Figure 5 This is a structural diagram of an operation and maintenance device of a business platform shown as an exemplary embodiment;
[0043] Figure 6 The present invention is a block diagram of an electronic device showing an exemplary embodiment.
[0044] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0045] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0046] It should be noted that the alarm information, queried data, account information, etc. (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data understood and authorized by the relevant users or fully authorized by all parties, and the collection, use, processing, transmission, provision, disclosure and application of the relevant data comply with the laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and comply with the principles of legality, legitimacy and necessity.
[0047] After the service node alarms, the staff needs to log in to the corresponding server to view the alarm information and manually execute commands to start and stop the service. After starting and stopping, the firewall verification process may also be involved, which consumes a large proportion of the server's network link resources and memory resources.
[0048] Moreover, logging into the server to view alarm information and perform firewall verification requires relying on shell scripts (a programming language), which requires personnel to be familiar with the shell script language, and the labor cost is high; there is no graphical interface, and it is not possible to just obtain information. The process of logging into the server each time to perform operations is risky and inefficient.
[0049] This embodiment provides a service platform operation and maintenance method, apparatus, operation and maintenance system, equipment and storage medium to improve the processing efficiency of service alarm information.
[0050] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0051] The operation and maintenance method of the business platform provided in this application can be implemented on any electronic device with data processing capabilities, or it can be the operation and maintenance system of the business platform. It should be noted that the operation and maintenance system of the business platform can be deployed separately on an electronic device in any environment (for example: deployed separately on an edge server in an edge environment), or it can be deployed entirely in a cloud environment, or it can be deployed in a distributed manner in different environments.
[0052] For example, the operation and maintenance system of the business platform can be logically divided into multiple parts, each with different functions. The various parts of the operation and maintenance system of the business platform can be deployed in any two or three of the electronic device (located on the user side, such as the client), the edge environment, and the cloud environment. The edge environment is an environment that includes a collection of edge electronic devices that are close to the electronic devices. The edge electronic devices include: edge servers, edge stations with computing power, etc. The various parts of the operation and maintenance system of the business platform deployed in different environments or devices work together to realize the functions of the data processing platform.
[0053] It should be understood that this application does not restrictively divide which parts of the business platform's operation and maintenance system are deployed in what specific environment. In actual application, it can be adaptively deployed according to the computing power of electronic devices, the resource usage of edge environments and cloud environments, or specific application requirements.
[0054] like Figure 1This is an implementation scenario diagram showing an exemplary embodiment. The operation and maintenance system corresponding to the implementation scenario includes a client 10 and a server 11. The client 10 and the server 11 are connected via network communication.
[0055] In this embodiment, the operation and maintenance system is used to perform operation and maintenance on the business platform.
[0056] The executor of the method of the embodiment of the present application is the server 11, and the client 10 can receive the alarm information of the target service in the business platform. The client 10 sends the alarm information of the target service in the business platform to the server 11 through the network. The server 11 processes the alarm information, obtains the processing result of the alarm information, and can feed back the processing result of the alarm information to the client 10 through the network. The client 10 has a graphic user interface, and the processing result of the alarm information can be displayed on the graphic interface.
[0057] In some embodiments, after receiving the alarm information of the target service in the business platform, the server 11 responds to the alarm information of the target service in the business platform and determines the target start and stop instructions; wherein different start and stop instructions are encapsulated with corresponding start and stop processes; according to the target start and stop process corresponding to the target start and stop instructions, the target service is started and stopped; if the target service is in the startup state after the start and stop processing is completed, it is verified whether the firewall configuration of the target service is successful in response to the input IP address.
[0058] It is understandable that the operation and maintenance device of the business platform can be set up Figure 1 In the server 11, but the example shown in this embodiment Figure 1 The implementation environment shown is only exemplary. In other embodiments, the operation and maintenance method of the business platform can also be applied to other implementation environments, and the operation and maintenance device of the business platform can also be set in other structures in other implementation environments. No specific limitations are made here.
[0059] In this embodiment, the client 10 is an electronic device on the user side, which can be a wired terminal with a visualization structure or a wireless terminal. In other embodiments, the terminal can be an electronic device with a visualization structure such as a mobile phone, a computer, a tablet, and a vehicle-mounted device.
[0060] The server 11 can be an edge environment and a cloud environment, such as a physical server, a server cluster, and a cloud server, etc., and no specific limitations are made here.
[0061] It is understandable that the operation and maintenance device of the business platform can be set up Figure 1 In the server 11, but the example shown in this embodiment Figure 1The implementation environment shown is only exemplary. In other embodiments, the operation and maintenance method of the business platform can also be applied to other implementation environments, and the operation and maintenance device of the business platform can also be set in other structures in other implementation environments. No specific limitations are made here.
[0062] Figure 2 The diagram is a schematic diagram of the interaction between an operation and maintenance system and a business platform shown in an exemplary embodiment. The operation and maintenance system is used to perform operation and maintenance on the business platform, and the operation and maintenance system is communicatively connected with the business platform.
[0063] The business platform may include multiple services, and the business platform is used to execute corresponding businesses. The operation and maintenance system can locate the data in the business platform, perform data query, and can also start and stop the services in the business platform.
[0064] like Figure 3 This is a structural diagram of an operation and maintenance system shown in an exemplary embodiment. The operation and maintenance system includes an alarm module 310, which is connected to each service in the business platform for obtaining alarm information of each service.
[0065] In some embodiments, when alarm information appears in the business platform, the alarm module can call the alarm information and display the alarm information on the visual interface of the operation and maintenance system.
[0066] It can be understood that the alarm information corresponds to the service that issues the alarm information, and thus the service corresponding to the alarm information can be determined through the operation and maintenance system.
[0067] In some embodiments, the alarm module may have a corresponding alarm interface in the operation and maintenance system, which can display alarm information. By clicking on each alarm information, you can enter the detailed interface of the alarm information and obtain the data corresponding to the alarm information through the detailed interface, such as the service corresponding to the alarm information, alarm time and other data.
[0068] The start-stop module 320 is connected to the communication between each service in the business platform. The start-stop module is provided with at least one start-stop unit. Each start-stop unit encapsulates a corresponding start-stop instruction. The start-stop module starts and stops each service through the start-stop instruction of the start-stop unit.
[0069] In some embodiments, a start-stop unit is provided in the start-stop module, and the start-stop unit is correspondingly encapsulated with a start-stop instruction, and the start-stop instruction can pre-encapsulate the corresponding start-stop process.
[0070] The start-stop module is connected to each service in the business platform, so that each service can be started and stopped through the start-stop unit.
[0071] In some embodiments, the start-stop instructions include restart instructions, start instructions, stop instructions, etc. Different start-stop instructions may be pre-packaged with start-stop processes to start and stop services. For example, the start-stop process corresponding to the restart instruction may include a service stop node and a service start node. The service stop node is used to stop the service, and the service start node is used to start the service. The start-stop process of the restart instruction can first stop the service and then start the service to start and stop the service.
[0072] In some embodiments, the service can be started and stopped by different start and stop units according to demand. In other embodiments, after the alarm module obtains the alarm information, the service corresponding to the alarm information can be started and stopped by different start and stop units in the start and stop module.
[0073] Thus, in some embodiments, the start-stop module may be communicatively connected to the alarm module, or may not be communicatively connected to the alarm module.
[0074] In some embodiments, the start-stop module may have a corresponding start-stop interface in the operation and maintenance system. The start-stop interface has a selectable button corresponding to each start-stop unit. The start-stop interface also has a selectable button corresponding to each service. Through the selectable button corresponding to each service and the selectable button corresponding to each start-stop unit, the start-stop instructions corresponding to different start-stop units can be selected to start and stop the corresponding service.
[0075] In some embodiments, the detailed interface for selecting alarm information of the alarm module may be provided with selectable buttons corresponding to each start-stop unit. At this time, the selectable buttons corresponding to each start-stop unit may be directly selected, and the start-stop processing of the service corresponding to the alarm information may be performed through the start-stop instructions corresponding to different start-stop units.
[0076] The firewall verification module 330 is connected to the communication between each service in the business platform and is used to verify whether each service in the business platform is connected.
[0077] In some embodiments, each service may have a corresponding IP (Internet Protocol) address. The firewall verification module can determine whether the source IP address and the target IP address are connected by setting the source IP address and the target IP address, and can determine whether the firewall configuration of the target IP address is successful.
[0078] In some embodiments, the firewall verification module corresponds to a firewall verification page in the operation and maintenance system, and the source IP address and the target IP address can be entered on the firewall verification page. After the information is entered, the source IP address and the target IP address can be tested to see whether they are connected, and the connection result can be displayed on the firewall verification page.
[0079] In some embodiments, for the connectivity verification between a large amount of IP data, the firewall verification page can receive a file, which contains multiple source IP addresses and target IP addresses. The multiple source IP addresses and target IP addresses in the file test whether each source IP address and target IP address are connected, thereby realizing batch IP data firewall verification.
[0080] The data query module 340 is connected to the business platform for querying data in the business platform.
[0081] In some embodiments, the data query module is in communication with the business platform and can query the data in the business platform. The queried data includes but is not limited to business data, log data, alarm information, etc.
[0082] Through this data query module, you can directly query the data in the business platform and display it in the corresponding visual interface of the operation and maintenance system.
[0083] In some embodiments, the data query module may include a sql (Structured Query Language) query submodule, a work order query submodule and an alarm information query submodule. The sql query submodule may correspond to a sql query page in the operation and maintenance system, and a query request, such as a sql query statement, may be entered in the sql query page to query the data in the database of the business platform.
[0084] In some embodiments, the sql query page can select a service and a database under the service to query the database under the service through a sql query statement.
[0085] The work order query submodule may correspond to a work order query page in the operation and maintenance system. You can enter a time period in the work order query page to determine the work order information processed by the operation and maintenance system on the business platform within the input time period, as well as the processing results corresponding to the work order information. The work order information may include the work order processing time, work order number, work order title, work order type, etc., and no specific restrictions are made here.
[0086] The alarm information query submodule may correspond to an alarm information query page in the operation and maintenance system. By entering the IP address of the service on the alarm information query page, it can be determined whether there is alarm information under the service or whether there is alarm information in the past.
[0087] In this embodiment, the operation and maintenance system is used without logging into the business platform to perform operations. In the data query module of the operation and maintenance system, the background call interface of the operation and maintenance system can be used to asynchronously execute the query business of the data in the business platform and return the query results. The query results can be displayed in the visual interface corresponding to the operating system, and a download function can also be provided.
[0088] In some embodiments, the data query module can also set query permissions for the account. Only when there is query permission for a certain database can the query be performed. Otherwise, information indicating a query error will be fed back, and the account can subsequently apply for authorization.
[0089] In the embodiment of the present application, the operation and maintenance system can realize single or large-scale execution of start and stop tasks and firewall verification tasks with the help of Django (an open source system) platform of Python (a programming language), greatly shortening the waiting time for alarm information processing, and providing an intuitive graphical page to determine alarm data and query data in real time. It can also encapsulate the required sensitive data as a template and save it in the database, and set query permissions to achieve separation of personnel and background data, greatly reducing the risk of data management and control.
[0090] Figure 4 A flowchart of an operation and maintenance method of a business platform is shown as an exemplary embodiment, which is applied to Figure 1 The server 11 in the method is implemented in the operation and maintenance system, such as Figure 4 As shown, the method includes steps S410 to S450, which are described in detail as follows:
[0091] Step S410: In response to the alarm information of the target service in the business platform, determine the target start and stop instructions; wherein different start and stop instructions are encapsulated with corresponding start and stop processes.
[0092] In some embodiments, when an alarm message appears on the business platform, the operation and maintenance system can extract the alarm message and display it on the operation and maintenance system.
[0093] Through the alarm information, a target start-stop instruction for processing the alarm information of the target service can be determined, and the target start-stop instruction is determined in the start-stop module.
[0094] Different start-stop instructions encapsulate corresponding start-stop processes, and the target start-stop instruction can obtain the target start-stop process.
[0095] In some embodiments, the target start-stop instruction includes one of a restart instruction, a start instruction, and a stop instruction.
[0096] The target start and stop instructions can be adaptively determined according to different alarm information and target services. For example, when the alarm information of the target service indicates a business failure and the target service is not needed temporarily, the stop instruction can be used as the target start and stop instruction. If the alarm information of the target service indicates a business failure and the target service needs to be used, the restart instruction can be used as the target start and stop instruction. If the alarm information of the target service indicates that the target service is stopped and the target service needs to be used, the start instruction can be used as the target start and stop instruction. No specific restrictions are made here.
[0097] Step S430: Start and stop the target service according to the target start and stop process corresponding to the target start and stop instruction.
[0098] In some embodiments, after the target start / stop instruction is determined, the target service may be started / stopped through a target start / stop process, thereby processing the alarm information of the target service.
[0099] The target start and stop process is pre-set, so that the corresponding target start and stop instruction can be selected in the operation and maintenance system with one click, and the service start and stop processing can be realized through the target start and stop process encapsulated corresponding to the target start and stop instruction.
[0100] Step S450: If the target service is in the start state after the start and stop processing is completed, verify whether the firewall configuration of the target service is successful in response to the input IP address.
[0101] In some embodiments, the service is processed through a target start-stop process. After the start-stop process is completed, the target service may be in a started state or in a stopped state.
[0102] When the target service is in the startup state, the firewall configuration verification of the target service can be performed. The firewall configuration verification can be implemented in the firewall verification module in the business system.
[0103] In some embodiments, a first connectivity result between a first IP address to be tested and a target IP address of a target service is determined; wherein the first IP address to be tested is an IP address configured for a firewall of the target service; if the first connectivity result indicates a connectivity failure, then it indicates a firewall configuration failure of the target service; if the first connectivity result indicates a connectivity success, then based on a second connectivity result between the second IP address to be tested and the target IP address, it is determined whether the firewall configuration of the target service is successful; wherein the second IP address to be tested is an IP address configured for a firewall of a non-target service.
[0104] In this embodiment, the firewall of the target service is verified, whereby the target IP address is the IP address of the target service and the source IP address is the IP address being tested.
[0105] In some embodiments, the firewall configuration of the target service can be tested by first using the first IP address to be tested as the source IP address. The first IP address to be tested is the IP address configured for the firewall of the target service, that is, the firewall configuration of the target service allows the first IP address to access the target service.
[0106] In some embodiments, if the first connectivity result indicates a connectivity failure, it indicates that the firewall configuration of the target service has failed. Since the first IP address to be tested is the IP address configured for the firewall of the target service, the first IP address to be tested should be able to connect successfully with the target IP address.
[0107] In some embodiments, the number of the first IP addresses to be tested may be multiple.
[0108] In some embodiments, the first connectivity result indicates successful connectivity, which does not necessarily mean that the firewall configuration is successful, and the firewall configuration can also be verified through the second IP address to be tested.
[0109] The second IP address to be tested is an IP address configured by the firewall of a non-target service, that is, the firewall of the target service configures the second IP address to be tested to allow access to the target service.
[0110] In some embodiments, if the second connectivity result indicates successful connectivity, it indicates that the firewall configuration of the target service has failed; if the second connectivity result indicates a failed connectivity, it indicates that the firewall configuration of the target service has succeeded.
[0111] In some embodiments, the number of the first IP address to be tested and the second IP address to be tested can be multiple, and the second IP address to be tested and the first IP address to be tested can be simultaneously tested for connectivity with the target IP address in the firewall configuration verification module to obtain the first connectivity result of each first IP address to be tested and the second connectivity result of each second IP address to be tested.
[0112] In some embodiments, the method further includes: obtaining a query request; wherein the query request indicates a target database in the business platform; querying the data in the target database to obtain query results; and downloading the query results in response to a download request for the query results.
[0113] In some embodiments, data query may be performed in a data query module of the operation and maintenance system.
[0114] In some embodiments, the query request may be one or more of a SQL query, a work order query, and an alarm information query.
[0115] The target database may be a database corresponding to the SQL query of the query request, a database for work order query, and a database for alarm information query.
[0116] The query request can be used to query the data in the target database. In some embodiments, the query request includes query conditions, such as query conditions of SQL statements in SQL queries, time query conditions in work order queries, etc., which are not specifically limited here.
[0117] The corresponding data can be determined in the target database through the query conditions in the query request, thereby obtaining the query results.
[0118] In some embodiments, the query results can be displayed in a visualization interface corresponding to the operation and maintenance system, and the data query module provides a download function. By clicking the case corresponding to the download function in the visualization interface, a corresponding download request can be generated to download the query results.
[0119] In some embodiments, the target account information of the query request sender is obtained, and it is determined whether the account corresponding to the target account information has query permission to query the data in the target database; if the account corresponding to the target account information has query permission, the data in the target database is queried to obtain query results; if the account corresponding to the target account information does not have query permission, information indicating a query error is fed back.
[0120] In some embodiments, query permissions can be set in the data query module. When a query request is generated, it can be tested whether the account logged in in the current operation and maintenance system has query permissions. If the account corresponding to the target account information of the account information has query permissions, the data in the target database is queried to obtain query results. If the account corresponding to the target account information of the account information does not have query permissions, information indicating a query error is fed back, and the account corresponding to the target account information can apply for query permissions.
[0121] In the embodiment of the present application, a method for operating and maintaining a business platform is proposed. By setting start and stop instructions, different start and stop instructions encapsulate the start and stop process. Therefore, after obtaining the alarm information, by selecting the target start and stop instruction, the target service is started and stopped by the target start and stop process encapsulated by the target start and stop instruction. This process does not require logging into the server, and consumes a relatively small proportion of the server's network link resources and memory resources. It does not require setting commands through the shell language, which improves the efficiency of alarm information processing and reduces labor costs. At the same time, after the service is started, the IP address can be entered to verify whether the firewall configuration is successful.
[0122] Figure 5 1 is a structural diagram of an operation and maintenance device of a service platform shown in an exemplary embodiment. The operation and maintenance device 500 of the service platform includes:
[0123] The start / stop instruction determination module 510 is used to determine the target start / stop instruction in response to the alarm information of the target service in the business platform; wherein different start / stop instructions are encapsulated with corresponding start / stop processes;
[0124] A start / stop processing module 530 is used to start / stop the target service according to the target start / stop process corresponding to the target start / stop instruction;
[0125] The firewall configuration verification module 550 is used to verify whether the firewall configuration of the target service is successful in response to the input IP address if the target service is in the startup state after the startup and shutdown processing is completed.
[0126] In one achievable manner, the firewall configuration verification module includes:
[0127] A first connectivity unit, used to determine a first connectivity result between a first IP address to be tested and a target IP address of a target service; wherein the first IP address to be tested is an IP address configured by a firewall of the target service;
[0128] A first verification unit, configured to indicate a firewall configuration failure of the target service if the first connectivity result indicates a connectivity failure;
[0129] The second verification unit is used to determine whether the firewall configuration of the target service is successful based on the second connectivity result between the second IP address to be tested and the target IP address if the first connectivity result indicates successful connectivity; wherein the second IP address to be tested is the IP address of the firewall configuration of the non-target service.
[0130] In one possible implementation, the second verification unit includes:
[0131] The first verification section is used to indicate that the firewall configuration of the target service has failed if the second connection result indicates that the connection is successful;
[0132] The second verification module is used to indicate that the firewall configuration of the target service is successful if the second connection result indicates that the connection fails.
[0133] In one achievable manner, the target start / stop instruction includes one of a restart instruction, a start instruction, and a stop instruction.
[0134] In one possible implementation, the device further includes:
[0135] A request acquisition module, used to acquire a query request; wherein the query request indicates a target database in the business platform;
[0136] A query module is used to query the data in the target database and obtain the query results;
[0137] The download module is used to download the query result in response to a download request for the query result.
[0138] In one possible implementation, the query module includes:
[0139] An account determination unit, used to obtain target account information of the query request sender, and determine whether the account corresponding to the target account information has query authority to query the data in the target database;
[0140] A first query unit, configured to query the data in the target database to obtain a query result if the account corresponding to the target account information has the query permission;
[0141] The second query unit is configured to feedback information indicating a query error if the account corresponding to the target account information does not have the query authority.
[0142] The operation and maintenance device of the service platform provided in this embodiment can be used to execute the operation and maintenance method of the above-mentioned service platform. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.
[0143] Figure 6 is a block diagram of an electronic device according to an exemplary embodiment. Figure 6 The electronic device 600 may include: a processor 61 and a memory 62, wherein the processor 61 and the memory 62 can communicate; illustratively, the processor 61 and the memory 62 communicate via a communication bus 63, the memory 62 is used to store instructions, and the processor 61 is used to call the instructions in the memory to execute the operation and maintenance method of the business platform shown in any of the above method embodiments.
[0144] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in the present application may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
[0145] The present application provides a computer-readable storage medium, on which computer-executable instructions are stored; when the computer-executable instructions are executed by a processor, they are used to implement an operation and maintenance method for a business platform as in any of the above-mentioned embodiments.
[0146] An embodiment of the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the operation and maintenance method of the above-mentioned business platform is implemented.
[0147] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0148] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for operating and maintaining a business platform, characterized in that: include: In response to the alarm information of the target service in the business platform, determine the target start and stop instructions; wherein different start and stop instructions are encapsulated with corresponding start and stop processes; According to the target start-stop process corresponding to the target start-stop instruction, start-stop processing is performed on the target service; If the target service is in the startup state after the start / stop process is completed, it is verified whether the firewall configuration of the target service is successful in response to the input IP address.
2. The method according to claim 1, characterized in that The verifying whether the firewall configuration of the target service is successful in response to the input IP address includes: Determine a first connectivity result between a first IP address to be tested and a target IP address of the target service; wherein the first IP address to be tested is an IP address configured by a firewall of the target service; If the first connectivity result indicates a connectivity failure, it indicates that the firewall configuration of the target service has failed; If the first connectivity result indicates successful connectivity, determine whether the firewall configuration of the target service is successful based on the second connectivity result between the second IP address to be tested and the target IP address; wherein the second IP address to be tested is not an IP address configured for the firewall of the target service.
3. The method according to claim 2, characterized in that The determining whether the firewall configuration of the target service is successful based on the second connectivity result between the second IP address to be tested and the target IP address includes: If the second connection result indicates that the connection is successful, it indicates that the firewall configuration of the target service has failed; If the second connection result indicates that the connection fails, it indicates that the firewall configuration of the target service is successful.
4. The method according to claim 1, characterized in that: The target start-stop instruction includes one of a restart instruction, a start instruction, and a stop instruction.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Obtaining a query request; wherein the query request indicates a target database in the business platform; Querying the data in the target database to obtain query results; In response to the download request for the query result, the query result is downloaded.
6. The method according to claim 5, characterized in that The querying of the data in the target database to obtain the query result includes: Obtaining target account information of the query request sender, and determining whether the account corresponding to the target account information has query authority to query the data in the target database; If the account corresponding to the target account information of the account information has the query permission, query the data in the target database to obtain the query result; If the account corresponding to the target account information of the account information does not have the query authority, information indicating a query error is fed back.
7. An operation and maintenance device for a business platform, characterized in that: include: A start / stop instruction determination module is used to determine a target start / stop instruction in response to an alarm message of a target service in a business platform; wherein different start / stop instructions are encapsulated with corresponding start / stop processes; A start-stop processing module, used to start and stop the target service according to the target start-stop process corresponding to the target start-stop instruction; The firewall configuration verification module is used to verify whether the firewall configuration of the target service is successful in response to the input IP address if the target service is in the startup state after the start and stop processing is completed.
8. An operation and maintenance system, characterized in that: The operation and maintenance system is connected in communication with the business platform, the business platform includes multiple services, and the operation and maintenance system includes: An alarm module, the alarm module is connected to the services in the business platform for obtaining alarm information of the services; A start-stop module, wherein the start-stop module is connected to each service in the business platform through communication, the start-stop module is provided with at least one start-stop unit, each start-stop unit is encapsulated with a corresponding start-stop instruction, and the start-stop module performs start-stop processing on each service through the start-stop instruction of the start-stop unit; A firewall verification module, which is connected to each service in the business platform for verifying whether each service in the business platform is connected; The data query module is connected to the business platform for querying the data in the business platform.
9. An electronic device, characterized in that: The electronic device comprises: a processor and a memory; the memory is used to store instructions; the processor is used to execute the instructions in the memory, so that the electronic device executes the method as claimed in any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.
11. A computer program product, characterized in that The method comprises a computer program, which implements the method according to any one of claims 1 to 6 when being executed by a processor.