A processing method, device, equipment and medium for server publishing information
By handling the release and deletion of server information in the service cluster, the efficiency problem of multiple services is solved when publishing simultaneously, efficient server information release and fault tolerance are achieved, and operation and maintenance costs are reduced.
Patent Information
- Application Number
- CN202210667598.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-13
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2042-06-13
AI Technical Summary
In the prior art, multiple services need to be queued when they need to be published, which seriously affects the release efficiency.
By obtaining configuration management database information, receiving user instructions, selecting the initial server information as the target server information, and adding or deleting it within the service cluster, listening to changes within the service cluster, and outputting the target server information in real time.
Improve the efficiency of server information release, increase the fault tolerance rate, and save costs.
Smart Images

Figure CN115086291B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of cloud storage and cluster storage, and particularly relates to a method, device, equipment and medium for processing server publishing information. Background Art
[0002] Nginx is an open-source and high-performance HTTP (Hyper Text Transfer Protocol) server and reverse proxy server, which is widely used by many enterprises in scenarios such as load balancing, reverse proxy, and separation of front and back ends. By using Nginx as a load balancer, it can serve as a unified entry for HTTP requests, which is beneficial for domain name management and problem troubleshooting, and can also reduce operation and maintenance costs.
[0003] In the architecture where Nginx is used as the unified entry for HTTP requests, when the number of services increases, some problems also occur in the daily maintenance of these services. For example, during the service publishing process, in order to achieve smooth publishing, the traffic needs to be cut off during the publishing process. Therefore, during the publishing process of each server, it needs to be removed from the upstream in the Nginx configuration first, and then the Nginx reload command operation is executed. When multiple services need to be published simultaneously, they need to queue up. After one service is deployed, the publishing work of the next service can be entered, which seriously affects the publishing efficiency. Summary of the Invention
[0004] The present invention provides a method, device, equipment and medium for processing server publishing information, which can be used to solve the problem that when multiple services need to be published, they need to queue up, seriously affecting the publishing efficiency.
[0005] The present invention provides a method for processing server publishing information, including the steps of:
[0006] Obtain the configuration management database information of the current user, where the configuration management database is used to store the initial server information;
[0007] Receive the target instruction input by the current user, where the target instruction represents the initial server information that the current user needs to publish or delete;
[0008] Select the initial server information as the target server information according to the target instruction;
[0009] Call the interface of the service cluster to add or delete the target server information inside the service cluster, where the service cluster is used to temporarily store the target server information;
[0010] Monitor the target server information after addition or deletion within the service cluster, and output the target server information within the service cluster.
[0011] The present invention also provides a processing device for server publishing information, including:
[0012] An acquisition unit, configured to acquire the configuration management database information of the current user, where the configuration management database is used to store the initial server information;
[0013] A receiving unit, configured to query the server information in the configuration management database, and select the server information required by the current user as the target server information;
[0014] A selection unit, where the service cluster is used to temporarily store the server information;
[0015] A change unit, configured to call the interface of the service cluster according to the target server information, and change the server information within the service cluster;
[0016] An output unit, configured to monitor the changed server information within the service cluster, and update and output the server information in real time.
[0017] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the above-mentioned processing method for server publishing information are implemented.
[0018] The present invention also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned processing method for server publishing information are implemented.
[0019] The present invention provides a method, apparatus, device and medium for processing server publishing information. The initial server information required to be published by the current user is selected and set as the target server information. Then, the target server information is added or deleted in the service cluster. The target server information in the service cluster is monitored. When the target server information is added or deleted in the service cluster, the target server information is output in real time. The above steps meet the requirements of the current user to publish or delete the target server information, and there is no need to add or delete the initial server information in the configuration management database, which plays a role in saving and backing up the initial server information of the current user. When a misoperation occurs in deleting the target server information in the service cluster, the target server information can still be obtained from the configuration management database. The present invention greatly improves the publishing efficiency of server information, increases the fault tolerance rate when the server information is published, and saves costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 FIG. 1 is a schematic diagram of an application environment of the method for processing server publishing information according to an embodiment of the present invention;
[0021] Figure 2 FIG. 2 is a schematic flowchart of the method for processing server publishing information according to an embodiment of the present invention;
[0022] Figure 3 FIG. 3 Figure 2 is a schematic flowchart of a specific implementation manner of step S30 in FIG. 2;
[0023] Figure 4 FIG. 4 Figure 2 is a schematic flowchart of a specific implementation manner of step S40 in FIG. 2;
[0024] Figure 5 FIG. 5 is another schematic flowchart of the method for processing server publishing information according to an embodiment of the present invention;
[0025] Figure 6 FIG. 6 is a schematic model diagram of the method for processing server publishing information according to an embodiment of the present invention;
[0026] Figure 7 FIG. 7 is a schematic structural diagram of the apparatus for processing server publishing information according to an embodiment of the present invention;
[0027] Figure 8 FIG. 8 is a schematic structural diagram of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0028] The following describes the embodiments of the present invention through specific examples. Those skilled in the art can easily understand the other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention.
[0029] It should be noted that the illustrations provided in this embodiment only schematically illustrate the basic concept of the present invention. Therefore, only the components related to the present invention are shown in the drawings, rather than being drawn according to the number, shape, and size of the components in actual implementation. The type, quantity, and proportion of each component in actual implementation can be arbitrarily changed, and the component layout type may also be more complex.
[0030] The method for processing server publishing information provided by an embodiment of the present invention can be applied in an application environment such as Figure 1 In this application environment, the client communicates with the server through the network. The server can obtain the configuration management database information of the current user through the client. The configuration management database is used to store the initial server information; receive the target instruction input by the current user, where the target instruction represents the initial server information that the current user needs to publish or delete; select the initial server information as the target server information according to the target instruction; call the interface of the service cluster to add or delete the target server information within the service cluster. The service cluster is used to temporarily store the target server information; monitor the target server information after addition or deletion within the service cluster, and output the target server information within the service cluster. In the present invention, a method for processing server publishing information is proposed. When multiple services need to be published simultaneously, the configuration can be updated through the hot loading method, that is, the configuration is updated by modifying and taking effect without restarting the program, which improves the concurrency ability when multiple services are published simultaneously, greatly improves the efficiency of publishing services, and saves costs. The following describes the present invention in detail through specific embodiments.
[0031] Please refer to Figure 2 as shown in Figure 2 which is a flowchart of a method for processing server publishing information provided by an embodiment of the present invention, and may include the following steps:
[0032] S10. Obtain the configuration management database information of the current user, where the configuration management database is used to store the initial server information.
[0033] In some embodiments, the CMDB (Configuration Management Database) of the current user is obtained. The configuration management database can be used by the current user to store basic data information such as initial server information, host name, and cluster information. Among them, the specific information of the initial server information is not limited. The initial server information may include address information and status information. The address information can be used to represent the IP (Internet Protocol) address of the server. The status information can be used to represent the working status of the server. For example, "online" can be used to indicate that the server is in a working state, and "offline" can be used to indicate that the server is in a non-working state. The host name refers to the host on the Internet or the Web (World Wide Web) site identified by the host name. The host name is sometimes called the domain name. The host name is mapped to the IP address. When a Web client sends an HTTP (Hyper Text Transfer Protocol) request to the host, the host name is used. The user who issues the request may specify the IP address of the server. For the user, the host name is more convenient than the numerical IP address. Companies, organizations, and individuals often choose the host names of their Web sites, and users can easily remember these host names. The cluster information can be used to represent a set of multiple server information, and the target server information inside the cluster information can be queried according to the cluster information.
[0034] S20. Receive the target instruction input by the current user. The target instruction represents the initial server information that the current user needs to publish or delete.
[0035] S30. Select the initial server information as the target server information according to the target instruction.
[0036] In some embodiments, the API (Application Programming Interface) in the configuration management database can be queried, and the data information in the configuration management database can be obtained according to the application programming interface. For example, according to the cluster information, the initial server information included in the configuration management database can be queried through the application programming interface. The initial server information required by the current user is selected and set as the target server information, and the IP address information in the server information can be returned. Among them, the server information required by the current user can be multiple. In some embodiments, multiple target server information can be grouped and processed, and multiple target server information can be published in batches.
[0037] S40. Call the interface of the service cluster to add or delete the target server information within the service cluster, where the service cluster is used to temporarily store the target server information.
[0038] In some embodiments, the service cluster can be used to temporarily store the target server information. For example, the service cluster can be a Consul cluster. Consul is an open-source service discovery and configuration sharing service software, and a set of Consul clusters can be set up. After obtaining the server information in the configuration management database and using the obtained initial server information as the target server information, the interface of the service cluster can be called to add or delete the target server information within the service cluster.
[0039] Please refer to Figure 3 , in some embodiments, the step S40 of calling the interface of the service cluster to add or delete the target server information within the service cluster, where the service cluster is used to temporarily store the target server information, may include the following sub-steps.
[0040] S401. Query the address information of the target server information in the service cluster.
[0041] S402. Query the status information of the target server information according to the address information of the target server information.
[0042] S403. Query the status information of the target server information according to the target instruction input by the current user, and determine whether the status information of the target server information is in the online state.
[0043] S404. When the status information of the target server information is in the online state, retain the target server information within the service cluster.
[0044] S405. When the status information of the target server information is in the offline state, delete the target server information within the service cluster.
[0045] In some embodiments, initial server information that meets the current user's requirements is selected from the configuration management database and set as the target server information. Subsequently, the current user can modify the status information of the target server according to their needs. For example, when the current user needs to publish the target server information, the status information of the target server information can be set to the working state of "online", and at this time, the target server information can be retained within the service cluster. When the current user does not need to publish the target server information, the status information of the target server information can be set to the non-working state of "offline", and at this time, the target server information can be deleted within the service cluster. When modifying the target server information, it is not necessary to modify the initial server information in the configuration management database, and the initial server information of the current user can be saved as a backup. When the target server information in the service cluster is accidentally deleted, the target server information can still be obtained from the configuration management database.
[0046] S50. Monitor the target server information after addition or deletion within the service cluster, and output the monitoring of the target server information within the service cluster.
[0047] In some embodiments, the target server information that changes within the service cluster can be monitored. For example, when a target server information is added within the service cluster, the target server information can be added and output in real time. For example, define the currently output target server information as verification server information, and query whether the verification server information still exists within the service cluster. When the target server information does not exist within the service cluster, the verification server information can be deleted in real time. When the target server information still exists within the service cluster, the verification server information can be retained in real time.
[0048] Please refer to Figure 4 , in some embodiments, the step S50 of monitoring the target server information after addition or deletion within the service cluster and outputting the target server information within the service cluster may include the following sub-steps.
[0049] S501. Query the configuration identifier within the service cluster. The configuration identifier is preset and used to indicate the serial number corresponding to a group of the target server information.
[0050] S502. Monitor the target server information added within the configuration identifier and output the target server information.
[0051] S503. Based on the currently output target server information being the verification server information, check whether the verification server information exists in the configuration identifier.
[0052] S504. When there is still verification server information in the configuration identifier, retain the verification server information.
[0053] S505. When there is no verification server information in the configuration identifier, delete the verification server information.
[0054] In some embodiments, the Nginx cluster can be used to monitor the target server information that changes inside the service cluster. Nginx is an open-source and high-performance HTTP (Hyper Text Transfer Protocol) server and reverse proxy server. The nginx-upstream-check-module module and the nginx-upsync-module module can be set in Nginx. Among them, the nginx-upstream-check-module module can be used to monitor the configuration identifier inside the service cluster, and the nginx-upsync-module module can be used to monitor the server information inside the service cluster.
[0055] In some embodiments, different server information can be divided into a group, and a configuration identifier can be set for the target server information inside a group. The configuration identifier can be a serial number, that is, a serial number information corresponds to a group of different target server information. By querying the configuration identifier inside the service cluster and monitoring the target server information corresponding to the configuration identifier, the change situation of the target server information can be found more quickly, and the update efficiency of the server status can be improved. When the target server information added inside the configuration identifier, the target server information can be added and output in real time. When the target server information is deleted in the service cluster, the target server information can be deleted in real time.
[0056] Taking the number of target server information as five as an example, when all five target server information need to be published, the status information of the five target server information can be all set to the working state of online, as shown in the following table.
[0057] Table 1: Status information table for publishing five target server information
[0058] Host Name Status IP Address a2-dev-lab-136-38.sh Online 10.255.136.38 a2-dev-lab-228-56.sh Online 30.76.228.56 a2-dev-lab-128-55.sh Online 10.255.128.55 a2-dev-lab-213-15.sh Online 30.76.231.15 a2-dev-lab-128-98.sh Online 10.255.128.98
[0059] At this time, the configurations of the service clusters in the Consul cluster and the configurations output by the listening clusters in the Nginx cluster are both: server10.255.128.98, server30.76.231.15, server10.255.128.55, server30.76.228.56, server10.255.136.38, indicating that five target server information is output.
[0060] When setting one of the five target server information to the offine (offline) working state, for example, setting the status information of the server information corresponding to server10.255.136.38 to the offine state, as shown in the following table.
[0061] Table 2: Status information table for publishing four target server information
[0062]
[0063]
[0064] At this time, the configurations of the service clusters in the Consul cluster and the configurations output by the listening clusters in the Nginx cluster are both: server 10.255.128.98, server 30.76.231.15, server 10.255.128.55, server30.76.228.56, indicating that four target server information is output. The service clusters in the Consul cluster and the listening clusters in the Nginx cluster can perform real-time addition or deletion operations on the target server information.
[0065] S50. Monitor the target server information after addition or deletion within the service cluster, and output the target server information within the service cluster.
[0066] Please refer to Figure 5 , Figure 5 which is another process schematic diagram of the method for processing server publishing information provided by an embodiment of the present invention, and may include the following steps:
[0067] S100. Obtain the configuration management database information of the current user, and the configuration management database is used to store the initial server information.
[0068] S200. Add or delete the initial server information in the configuration management database according to the target instruction.
[0069] S300. Select the initial server information added or deleted in the configuration management database as the synchronization server information.
[0070] S400. Call the interface of the service cluster to add or delete the synchronization server information as the target server information within the service cluster.
[0071] S500. Monitor the target server information after addition or deletion within the service cluster, and output the target server information within the service cluster.
[0072] In some embodiments, the initial server information within the configuration management database can be directly changed. The initial server information directly changed in the configuration management database can be defined as the synchronization server information. The synchronization server information can directly call the interface of the service cluster to add or delete the synchronization server information as the target server information within the service cluster. For example, when adding synchronization server information within the configuration management database, the target server information can be added to the service cluster in real time. For example, when reducing the synchronization server information within the configuration management database, query whether the target server information still exists within the service cluster. When the target server information exists within the service cluster, the target server information can be deleted in real time. When the target server information does not exist within the service cluster, the service cluster may not perform any operation.
[0073] It can be seen that in the above solution, select the initial server information required by the current user in the configuration management database and set it as the target server information. After that, when the current user modifies the target server information according to the needs, the initial server information in the configuration management database does not need to be modified, and the initial server information of the current user can be saved and backed up. When the target server information in the service cluster is accidentally deleted, the target server information can still be obtained from the configuration management database. Monitor the target server information that changes within the service cluster, and update and output the target server information in real time. The present invention greatly improves the release efficiency of the server, increases the fault tolerance rate during server release, and saves costs.
[0074] It should be understood that the magnitudes of the sequence numbers of the steps in the above embodiments do not mean the order of execution is prior or posterior. The execution order of each process should be determined according to its function and internal logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
[0075] Please refer to Figure 6 , in some embodiments, Figure 6It is a schematic diagram of a model for the processing method of server publishing information in an embodiment of the present invention. First, the current user can store basic data information such as server information, host name, and cluster information in the configuration management database 100. The publishing unit 101 can obtain the initial server information to be published by the current user according to the HTTP (Hyper Text Transfer Protocol) as the target server information. The publishing unit 101 transmits the target server information to the inside of the Consul cluster 102 according to the HTTP (Hyper Text Transfer Protocol), and the Consul cluster 102 makes changes to the target server information. The Nginx cluster 103 can monitor the target server information inside the Consul cluster. After detecting that the target server information inside the Consul cluster has changed, it can update the target server information inside the Nginx cluster 103 in a hot reload manner, and the modification and effectiveness of the target server information can be achieved without restarting the program.
[0076] Please refer to Figure 6 , in some embodiments, the configuration management database 100 can establish a connection of data information with the Consul cluster 102 according to the HTTP. The current user can directly change the initial server information in the configuration management database 100. After the Consul cluster 102 receives the instruction to change the server information from the configuration management database 100, the Consul cluster 102 can make changes to the target server information inside. The Nginx cluster 103 can monitor the target server information inside the Consul cluster and update the target server information inside the Nginx cluster 103.
[0077] Please refer to Figure 7 , the present invention provides a processing device for server publishing information. In some embodiments, the processing device 600 for server publishing information may include an acquisition unit 601, a receiving unit 602, a selection unit 603, a change unit 604, and an output unit 605. The detailed description of each functional module is as follows.
[0078] The acquisition unit 601 is used to acquire the configuration management database information of the current user, and the configuration management database is used to store the initial server information;
[0079] The selection unit 602 is used to query the server information in the configuration management database and select the server information required by the current user as the target server information;
[0080] The storage unit 603 is used for the service cluster to temporarily store the server information;
[0081] A change unit 604, configured to call an interface of the service cluster according to the target server information, and change the server information inside the service cluster;
[0082] An output unit 605, configured to monitor the changed server information inside the service cluster, and update and output the server information in real time.
[0083] In one embodiment, the obtaining unit 601 is specifically configured to:
[0084] Obtain the configuration management database information of the current user, including basic data information such as the initial server information, host name, and cluster information stored by the current user. Among them, the specific information of the initial server information is not limited. The initial server information may include address information and status information, and the address information can be used to represent the IP (Internet Protocol) address of the server.
[0085] In one embodiment, the receiving unit 602 is specifically configured to:
[0086] Query the API (Application Programming Interface) in the configuration management database, and the data information in the configuration management database can be obtained according to the application programming interface. For example, according to the cluster information, the initial server information included in the configuration management database can be queried through the application programming interface.
[0087] In one embodiment, the selecting unit 603 is specifically configured to:
[0088] It can be used to temporarily store the target server information. A set of Consul clusters can be built. Consul is an open-source service discovery and configuration sharing service software. After obtaining the target server information in the configuration management database and using the obtained initial server information as the target server information, the interface of the service cluster can be called to store the target server information.
[0089] In one embodiment, the change unit 604 is specifically configured to:
[0090] Query the address information of the target server information in the service cluster.
[0091] According to the address information of the target server information, query the status information of the target server information.
[0092] According to the target instruction input by the current user, query the status information of the target server information, and judge whether the status information of the target server information is in an online state.
[0093] When the status information of the target server information is in the online state, the target server information is retained inside the service cluster.
[0094] When the status information of the target server information is in the offline state, the target server information is deleted inside the service cluster.
[0095] In another embodiment, the output unit 605 is specifically configured to:
[0096] Query the configuration identifier inside the service cluster. The configuration identifier is preset and used to indicate the serial number corresponding to a group of the target server information.
[0097] Monitor the target server information added inside the configuration identifier, and output the target server information.
[0098] Based on the currently output target server information being the verification server information, check whether the verification server information exists in the configuration identifier.
[0099] When the verification server information still exists in the configuration identifier, retain the verification server information.
[0100] When the verification server information does not exist in the configuration identifier, delete the verification server information.
[0101] For the specific limitations on the processing device for server publishing information, reference can be made to the limitations on the processing method for server publishing information in the foregoing text, which will not be elaborated here. Each module in the above-mentioned processing device for server publishing information can be implemented in whole or in part through software, hardware, and their combination. The above-mentioned modules can be embedded in the processor of the computer device in hardware form or be independent of it, or can be stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
[0102] In one embodiment, a computer device is provided. The computer device 700 can be a server, and its internal structural diagram can be as Figure 7 shown. The computer device 700 includes a processor 701, a memory 702, a network interface, and a database connected through a system bus. Among them, the processor 701 of the computer device 700 is used to provide computing and control capabilities. The memory 702 of the computer device 700 includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device 700 is used to communicate with an external client through a network connection. When the computer program is executed by the processor, it realizes the functions or steps of the service-side of a processing method for server publishing information.
[0103] In one embodiment, a computer device is provided. The computer device 700 may be a client. The computer device 700 includes a processor 701, a memory 702, a network interface, a display screen, and an input device connected through a system bus. Among them, the processor 701 of the computer device 700 is used to provide computing and control capabilities. The memory 702 of the computer device 700 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device 700 is used to communicate with an external server through a network connection. When the computer program is executed by the processor 701, it realizes the functions or steps on the client side of a method for processing information published by a server.
[0104] In one embodiment, a computer device 700 is provided, including a memory 702, a processor 701, and a computer program stored on the memory and executable on the processor. When the processor 701 executes the computer program, the following steps are realized:
[0105] Obtain the configuration management database information of the current user, where the configuration management database is used to store initial server information;
[0106] Receive a target instruction input by the current user, where the target instruction represents the initial server information that the current user needs to publish or delete;
[0107] According to the target instruction, select the initial server information as the target server information;
[0108] Call the interface of the service cluster to add or delete the target server information inside the service cluster, where the service cluster is used to temporarily store the target server information;
[0109] Monitor the target server information after being added or deleted inside the service cluster, and output the target server information inside the service cluster.
[0110] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are realized:
[0111] Obtain the configuration management database information of the current user, where the configuration management database is used to store initial server information;
[0112] Receive a target instruction input by the current user, where the target instruction represents the initial server information that the current user needs to publish or delete;
[0113] Select the initial server information as the target server information according to the target instruction;
[0114] Call the interface of the service cluster to add or delete the target server information within the service cluster, where the service cluster is used to temporarily store the target server information;
[0115] Monitor the target server information after addition or deletion within the service cluster, and output the target server information within the service cluster.
[0116] It should be noted that the functions or steps that can be achieved by the above computer-readable storage medium or computer device can be correspondingly referred to the relevant descriptions on the server side and the client side in the foregoing method embodiments. To avoid repetition, they will not be described in detail here.
[0117] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to the memory, storage, database or other media used in the embodiments provided in the present application can include non-volatile and / or volatile memories. Non-volatile memories can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memories can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
[0118] The above description is only a preferred embodiment of the present application and an explanation of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solutions formed by the specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the technical solutions formed by mutually replacing the above features with the (but not limited to) technical features with similar functions disclosed in the present application.
[0119] Except for the technical features described in the specification, the remaining technical features are well-known to those skilled in the art. To highlight the innovative features of the present invention, the remaining technical features will not be elaborated herein.
[0120] The above description is only for the preferred embodiments of the present application and the explanation of the applied technical principles. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solutions formed by the specific combination of the above technical features. It should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the technical solutions formed by mutually replacing the above features with the technical features (but not limited to) having similar functions disclosed in the present application.
[0121] Except for the technical features described in the specification, the remaining technical features are well-known to those skilled in the art. To highlight the innovative features of the present invention, the remaining technical features will not be elaborated herein.
Claims
1. A method for processing server - published information, characterized in that, Including steps: Obtain the configuration management database information of the current user, where the configuration management database is used to store the initial server information; Receive the target instruction input by the current user, where the target instruction represents the initial server information that the current user needs to publish or delete; According to the target instruction, obtain the initial server information in the configuration management database, and select the initial server information as the target server information; Call the interface of the service cluster to add or delete the target server information inside the service cluster, where the service cluster is used to temporarily store the target server information; Monitor the target server information after being added or deleted inside the service cluster, and output the target server information inside the service cluster; Among them, the step of calling the interface of the service cluster to add or delete the target server information inside the service cluster includes steps: Query the address information of the target server information in the service cluster; According to the address information of the target server information, query the status information of the target server information; According to the target instruction input by the current user, query the status information of the target server information; When the status information of the target server information is the offline state, delete the target server information inside the service cluster; When the status information of the target server information is the online state, add the target server information inside the service cluster; Select the initial server information required by the current user in the configuration management database and set it as the target server information; when the current user needs to publish the target server information, set the status information of the target server information to the online working state, and at this time, the target server information is retained inside the service cluster; when the current user does not need to publish the target server information, set the status information of the target server information to the offline non-working state, and at this time, the target server information is deleted inside the service cluster; when modifying the target server information, do not modify the initial server information in the configuration management database, and save and back up the initial server information of the current user; when the target server information in the service cluster is accidentally deleted, obtain the target server information from the configuration management database.
2. The method for processing server published information according to claim 1, wherein, The step of monitoring the target server information after being added or deleted inside the service cluster and outputting the target server information inside the service cluster includes steps: Characterize the currently output target server information as verification server information, and check whether the verification server information exists in the service cluster; When the verification server information does not exist in the service cluster, delete the verification server information.
3. The method for processing server published information according to claim 2, wherein The step of monitoring the target server information after being added or deleted inside the service cluster and outputting the target server information inside the service cluster includes: Query the configuration identifier inside the service cluster, where the configuration identifier is predefined and used to indicate the serial number corresponding to a group of the target server information; Monitor the target server information added or deleted inside the configuration identifier, and output the target server information inside the configuration identifier.
4. A processing device for server publishing information, characterized in that It includes: An acquisition unit for acquiring the configuration management database information of the current user, where the configuration management database is used to store the initial server information; A receiving unit for querying the server information in the configuration management database, acquiring the initial server information in the configuration management database, and selecting the server information required by the current user as the target server information; A selection unit for the service cluster to temporarily store the server information; A change unit for calling the interface of the service cluster according to the target server information to change the server information inside the service cluster; An output unit for monitoring the server information that changes inside the service cluster, and updating and outputting the server information in real time; Among them, the step of calling the interface of the service cluster to add or delete the target server information inside the service cluster includes the steps: Query the address information of the target server information in the service cluster; Query the status information of the target server information according to the address information of the target server information; Query the status information of the target server information according to the target instruction input by the current user; When the status information of the target server information is in the offline state, the target server information is deleted inside the service cluster; When the status information of the target server information is in the online state, the target server information is added inside the service cluster; Select the initial server information required by the current user in the configuration management database and set it as the target server information; when the current user needs to publish the target server information, set the status information of the target server information to the online working state, and at this time the target server information is retained inside the service cluster; when the current user does not need to publish the target server information, set the status information of the target server information to the offline non-working state, and at this time the target server information is deleted inside the service cluster; when modifying the target server information, do not modify the initial server information in the configuration management database, and save and back up the initial server information of the current user; when the target server information in the service cluster is accidentally deleted, obtain the target server information from the configuration management database.
5. A computer device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the steps of the server publishing information processing method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, it implements the steps of the server publishing information processing method according to any one of claims 1 to 3.
Citation Information
Patent Citations
Dynamic configuration management method and system based on Nginx server
CN106953758A