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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


