Unlock instant, AI-driven research and patent intelligence for your innovation.

A method for obtaining deployment configuration information in a large-scale cluster environment

A configuration information and large-scale technology, applied in the field of cloud computing, can solve problems such as configuration information cannot be customized, products cannot be compatible, etc., and achieve the effect of reducing labor costs and ensuring accuracy and customizability

Active Publication Date: 2019-10-29
WUXI CHINAC DATA TECH SERVICE
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] It can be seen that in the large-scale cluster environment in the existing technology, there are certain limitations in order to obtain deployment configuration information; at the same time, the existing technology also has the disadvantage that the configuration information cannot be customized, and it is only for Openstack clusters, and cannot be used for other products. compatible

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method for obtaining deployment configuration information in a large-scale cluster environment
  • A method for obtaining deployment configuration information in a large-scale cluster environment
  • A method for obtaining deployment configuration information in a large-scale cluster environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0042] Before elaborating the present invention in detail, the scene where the present invention is applied is illustrated and necessary explanations are given. ginseng figure 2 As shown, there are i hosts (HOST) such as HOST 01, HOST 02, HOST03, HOST04 to HOST i in the cluster 20 to be deployed. Wherein, i is a positive integer greater than or equal to 1. Among the i hosts, there may be surviving hosts or non-surviving hosts.

[0043] In this application, the so-called "survival" and "non-survival" criteria include but are not limited to: whether there is an independent ip, whether a session can be established with the deployment node 10 through a script management tool, whether a certain program function can be run independently, And as a functional component (such as load balancer or virtual switch, etc.) of the cluster to be deployed after deployment. Meanwhile, "host configuration information" and "host deployment configuration information" have equivalent technical m...

Embodiment 2

[0072] Compared with implementation one, the main difference of this embodiment is that in this embodiment, the script management tool selected in step S4 is the pexpect module, and step S4 is specifically the following sub-steps:

[0073] Sub-step S41a, importing the pexpect module into the deployment node, so as to log in to the host through the pexpect module. The main code realized by sub-step S41a is as follows:

[0074] importpexpect

[0075] In sub-step S42a, configuration information corresponding to the configuration type is acquired based on the returned information of the specified configuration type. The main code realized by sub-step S42a is as follows:

[0076] defrun_cmd(hostname, port=22, username='root', password, command)

[0077] Sub-step S43a, saving the returned information into standard input variables, standard output variables and standard error output variables. The main code realized by sub-step S43a is as follows:

[0078] ssh_cmd="ssh-p{port}-o...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a method for obtaining deployment configuration information in a large-scale cluster environment, comprising: deploying nodes to conduct batch survival scans on the network segments of the cluster to be deployed to extract the surviving hosts in the cluster to be deployed; detect the SSH port of the surviving host to determine the system type of the surviving host; perform login detection to the SSH port of the surviving host based on the SSH protocol; deploy the script management tool in the node to obtain the configuration information of the host and save it to the dictionary variable; The configuration information of the host in the variable is encapsulated into a lightweight data exchange format file and saved to the database of the deployment node. Through the present invention, the deployment node obtains the deployment configuration information of the host in an active manner through the script management tool, and does not need to install third-party services and plug-ins in the surviving host, realizing batch remote and automatic acquisition of deployment configuration information and reducing the number of operation and maintenance personnel human cost input.

Description

technical field [0001] The invention relates to the technical field of cloud computing, in particular to a method for acquiring deployment configuration information in a large-scale cluster environment. Background technique [0002] With the rapid development of cloud computing business, cloud computing business has changed from the original single-node service deployment to the current large-scale cluster deployment, from no need for configuration to current cluster-based repeated configuration, and from single deployment business scenarios to increasingly complex scenarios. Therefore, in the scenario of deploying nodes in a large-scale cluster environment, the demand for obtaining the deployment configuration information of lightly configured nodes (or even nodes without configuration) is more and more urgent, especially how to quickly obtain The ability to obtain information required for configuration from nodes is of great significance for reducing the manpower input of ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L29/08
CPCH04L67/30H04L67/1001
Inventor 许广彬谭瑞忠濮天晖
Owner WUXI CHINAC DATA TECH SERVICE