CN111934904A - Capacity expansion method, controller and system - Google Patents

Capacity expansion method, controller and system Download PDF

Info

Publication number
CN111934904A
CN111934904A CN202010614194.XA CN202010614194A CN111934904A CN 111934904 A CN111934904 A CN 111934904A CN 202010614194 A CN202010614194 A CN 202010614194A CN 111934904 A CN111934904 A CN 111934904A
Authority
CN
China
Prior art keywords
controller
expanded
cluster
configuration information
expansion
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
CN202010614194.XA
Other languages
Chinese (zh)
Other versions
CN111934904B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010614194.XA priority Critical patent/CN111934904B/en
Publication of CN111934904A publication Critical patent/CN111934904A/en
Application granted granted Critical
Publication of CN111934904B publication Critical patent/CN111934904B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a capacity expansion method, a controller and a system. The method comprises the following steps: when finding a controller to be expanded, acquiring application information of the controller to be expanded; and adding the controller to be expanded into the cluster where the controller is located according to the application information so as to expand the cluster. The embodiment of the invention also correspondingly discloses a controller and a system. By adopting the embodiment of the invention, the cluster can automatically expand the capacity of the controller, the capacity expansion efficiency is improved, the user operation is simple and convenient, and the user experience is improved.

Description

Capacity expansion method, controller and system
The application is a divisional application named as 'capacity expansion method, controller and system', with the patent application number of 201410752019.1 and the application date of 2014, 12 and 10.
Technical Field
The invention relates to the field of storage, in particular to a capacity expansion method, a controller and a system.
Background
With the acceleration of the informatization process and the continuous expansion of the business scale, the business data is continuously increased due to huge information quantity, so that the capacity configured at the initial stage of the storage array is probably unable to meet the existing business requirements.
Therefore, in order to increase the storage capacity of the memory array, the memory array needs to be expanded. At present, the capacity expansion of the storage array is mainly carried out by adopting the following modes: 1. inserting a newly added hard disk into a hard disk slot position of an existing hard disk frame of a storage array so as to increase the capacity of the storage array; 2. under the condition that the storage array does not have an idle hard disk slot position or the idle hard disk slot position cannot meet the existing service requirement, the capacity of the storage array is increased by increasing a hard disk frame in the array; 3. when the number of controllers needs to be increased to improve the overall performance of the storage array, capacity expansion can be performed by increasing the number of controllers, wherein the controllers can carry a plurality of hard disk frames.
It can be known from the above that, in order to improve the overall performance of the storage array, the capacity expansion may be performed by adopting the 3 rd mode, that is, the capacity expansion is performed by adding the controller. However, at present, this expansion mode requires manual expansion by an operation user, for example: the operation user needs to power on the controller and manually configure the parameters through the operation page, and the storage array adds the controller into the storage array network according to the manually set parameters, so that the operation of the user is complex, and the user needs to deeply know the parameter functions of each configuration to configure, which brings inconvenience to the user and takes much time for the user.
Disclosure of Invention
The embodiment of the invention provides a capacity expansion method, a controller and a system, which can automatically expand the capacity of the controller, improve the capacity expansion efficiency, simplify the user operation and improve the user experience.
A first aspect of the present invention provides a capacity expansion method, including:
when finding a controller to be expanded, acquiring application information of the controller to be expanded;
and adding the controller to be expanded into the cluster where the controller is located according to the application information so as to expand the cluster.
With reference to the first aspect, in a first possible implementation manner, when a controller to be expanded is found, before acquiring application information of the controller to be expanded, the method includes:
when receiving the expansion starting instruction, generating the expansion configuration parameters required by expansion.
With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, the obtaining, when a controller to be expanded is found, application information of the controller to be expanded includes:
sending broadcast information;
and receiving application information returned by the controller to be expanded in response to the broadcast information.
With reference to the second possible implementation manner of the first aspect, in a third possible implementation manner, the application information carries attribute information of the to-be-expanded controller, where the attribute information includes a serial number SN of the to-be-expanded controller, a MAC address of the to-be-expanded controller, and a version number of the to-be-expanded controller.
With reference to the third possible implementation manner of the first aspect, in a fourth possible implementation manner, the adding the controller to be expanded to a cluster of controllers according to the application information includes:
acquiring current configuration information of the cluster;
generating new configuration information according to the attribute information and the current configuration information;
and carrying out automatic configuration according to the new configuration information.
With reference to the fourth possible implementation manner of the first aspect, in a fifth possible implementation manner, the generating new configuration information according to the attribute information and the current configuration information further includes:
and generating the new configuration information according to the attribute information, the current configuration information and the capacity expansion configuration information.
With reference to the fourth possible implementation manner of the first aspect or the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner, the new configuration information includes first configuration information of the controller to be expanded and second configuration information of the cluster;
the automatically configuring according to the new configuration information includes:
and broadcasting the first configuration information to enable the controller to be expanded to be configured according to the first configuration information.
With reference to the fourth possible implementation manner of the first aspect or the fifth possible implementation manner of the first aspect, in a seventh possible implementation manner, the performing terminal configuration according to the new configuration information includes:
and modifying the configuration of the cluster according to the second configuration information.
With reference to the sixth possible implementation manner of the first aspect or the seventh possible implementation manner of the first aspect, in an eighth possible implementation manner, the first configuration information includes:
the number of the controllers of the cluster after capacity expansion, the ID of the controller to be expanded, the IP address of the controller to be expanded, the gateway of the controller to be expanded, the mask of the controller to be expanded, the ID list of the controller of the cluster after capacity expansion and the IP list of the controller of the cluster after capacity expansion.
With reference to the sixth possible implementation manner of the first aspect or the seventh possible implementation manner of the first aspect, in a ninth possible implementation manner, the second configuration information includes: the number of controllers of the cluster after capacity expansion, the ID list of the controllers of the cluster after capacity expansion, and the IP list of the controllers of the cluster after capacity expansion.
With reference to the first aspect or the first possible implementation manner of the first aspect to the ninth possible implementation manner of the first aspect, in a tenth possible implementation manner, after the adding the controller to be expanded to the cluster where the controller is located according to the application information, the method further includes:
judging whether the version number of the controller to be expanded is consistent with the version number of the cluster;
and when the version number of the controller to be expanded is not consistent with the version number of the cluster, updating the version of the controller to be expanded so as to enable the version of the controller to be expanded to be consistent with the version of the cluster.
A second aspect of the present invention provides a controller, comprising:
the device comprises an acquisition unit, a control unit and a control unit, wherein the acquisition unit is used for acquiring application information of a controller to be expanded when the controller to be expanded is found;
and the adding unit is used for adding the controller to be expanded into the cluster where the controller is located according to the application information so as to expand the cluster.
With reference to the second aspect, in a first possible implementation manner, the expansion and control module further includes:
and the generating unit is used for generating capacity expansion configuration parameters required by capacity expansion when receiving the capacity expansion starting instruction.
With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner, the obtaining unit includes:
a transmitting subunit, configured to transmit broadcast information;
and the receiving subunit is used for receiving the application information returned by the controller to be expanded in response to the broadcast information.
With reference to the second possible implementation manner of the second aspect, in a third possible implementation manner, the application information carries attribute information of the to-be-expanded controller, where the attribute information includes a serial number SN of the to-be-expanded controller, a MAC of the to-be-expanded controller, and a version number of the to-be-expanded controller.
With reference to the third possible embodiment of the second aspect, in a fourth possible embodiment, the adding unit includes:
acquiring a subunit, configured to acquire current configuration information of the cluster;
the first generation subunit is used for generating new configuration information according to the attribute information and the current configuration information;
and the configuration subunit is used for carrying out automatic configuration according to the new configuration information.
With reference to the fourth possible implementation manner of the second aspect, in a fifth possible implementation manner, the first generating subunit is specifically configured to:
and generating the new configuration information according to the attribute information, the current configuration information and the capacity expansion configuration information.
With reference to the fourth possible implementation manner of the second aspect or the fifth possible implementation manner of the second aspect, in a sixth possible implementation manner, the new configuration information includes first configuration information of the controller to be expanded and second configuration information of the controller;
the configuration subunit is specifically configured to:
and broadcasting the first configuration information so as to enable the controller to be expanded to automatically configure according to the first configuration information.
With reference to the fourth possible implementation manner of the second aspect or the fifth possible implementation manner of the second aspect or the sixth possible implementation manner of the second aspect, in a seventh possible implementation manner, the configuration subunit is specifically configured to:
and modifying the configuration of the cluster according to the second configuration information.
With reference to the sixth possible implementation manner of the second aspect or the seventh possible implementation manner of the second aspect, in an eighth possible implementation manner, the first configuration information includes: the number of the controllers of the cluster after capacity expansion, the ID of the controller to be expanded, the IP address of the controller to be expanded, the gateway of the controller to be expanded, the mask of the controller to be expanded, the ID list of the controller of the cluster after capacity expansion and the IP list of the controller of the cluster after capacity expansion.
With reference to the sixth possible implementation manner of the second aspect or the seventh possible implementation manner of the second aspect, in a ninth possible implementation manner, the second configuration information includes: the number of controllers of the cluster after capacity expansion, the ID list of the controllers of the cluster after capacity expansion, and the IP list of the controllers of the cluster after capacity expansion.
With reference to the second aspect or the first possible implementation manner of the second aspect to the ninth possible implementation manner of the second aspect, in a tenth possible implementation manner, the controller further includes:
the judging unit is used for judging whether the version number of the controller to be expanded is consistent with the version number of the cluster;
and the updating unit is used for updating the version of the controller to be expanded when the judging unit judges that the version number of the controller to be expanded is not consistent with the version number of the cluster, so that the version of the controller to be expanded is consistent with the version of the cluster.
A third aspect of the present invention provides an expansion system, which includes the controller as described above and a controller to be expanded connected to the controller, wherein,
and the controller to be expanded is used for receiving the broadcast information sent by the controller, responding to the broadcast information and returning application information to the controller.
With reference to the third aspect, in a first possible implementation manner, the system further includes a terminal device connected to the controller to be controlled,
the terminal device is used for displaying the expansion control state of the real-time controller, receiving an operation instruction of a user, and sending the operation instruction to the controller so as to control the expansion control process of the controller.
The embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, when the controller discovers the controller to be expanded, the application information of the controller to be expanded is obtained, and the controller to be expanded is added into the cluster where the controller is located according to the application information so as to automatically expand the cluster. This makes the controller can expand the capacity to the cluster automatically, has improved the dilatation efficiency, has simplified user operation, improves user experience.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a capacity expansion method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of another capacity expansion method according to an embodiment of the present invention.
FIG. 3 is a block diagram of a controller provided by an embodiment of the present invention;
FIG. 4 is a block diagram of yet another controller provided by an embodiment of the present invention;
FIG. 5 is a block diagram of a capacity expansion system according to an embodiment of the present invention;
FIG. 6 is a block diagram of another capacity expansion system according to an embodiment of the present invention;
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The execution subject of an embodiment of the present invention may be a controller including a dedicated controller for a storage array and a general server installed with associated software for the storage array. Specifically, the controller may further include a main controller in the storage array and a controller to be expanded to be added to the storage array.
Fig. 1 is a schematic flow chart of a capacity expansion method according to an embodiment of the present invention. As shown in fig. 1, the capacity expansion method according to this embodiment includes the steps of:
s100, when finding the controller to be expanded, obtaining the application information of the controller to be expanded.
In an embodiment of the present invention, the execution subject controller may be a master controller of a cluster in the storage array, where the cluster may be a controller cluster composed of a plurality of controllers in the storage array. The storage array described herein may be comprised of a controller and a hard disk enclosure, and the storage array may include a plurality of controllers, each controller may include a plurality of hard disk enclosures, and each hard disk enclosure may include a plurality of hard disks, wherein a master controller in the storage array may result from an automatic election between the controllers in the storage array, and the master controller may be used to control other controllers in the storage array. In the embodiment of the invention, the controller to be expanded can be a controller carrying at least one hard disk frame.
In the embodiment of the present invention, the master controller may send broadcast information to the trunking network at regular intervals, where the master controller sends the broadcast information through a UDP (User Datagram Protocol) broadcast mechanism. Preferably, the main controller may transmit broadcast information to the controller to be expanded. And when the cluster network has a to-be-expanded controller in network connection with the main controller, the to-be-expanded controller receives the broadcast information, responds to the broadcast information and returns application information. And the application information is used for applying for joining the cluster to the master controller. Specifically, the application information includes: attribute information of the controller to be extended, where the attribute information includes an SN (Serial Number) of the controller to be extended, a MAC address (Media Access Control) of the controller to be extended, and a version Number of the controller to be extended.
Preferably, in the embodiment of the present invention, when an operation user wants to add a controller to be expanded to a cluster to expand the controller to the cluster, the operation user may first connect the controller to be expanded to a cluster network and power on the controller. For example: when the cluster network is provided with 5 interfaces for connecting the controllers, wherein 4 interfaces are already connected to the controllers, an operation user can connect the network of the controller to be expanded to the rest interface of the cluster network, so that the controller to be expanded is connected to the cluster network formed by the controllers in the storage array.
And S101, adding the controller to be expanded into the cluster where the controller is located according to the application information so as to expand the cluster.
In the embodiment of the invention, when the main controller receives the application information sent by the controller to be expanded, the main controller can acquire the current configuration information of the cluster. The current configuration information may include the number of controllers of the cluster, an Identity (ID) list of the controllers of the cluster, an Internet Protocol (IP) list of the controllers of the cluster, and the like.
In the embodiment of the present invention, after the main controller obtains the current configuration information, the main controller may generate new configuration information according to the attribute information carried by the application information sent by the controller to be expanded and the current configuration information. The new configuration information may include first configuration information of the controller to be expanded and second configuration information of the cluster. The first configuration information may be configuration information that the controller to be expanded needs to be changed in order to join the cluster. The first configuration information may include second configuration information, and the first configuration information may be the number of controllers of the cluster after capacity expansion, the ID of the controller to be expanded, the IP address of the controller to be expanded, the gateway information of the controller to be expanded, the mask of the controller to be expanded, an ID list of the controller of the cluster after capacity expansion, and an IP list of the controller of the cluster after capacity expansion. The second configuration information may be a configuration that the main controller and the other controllers of the current cluster need to be changed in order to add a controller to be expanded to the cluster. The second configuration information may include the number of controllers of the cluster after the capacity expansion, an ID list of the controllers of the cluster after the capacity expansion, and an IP list of the controllers of the cluster after the capacity expansion.
Further, after the main controller generates the first configuration information and the second configuration information, the main controller may broadcast the first configuration information in the cluster network, so that the controller to be expanded, which is accessed to the cluster network, acquires the first configuration information, and configures according to the first configuration information, so as to meet the configuration requirement of the cluster to be expanded. The first configuration information may include second configuration information, and the configuring, by the controller to be expanded according to the first configuration information, may be: the controller to be expanded may perform IP configuration according to an IP address included in the first configuration information, the controller to be expanded may perform gateway configuration according to gateway information included in the first configuration information, the controller to be expanded may perform mask configuration according to a mask included in the first configuration information, the controller to be expanded may perform ID configuration according to an ID of the controller to be expanded included in the first configuration information, the controller to be expanded may perform controller quantity configuration according to a controller quantity of the cluster after expansion included in the first configuration information, and the like. Further, the main controller may modify the configuration of each controller of the cluster according to the second configuration information, so as to meet the configuration requirement required by adding the controller to be expanded to the cluster. The modifying, by the master controller, the configuration of each controller of the cluster according to the second configuration information may be: the main controller may modify, according to the number of controllers of the cluster after capacity expansion included in the second configuration information, the number of controllers of the cluster configured by each controller in the cluster, the main controller may modify, according to the ID list of the controllers of the cluster after capacity expansion included in the second configuration information, the ID list of the controllers of the cluster configured by each controller in the cluster, and the main controller may modify, according to the IP list of the controllers of the cluster after capacity expansion included in the second configuration information, the IP list of the controllers of the cluster configured by each controller in the cluster.
In the embodiment of the invention, after the main controller modifies the configuration of each controller of the cluster and the controller to be expanded, the main controller can further operate the controller to be expanded so as to add the controller to be expanded into the cluster, thereby expanding the cluster. The main controller further operates the to-be-expanded controller in the prior art, which is not described herein.
In the embodiment of the invention, after the main controller adds the controller to be expanded into the cluster, the main controller can store the service data on the storage unit of the controller to be expanded according to the requirement, thereby realizing online expansion control.
In the embodiment of the present invention, it can be understood that an operating user may connect an interface of a controller to be expanded with a network interface of a cluster, and a main controller may automatically identify the controller to be expanded and automatically configure configuration parameters of each controller and the controller to be expanded in the cluster network, so that the controller to be expanded is added to the cluster according to the obtained configuration parameters, and after the expansion control is completed, the controller to be expanded immediately becomes a part of the cluster and may undertake the service processing of the cluster, so that the "plug and play" of the cluster to the controller to be expanded is realized in the whole expansion process, the expansion efficiency is improved, the user operation is simplified, and the user experience is improved.
In the embodiment of the invention, after the main controller configures and modifies each controller of the cluster and the controller to be expanded, the main controller can add the controller to be expanded into the cluster according to the configured configuration parameters, thereby performing controller expansion on the cluster.
In the embodiment of the invention, when the controller discovers the controller to be expanded, the application information of the controller to be expanded is obtained, and the controller to be expanded is added into the cluster where the controller is located according to the application information so as to automatically expand the cluster. This makes the controller can expand the capacity to the cluster automatically, has improved the dilatation efficiency, has simplified user operation, improves user experience.
Fig. 2 is a schematic flow chart of another capacity expansion method according to an embodiment of the present invention. As shown in fig. 2, the capacity expansion method according to this embodiment includes the steps of:
s200, when receiving the expansion starting instruction, generating expansion configuration parameters required by expansion.
In the embodiment of the invention, when an operation user needs to expand the cluster of the controller, the operation user can input an expansion starting instruction through the terminal equipment for managing the cluster. The terminal equipment can be internally provided with management software, and an operation user can input a capacity expansion starting instruction through an input device of the terminal equipment. The input device may include a touch screen, keys, and the like.
In the embodiment of the invention, when the main controller receives the capacity expansion starting instruction, the main controller can check before the capacity expansion and check whether the current state of the storage array can implement the controller capacity expansion. For example: and judging whether the storage array operates normally, whether the controllers in the controller cluster in the storage array reach an upper limit, and the like. When it is determined that the storage array can perform expansion control, the main controller may prepare expansion configuration parameters required for expansion control. For example, an ID and an IP address assigned to the controller to be expanded may be prepared.
S201, when finding the controller to be expanded, obtaining the application information of the controller to be expanded.
In the embodiment of the present invention, referring to the structure diagram of a controller shown in fig. 3, each controller in a storage array may have an Expansion control module (EXP) built therein, and the Expansion control module may be used to implement automatic configuration of the configuration parameters of the controller of a cluster and the controller to be expanded, so as to implement a function of automatic Expansion control of the controller for the cluster. At ordinary times, the expansion control module of each controller is in a closed state, when an operation user performs expansion, the expansion control module of the main controller can be started to realize the function of automatically configuring the configuration parameters of the cluster and the controller to be expanded, and the expansion control modules of other controllers keep in a closed state. The expansion control module can be used for discovering the controller to be expanded through a UDP broadcast mechanism. Meanwhile, an IP address is distributed to the controller to be expanded; the expansion control module can also be used for generating new configuration parameters of the cluster during expansion control; the expansion control module can be further used for respectively issuing the new configuration parameters to the controller to be expanded and each controller of the cluster, and detecting whether the controller to be expanded is added to the cluster; the expansion control module can also be used for checking whether the current state of the storage array can implement expansion control of the controller before expansion control and checking whether the current state of the storage array is normal after expansion control; the expansion control module can also be used for realizing the interface communication function of issuing configuration parameters to the controller to be expanded and each controller in the cluster; the expansion control module can also be used for broadcasting information through a UDP broadcast mechanism; the expansion control module can also be used for controlling the working process of the main controller and providing an interface for an external module or a terminal to inquire the state of the expansion control process or the expansion control result.
In the embodiment of the present invention, referring to fig. 3, the controller may further include an SYS (System Control) module connected to the expansion Control module, and in order to distinguish the controller from the SYS module of the to-be-expanded controller described below, in the embodiment, the SYS module is represented by a first SYS module. The first SYS module is used for cluster management, and the expansion control module can realize functions of expansion control check, configuration generation, configuration execution and the like through the first SYS module. Can include the following steps: the expansion control module calls a first SYS module interface to carry out check before expansion control and verification after expansion control; the expansion control module can call a first SYS module interface to generate first configuration information and second configuration information required by expansion control; the expansion control module may invoke the first SYS module interface to modify the configuration of the cluster.
In the embodiment of the invention, the main controller can find the controller to be expanded through the expansion control module. And the expansion control module sends broadcast information through a UDP broadcast unit, wherein the broadcast information is used for discovering the controller to be expanded. When the controller to be expanded returns the application information according to the broadcast information, the expansion control module can receive the application information returned by the controller to be expanded. And the application information is used for applying for joining the cluster to the master controller. Specifically, the application information includes: and the attribute information of the controller to be expanded comprises the SN of the controller to be expanded, the MAC address of the controller to be expanded and the version number of the controller to be expanded.
In an embodiment of the present invention, in order to facilitate operation of the user management controller, as shown in fig. 3, the main controller may further include a management monitoring module connected to the expansion control module and the first SYS module, respectively, where the management monitoring module may be configured to monitor or control operation of the main controller. The operation user can interact with the main controller through an input device of the terminal equipment connected with the management monitoring module, so that the operation user can send an operation instruction to the management monitoring module through the terminal equipment. The operation user can control the expansion control module through the management monitoring module. For example: the expansion control module is normally in a closed state, when an operation user needs to perform expansion, the operation user can send an expansion starting instruction to the management monitoring module through the terminal device, so that the management monitoring module obtains the instruction to control the expansion control module to start so as to prepare for automatic expansion of the cluster, wherein the expansion starting instruction can be used for starting the expansion control module. When the operation user starts the expansion control mode through the terminal device, the management monitoring module acquires the expansion starting instruction to start the expansion control module, and simultaneously monitors the operation process of the expansion control module, wherein the management monitoring module starts the expansion control module by sending the expansion starting instruction to the expansion control module, so that the expansion control module responds to the instruction to start. When the expansion control module receives the expansion starting instruction, the expansion control module can check before expansion control and check whether the current state of the storage array can implement expansion control of the controller. For example: and judging whether the storage array operates normally, whether the controllers in the controller cluster in the storage array reach an upper limit, and the like. The check before the expansion control by the expansion control module may be that the expansion control module calls an interface of a first SYS module of the controller to implement the check before the expansion control. After the storage array is judged to be capable of implementing expansion control, the expansion control module can prepare expansion configuration parameters required by the expansion control. For example: an ID assigned to the controller to be expanded, an IP address, and the like may be prepared. And when the expansion control check of the expansion control module is finished, the expansion control module can discover the controller to be expanded. The specific embodiment of the above can be referred to for the expanding and controlling module to find the controller to be expanded.
S202, adding the controller to be expanded into the cluster where the controller is located according to the application information so as to expand the cluster.
In the embodiment of the invention, when the expansion control module receives the application information sent by the controller to be expanded, the expansion control module can acquire the current configuration information. The current configuration information may include the number of controllers of the cluster, an ID list of the controllers of the cluster, an IP list of the controllers of the cluster, and the like, of the controllers of the cluster.
In the embodiment of the present invention, after the expansion control module obtains the current configuration information, the expansion control module may generate the first configuration information of the controller to be controlled and the second configuration information of the cluster according to the attribute information, the current configuration information, and the expansion configuration parameter carried by the application information sent by the controller to be expanded, where the expansion control module may call the first SYS module of the controller to generate the first configuration parameter and the second configuration parameter required for expansion control. The first configuration information may be configuration information that the controller to be expanded needs to be changed in order to join the cluster. The first configuration information may include second configuration information, and the first configuration information may be the number of controllers of the cluster after capacity expansion, the ID of the controller to be expanded, the IP address of the controller to be expanded, the gateway information of the controller to be expanded, the mask of the controller to be expanded, the ID list of the controller of the cluster after capacity expansion, and the IP list of the controller of the cluster after capacity expansion. The second configuration information may be used to configure the respective controllers of the current cluster, where the respective controllers may include the master controller and other controllers. The second configuration information may be configuration information that the main controller and other controllers of the current cluster need to be changed in order to add the controller to be expanded. The second configuration information may include the number of controllers of the cluster after the capacity expansion, an ID list of the controllers of the cluster after the capacity expansion, and an IP list of the controllers of the cluster after the capacity expansion.
After the expansion control module generates the first configuration information and the second configuration information, the expansion control module may modify the configuration of the to-be-expanded controller and each controller of the cluster according to the first configuration information and the second configuration information. The expansion control module can broadcast the first configuration information in the cluster, so that the controller to be expanded, which is accessed to the cluster, is configured according to the first configuration information, and the configuration requirement of the cluster on the controller to be expanded is met. Further, the expansion control module can modify the configuration of each controller of the cluster by calling the first SYS module to modify the configuration of each controller of the cluster, so as to meet the configuration requirement for adding the controller to be expanded to the cluster.
In the embodiment of the invention, after the expansion control module modifies the configuration of the controller to be expanded and each controller of the cluster, the expansion control module can inform the first SYS module to add the controller to be expanded into the cluster. The first SYS module is communicated with the controller to be expanded in a heartbeat mode, and the controller to be expanded is added into the cluster.
In the embodiment of the present invention, while the expansion control module performs the above embodiment, the expansion control module may also monitor the state of the controller and the state of the controller to be expanded at the same time until the controller to be expanded joins the cluster. And after the controller to be expanded is added into the cluster, the main controller can obtain the end of expansion control and close the expansion control module.
In the embodiment of the invention, an operation user can control the starting and the suspension of the expansion control module through the management monitoring module. And in the process of carrying out expansion control on the expansion control module, an operating user can inquire the expansion control process through the management monitoring module, for example: the current running state of the expansion control, the success or failure of each step of the expansion control process, which process the main controller is in the expansion control, and the like. Furthermore, the management monitoring module can also automatically display the state information in the expansion control process through the terminal equipment, so that an operation user can master the expansion control process.
In the embodiment of the invention, the controller can implement a mode of adding the controller to be expanded into the cluster of the main controller according to the application information through the interaction of the built-in expansion control module and other modules.
In an embodiment of the present invention, referring to fig. 3, the master controller may further include a maintenance module connected to the first SYS module. And the maintenance module is used for updating the version of the controller to be expanded. In the embodiment of the invention, in the process of carrying out expansion control on the cluster, the first SYS module of the main controller can detect and judge whether the version number of the controller to be expanded is consistent with the version number of the cluster, and when the SYS module judges that the version number of the controller to be expanded is not consistent with the version number of the cluster, the maintenance module updates the version of the controller to be expanded so as to ensure that the version of the controller to be expanded is consistent with the version of the cluster.
In the embodiment of the invention, when the expansion control module of the controller finds the controller to be expanded, the application information of the controller to be expanded is obtained, and the controller to be expanded is added into the cluster of the controller according to the application information so as to expand the cluster. The controller can automatically expand the capacity of the cluster through the expansion control module, so that the capacity expansion efficiency is improved, the user operation is simple and convenient, and the user experience is improved.
To facilitate a better implementation of the above-described aspects of embodiments of the present invention, the following also provides relevant means for implementing the above-described aspects in cooperation.
Fig. 4 is a structural diagram of another controller according to an embodiment of the present invention. Wherein, as shown in fig. 4, the controller includes:
the acquiring unit 10 is configured to acquire application information of a controller to be expanded when the controller to be expanded is found;
and the adding unit 20 is connected to the obtaining unit 10, and is configured to add the controller to be expanded to the cluster where the controller is located according to the application information, so as to expand the cluster.
Wherein the controller further comprises:
the generating unit 30 connected to the adding unit 20 is configured to generate a capacity expansion configuration parameter required for capacity expansion when receiving a capacity expansion starting instruction.
Wherein the acquiring unit 10 includes:
a transmitting subunit 1, configured to transmit broadcast information;
and the receiving subunit 2 is configured to receive application information returned by the controller to be expanded in response to the broadcast information.
The application information carries the attribute information of the controller to be expanded, and the attribute information comprises the serial number SN of the controller to be expanded, the MAC of the controller to be expanded and the version number of the controller to be expanded.
Wherein the adding unit 20 includes:
acquiring a subunit 3, configured to obtain current configuration information of the cluster;
a generating subunit 4, configured to generate new configuration information according to the attribute information and the current configuration information;
and the configuration subunit 5 is configured to perform automatic configuration according to the new configuration information.
Wherein the generating subunit 4 is specifically configured to:
and generating the new configuration information according to the attribute information, the current configuration information and the capacity expansion configuration information.
The new configuration information comprises first configuration information of the controller to be expanded and second configuration information of the controller;
the configuration subunit 5 is specifically configured to:
and broadcasting the first configuration information so as to enable the controller to be expanded to automatically configure according to the first configuration information.
Wherein the configuration subunit 5 is specifically configured to:
and modifying the configuration of the cluster according to the second configuration information.
Wherein the first configuration information comprises: the number of the controllers of the cluster after capacity expansion, the ID of the controller to be expanded, the IP address of the controller to be expanded, the gateway of the controller to be expanded, the mask of the controller to be expanded, the ID list of the controller of the cluster after capacity expansion and the IP list of the controller of the cluster after capacity expansion.
Wherein the second configuration information comprises: the number of controllers of the cluster after capacity expansion, the ID list of the controllers of the cluster after capacity expansion, and the IP list of the controllers of the cluster after capacity expansion.
Wherein, the adding unit 20 further comprises:
a judging subunit 6, configured to judge whether the version number of the controller to be expanded is consistent with the version number of the cluster;
and the updating subunit 7 is configured to update the version of the controller to be expanded when the judging unit judges that the version number of the controller to be expanded is not consistent with the version number of the cluster, so that the version of the controller to be expanded is consistent with the version of the cluster.
It can be understood that the functions of the functional modules of the apparatus in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the relevant description of the foregoing method embodiment, which is not described herein again.
In the embodiment of the invention, when the controller discovers the controller to be expanded, the application information of the controller to be expanded is obtained, and the controller to be expanded is added into the cluster where the controller is located according to the application information so as to automatically expand the cluster. This makes the controller can expand the capacity to the cluster automatically, has improved the dilatation efficiency, has simplified user operation, improves user experience.
Fig. 5 is a structural diagram of a capacity expansion system according to an embodiment of the present invention. As shown in fig. 5, the capacity expansion system according to this embodiment may include the controller 1000 and the controller to be expanded 2000 according to the above embodiments.
The controller 2000 to be expanded is configured to receive the broadcast information sent by the controller, respond to the broadcast information, and return application information to the controller.
In the embodiment of the invention, after the controller to be expanded is electrified and accessed into the cluster, the controller to be expanded can detect whether the broadcast information sent by the main controller exists. And when the broadcast information is detected, the controller to be expanded returns application information to the main controller. The controller to be expanded returns application information through a UDP mechanism, the application information carries attribute information of the controller to be expanded, and the attribute information comprises a serial number SN of the controller to be expanded, an MAC of the controller to be expanded and a version number of the controller to be expanded. The attribute information may be preset by the operating user at the factory stage.
In the embodiment of the present invention, an extended control Agent module (EXP-Agent) may be built in the controller to be extended, wherein the extended control Agent module may be set to automatically operate after being powered on in a factory stage. When the expansion control agent module starts to operate, the expansion control agent module automatically discovers the broadcast information sent by the main controller, so that the controller to be expanded automatically joins in the cluster. And after the cluster expansion control is finished, the cluster expansion control can be closed by a second SYS module built in the controller to be expanded, and the cluster expansion control is not operated any more.
In the embodiment of the present invention, the second SYS module may be a SYS module of the controller to be expanded, and the second SYS module is configured to communicate with the first SYS module of the controller in a heartbeat manner after expansion control, and join in a cluster.
In the embodiment of the present invention, the controller to be expanded may further include an operation maintenance module. The operation maintenance module is used for changing the system version of the controller to be expanded. In the embodiment of the invention, the second SYS module may determine whether the system version operated by the controller to be expanded is consistent with the system versions operated by the controllers of the cluster, and if not, the second SYS module triggers the operation maintenance module to communicate with the operation maintenance module of the main controller, so as to achieve consistency between the system version of the controller to be expanded and the system versions of the controllers of the cluster.
In the embodiment of the invention, when the controller discovers the controller to be expanded, the application information of the controller to be expanded is obtained, and the controller to be expanded is added into the cluster of the controller according to the application information so as to expand the cluster. This makes the controller can carry out the dilatation to the controller automatically, has improved dilatation efficiency, has simplified user operation, improves user experience.
Fig. 6 is a structural diagram of another capacity expansion system according to an embodiment of the present invention. As shown in fig. 6, an expansion system according to this embodiment may include the controller 1000 according to the above embodiment, the controller 2000 to be expanded according to the above embodiment, and a terminal device 3000 connected to the controller.
The terminal device 3000 is configured to display an expansion control state of the controller, receive an operation instruction of a user, and send the operation instruction to the controller to control an expansion control process of the controller.
In the embodiment of the invention, in order to facilitate the operation of the user management cluster, the operation user can interact with the main controller of the cluster through the terminal device, so that the operation user can monitor the running state of the main controller through the terminal device or control the running of the main controller through the terminal device. The terminal device 3000 may be connected to a management monitoring module of the main controller, the management monitoring module may obtain an operation state of the main controller and display the operation state through the terminal device 3000, and the management monitoring module obtains an operation instruction of operation control through the terminal device 3000 and issues the operation instruction to a corresponding functional module for execution. The terminal device 300 may be a mobile phone, a computer, a tablet computer, or other terminal devices.
In the embodiment of the invention, when the controller discovers the controller to be expanded, the application information of the controller to be expanded is obtained, and the controller to be expanded is added into the cluster where the controller is located according to the application information so as to automatically expand the cluster. This makes the controller can expand the capacity to the cluster automatically, has improved the dilatation efficiency, has simplified user operation, improves user experience.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present invention, and it is therefore to be understood that the invention is not limited by the scope of the appended claims.

