CN104219097A - Rapid configuration method of distributed system - Google Patents

Rapid configuration method of distributed system Download PDF

Info

Publication number
CN104219097A
CN104219097A CN201410466686.3A CN201410466686A CN104219097A CN 104219097 A CN104219097 A CN 104219097A CN 201410466686 A CN201410466686 A CN 201410466686A CN 104219097 A CN104219097 A CN 104219097A
Authority
CN
China
Prior art keywords
configuration
module
node
information
distributed system
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410466686.3A
Other languages
Chinese (zh)
Other versions
CN104219097B (en
Inventor
魏琳琳
杨松
莫展鹏
季统凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Zhongke Guoyun big data industry development Co.,Ltd.
Original Assignee
G Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201410466686.3A priority Critical patent/CN104219097B/en
Publication of CN104219097A publication Critical patent/CN104219097A/en
Application granted granted Critical
Publication of CN104219097B publication Critical patent/CN104219097B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Multi Processors (AREA)

Abstract

The invention relates to the technical field of the distributed computers and in particular relates to a rapid configuration method of a distributed system. The rapid configuration method comprises the following steps: after system configuration is started, a configuration controller is started to read the configuration information of a user; the network information and the node type information of a node and the configuration items and the like of the node are calculated and a configuration list is generated; next, the controller removes all configurations of an original assembly in an environment by calling a configuration cleaning module, and initializes the environment; the configuration controller starts a network control module according to network control information to perform network configuration and start; the configuration controller performs component configuration file configuration, component option configuration and component service configuration by use of a component configuration module after receiving the feedback of successful network configurations; the configuration information is fed back after all the configurations are successful. The rapid configuration method of the distributed system is capable of completing the distributed system configuration of a complex system without any manual intervention, and can be applied to rapid configuration of the distributed system.

Description

A kind of quickly configuration method of distributed system
Technical field
The present invention relates to distributed computing technology field, refer to a kind of quickly configuration method of distributed system especially.
Background technology
A distributed system is made up of different node multiple on network usually, and the service difference to some extent that each node is installed, therefore, distributed system installation also needs to experience loaded down with trivial details layoutprocedure later, after general distributed system installation, or when needing to adjust the configuration of certain or certain several node, all need manually to complete following configuration step:
1, use KVM or directly operate to node, after logging in one by one, carrying out network configuration, after network configuration success, concentrating and use ssh client or RDP client logs to node;
2, according to the assembly installed, existing service is stopped one by one;
3, the configuration of original assembly is emptied;
4, for arrangement of components item is adjusted to new value;
5, for arrangement of components in need serves starting up.
There is following drawback in said method:
1, depend on manual configuration, and the configuration of each assembly is nearly all repeated labor, allocative efficiency is low, and when system scale is larger, the time that this mode expends is long, depends on human configuration simultaneously and easily makes mistakes, and mistake is also not easy investigation;
2, the reusability of arrangement of components is low, and often newly increasing an assembly all needs to upgrade the configuration instruction of assembly, gives training attendant, lacks the configuration mode that can fixedly follow.
Summary of the invention
The technical problem that the present invention solves is the quickly configuration method providing distributed system; Solve and too rely on manual configuration at present, consuming time long, allocative efficiency is low, easily makes mistakes, and the problem that arrangement of components reusability is low.
The technical scheme that the present invention solves the problems of the technologies described above is:
Described method clears up module and component configuration module realization by Configuration Control Unit, Network conf iotag. module, configuration; After system configuration starts, Configuration Control Unit starts, and the configuration informations such as the network information of computing node of reading user input and the configuration item of node type information and node, generate configured list; Then controller is by calling configuration cleaning module, the configuration of original assembly is environmentally all emptied, carries out initialization to environment; Then Configuration Control Unit is according to network control message, starts network control module, carries out network configuration and startup; Configuration Control Unit receives after network configuration successfully feeds back, and controller is configured by component configuration module, feedback configuration information after configuration successful.
By the original arrangement of components of configuration cleaning module check, if originally there is assembly, first stop the service of original assembly, the configuration of original assembly is all emptied simultaneously; Then the result of process is returned to configuration manager.
The order of described Network conf iotag. module executive operating system this locality completes the configuration of host name, IP address, DNS and network type; Then the result of process is returned to configuration manager.
Described component configuration module comprises component profile module, assembly option configuration module and Component service configuration module; Wherein assembly option configuration module coupling unit profile module, module configuration information complete the configuration of all config options; Component service configuration module is responsible for the service registry of Component service, initialization, daily record are redirected.
The arrangement of components list information of described generation comprises Joint Enterprise type, nodename, node i p information, shares storage information, node virtual type, node virtual machine remote access style and node storage class.
Described configuration cleaning module needs the information of cleaning to comprise the relevant service of node, the relevant configuration of node, the data of backup node, timed task and domain name.
The assembly option configuration module of described component configuration module comprises management node and realization end and the service end full lectotype at same node, and the management end pattern of management end and service end, realizes the realization end pattern of end and service end.
The beneficial effect of the present invention program is as follows:
1, the configurator that the inventive method realizes only needs the disposable configuration information importing network and assembly into before configuration, then can, when without any the configuration completing a complicated distributed system when artificial the intervention, be just a kind of Configuration Framework of automation;
2, method of the present invention has very high durability, and the configuration that distributed system newly increases module only needs a small amount of exploitation namely can support the configuration of automation, and the person that can reduce Development of Distributed System is in the workload of system configuration aspect developing.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the present invention is further described:
Fig. 1 is the flow chart of the inventive method.
Embodiment
As shown in the figure, the inventive method realizes in accordance with the following steps.
(1) information that the node that Configuration Control Unit reads user's input configures about network, assembly etc., formation component configured list, the present invention uses shell script to describe:
Controller passes through implementation controller script config.sh, such as following example:
./config.sh?all?gcloud44150?20.251.44.150?255.255.255.0?20.251.44.254?8.8.8.820.251.44.150?300?20.251.44.150?20.251.44.150?kvm?vnc?qcow2?SYSTEM″
By Parameter transfer to controller, and generate configured list.
export?GCLOUD_NODETYPE=$1
export?GCLOUD_HOSTNAME=$2
export?GCLOUD_IPADDR=$3
export?GCLOUD_NETMASK=$4
export?GCLOUD_GATEWAY=$5
export?GCLOUD_DNS1=$6
export?GCLOUD_NFSIP=$7
export?GCLOUD_LVSIZE=$8
export?GCLOUD_MGIP=$9
export?GCLOUD_NODEIP=${10}
#set?kvm?or?xen,default?is?kvm
export?GCLOUD_HYPERVISOR=${11}
#set?vnc?or?spice,default?is?vnc
export?REMOTE_TYPE=${12}
#set?lvm?or?qcow2,default?is?lvm
export?VOL_TYPE=${13}
#set?SYSTEM?or?SYSTEM-VLAN,default?is?SYSTEM
export?GCLOUD_NETTYPE=${14}
Execfile=config-after-install_standard # controller catalogue
Execfiledir=/root/config-after-install_standard # location of controls
execfiledir_sh=/root/config-after-install_standard/sh
Argesfile=$ { execfiledir}/getarges.txt # configuration list list
#argesfile=/backup/config-after-install_standard/getarges.txt
echo″″>$argesfile
echo″gcloud_nodetype=$GCLOUD_NODETYPE″>>$argesfile
echo″GCLOUD_HOSTNAME=$GCLOUD_HOSTNAME″>>$argesfile
echo″GCLOUD_IPADDR=$GCLOUD_IPADDR″>>$argesfile
echo″GCLOUD_NETMASK=$GCLOUD_NETMASK″>>$argesfile
echo″GCLOUD_GATEWAY=$GCLOUD_GATEWAY″>>$argesfile
echo″GCLOUD_DNS1=$GCLOUD_DNS1″>>$argesfile
echo″GCLOUD_NFSIP=$GCLOUD_NFSIP″>>$argesfile
echo″GCLOUD_LVSIZE=$GCLOUD_LVSIZE″>>$argesfile
echo″GCLOUD_MGIP=$GCLOUD_MGIP″>>$argesfile
echo″GCLOUD_NODEIP=$GCLOUD_NODEIP″>>$argesfile
echo″GCLOUD_HYPERVISOR=$GCLOUD_HYPERVISOR″>>$argesfile
echo″REMOTE_TYPE=$REMOTE_TYPE″>>$argesfile
echo″VOL_TYPE=$VOL_TYPE″>>$argesfile
echo″GCLOUD_NETTYPE=$GCLOUD_NETTYPE″>>$argesfile
else
echo″you?should?install${execfile}first″
exit${RETVAL}
fi
(2) call configuration cleaning module, if originally there is assembly, first stop the service of original assembly, the configuration of original assembly is all emptied simultaneously, and clear up shared storage, the data of backup node, cleaning timed task and domain name; Then the result of process is returned to configuration manager:
Configuration cleaning block code is as follows:
(3) controller plc calls network control module, carries out the configuration of the basic network of node, and the information wherein configured comprises: the title of node server; Network ip address; Detection intranet and extranet communicate.
Network control module is that gcloud-base.sh block code content is as follows:
(4) configuration manager is according to the module configuration information read, invocation component configuration module completes the configuration of assembly in list, component configuration module is divided three classes, executive module configuration file configuration simultaneously in the middle of three classes, and sets up service configuration and the configuration of assembly timed task:
Component configuration module code is as follows:
Type one: configuration management end, realize end, service end is at same node
Type two: management end is at a node
Type three: realize end separately at a node
(5) all configurations are completed, and feedback configuration information.
Produced problem is checked by the journal file exported, and the configuration information of feedback.

Claims (10)

1. a quickly configuration method for distributed system, is characterized in that: described method clears up module and component configuration module realization by Configuration Control Unit, Network conf iotag. module, configuration; After system configuration starts, Configuration Control Unit starts, and the configuration informations such as the network information of computing node of reading user input and the configuration item of node type information and node, generate configured list; Then controller is by calling configuration cleaning module, the configuration of original assembly is environmentally all emptied, carries out initialization to environment; Then Configuration Control Unit is according to network control message, starts network control module, carries out network configuration and startup; Configuration Control Unit receives after network configuration successfully feeds back, and controller is configured by component configuration module, feedback configuration information after configuration successful.
2. the quickly configuration method of distributed system according to claim 1, it is characterized in that: by the original arrangement of components of configuration cleaning module check, if originally there is assembly, first stop the service of original assembly, the configuration of original assembly is all emptied simultaneously; Then the result of process is returned to configuration manager.
3. the quickly configuration method of distributed system according to claim 1, is characterized in that: the order of described Network conf iotag. module executive operating system this locality completes the configuration of host name, IP address, DNS and network type; Then the result of process is returned to configuration manager.
4. the quickly configuration method of distributed system according to claim 2, is characterized in that: the order of described Network conf iotag. module executive operating system this locality completes the configuration of host name, IP address, DNS and network type; Then the result of process is returned to configuration manager.
5. the quickly configuration method of the distributed system according to any one of Claims 1-4, is characterized in that: described component configuration module comprises component profile module, assembly option configuration module and Component service configuration module; Wherein assembly option configuration module coupling unit profile module, module configuration information complete the configuration of all config options; Component service configuration module is responsible for the service registry of Component service, initialization, daily record are redirected.
6. the quickly configuration method of the distributed system according to any one of Claims 1-4, it is characterized in that: the arrangement of components list information of described generation comprises Joint Enterprise type, nodename, node i p information, share storage information, node virtual type, node virtual machine remote access style and node storage class.
7. the quickly configuration method of distributed system according to claim 5, it is characterized in that: the arrangement of components list information of described generation comprises Joint Enterprise type, nodename, node i p information, share storage information, node virtual type, node virtual machine remote access style and node storage class.
8. the quickly configuration method of the distributed system according to claim 1,2 or 4, is characterized in that: the information of described configuration cleaning module needs cleaning comprises the relevant service of node, the relevant configuration of node, the data of backup node, timed task and domain name.
9. the quickly configuration method of distributed system according to claim 5, it is characterized in that: the assembly option configuration module of described component configuration module comprises management node and realization end and the service end full lectotype at same node, the management end pattern of management end and service end, realizes the realization end pattern of end and service end.
10. the quickly configuration method of distributed system according to claim 7, it is characterized in that: the assembly option configuration module of described component configuration module comprises management node and realization end and the service end full lectotype at same node, the management end pattern of management end and service end, realizes the realization end pattern of end and service end.
CN201410466686.3A 2014-09-12 2014-09-12 A kind of quickly configuration method of distributed system Active CN104219097B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410466686.3A CN104219097B (en) 2014-09-12 2014-09-12 A kind of quickly configuration method of distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410466686.3A CN104219097B (en) 2014-09-12 2014-09-12 A kind of quickly configuration method of distributed system

Publications (2)

Publication Number Publication Date
CN104219097A true CN104219097A (en) 2014-12-17
CN104219097B CN104219097B (en) 2018-03-30

Family

ID=52100255

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410466686.3A Active CN104219097B (en) 2014-09-12 2014-09-12 A kind of quickly configuration method of distributed system

Country Status (1)

Country Link
CN (1) CN104219097B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106301906A (en) * 2016-08-10 2017-01-04 青岛海信传媒网络技术有限公司 Object collocation method based on distributed system and device
CN107026756A (en) * 2017-03-31 2017-08-08 广东亿迅科技有限公司 A kind of centralized configuration method of the distributed system based on multicast
CN109600260A (en) * 2018-12-11 2019-04-09 浪潮(北京)电子信息产业有限公司 Distributed memory system High Availabitity arrrangement method, system and device
CN113641469A (en) * 2021-07-05 2021-11-12 广州工程技术职业学院 Distributed system with abstract components, implementation method, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741474A (en) * 2008-11-07 2010-06-16 中兴通讯股份有限公司 Optical network unit starting method and device for gigabit-capable passive optical network
CN101873726A (en) * 2010-07-01 2010-10-27 华为终端有限公司 Upgrading method of wireless repeater and wireless access equipment
CN102143229A (en) * 2011-03-31 2011-08-03 中兴通讯股份有限公司 Method and system for upgrading terminals in batches
CN102523110A (en) * 2011-12-09 2012-06-27 杭州华三通信技术有限公司 Method and device for realizing automatic configuration of equipment with zero configuration
CN103607715A (en) * 2013-11-05 2014-02-26 大唐移动通信设备有限公司 Frequency point configuration method and device thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741474A (en) * 2008-11-07 2010-06-16 中兴通讯股份有限公司 Optical network unit starting method and device for gigabit-capable passive optical network
CN101873726A (en) * 2010-07-01 2010-10-27 华为终端有限公司 Upgrading method of wireless repeater and wireless access equipment
CN102143229A (en) * 2011-03-31 2011-08-03 中兴通讯股份有限公司 Method and system for upgrading terminals in batches
CN102523110A (en) * 2011-12-09 2012-06-27 杭州华三通信技术有限公司 Method and device for realizing automatic configuration of equipment with zero configuration
CN103607715A (en) * 2013-11-05 2014-02-26 大唐移动通信设备有限公司 Frequency point configuration method and device thereof

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106301906A (en) * 2016-08-10 2017-01-04 青岛海信传媒网络技术有限公司 Object collocation method based on distributed system and device
CN106301906B (en) * 2016-08-10 2020-02-07 青岛海信传媒网络技术有限公司 Object configuration method and device based on distributed system
CN107026756A (en) * 2017-03-31 2017-08-08 广东亿迅科技有限公司 A kind of centralized configuration method of the distributed system based on multicast
CN109600260A (en) * 2018-12-11 2019-04-09 浪潮(北京)电子信息产业有限公司 Distributed memory system High Availabitity arrrangement method, system and device
CN113641469A (en) * 2021-07-05 2021-11-12 广州工程技术职业学院 Distributed system with abstract components, implementation method, equipment and medium

Also Published As

Publication number Publication date
CN104219097B (en) 2018-03-30

Similar Documents

Publication Publication Date Title
TWI649657B (en) Cloud service management method
CN108055327A (en) Cloud computing experiment porch based on OpenStack
CN106850621A (en) A kind of method based on container cloud fast construction Hadoop clusters
CN102752137B (en) The apparatus and method of virtual machine network parameter are initiatively set
CN106126273B (en) A kind of method of upgrading BIOS
CN103412768A (en) Zookeeper cluster automatic-deployment method based on script program
CN111245898A (en) Network equipment online method, device, server and storage medium
CN103841179A (en) Cloud desktop system
CN110990026B (en) Automatic deployment method and system for PaaS platform
CN107222320A (en) The method and apparatus that Cloud Server cluster sets up High Availabitity connection
CN104144173A (en) Campus cloud platform system and method based on distributed virtual service technology
CN105007290B (en) It is a kind of to be directed to the linux system Remote Installation configuring management method without disk server
CN108737463A (en) A kind of software deployment method, server and system
CN103605570A (en) Automatic application deployment method and system based on virtual machine template
CN105955742A (en) BIOS refreshing method, service system and BIOS refreshing system
US11349709B2 (en) System and method for onboarding IOT devices
CN109213498A (en) A kind of configuration method and server of internet web front-end
CN104219097A (en) Rapid configuration method of distributed system
CN105306225A (en) Openstack-based physical machine remote shutdown method
CN104113430A (en) Cloud computing data center automatic deployment software framework design
CN111198696A (en) OpenStack large-scale deployment method and system based on bare computer server
CN108989123A (en) A kind of server configuration method and device
CN105404530B (en) It is a kind of to realize easy deployment and the system and method using private clound
CN107704249A (en) A kind of system and method for installing configuration automatically for physical machine
CN110673898B (en) Equipment management method, first equipment and interaction system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 523808 19th Floor, Cloud Computing Center, Chinese Academy of Sciences, No. 1 Kehui Road, Songshan Lake Hi-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: G-Cloud Technology Co., Ltd.

Address before: 523808 No. 14 Building, Songke Garden, Songshan Lake Science and Technology Industrial Park, Dongguan City, Guangdong Province

Patentee before: G-Cloud Technology Co., Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201216

Address after: Room 203, 2 / F, building 6, modern service industry headquarters park, 1769 Yunfeng Avenue, Yunlong demonstration zone, Zhuzhou City, Hunan Province

Patentee after: Hunan Zhongke Guoyun big data industry development Co.,Ltd.

Address before: 523808 19th floor, Cloud Computing Center, Chinese Academy of Sciences, No.1 Kehui Road, Songshanhu high tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee before: G-CLOUD TECHNOLOGY Co.,Ltd.