Server management method, device and equipment
Obtain operation and maintenance agent operations through the first bastion host and determine the second bastion host to achieve unified management of cross-regional servers, solve the increase in operation and maintenance costs and network quality problems caused by public network IP requirements, reduce operation and maintenance costs and ensure Network quality.
Patent Information
- Application Number
- CN201910585545.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-01
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2039-07-01
AI Technical Summary
Existing technologies require public IP addresses for cross-regional server management, resulting in increased operation and maintenance costs and inability to guarantee network quality.
Obtain the operation and maintenance agent operation through the first bastion machine, determine and use the second bastion machine to operate and maintain the servers in the second region, and achieve unified management of cross-regional servers without the need for public network IP.
It reduces users' operation and maintenance costs, meets compliance requirements, ensures network quality, and improves the practicality and market promotion application of management methods.
Smart Images

Figure CN112187491B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a server management method, device and equipment. Background Art
[0002] With the rapid development of science and technology, cross-regional deployment of applications has become the norm in the cloud computing environment. How to uniformly manage cross-regional servers has become a difficult problem to solve.
[0003] In order to achieve unified management of servers across regions, the prior art provides a server management method for public network operation and maintenance, specifically, using a bastion host to operate and maintain all servers. However, this public network operation and maintenance method requires that servers outside the current region must provide public network IPs, which not only increases the customer's operation and maintenance costs, but also cannot guarantee network quality. Summary of the invention
[0004] The embodiments of the present invention provide a server management method, apparatus and device for realizing unified management of cross-regional servers, which can not only reduce the operation and maintenance cost of customers, but also ensure network quality.
[0005] In a first aspect, an embodiment of the present invention provides a method for managing a server, the method comprising:
[0006] The first bastion host obtains an operation and maintenance proxy operation, where the first bastion host is used to perform operation and maintenance management on the servers in the first area;
[0007] Determining a second bastion host according to the operation and maintenance agent operation, where the second bastion host is used to perform operation and maintenance management on the servers in the second area;
[0008] The first bastion host is used as an agent of the second bastion host to perform operation and maintenance management on the servers in the second area.
[0009] In a second aspect, an embodiment of the present invention provides a server management device, which is applied to a first bastion host, where the first bastion host is used to perform operation and maintenance management on servers in a first area, and the device includes:
[0010] The acquisition module is used to obtain the operation and maintenance agent operation;
[0011] A determination module, used to determine a second bastion host according to the operation and maintenance agent operation, where the second bastion host is used to perform operation and maintenance management on the server in the second area;
[0012] The first management module is used to use the first bastion host to act as an agent for the second bastion host to perform operation and maintenance management on the servers in the second area.
[0013] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor can at least implement the server management method as described in the first aspect.
[0014] An embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor can at least implement the server management method described in the first aspect.
[0015] In an embodiment of the present invention, an operation and maintenance proxy operation is obtained through the first bastion host, a second bastion host is determined according to the operation and maintenance proxy operation, and the first bastion host is used as an agent for the second bastion host to perform operation and maintenance management on servers in the second area, thereby effectively realizing the unified management of cross-regional servers by the first bastion host. No public IP is required between the first bastion host and the second bastion host, which effectively reduces the user's operation and maintenance costs. The data of the current area can also be stored in the current area, which meets compliance requirements, ensures network quality, further improves the practicality of the method, and is conducive to market promotion and application.
[0016] In a fourth aspect, an embodiment of the present invention provides a method for managing a server, comprising:
[0017] The second bastion host receives the operation and maintenance instruction sent by the first bastion host, where the first bastion host is used to perform operation and maintenance management on the servers in the first area, and the second bastion host is used to perform operation and maintenance management on the servers in the second area;
[0018] Operation and maintenance management is performed on the servers in the second area according to the operation and maintenance operation instructions.
[0019] In a fifth aspect, an embodiment of the present invention provides a server management device, which is applied to a second bastion host, and the second bastion host is used to perform operation and maintenance management on the server in the second area, and the device includes:
[0020] A receiving module, used to receive an operation and maintenance instruction sent by a first bastion host, where the first bastion host is used to perform operation and maintenance management on servers in the first area;
[0021] The second management module is used to perform operation and maintenance management on the servers in the second area according to the operation and maintenance operation instructions.
[0022] In a sixth aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, and a processor; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor can at least implement the server management method as described in the fourth aspect.
[0023] An embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor can at least implement the server management method described in the fourth aspect.
[0024] In the embodiment of the present invention, the second bastion host receives the operation and maintenance instructions sent by the first bastion host, and then performs operation and maintenance management on the servers in the second area according to the operation and maintenance instructions, thereby effectively realizing that the first bastion host uniformly manages the servers in the second area based on the operation and maintenance instructions, and the communication between the first bastion host and the second bastion host does not require a public network IP, which effectively reduces the user's operation and maintenance costs, and can also realize the storage of data in the current area in the current area, meeting compliance requirements and ensuring network quality, thereby effectively improving the practicality of the method and facilitating market promotion and application. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 A flow chart of a server management method provided by an embodiment of the present invention;
[0027] Figure 2 A flowchart of using the first bastion host to act as an agent for the second bastion host to perform operation and maintenance management on the servers in the second area provided in an embodiment of the present invention;
[0028] Figure 3 A flowchart of establishing a communication link between the first bastion host and the second bastion host provided in an embodiment of the present invention;
[0029] Figure 4 A flowchart of another server management method provided by an embodiment of the present invention;
[0030] Figure 5 A flowchart of another server management method provided by an embodiment of the present invention;
[0031] Figure 6 A flowchart of another server management method provided by an embodiment of the present invention;
[0032] Figure 7A flowchart of another server management method provided by an embodiment of the present invention;
[0033] Figure 8 A schematic diagram of a server management method provided by an application embodiment of the present invention Figure 1 ;
[0034] Fig. 9 A schematic diagram of a server management method provided by the present application embodiment Figure 2 ;
[0035] Fig.10 A schematic diagram of the structure of a server management device provided by an embodiment of the present invention;
[0036] Fig.11 For Fig.10 A schematic diagram of the structure of an electronic device corresponding to the management device provided in the illustrated embodiment;
[0037] Fig.12 A schematic diagram of the structure of another server management device provided in an embodiment of the present invention;
[0038] Fig.13 For Fig.12 A schematic diagram of the structure of an electronic device corresponding to the management device provided in the illustrated embodiment. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two.
[0041] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0042] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the product or system including the elements.
[0043] In addition, the step sequence in the following method embodiments is only an example and not a strict limitation.
[0044] Definition of terms:
[0045] Bastion Host: It is a core system operation and maintenance and security audit control platform provided by Cloud Shield; Cloud Shield Bastion Host integrates multiple functions such as operation and maintenance identity authentication, account control, and system operation audit. Based on the protocol forward proxy implementation, it records the data streams of common operation and maintenance protocols such as Secure Shell (SSH), Windows Remote Desktop, and Secure File Transfer Protocol (SFTP) through the forward proxy method, and replays the video by reassembling the protocol data stream to achieve the purpose of operation and maintenance audit.
[0046] To facilitate understanding of the technical solution in this embodiment, the prior art is briefly described below: In order to achieve unified management of servers across regions, the prior art provides a server management method for public network operation and maintenance, specifically, using a bastion host to operate and maintain all servers. However, this public network operation and maintenance method requires that servers in non-current areas must provide public network IPs, which not only increases the customer's operation and maintenance costs, but also the network quality cannot be guaranteed. In order to reduce the customer's operation and maintenance costs, the prior art provides a server management method for self-built agents, specifically, using a bastion host to operate and maintain cross-regional cloud servers through proxy nodes. This method only requires that public network IPs be provided between proxy nodes, reducing the customer's operation and maintenance costs.
[0047] However, since the proxy node itself is stateless, the operation and maintenance audit data must be stored in the center. The current area data cannot be stored in the current area through the proxy node, so it cannot meet compliance requirements. In addition, this method also has certain R&D and maintenance costs.
[0048] Figure 1 A flow chart of a server management method provided by an embodiment of the present invention; Figure 1As shown, in order to reduce the customer's operation and maintenance costs and meet the compliance requirements of the network; this embodiment provides a server management method, the execution subject of the server management method is a server management device, in specific applications, the server management device can be a first bastion host, the server can be a cloud server; and the first bastion host can be implemented as software, or a combination of software and hardware. Specifically, the method may include:
[0049] S101: The first bastion host obtains an operation and maintenance proxy operation, and the first bastion host is used to perform operation and maintenance management on servers in the first area.
[0050] The first region is any one of the multiple pre-set cloud service deployment regions. Specifically, the cloud service deployment regions may vary according to specific application requirements, for example, the cloud service deployment regions may be: Beijing, Shanghai, Shenzhen, Dubai, etc. The first bastion host may be a cloud bastion host used to perform operation and maintenance management on the servers in the first region. For example, the first region includes multiple cloud servers, and the first bastion host is connected to multiple cloud servers for managing and auditing the operation behaviors of the cloud servers, thereby solving the problems of operating system account reuse, confusion of operation and maintenance permissions, and opaque operation and maintenance processes that occur during the IT operation and maintenance process on the cloud.
[0051] It can be understood that each cloud service deployment region can correspond to its own regional bastion host. For example, the first region is deployed with a first bastion host, the second region is deployed with a second bastion host, the third region is deployed with a third bastion host, and so on. The first bastion host, the second bastion host and the third bastion host communicate with each other to achieve unified management of servers across regions.
[0052] In addition, this embodiment does not limit the specific implementation method for obtaining the operation and maintenance proxy operation, and those skilled in the art can make any settings according to the specific application scenario. For example, an operation display interface can be displayed on the first bastion host, and the operation display interface can include server identifiers of multiple areas. The user can input an execution operation for any one or several server identifiers on the operation display interface, so that an operation and maintenance proxy operation can be generated according to the execution operation. The operation and maintenance proxy operation is an operation instruction for performing operation and maintenance management on the server in the second area, wherein the second area and the first area are two different areas. Alternatively, the first bastion host is communicatively connected to a device end, and the device end can obtain the operation and maintenance proxy operation input by the user, and then send the operation and maintenance proxy operation to the first bastion host, so that the first bastion host obtains the operation and maintenance proxy operation.
[0053] S102: Determine a second bastion host according to the operation of the operation and maintenance agent, where the second bastion host is used to perform operation and maintenance management on the servers in the second area.
[0054] After obtaining the operation and maintenance proxy operation, the operation and maintenance proxy operation can be analyzed and processed, so as to determine the second bastion host, which is the proxied bastion host used to perform operation and maintenance management on the servers in the second region. Specifically, the operation and maintenance proxy operation includes the identity of the second bastion host, and the second bastion host corresponding to the identity can be determined by analyzing and processing the operation and maintenance proxy operation.
[0055] It should be noted that the number of operation and maintenance proxy operations can be one or more; specifically, when the number of operation and maintenance proxy operations is one, a second bastion host can be determined based on the operation and maintenance proxy operations, so that the first bastion host can be used to perform cross-regional operation and maintenance management on a server in a second region. When the number of operation and maintenance proxy operations is multiple, multiple second bastion hosts can be determined based on the operation and maintenance proxy operations, and the multiple second bastion hosts are respectively used to perform operation and maintenance management on servers in different second regions, so that the first bastion host can be used to perform cross-regional operation and maintenance management on servers in multiple different second regions.
[0056] S103: Use the first bastion host to act as an agent for the second bastion host to perform operation and maintenance management on the servers in the second area.
[0057] After determining the second bastion host, the first bastion host can be used to proxy the second bastion host to perform operation and maintenance management on the servers in the second area. For the first bastion host, the method of proxying the second bastion host to perform operation and maintenance management on the servers in the second area includes the first bastion host proxying the operation and maintenance operation instructions of the second bastion host, and using the operation and maintenance operation instructions to perform operation and maintenance management on the servers in the second area. For details, refer to the attached Figure 2 As shown, using the first bastion host to act as a proxy for the second bastion host to perform operation and maintenance management on the servers in the second area may include:
[0058] S1031: The first bastion host receives an operation and maintenance instruction input for the second bastion host.
[0059] S1032: Forward the operation and maintenance instruction to the second bastion host, so that the second bastion host performs operation and maintenance management on the servers in the second area according to the operation and maintenance instruction.
[0060] Specifically, after the first bastion host acts as the agent for the second bastion host, the operation and maintenance personnel located in the first area can input operation and maintenance operation instructions for the second bastion host through the first bastion host. After the first bastion host receives the operation and maintenance operation instructions for the second bastion host, the operation and maintenance operation instructions can be forwarded to the second bastion host. After receiving the operation and maintenance operation instructions, the second bastion host can perform operation and maintenance management on the servers in the second area according to the operation and maintenance operation instructions.
[0061] For example: the first bastion host can act as an agent for the second bastion host, and the operation and maintenance personnel can input operation and maintenance operation instructions through the display interface of the first bastion host. After the first bastion host obtains the operation and maintenance operation instructions, it analyzes and identifies the operation and maintenance operation instructions. If the target object of the operation and maintenance operation instructions is the first bastion host, the first bastion host can directly perform operation and maintenance management on the servers in the first area according to the operation and maintenance operation instructions; if the target object of the operation and maintenance operation instructions is the second bastion host, the first bastion host can forward the operation and maintenance operation instructions to the second bastion host. After the second bastion host receives the operation and maintenance operation instructions, it can perform operation and maintenance management on the servers in the second area according to the operation and maintenance operation instructions, thereby realizing unified operation and maintenance management of servers across regions.
[0062] It is understood that in order to improve the security and reliability of data transmission, Figure 3 As shown, the method in this embodiment may include:
[0063] S001: Determine an encryption protocol for implementing a communication connection between a first bastion host and a second bastion host.
[0064] Among them, the encryption protocol used to implement the communication connection between the first bastion host and the second bastion host can be pre-configured. This embodiment does not limit the specific implementation method of the encryption protocol. Technical personnel in this field can set it according to the specific application scenario. For example, the encryption protocol can be set to a symmetric encryption algorithm or an asymmetric encryption algorithm, or the encryption protocol can be set to a public key encryption algorithm or a one-way encryption algorithm, etc. As long as the security and reliability of the communication connection between the first bastion host and the second bastion host can be guaranteed, it will not be repeated here.
[0065] S002: Establish a communication link between the first bastion host and the second bastion host using the encryption protocol.
[0066] After obtaining the encryption protocol, the encryption protocol can be used to establish a communication link between the first bastion host and the second bastion host, so that the first bastion host and the second bastion host can communicate stably and effectively, and the security and reliability of data transmission are also guaranteed.
[0067] The server management method provided in this embodiment obtains the operation and maintenance proxy operation through the first bastion host, determines the second bastion host according to the operation and maintenance proxy operation, and uses the first bastion host to proxy the second bastion host to perform operation and maintenance management on the servers in the second area, thereby effectively realizing the unified management of cross-regional servers by the first bastion host. No public IP is required between the first bastion host and the second bastion host, which effectively reduces the user's operation and maintenance costs. The data of the current area can also be stored in the current area, which meets the compliance requirements, ensures the network quality, further improves the practicality of the method, and is conducive to market promotion and application.
[0068] Figure 4 A flowchart of another server management method provided by an embodiment of the present invention; based on the above embodiment, refer to the attached Figure 4 As shown, before the first bastion host obtains the operation and maintenance agent operation, the method in this embodiment may further include:
[0069] S201: Obtain configuration information of at least one regional bastion host, where the regional bastion host is used to perform operation and maintenance management on servers in other regions except the first region.
[0070] The configuration information includes at least one of the following: IP information, port information, and communication protocol information. It is understandable that the configuration information is not limited to the above-mentioned examples, and those skilled in the art can also set the configuration information according to specific application scenarios. For example, the configuration information can also include encryption protocol information, etc., which will not be repeated here.
[0071] In addition, in order to enable the first bastion host to perform operation and maintenance management of servers across regions, the first bastion host needs to first obtain the configuration information of the regional bastion hosts in other regions. Specifically, one feasible method is: the regional bastion hosts in other regions communicate with the first bastion host. After the communication connection, the regional bastion host can first obtain its own configuration information, and then send the configuration information to the first bastion host, so that the first bastion host can obtain the configuration information of the regional bastion host.
[0072] Of course, those skilled in the art may also adopt other methods to obtain the configuration information of the regional bastion host, as long as the accuracy and reliability of the configuration information can be guaranteed, which will not be elaborated here.
[0073] S202: Use the configuration information to configure at least one regional bastion host.
[0074] After obtaining the configuration information, the first bastion host can configure the regional bastion host based on the configuration information, so that the first bastion host stores the configuration information of at least one regional bastion host; after obtaining the operation and maintenance proxy operation, the second bastion host can be determined in at least one regional bastion host according to the operation and maintenance proxy operation, so as to use the first bastion host to proxy the second bastion host to perform operation and maintenance management on the servers in the second area, thereby effectively ensuring the accuracy and reliability of the determination of the second bastion host.
[0075] Figure 5 A flow chart of another server management method provided by an embodiment of the present invention; Figure 5 As shown, this embodiment provides another server management method, the execution subject of the server management method is a server management device, in specific application, the server management device can be a second bastion host, the server can be a cloud server; and the second bastion host can be implemented as software, or a combination of software and hardware. Specifically, the method may include:
[0076] S301: The second bastion host receives an operation and maintenance instruction sent by the first bastion host. The first bastion host is used to perform operation and maintenance management on the servers in the first area, and the second bastion host is used to perform operation and maintenance management on the servers in the second area.
[0077] S302: Performing operation and maintenance management on the servers in the second area according to the operation and maintenance operation instruction.
[0078] When the first bastion host acts as an agent for the second bastion host to perform operation and maintenance management of servers in the second area, the first bastion host can send operation and maintenance operation instructions for the second bastion host to the second bastion host. After the second bastion host receives the operation and maintenance operation instructions sent by the first bastion host, it can perform operation and maintenance management of the servers in the second area according to the operation and maintenance operation instructions, thereby effectively realizing the operation and maintenance management of the servers in the second area by the first bastion host.
[0079] The server management method provided in this embodiment is that the second bastion host receives the operation and maintenance instructions sent by the first bastion host, and then performs operation and maintenance management on the servers in the second area according to the operation and maintenance instructions, thereby effectively realizing that the first bastion host uniformly manages the servers in the second area based on the operation and maintenance instructions, and the communication between the first bastion host and the second bastion host does not require a public network IP, which effectively reduces the user's operation and maintenance costs, and can also realize the storage of data in the current area in the current area, meeting compliance requirements and ensuring network quality, thereby effectively improving the practicality of the method and facilitating market promotion and application.
[0080] Figure 6 A flowchart of another server management method provided by an embodiment of the present invention; based on the above embodiment, continue to refer to the attached Figure 6 As shown, the method in this embodiment may further include:
[0081] S401: Generate corresponding operation and maintenance operation data according to the operation and maintenance operation instruction.
[0082] S402: Store and manage operation and maintenance data.
[0083] When the first bastion host acts as an agent for the second bastion host to perform operation and maintenance management of the servers in the second area, the first bastion host can send operation and maintenance operation instructions for the second bastion host to the second bastion host, and the second bastion host can generate corresponding operation and maintenance operation data (also called operation and maintenance log information) based on the received operation and maintenance operation instructions. After generating the corresponding operation and maintenance operation data, the operation and maintenance operation data can be stored and managed, thereby effectively realizing that the operation and maintenance operation data for the second bastion host can be stored on the second bastion host, meeting compliance requirements and ensuring network quality.
[0084] Figure 7 A flowchart of another server management method provided by an embodiment of the present invention; based on the above embodiment, continue to refer to the attached Figure 7 As shown, before the second bastion host receives the operation and maintenance instruction sent by the first bastion host, the method in this embodiment may further include:
[0085] S501: Obtain configuration information of the second bastion host.
[0086] S502: Send the configuration information to the first bastion host, so that the first bastion host configures the second bastion host using the configuration information.
[0087] The configuration information includes at least one of the following: IP information, port information, and communication protocol information. It is understandable that the configuration information is not limited to the above-mentioned examples, and those skilled in the art can also set the configuration information according to specific application scenarios, which will not be repeated here.
[0088] Specifically, the configuration information can be stored in a preset area of the second bastion host. The second bastion host can obtain the configuration information of the second bastion host by accessing the preset area. After obtaining the configuration information, in order to facilitate the cross-regional operation and maintenance management of the servers in the second area through the first bastion host, the second bastion host can send the configuration information to the first bastion host, so that the first bastion host can configure the second bastion host using the configuration information, thereby facilitating the first bastion host to perform operation and maintenance management of the servers in the second area on behalf of the second bastion host, effectively improving the stability and reliability of the method.
[0089] For specific applications, refer to the attached Figure 8-9As shown, this application embodiment provides a server management method, the execution subject of the management method includes regional bastion hosts located in different regions, and each regional bastion host is connected to each other in communication; for different regions, each region has a corresponding regional cloud bastion host, for example: a first cloud bastion host is created in the first region, a second cloud bastion host is created in the second region, and a third cloud bastion host is created in the third region, and the network performance of the cloud bastion host in each region is relatively safe, and the operation and maintenance management cost is also low. In addition, the server management method also uses the regional cloud bastion host as the operation and maintenance entrance to perform operation and maintenance management on cross-regional servers.
[0090] For example, it is convenient to understand the implementation process of the management method: take the first bastion host in the first area and the second bastion host in the second area as an example for explanation, the first bastion host is used to perform operation and maintenance management on the cloud server in the first area (for example: Hangzhou), and the second bastion host is used to perform operation and maintenance management on the cloud server in the second area (for example: Singapore). Specifically, the method may include:
[0091] Step 0: The first bastion host obtains the configuration information of the regional bastion host used to operate and manage servers in other regions (Eastern US, Singapore), and performs operation and maintenance configuration on the regional bastion host based on the configuration information.
[0092] Step 1: When the second bastion host in Singapore needs to be operated and managed, the first bastion host displays a server list interface for operation and maintenance management. The operation and maintenance personnel can enter operation instructions through the interface of the first bastion host in Hangzhou, and the operation and maintenance proxy operation for the second bastion host in Singapore can be generated through the operation instructions.
[0093] Step 2: Based on the operation and maintenance proxy operation, the first bastion host can determine the second bastion host in Singapore used for proxy from at least one pre-configured regional bastion host.
[0094] Step 3: Use the first bastion host to act as the agent for the second bastion host to operate and maintain the servers in the second region; that is, the first bastion host in Hangzhou can act as the agent for the second bastion host in Singapore to operate and maintain the cloud servers in Singapore, while ensuring that all operation and maintenance audit data is stored in Singapore.
[0095] Specifically, Fig. 9As shown, the first bastion host can obtain the operation and maintenance instructions input for the second bastion host; and then forward the operation and maintenance instructions to the second bastion host, so that the second bastion host can perform operation and maintenance management on the servers in the second area according to the operation and maintenance instructions. Further, the second bastion host can generate corresponding operation and maintenance data according to the received operation and maintenance instructions. After the second bastion host obtains the operation and maintenance data, the operation and maintenance data can be stored to ensure compliance requirements (that is, the current area data cannot be stored in other areas). Further, the first bastion host and the second bastion host can communicate with each other in encrypted form, that is, first determine the encryption protocol used to implement the communication connection between the first bastion host and the second bastion host, and then use the encryption protocol to establish a communication link between the first bastion host and the second bastion host. After the communication link is established, the operation and maintenance instructions can be transmitted through the established encrypted communication link, thereby ensuring data security.
[0096] It should be noted that the regional cloud bastion host in each region can be used as a proxy bastion host, and the regional bastion hosts in other regions can be used as proxied bastion hosts. This not only ensures high availability, but also plays a role in global acceleration.
[0097] The server management method provided in this application embodiment combines cloud bastion hosts, proxy technology, and encryption technology to address the particularities of cloud computing environments, effectively solving the problem of cross-regional operation and maintenance and achieving unified management of servers across regions. This not only reduces customers' operation and maintenance costs, but also ensures network quality while ensuring compliance requirements (data in the current region cannot be stored in other regions), further improving the practicability of the method and facilitating market promotion and application.
[0098] Fig.10 A schematic diagram of the structure of a server management device provided by an embodiment of the present invention; Fig.10 As shown, this embodiment provides a server management device, which can be used to implement the above Figure 1 The management method of the corresponding server, and the management device can be applied to the first bastion host, wherein the first bastion host is used to perform operation and maintenance management on the servers in the first area; specifically, the device includes: an acquisition module 11, a determination module 12, and a first management module 13. Specifically:
[0099] The acquisition module 11 is used to obtain the operation of the operation and maintenance agent;
[0100] A determination module 12 is used to determine a second bastion host according to the operation and maintenance agent operation, and the second bastion host is used to perform operation and maintenance management on the server in the second area;
[0101] The first management module 13 is used to use the first bastion host to proxy the second bastion host to perform operation and maintenance management on the servers in the second area.
[0102] Optionally, when the first management module 13 uses the first bastion host to act as an agent for the second bastion host to perform operation and maintenance management on the servers in the second area, the first management module 13 can be used to execute: the first bastion host receives the operation and maintenance operation instructions input for the second bastion host; forwards the operation and maintenance operation instructions to the second bastion host, so that the second bastion host performs operation and maintenance management on the servers in the second area according to the operation and maintenance operation instructions.
[0103] Optionally, the determination module 12 and the first management module 13 in this embodiment may also be used to perform the following steps:
[0104] Determine module 12, used to implement an encryption protocol for the communication connection between the first bastion host and the second bastion host;
[0105] The first management module 13 is used to establish a communication link between the first bastion host and the second bastion host by using an encryption protocol.
[0106] Optionally, before the first bastion host obtains the operation and maintenance agent operation, the acquisition module 11 and the first management module 13 in this embodiment can be used to perform the following steps:
[0107] An acquisition module 11 is used to acquire configuration information of at least one regional bastion host, where the regional bastion host is used to perform operation and maintenance management on servers in other regions except the first region;
[0108] The configuration information includes at least one of the following: IP information, port information, and communication protocol information.
[0109] The first management module 13 is used to configure at least one regional bastion host using the configuration information.
[0110] Fig.10 The device shown can perform Figure 1-Figure 4 , Figure 8-Figure 9 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 1-Figure 4 , Figure 8-Figure 9 The implementation process and technical effects of this technical solution refer to Figure 1-Figure 4 , Figure 8-Figure 9 The description in the illustrated embodiment will not be repeated here.
[0111] In one possible design, the above Fig.10 The structure of the management device of the server shown can be implemented as an electronic device, such as Fig.11As shown, the electronic device may include: a first processor 21 and a first memory 22. The first memory 22 stores executable code. When the executable code is executed by the first processor 21, the first processor 21 can at least implement the above-mentioned Figures 1 to 4 , Figure 8-Figure 9 The server management method provided in the illustrated embodiment.
[0112] Optionally, the electronic device may further include a first communication interface 23 for communicating with other devices.
[0113] In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor can at least implement the above-mentioned Figures 1 to 4 , Figure 8-Figure 9 The server management method provided in the illustrated embodiment.
[0114] Fig.12 A schematic diagram of the structure of another server management device provided in an embodiment of the present invention; Fig.12 As shown, this embodiment provides another server management device, which can be used to implement the above Figure 5 The management method of the corresponding server, and the management device can be applied to the second bastion host, wherein the second bastion host is used to perform operation and maintenance management on the server in the second area. Specifically, the device includes: a receiving module 31 and a second management module 32. Specifically:
[0115] A receiving module 31 is used to receive an operation and maintenance instruction sent by a first bastion host, where the first bastion host is used to perform operation and maintenance management on the servers in the first area;
[0116] The second management module 32 is used to perform operation and maintenance management on the servers in the second area according to the operation and maintenance operation instructions.
[0117] Optionally, the second management module 32 in this embodiment may also be used to execute: generating corresponding operation and maintenance operation data according to the operation and maintenance operation instruction, and storing and managing the operation and maintenance operation data.
[0118] Optionally, before the second bastion host receives the operation and maintenance instruction sent by the first bastion host, the receiving module 31 and the second management module 32 in this embodiment can also be used to perform the following steps:
[0119] Receiving module 31, used to obtain configuration information of the second bastion host;
[0120] The second management module 32 is used to send the configuration information to the first bastion host, so that the first bastion host configures the second bastion host using the configuration information.
[0121] Fig.12 The device shown can perform Figure 5-Figure 9 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 5-Figure 9 The implementation process and technical effects of this technical solution refer to Figure 5-Figure 9 The description in the illustrated embodiment will not be repeated here.
[0122] In one possible design, the above Fig.12 The structure of the management device of the server shown can be implemented as an electronic device, such as Fig.13 As shown, the electronic device may include: a second processor 41 and a second memory 42. The second memory 42 stores executable code. When the executable code is executed by the second processor 41, the second processor 41 can at least implement the above-mentioned Figure 5-Figure 9 The server management method provided in the illustrated embodiment.
[0123] Optionally, the electronic device may further include a second communication interface 43 for communicating with other devices.
[0124] In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of an electronic device, the processor can at least implement the above-mentioned Figure 5-Figure 9 The server management method provided in the illustrated embodiment.
[0125] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. Those of ordinary skill in the art may understand and implement the present invention without creative effort.
[0126] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course can also be implemented by combining hardware and software. Based on such an understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a computer product, and the present invention can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0127] The server management method provided in the embodiment of the present invention can be executed by a certain program / software, which can be provided by the network side. For example, the program / software can be the instant messaging application mentioned in the aforementioned embodiment. The user terminal mentioned in the aforementioned embodiment can download the program / software to a local non-volatile storage medium, and when it needs to execute the aforementioned server management method, the program / software is read into the memory by the CPU, and then the CPU executes the program / software to implement the server management method provided in the aforementioned embodiment. The execution process can refer to the aforementioned Figures 1 to 9 Instructions in .
[0128] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A server management method, characterized in that: include: The first bastion host obtains an operation and maintenance proxy operation, where the first bastion host is used to perform operation and maintenance management on the servers in the first area; Determining a second bastion host according to the operation and maintenance agent operation, where the second bastion host is used to perform operation and maintenance management on the servers in the second area; The first bastion host receives an operation and maintenance instruction input for the second bastion host; The operation and maintenance instruction is forwarded to the second bastion host, so that the second bastion host performs operation and maintenance management on the servers in the second area according to the operation and maintenance instruction.
2. The method according to claim 1, characterized in that: The method further comprises: Determining an encryption protocol for implementing a communication connection between the first bastion host and the second bastion host; A communication link between the first bastion host and the second bastion host is established using the encryption protocol.
3. The method according to any one of claims 1 to 2, characterized in that: Before the first bastion host obtains the operation and maintenance agent operation, the method further includes: Obtain configuration information of at least one regional bastion host, where the regional bastion host is used to perform operation and maintenance management on servers in other regions except the first region; The configuration information is used to configure at least one of the regional bastion hosts.
4. The method according to claim 3, characterized in that The configuration information includes at least one of the following: IP information, port information, and communication protocol information.
5. A server management method, characterized in that: include: The second bastion host receives the operation and maintenance instruction sent by the first bastion host, where the first bastion host is used to perform operation and maintenance management on the servers in the first area, and the second bastion host is used to perform operation and maintenance management on the servers in the second area; Operation and maintenance management is performed on the servers in the second area according to the operation and maintenance operation instructions.
6. The method according to claim 5, characterized in that The method further comprises: Generate corresponding operation and maintenance operation data according to the operation and maintenance operation instruction; The operation and maintenance data is stored and managed.
7. The method according to claim 5 or 6, characterized in that: Before the second bastion host receives the operation and maintenance instruction sent by the first bastion host, the method further includes: Obtain configuration information of the second bastion host; The configuration information is sent to the first bastion host, so that the first bastion host configures the second bastion host using the configuration information.
8. A server management device, characterized in that: Applied to a first bastion host, the first bastion host is used to perform operation and maintenance management on servers in the first area, including: The acquisition module is used to obtain the operation and maintenance agent operation; A determination module, used to determine a second bastion host according to the operation and maintenance agent operation, where the second bastion host is used to perform operation and maintenance management on the server in the second area; The first management module is used for the first bastion host to receive the operation and maintenance operation instructions input for the second bastion host; forward the operation and maintenance operation instructions to the second bastion host, so that the second bastion host performs operation and maintenance management on the servers in the second area according to the operation and maintenance operation instructions.
9. An electronic device, characterized in that: include: A memory and a processor; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor executes the server management method as described in any one of claims 1 to 5.
10. A server management device, characterized in that: Applied to the second bastion host, which is used to perform operation and maintenance management on servers in the second area, including: A receiving module, used to receive an operation and maintenance instruction sent by a first bastion host, where the first bastion host is used to perform operation and maintenance management on servers in the first area; The second management module is used to perform operation and maintenance management on the servers in the second area according to the operation and maintenance operation instructions.
11. An electronic device, characterized in that: include: A memory and a processor; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor executes the server management method as described in any one of claims 5 to 7.
Citation Information
Patent Citations
Internal control bastion host and security access method of internal network resources
CN102333090A
Method for remote intelligent operation and maintenance audit
CN104156439A
Business server authorized secure access method
CN106657011A
Auditing system and auditing method based on quantum bastion host and quantum bastion host system
CN106789029A
Automatic engine for centralized management of hybrid cloud service infrastructure
CN107846304A
Cited By
Multi-operation and maintenance management method and system for managing business machine clusters in batches in application group dimension
CN116232843A
Multi-operation and maintenance management method and system for batch management of business machine clusters based on application group dimension
CN116232843B