Claims (13)

1. A capacity expansion method is characterized by comprising the following steps:
acquiring attribute information of the controller to be expanded;
acquiring current configuration information of the cluster, generating new configuration information according to the attribute information and the current configuration information, and configuring the controller to be expanded and the cluster according to the new configuration information so as to enable the controller to be expanded to join the cluster.
2. The method as claimed in claim 1, wherein when the controller to be extended is found, before obtaining the attribute information of the controller to be extended, it comprises:
when receiving the expansion starting instruction, generating the expansion configuration parameters required by expansion.
3. The method of claim 1, wherein the attribute information comprises a serial number SN of the controller to be extended, a medium access control MAC address of the controller to be extended, and a version number of the controller to be extended.
4. The method of claim 3, wherein said generating new configuration information based on said attribute information and said current configuration information further comprises:
and generating the new configuration information according to the attribute information, the current configuration information and the capacity expansion configuration information.
5. The method of claim 1, wherein the new configuration information comprises:
the number of the controllers of the cluster after capacity expansion, the ID of the controller to be expanded, the protocol IP address interconnected between the networks of the controller to be expanded, the gateway of the controller to be expanded, the mask of the controller to be expanded, the ID list of the controller of the cluster after capacity expansion or the IP list of the controller of the cluster after capacity expansion.
6. The method of any one of claims 1-5, further comprising:
judging whether the version number of the controller to be expanded is consistent with the version number of the cluster;
and when the version number of the controller to be expanded is not consistent with the version number of the cluster, updating the version of the controller to be expanded so as to enable the version of the controller to be expanded to be consistent with the version of the cluster.
7. A controller, characterized in that the controller comprises:
the acquisition unit is used for acquiring the attribute information of the controller to be expanded;
and the joining unit is used for acquiring the current configuration information of the cluster, generating new configuration information according to the attribute information and the current configuration information, and configuring the controller to be expanded and the cluster according to the new configuration information so as to join the controller to be expanded into the cluster.
8. The controller of claim 7, wherein the controller further comprises:
and the generating unit is used for generating capacity expansion configuration parameters required by capacity expansion when receiving the capacity expansion starting instruction.
9. The controller of claim 7, wherein the attribute information comprises a serial number SN of the controller to be extended, a MAC of the controller to be extended, and a version number of the controller to be extended.
10. The controller of claim 7, wherein the new configuration information comprises: the number of the controllers of the cluster after capacity expansion, the ID of the controller to be expanded, the protocol IP address interconnected between the networks of the controller to be expanded, the gateway of the controller to be expanded, the mask of the controller to be expanded, the ID list of the controller of the cluster after capacity expansion or the IP list of the controller of the cluster after capacity expansion.
11. The controller according to any one of claims 7 to 10, wherein the adding unit comprises:
the judging subunit is used for judging whether the version number of the controller to be expanded is consistent with the version number of the cluster;
and the updating subunit is used for updating the version of the controller to be expanded when the judging unit judges that the version number of the controller to be expanded is inconsistent with the version number of the cluster, so that the version of the controller to be expanded is consistent with the version of the cluster.
12. An expansion system comprising the controller according to any one of claims 7 to 11 and a controller to be expanded connected to the controller, wherein,
and the controller to be expanded is used for receiving the broadcast information sent by the controller, responding to the broadcast information and returning application information to the controller.
13. The system of claim 12, further comprising a terminal device connected to the controller,
the terminal device is used for displaying the expansion control state of the real-time controller, receiving an operation instruction of a user, and sending the operation instruction to the controller so as to control the expansion control process of the controller.
CN202010614194.XA 2014-12-10 2014-12-10 Capacity expansion method, controller and system Active CN111934904B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010614194.XA CN111934904B (en) 2014-12-10 2014-12-10 Capacity expansion method, controller and system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010614194.XA CN111934904B (en) 2014-12-10 2014-12-10 Capacity expansion method, controller and system
CN201410752019.1A CN105743671B (en) 2014-12-10 2014-12-10 Capacity expansion method, controller and system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201410752019.1A Division CN105743671B (en) 2014-12-10 2014-12-10 Capacity expansion method, controller and system

