Self-healing virtual resource configuration management data framework
Technical field
It is to be related to a kind of self-healing virtual resource configuration management data specifically the present invention relates to a kind of data framework
Framework.
Background technology
As field of cloud calculation is fast-developing, large-scale cloud service data center continues to bring out, and the foundation stone of cloud computing is
Virtual machine technique, most of cloud computing service is sold to client by by the computing capability of virtualization, storage resource, the network bandwidth
Profit, because different configuration of Virtual Service price is typically different, thus the configuration information of mistake can cause unfavorable shadow to charging
Ring;On the other hand, generally all it is dynamic creation and distribution due to cloud computing resources, and may often carries out between servers
Migration, thus, how to ensure that the configuration data of virtual resource is correct, reliable, consistent, increasingly become foundation commercialization cloud
Service datacenter has to the problem for solving.
At present, small-sized cloud computing center is generally stored in physical node configuration data, but when physical node is damaged
When, then it is difficult to carry out data recovery;Large-scale cloud computing center generally carries out configuration data by database to unify storage, but
It is that database mode performance is relatively low, easily because hardware or software fault cause overall data to lose, and works as physical node
, it is necessary to update configuration ability normal work again after the key messages such as modification ip, more inconvenience is used.
The content of the invention
It is an object of the invention to provide a kind of self-healing virtual resource configuration management data framework, existing skill is mainly solved
Lack a kind of convenient management, intellectuality, performance data framework higher present in art, it is impossible to meet asking for technology growth requirement
Topic.
To achieve these goals, the technical solution adopted by the present invention is as follows:
Self-healing virtual resource configuration management data framework, comprises the following steps:
(1)Main controlled node sends asset creation and asks to physical node;
(2)The asset creation request write-in application configuration information that physical node will be received, completes virtual resource and creates;
(3)Physical node writes configuration file, creates success response, writes configuration information and returns it to master control section
Point;
(4)Main controlled node is backed up in creating the configuration information write-in main controlled node configuration file for successfully returning;
Data in the main controlled node, physical node and application configuration information are mutually corrected, if a copy of it or two parts
Data failure then re-establishes configuration information according to the data not failed.
Further, physical node detects local profile failure and then re-establishes by the following method with confidence
Breath:
Detection application configuration information, attempts rebuilding local profile, matching somebody with somebody in reading main controlled node if the reconstruction failure
Confidence ceases, and rebuilds local profile and application configuration information according to the configuration information for reading.
Main controlled node detect be locally configured information failure then re-establish configuration information by the following method:
Local profile is abandoned, configuration file is reloaded from physical node.
Compared with prior art, the invention has the advantages that:
(1)In the present invention, it is independent of easily producing the Database Systems of failure, carries out self-healing resources configuration management, from
And the reliability and reading performance of configuration data are significantly improved, physical terminal and main control server can be fast after breaking down
Fast automatic recovery configuring data, effectively eliminate Single Point of Faliure, even if breaking down also only damages part of nodes configuration text, and
It is not whole database data, overall more intelligent, performance is higher, meets actual demand.
(2)The present invention has the uniformity of unified formula management and the reliability of decentralized management concurrently, easily realizes clustered control
And management, and fast transferring and the deployment of platform and module are supported, and it is higher using flexibility and scalability, with prominent reality
Matter feature and marked improvement, are adapted to large-scale promotion application.
Specific embodiment
The invention will be further described with reference to the accompanying drawings and examples, and embodiments of the present invention are included but is not limited to
The following example.
Embodiment
The data framework higher in order to solve to lack present in prior art a kind of convenient management, intellectuality, performance, no
The problem of technology growth requirement can be met, the invention discloses a kind of self-healing virtual resource configuration management data framework, this
In structure, the configuration information of any virtual resource has three parts of copies, wherein two parts is text configuration information, is respectively stored in master control
On node and physical node, the 3rd part is application configuration information, is stored in physical node application system.Three numbers are according to mutual school
Test, it is found that failure configuration information is then abandoned, correct configuration information is re-established by other two parts of configuration informations, guarantee is matched somebody with somebody
Consistency on messaging and correctness are put, the reliability of configuration data and the convenience of management are improved in this way.
Wherein, when the configuration information of physical node fails, the local reparation of preferential trial preferentially calls application configuration information
In data, the data for then attempting during network restoration calls main controlled node after failure;During main controlled node loss of configuration, then from thing
Reason node repairs main controlled node data.
Central database is not used to unify to preserve data in the above method, even if so main controlled node failure, generally also only
The configuration text of part of nodes is damaged, rather than the data of whole database;When using in group system, number is it also avoid
According to synchronous problem.
In the present invention, three parts of configuration informations are created in the following manner:
Main controlled node sends asset creation and asks to physical node;Physical node receives request to create, writes application configuration
Information, creates virtual resource success;Physical node writes configuration file, creates success response, writes configuration information, returns to master control
Node;Main controlled node is backed up in creating the configuration data write-in main controlled node configuration file for successfully returning.
According to above-described embodiment, the present invention just can be well realized.