Disclosure of Invention
In order to overcome the defects in the prior art, the invention provides a multi-control storage balancing method, a multi-control storage balancing device, a multi-control storage balancing terminal and a multi-control storage balancing storage medium, so as to solve the technical problems.
In a first aspect, an embodiment of the present application provides a multi-control storage balancing method, where the method includes:
acquiring front-end total flow information and flow information processed by a controller;
setting a flow processing threshold of the controller;
judging whether the flow information processed by the controller exceeds the flow processing threshold value:
if yes, carrying out balanced distribution on the volume groups corresponding to the controller according to the total flow information and the flow information;
otherwise, no equalization allocation is performed.
With reference to the first aspect, in a first implementation manner of the first aspect, the obtaining front-end total traffic information and traffic information processed by the controller includes:
setting a monitoring interval time;
setting a monitoring duration;
and monitoring the flow according to the monitoring interval time and the monitoring duration time.
With reference to the first aspect, in a second implementation manner of the first aspect, the performing balanced allocation on a volume group corresponding to a controller according to total traffic information and traffic information includes:
screening transit flow information in the flow information;
positioning a volume group and a transit controller corresponding to the transit flow information;
assigning the volume group to the transfer controller.
In a second aspect, an embodiment of the present application provides a multi-control storage balancing apparatus, where the apparatus includes:
the acquisition unit is configured to acquire total flow information of the front end and flow information processed by the controller;
a setting unit configured to set a flow rate processing threshold of the controller;
a judging unit configured to judge whether the traffic information processed by the controller exceeds the traffic processing threshold;
the balancing unit is configured to perform balanced distribution on the volume groups corresponding to the controllers according to the total flow information and the flow information;
a holding unit configured not to perform the equalization allocation.
With reference to the second aspect, in a first implementation manner of the second aspect, the obtaining unit includes:
the interval setting module is configured for setting monitoring interval time;
a duration setting module configured to set a monitoring duration;
and the flow monitoring module is configured to monitor the flow according to the monitoring interval time and the monitoring duration time.
With reference to the second aspect, in a second implementation manner of the second aspect, the equalizing unit includes:
the screening module is configured to screen transit flow information in the flow information;
the positioning module is used for positioning the volume group corresponding to the transfer flow information and the transfer controller;
an allocation module configured to allocate the volume group to the transfer controller.
In a third aspect, a terminal is provided, including:
a processor, a memory, wherein,
the memory is used for storing a computer program which,
the processor is configured to call and run the computer program from the memory, so that the terminal performs the above-mentioned method of the terminal.
In a fourth aspect, a computer storage medium is provided having stored therein instructions that, when executed on a computer, cause the computer to perform the method of the above aspects.
In a fifth aspect, there is provided a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method of the above aspects.
The beneficial effect of the invention is that,
according to the multi-control storage balancing method, the multi-control storage balancing device, the terminal and the storage medium, whether the balanced distribution operation of the volume group is triggered or not is judged through the flow processing threshold of the controller and the acquired front-end total flow information and the flow information processed by the controller, dynamic balancing is achieved, the data flow is directly issued to the corresponding volume group by the controller without being subjected to transfer, and the data processing efficiency and the storage performance are improved.
In addition, the invention has reliable design principle, simple structure and very wide application prospect.
Detailed Description
In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all 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. In order to make those skilled in the art better understand the technical solution of the present invention, the technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the drawings in the embodiment of the present invention, and it is obvious that the described embodiment is only a part of the embodiment of the present invention, and not all 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 following explains key terms appearing in the present application.
FIG. 1 is a schematic flow chart diagram of a method of one embodiment of the present application. The execution main body in fig. 1 may be a multi-control storage balancing device.
As shown in fig. 1, the method 100 includes:
step 110, acquiring total flow information of a front end and flow information processed by a controller;
step 120, setting a flow processing threshold of the controller;
step 130, determining whether the traffic information processed by the controller exceeds the traffic processing threshold: if yes, carrying out balanced distribution on the volume groups corresponding to the controller according to the total flow information and the flow information; otherwise, no equalization allocation is performed.
In order to facilitate understanding of the present invention, the multi-control storage balancing method provided by the present invention is further described below by using the principle of the present invention for balancing multi-control storage in combination with the process of balancing multi-control storage in the embodiment.
Optionally, as an embodiment of the present application, the obtaining of the total front-end traffic information and the traffic information processed by the controller includes:
setting a monitoring interval time;
setting a monitoring duration;
and monitoring the flow according to the monitoring interval time and the monitoring duration time.
Optionally, as an embodiment of the present application, the performing balanced distribution on a volume group corresponding to a controller according to total traffic information and traffic information includes:
screening transit flow information in the flow information;
positioning a volume group and a transit controller corresponding to the transit flow information;
assigning the volume group to the transfer controller.
Specifically, the multi-control storage balancing method includes:
and S1, acquiring the front-end total flow information and the flow information processed by the controller.
Setting the monitoring interval time to be 60 minutes, setting the monitoring duration time to be 5 minutes, and monitoring the flow according to the monitoring interval time and the monitoring duration time.
The method includes the steps of collecting front-end total data flow within 5 minutes every 60-minute interval time, counting the number of luns issued by the total data flow once, and acquiring flow information processed by two controllers respectively according to the issued luns.
And S2, setting a flow processing threshold value of the controller.
In this embodiment, the flow processing threshold of the controller is set to 50% of the total front-end flow.
And S3, judging whether the flow information processed by the controller exceeds the flow processing threshold value.
If the flow processed by one of the controllers exceeds 50% of the total flow of the front end, triggering a balancing operation, wherein the specific volume group balancing distribution method comprises the following steps:
and screening the flow information transferred by the controller from the acquired flow information, wherein if the flow sent to the corresponding volume group by the controller A is transferred by the controller B, the controller B is a transfer controller. And positioning the volume group corresponding to the transit flow information and the transit controller according to the screened transit flow information, and distributing the volume group corresponding to the transit flow to the corresponding transit controller after positioning, namely removing the existing mapping relation of the volume group and establishing the mapping relation between the volume group and the transit controller.
As shown in fig. 2, the apparatus 200 includes:
an obtaining unit 210, where the obtaining unit 210 is configured to obtain total front-end traffic information and traffic information processed by a controller;
a setting unit 220, wherein the setting unit 220 is used for setting a flow processing threshold value of the controller;
a judging unit 230, wherein the judging unit 230 is used for judging whether the flow information processed by the controller exceeds the flow processing threshold value;
the equalizing unit 240 is configured to perform equalization allocation on the volume groups corresponding to the controllers according to the total traffic information and the traffic information;
a holding unit 250, the holding unit 250 configured to not perform an equalization distribution.
Optionally, as an embodiment of the present application, the obtaining unit includes:
the interval setting module is configured for setting monitoring interval time;
a duration setting module configured to set a monitoring duration;
and the flow monitoring module is configured to monitor the flow according to the monitoring interval time and the monitoring duration time.
Optionally, as an embodiment of the present application, the equalizing unit includes:
the screening module is configured to screen transit flow information in the flow information;
the positioning module is used for positioning the volume group corresponding to the transfer flow information and the transfer controller;
an allocation module configured to allocate the volume group to the transfer controller.
Fig. 3 is a schematic structural diagram of aterminal device 300 according to an embodiment of the present invention, where theterminal device 300 may be used to execute the method for updating the heat dissipation policy parameter according to the embodiment of the present application.
Among them, theterminal apparatus 300 may include: aprocessor 310, amemory 320, and acommunication unit 330. The components communicate via one or more buses, and those skilled in the art will appreciate that the architecture of the servers shown in the figures is not limiting of the application, and may be a bus architecture, a star architecture, a combination of more or fewer components than those shown, or a different arrangement of components.
Thememory 320 may be used for storing instructions executed by theprocessor 310, and thememory 320 may be implemented by any type of volatile or non-volatile storage terminal or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The executable instructions inmemory 320, when executed byprocessor 310, enable terminal 300 to perform some or all of the steps in the method embodiments described below.
Theprocessor 310 is a control center of the storage terminal, connects various parts of the entire electronic terminal using various interfaces and lines, and performs various functions of the electronic terminal and/or processes data by operating or executing software programs and/or modules stored in thememory 320 and calling data stored in the memory. The processor may be composed of an Integrated Circuit (IC), for example, a single packaged IC, or a plurality of packaged ICs connected with the same or different functions. For example, theprocessor 310 may include only a Central Processing Unit (CPU). In the embodiments of the present application, the CPU may be a single arithmetic core or may include multiple arithmetic cores.
Acommunication unit 330, configured to establish a communication channel so that the storage terminal can communicate with other terminals. And receiving user data sent by other terminals or sending the user data to other terminals.
The present application also provides a computer storage medium, wherein the computer storage medium may store a program, and the program may include some or all of the steps in the embodiments provided in the present application when executed. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Therefore, in the present application, by setting the traffic processing threshold of the controller, and determining whether to trigger the balanced allocation operation on the volume group according to the obtained front-end total traffic information and the traffic information processed by the controller, dynamic balancing is implemented, so that the data stream is directly issued to the corresponding volume group by the controller without being subjected to transfer, thereby improving data processing efficiency and storage performance.
Those skilled in the art will clearly understand that the techniques in the embodiments of the present application may be implemented by way of software plus a required general hardware platform. Based on such understanding, the technical solutions in the embodiments of the present application may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and includes several instructions to enable a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method according to the embodiments of the present invention.
The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
Although the present invention has been described in detail by referring to the drawings in connection with the preferred embodiments, the present invention is not limited thereto. Various equivalent modifications or substitutions can be made on the embodiments of the present invention by those skilled in the art without departing from the spirit and scope of the present invention, and these modifications or substitutions are within the scope of the present invention/any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.