Publications (2)

Publication Number Publication Date
CN111934904A true CN111934904A (en) 2020-11-13
CN111934904B CN111934904B (en) 2023-11-03

Family

ID=56238462

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201410752019.1A Active CN105743671B (en) 2014-12-10 2014-12-10 Capacity expansion method, controller and system
CN202010614194.XA Active CN111934904B (en) 2014-12-10 2014-12-10 Capacity expansion method, controller and system

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201410752019.1A Active CN105743671B (en) 2014-12-10 2014-12-10 Capacity expansion method, controller and system

Country Status (1)

Country Link
CN (2) CN105743671B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107562382B (en) * 2017-08-30 2020-05-29 郑州云海信息技术有限公司 Automatic dynamic disk capacity expansion method and system based on timed task
CN109787792B (en) * 2017-11-10 2022-05-13 阿里巴巴集团控股有限公司 System for managing distributed service cluster
CN108418863B (en) * 2018-01-31 2021-06-04 深信服科技股份有限公司 Management method of controller cluster, SDN controller and storage medium
CN111782147A (en) * 2020-06-30 2020-10-16 北京百度网讯科技有限公司 Method and apparatus for cluster scale-up
CN112506444A (en) * 2020-12-28 2021-03-16 南方电网深圳数字电网研究院有限公司 Kubernetes cluster-based expansion and contraction capacity control method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873237A (en) * 2010-06-13 2010-10-27 用友软件股份有限公司 Method and system for dynamically maintaining member servers in cluster
CN103931138A (en) * 2011-10-17 2014-07-16 阿尔卡特朗讯 Scalable distributed multicluster device management server architecture and method of operation thereof
CN104092718A (en) * 2013-12-12 2014-10-08 腾讯数码(天津)有限公司 Distributed system and configuration information updating method in distributed system

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100538617C (en) * 2006-07-11 2009-09-09 任永坚 Storage medium processing method and system
CN101493795A (en) * 2008-01-24 2009-07-29 杭州华三通信技术有限公司 Storage system, storage controller, and cache implementing method in the storage system
CN102148850B (en) * 2010-08-09 2014-08-06 华为软件技术有限公司 Cluster system and service processing method thereof
CN102819535A (en) * 2011-06-10 2012-12-12 戴尔产品有限公司 Data block migration
CN102412988A (en) * 2011-11-14 2012-04-11 浪潮(北京)电子信息产业有限公司 Service information system and method for realizing continuous operation by using same
CN102402616B (en) * 2011-12-22 2015-01-14 北京新媒传信科技有限公司 Method and system for realizing database cluster
CN203502802U (en) * 2013-09-27 2014-03-26 阳光电源股份有限公司 Converter module control system
CN103634375B (en) * 2013-11-07 2017-01-11 华为技术有限公司 Method, device and equipment for cluster node expansion
CN103826243B (en) * 2014-03-07 2017-04-12 东方通信股份有限公司 Rapid and flexible capacity adjusting method for digital trunked communication system base stations
CN104133776B (en) * 2014-07-14 2017-07-14 华为技术有限公司 Storage array automatic configuration method, device and storage system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101873237A (en) * 2010-06-13 2010-10-27 用友软件股份有限公司 Method and system for dynamically maintaining member servers in cluster
CN103931138A (en) * 2011-10-17 2014-07-16 阿尔卡特朗讯 Scalable distributed multicluster device management server architecture and method of operation thereof
CN104092718A (en) * 2013-12-12 2014-10-08 腾讯数码(天津)有限公司 Distributed system and configuration information updating method in distributed system

Also Published As

Publication number Publication date
CN105743671A (en) 2016-07-06
CN111934904B (en) 2023-11-03
CN105743671B (en) 2020-07-14

Similar Documents

Publication Publication Date Title
CN105743671B (en) Capacity expansion method, controller and system
CN107995215B (en) Control method and device of intelligent household equipment and cloud platform server
CN103534984A (en) Port setting method, apparatus and computer program product for routing
CN105139877A (en) Method for connecting multimedia play devices, main device, control terminal and system
CN111741509A (en) Network distribution method and device, storage medium and processor
CN110121902A (en) A kind of method and terminal of connection setup
CN108847976B (en) Distribution network control method, mobile terminal, device and computer readable storage medium
CN109981360B (en) Internet of things equipment site opening method, device and system and storage medium
US20210051764A1 (en) Speaker system and network control method thereof
CN110769033A (en) Intelligent networking method and system
CN113572862A (en) Cluster deployment method and device, electronic equipment and storage medium
CN103731562A (en) Method and device for adaptively matching bluetooth device with smart devices
CN104077163A (en) Installing method, device and terminal for installation package
CN108471361A (en) A kind of version upgrading method and device
CN106452828A (en) Provision protocol transmission-based terminal configuration method and system
CN113746821A (en) Intelligent device control method and device, storage medium and electronic device
CN104601679B (en) Equipment soft method, mobile terminal and server
CN115004650A (en) Node configuration method, device, distributed system and computer readable medium
CN113596197B (en) Address switching method and device, electronic equipment and storage medium
CN105357078A (en) Detection method and system of network state of intelligent equipment
CN115514667A (en) Access service processing method, system, device, electronic equipment and storage medium
CN114390574A (en) Wireless network throughput testing method, device and computer readable storage medium
CN104092742A (en) Method for conducing remote setting and maintaining on another intelligent device through smart phone
CN107807619A (en) Intelligent home control system and its method of work based on virtual server module
WO2016180141A1 (en) Virtual machine state management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant