Load scheduling method, device, electronic device and computer readable storage medium

Through real-time acquisition and automatic scheduling of evaluation data from table storage clusters and data channels, the problem of data consumption imbalance and data congestion in table storage is solved, and real-time balancing and high-quality storage and access of data are achieved.

CN112860425BActive Publication Date: 2024-09-10ALIBABA GROUP HOLDING LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911193840.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-28
Publication Date
2024-09-10
Estimated Expiration
2039-11-28

AI Technical Summary

Technical Problem

Existing technology is difficult to deal with the problem of data consumption imbalance and unstable data output in table storage in real time, resulting in data congestion, and manual scheduling is costly and complex, making it unable to meet real-time service needs.

Method used

By obtaining table storage cluster data partition access evaluation data and data channel consumption evaluation data in real time, the table storage cluster data partition and data channel are automatically scheduled, including splitting, merging, moving and other scheduling processes, to ensure data balance and real-time balance.

Benefits of technology

Effectively maintain the balance of data incoming and outgoing, quickly respond to data fluctuations, reduce labor cost investment, improve data storage and access quality, and achieve real-time balanced data services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112860425B
    Figure CN112860425B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a load scheduling method, device, electronic device and computer-readable storage medium, the method comprising: obtaining load evaluation data, wherein the load evaluation data comprises table storage cluster data partition access evaluation data and data channel consumption evaluation data; determining whether the load evaluation data meets the preset conditions; when the load evaluation data meets the preset conditions, scheduling the table storage cluster data partition and data channel. The technical solution can effectively maintain the data in and out balance of the table storage cluster and the data channel, quickly respond to data fluctuations, avoid data output instability, data congestion and other phenomena, thereby greatly improving the quality of data storage and access, and at the same time can greatly reduce labor cost investment, simple operation and can effectively realize real-time data balance services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of load control technology, and specifically to a load scheduling method, device, electronic device, and computer-readable storage medium. Background Art

[0002] With the development of data technology, the application of cloud storage is becoming more and more extensive. In order to cope with the storage and access of massive data, Table Store came into being. Table Store is a distributed NoSQL database that provides storage and real-time access to massive structured data with data sharding technology. However, in actual data consumption, the mismatch between the data consumption time point and the current time point and the sudden change in the amount of business data will cause the consumption data to be unbalanced, and even cause unstable data output, data congestion and other phenomena, which will greatly affect the quality of data storage and access. In the prior art, the consumption time point is usually monitored. When abnormal data consumption is found, the data partition is manually split according to the data read and write ratio. This processing method has high labor cost, complex operation and cannot meet the needs of real-time data services. Summary of the invention

[0003] Embodiments of the present invention provide a load scheduling method, device, electronic device, and computer-readable storage medium.

[0004] In a first aspect, an embodiment of the present invention provides a load scheduling method.

[0005] Specifically, the load scheduling method includes:

[0006] Obtaining load evaluation data, wherein the load evaluation data includes table storage cluster data partition access evaluation data and data channel consumption evaluation data;

[0007] Determining whether the load evaluation data meets a preset condition;

[0008] When the load evaluation data meets the preset conditions, the table storage cluster data partitions and data channels are scheduled.

[0009] In combination with the first aspect, in a first implementation of the first aspect of the embodiment of the present invention, the acquiring of load evaluation data includes:

[0010] Send a data partition access evaluation data acquisition request to the table storage cluster controller, and send a data channel consumption evaluation data acquisition request to the data channel controller;

[0011] In response to the request being allowed, the table storage cluster data partition access evaluation data is obtained through the table storage cluster server, and the data channel consumption evaluation data is obtained through the data channel controller.

[0012] In combination with the first aspect and the first implementation method of the first aspect, in the second implementation method of the first aspect of the embodiment of the present invention, the table storage cluster data partition access evaluation data includes one or more of the following data: data partition access data volume, data partition access delay data, data partition data write rate, data partition data read rate; and / or, the data channel consumption evaluation data includes one or more of the following data: data channel consumption quantity, data channel consumption time data.

[0013] In combination with the first aspect, the first implementation method of the first aspect and the second implementation method of the first aspect, in the third implementation method of the first aspect of the present disclosure, the preset condition includes one or more of the following conditions: the amount of data accessed by the data partition exceeds the first data amount threshold, the amount of data accessed by the data partition is lower than the second data amount threshold, the access delay of the data partition exceeds the delay threshold, the data write rate of the data partition is lower than the data read rate of the data partition and the absolute value of the difference between the data partition data write rate and the data partition data read rate is greater than the first rate threshold, the data write rate of the data partition is greater than the data read rate and the absolute value of the difference between the data partition data write rate and the data partition data read rate is greater than the second rate threshold, the number of data channel consumption exceeds the first number threshold, the number of data channel consumption is lower than the second number threshold, and the absolute value of the difference between the data channel consumption time and the current time exceeds the time threshold.

[0014] In combination with the first implementation manner of the first aspect, the second implementation manner of the first aspect, and the third implementation manner of the first aspect, in a fourth implementation manner of the first aspect of the present disclosure, when the load evaluation data meets a preset condition, scheduling the table storage cluster data partition and data channel is implemented as follows:

[0015] When the load evaluation data meets the preset conditions, a data partition scheduling instruction is sent to the table storage cluster controller, so that it schedules the table storage cluster data partition according to the data partition scheduling instruction, and synchronizes the data partition scheduling information to the data channel controller, so that the data channel controller schedules the data channel according to the data partition scheduling information.

[0016] In combination with the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, the third implementation manner of the first aspect, and the fourth implementation manner of the first aspect, in a fifth implementation manner of the first aspect of the present disclosure, when the load evaluation data meets a preset condition, scheduling the table storage cluster data partition and data channel may also be implemented as follows:

[0017] When the data channel consumption evaluation data meets the corresponding preset conditions, a data channel scheduling instruction is sent to the data channel controller so that the data channel is scheduled according to the data channel scheduling instruction.

[0018] In combination with the first aspect, the first implementation manner of the first aspect, the second implementation manner of the first aspect, the third implementation manner of the first aspect, the fourth implementation manner of the first aspect and the fifth implementation manner of the first aspect, in a sixth implementation manner of the first aspect of the present disclosure, the scheduling of data partitions of the table storage cluster includes one or more of the following scheduling processes: splitting, merging, and moving; the scheduling of the data channels includes one or more of the following scheduling processes: adding data channels, reducing data channels, and adjusting the correspondence between data channels and data partitions of the table storage cluster.

[0019] In combination with the first aspect, the first implementation of the first aspect, the second implementation of the first aspect, the third implementation of the first aspect, the fourth implementation of the first aspect, the fifth implementation of the first aspect, and the sixth implementation of the first aspect, the seventh implementation of the first aspect of the present disclosure further includes:

[0020] Set up the initial data partitions and the corresponding initial data channels.

[0021] In a second aspect, an embodiment of the present invention provides a load scheduling device.

[0022] Specifically, the load scheduling device includes:

[0023] An acquisition module is configured to acquire load evaluation data, wherein the load evaluation data includes table storage cluster data partition access evaluation data and data channel consumption evaluation data;

[0024] A determination module, configured to determine whether the load evaluation data meets a preset condition;

[0025] The scheduling module is configured to schedule the table storage cluster data partitions and data channels when the load evaluation data meets a preset condition.

[0026] In combination with the second aspect, in a first implementation of the second aspect of the embodiment of the present invention, the acquisition module includes:

[0027] A sending submodule, configured to send a data partition access evaluation data acquisition request to the table storage cluster controller, and send a data channel consumption evaluation data acquisition request to the data channel controller;

[0028] The acquisition submodule is configured to, in response to the request being allowed, acquire the table storage cluster data partition access evaluation data through the table storage cluster server, and acquire the data channel consumption evaluation data through the data channel controller.

[0029] In combination with the second aspect and the first implementation method of the second aspect, in the second implementation method of the second aspect of the embodiment of the present invention, the table storage cluster data partition access evaluation data includes one or more of the following data: data partition access data volume, data partition access delay data, data partition data write rate, data partition data read rate; and / or, the data channel consumption evaluation data includes one or more of the following data: data channel consumption quantity, data channel consumption time data.

[0030] In combination with the second aspect, the first implementation method of the second aspect and the second implementation method of the second aspect, in the third implementation method of the second aspect of the present disclosure, the preset condition includes one or more of the following conditions: the amount of data accessed by the data partition exceeds the first data amount threshold, the amount of data accessed by the data partition is lower than the second data amount threshold, the access delay of the data partition exceeds the delay threshold, the data write rate of the data partition is lower than the data read rate of the data partition and the absolute value of the difference between the data partition data write rate and the data partition data read rate is greater than the first rate threshold, the data write rate of the data partition is greater than the data read rate and the absolute value of the difference between the data partition data write rate and the data partition data read rate is greater than the second rate threshold, the number of data channel consumption exceeds the first number threshold, the number of data channel consumption is lower than the second number threshold, and the absolute value of the difference between the data channel consumption time and the current time exceeds the time threshold.

[0031] In combination with the second aspect, the first implementation manner of the second aspect, the second implementation manner of the second aspect, and the third implementation manner of the second aspect, in a fourth implementation manner of the second aspect of the present disclosure, the scheduling module is configured as follows:

[0032] When the load evaluation data meets the preset conditions, a data partition scheduling instruction is sent to the table storage cluster controller, so that it schedules the table storage cluster data partition according to the data partition scheduling instruction, and synchronizes the data partition scheduling information to the data channel controller, so that the data channel controller schedules the data channel according to the data partition scheduling information.

[0033] In combination with the second aspect, the first implementation manner of the second aspect, the second implementation manner of the second aspect, the third implementation manner of the second aspect, and the fourth implementation manner of the second aspect, in a fifth implementation manner of the second aspect of the present disclosure, the scheduling module is further configured as:

[0034] When the data channel consumption evaluation data meets the corresponding preset conditions, a data channel scheduling instruction is sent to the data channel controller so that the data channel is scheduled according to the data channel scheduling instruction.

[0035] In combination with the second aspect, the first implementation manner of the second aspect, the second implementation manner of the second aspect, the third implementation manner of the second aspect, the fourth implementation manner of the second aspect and the fifth implementation manner of the second aspect, in a sixth implementation manner of the second aspect of the present disclosure, the scheduling of data partitions of the table storage cluster includes one or more of the following scheduling processes: splitting, merging, and moving; the scheduling of the data channels includes one or more of the following scheduling processes: adding data channels, reducing data channels, and adjusting the correspondence between data channels and data partitions of the table storage cluster.

[0036] In combination with the second aspect, the first implementation manner of the second aspect, the second implementation manner of the second aspect, the third implementation manner of the second aspect, the fourth implementation manner of the second aspect, the fifth implementation manner of the second aspect, and the sixth implementation manner of the second aspect, the seventh implementation manner of the second aspect of the present disclosure further includes:

[0037] The setting module is configured to set an initial data partition and a corresponding initial data channel.

[0038] In a third aspect, an embodiment of the present invention provides an electronic device, including a memory and a processor, wherein the memory is used to store one or more computer instructions that support a load scheduling device to execute the load scheduling method in the first aspect, and the processor is configured to execute the computer instructions stored in the memory. The load scheduling device may also include a communication interface for the load scheduling device to communicate with other devices or a communication network.

[0039] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium for storing computer instructions used by a load scheduling device, which includes computer instructions involved in the load scheduling device for executing the load scheduling method in the first aspect above.

[0040] The technical solution provided by the embodiment of the present invention may include the following beneficial effects:

[0041] The above technical solution performs real-time scheduling of table storage cluster data partitions and data channels by acquiring the table storage cluster data partition access evaluation data and data channel consumption evaluation data in real time. This technical solution can effectively maintain the data in and out balance of the table storage cluster and data channels, quickly respond to data fluctuations, avoid data output instability, data congestion and other phenomena, and thus greatly improve the quality of data storage and access. At the same time, it can greatly reduce labor cost investment, is simple to operate, and can effectively achieve real-time data balance services.

[0042] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Other features, purposes and advantages of the embodiments of the present invention will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:

[0044] Figure 1 A flow chart showing a load scheduling method according to an embodiment of the present invention is shown;

[0045] Figure 2 Show according to Figure 1 A flow chart of step S101 of the load scheduling method of the illustrated embodiment;

[0046] Figure 3 A flow chart showing a load scheduling method according to another embodiment of the present invention is shown;

[0047] Figure 4 A structural block diagram of a load scheduling device according to an embodiment of the present invention is shown;

[0048] Figure 5 Show according to Figure 4 A structural block diagram of the acquisition module 401 of the illustrated embodiment;

[0049] Figure 6 A structural block diagram of a load scheduling device according to another embodiment of the present invention is shown;

[0050] Figure 7 A load scheduling architecture diagram according to an embodiment of the present invention is shown;

[0051] Figure 8 A structural block diagram of an electronic device according to an embodiment of the present invention is shown;

[0052] Fig. 9 It is a structural diagram of a computer system suitable for implementing a load scheduling method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0053] Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.

[0054] In the embodiments of the present invention, it should be understood that terms such as "including" or "having" are intended to indicate the existence of features, numbers, steps, behaviors, components, parts or a combination thereof disclosed in this specification, and are not intended to exclude the possibility of the existence or addition of one or more other features, numbers, steps, behaviors, components, parts or a combination thereof.

[0055] It should also be noted that, in the absence of conflict, the embodiments of the present invention and the features of the embodiments can be combined with each other. The embodiments of the present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0056] The technical solution provided by the embodiment of the present invention performs real-time scheduling of table storage cluster data partitions and data channels by acquiring table storage cluster data partition access evaluation data and data channel consumption evaluation data in real time. The technical solution can effectively maintain the data in and out balance of table storage clusters and data channels, quickly respond to data fluctuations, avoid data output instability, data blockage and other phenomena, thereby greatly improving the quality of data storage and access, and at the same time can greatly reduce labor cost investment, simple operation and can effectively realize real-time data balance services.

[0057] Figure 1 A flow chart of a load scheduling method according to an embodiment of the present invention is shown as follows: Figure 1 As shown, the load scheduling method includes the following steps S101-S103:

[0058] In step S101, load evaluation data is obtained, wherein the load evaluation data includes table storage cluster data partition access evaluation data and data channel consumption evaluation data;

[0059] In step S102, determining whether the load evaluation data meets a preset condition;

[0060] In step S103, when the load evaluation data meets the preset conditions, the table storage cluster data partitions and data channels are scheduled.

[0061] As mentioned above, with the development of data technology, the application of cloud storage is becoming more and more extensive. In order to cope with the storage and access of massive data, table storage came into being. Table storage is a distributed NoSQL database that uses data sharding technology to provide storage and real-time access to massive structured data. However, in actual data consumption, the mismatch between the data consumption time point and the current time point and the sudden changes in the amount of business data will cause the consumption data to be unbalanced, and even cause unstable data output, data congestion and other phenomena, which will greatly affect the quality of data storage and access. In the prior art, the consumption time point is usually monitored. When abnormal data consumption is found, the data partition is manually split according to the data read and write ratio. This processing method has high labor costs, complex operations and cannot meet the needs of real-time data services.

[0062] Considering the above problems, in this implementation, a load scheduling method is proposed, which performs real-time scheduling of table storage cluster data partitions and data channels by acquiring table storage cluster data partition access evaluation data and data channel consumption evaluation data in real time. This technical solution can effectively maintain the data in and out balance of table storage clusters and data channels, quickly respond to data fluctuations, avoid data output instability, data congestion and other phenomena, and thus greatly improve the quality of data storage and access, while greatly reducing labor cost investment, and is simple to operate and can effectively achieve real-time data balance services.

[0063] In one embodiment of the present invention, the load evaluation data is used to provide data support for whether load scheduling is required, and includes two parts of data: table storage cluster data partition access evaluation data and data channel consumption evaluation data.

[0064] The table storage cluster data partition access evaluation data is used to characterize the table storage cluster data partition access situation, so as to provide data support for the scheduling decision of whether data partition is needed, and includes one or more of the following data: data partition access data volume, data partition access delay data, data partition data write rate, and data partition data read rate. The data partition access data volume refers to the access data volume obtained by real-time statistics for each data partition; the data partition access delay data refers to the delay time generated from the start to the completion of the data partition access request; the data partition data write rate refers to the amount of data written per second for each data partition; the data partition data read rate refers to the amount of data read per second for each data partition. The table storage cluster is composed of multiple servers that execute table storage; the data partition refers to a data unit for storing data in the table storage. Different data partitions store corresponding data according to different data ranges. Different data partitions can be distributed in the same server or in different servers according to the needs of actual applications to achieve load balancing and horizontal expansion of storage scale. In addition, each data partition is correspondingly provided with a data partition log file, and the data partition log file and the corresponding data partition are placed in the same server.

[0065] Among them, the data channel consumption evaluation data is used to characterize the consumption of the data channel to provide data support for whether the scheduling decision of the data channel is needed. The data channel consumption evaluation data includes one or more of the following data: data channel consumption quantity, data channel consumption time data. The data channel consumption quantity refers to the number of data channels that are performing data consumption or data transmission; the data channel consumption time data refers to the data channel consumption time point information. Among them, the data channel consumption refers to the task of the data channel to perform data consumption, and data consumption refers to data services such as data subscription services, data storage services, data reading services, and data access services.

[0066] Among them, the data channel is the smallest unit of data consumption and scheduling in TableStore. Each data channel contains the full data of a part of the data range of the user data table or the incremental data of a data partition. As the data partition of the user data table is split, a new data channel can be generated to correspond to the consumption of incremental data on the newly split data sub-partition.

[0067] In one embodiment of the present invention, the preset condition is used to determine whether load scheduling is required. The preset condition includes one or more of the following conditions: the amount of data accessed by a data partition exceeds a data amount threshold, the access delay of the data partition exceeds a delay threshold, the data write rate of the data partition is less than the data read rate of the data partition and the absolute value of the difference between the data write rate and the data read rate of the data partition is greater than a first rate threshold, the data write rate of the data partition is greater than the data read rate of the data partition and the absolute value of the difference between the data write rate and the data read rate of the data partition is greater than a second rate threshold, the number of data channel consumption exceeds a first number threshold, the number of data channel consumption is less than a second number threshold, the absolute value of the difference between the data channel consumption time and the current time exceeds a time threshold, and the like.

[0068] In one embodiment of the present invention, Figure 2 As shown, the step S101, i.e. the step of obtaining load evaluation data, includes the following steps S201-S202:

[0069] In step S201, a data partition access evaluation data acquisition request is sent to a table storage cluster controller, and a data channel consumption evaluation data acquisition request is sent to a data channel controller;

[0070] In step S202, in response to the request being allowed, the table storage cluster data partition access evaluation data is obtained through the table storage cluster server, and the data channel consumption evaluation data is obtained through the data channel controller.

[0071] In order to obtain load evaluation data in real time and effectively, in this embodiment, the load evaluation data is obtained with the help of a table storage cluster controller and a data channel controller respectively. Specifically, first, a data partition access evaluation data acquisition request is sent to the table storage cluster controller, and a data channel consumption evaluation data acquisition request is sent to the data channel controller; then, in response to the request being allowed, the table storage cluster data partition access evaluation data is acquired through the table storage cluster server, and the data channel consumption evaluation data is acquired through the data channel controller. Among them, the table storage cluster server can monitor the data partition access evaluation data in real time or periodically, and similarly, the data channel controller can monitor the data channel consumption evaluation data in real time or periodically. The data channel controller is responsible for maintaining the consumption state machine of each channel, so the data channel consumption evaluation data can be easily acquired. Among them, the monitoring period can be flexibly set according to the needs of the actual application and the characteristics of the data, and the present disclosure does not specifically limit the specific value of the monitoring period.

[0072] In one embodiment of the present invention, the step S103, i.e., the step of scheduling the table storage cluster data partitions and data channels when the load evaluation data meets the preset conditions, can be implemented as follows:

[0073] When the load evaluation data meets the preset conditions, a data partition scheduling instruction is sent to the table storage cluster controller, so that it schedules the table storage cluster data partition according to the data partition scheduling instruction, and synchronizes the data partition scheduling information to the data channel controller, so that the data channel controller schedules the data channel according to the data partition scheduling information.

[0074] When the load evaluation data meets the preset conditions, it means that the current data partition and / or data channel settings are no longer compatible with the actual data consumption situation, and the table storage cluster data partition and data channel need to be scheduled. In this embodiment, the table storage cluster controller and the data channel controller cooperate to achieve the scheduling of the table storage cluster data partition and data channel. Specifically, when it is determined that the table storage cluster data partition and data channel need to be scheduled, a data partition scheduling instruction is first sent to the table storage cluster controller, so that it schedules the table storage cluster data partition according to the data partition scheduling instruction. After the scheduling is completed, the data partition scheduling information is synchronized to the data channel controller, so that the data channel controller schedules the data channel accordingly according to the data partition scheduling information.

[0075] In one embodiment of the present invention, the scheduling of the data partitions of the table storage cluster includes one or more of the following scheduling processes: splitting, merging, and moving; the scheduling of the data channels includes one or more of the following scheduling processes: adding data channels, reducing data channels, and adjusting the correspondence between data channels and data partitions of the table storage cluster.

[0076] For example, if it is determined that the amount of data accessed by the data partition exceeds the first data volume threshold, it means that the current access exceeds the access load that the data partition can bear, and the data partition needs to be split to generate a new data partition to share the access load, wherein each data partition stores a continuous range of primary key data, and when the data partition is split into two data sub-partitions, each data sub-partition contains a portion of data within the data range of the data parent partition, and after the split, the data will be written into the new data sub-partition according to the data range of the new data sub-partition, and will no longer be written into the data parent partition; if it is determined that the amount of data accessed by the data partition is lower than the second data volume threshold, it means that the current data partition can bear a relatively large amount of access load, and the data partitions can be merged to save data storage resources. Among them, the first data volume threshold is greater than or equal to the second data volume threshold, and the specific values ​​of the first data volume threshold and the second data volume threshold can be set according to the needs of the actual application and the characteristics of the data, and the present disclosure does not specifically limit them.

[0077] For example, if the access delay of the data partition exceeds the delay threshold, it means that the access performance of the data partition has decreased, which may be caused by the heavy load, failure or abnormality of the server where the data partition is located. At this time, the data partition can be moved to other servers with lighter loads. The specific value of the delay threshold can be set according to the needs of the actual application and the characteristics of the data, and this disclosure does not specifically limit it.

[0078] For example, if the data write rate of the data partition is lower than the data read rate of the data partition and the absolute value of the difference between the data write rate and the data read rate of the data partition is greater than the first rate threshold, it means that the data storage capacity of the data partition is small and cannot cope with the data consumption level. At this time, the data partitions can be merged to integrate data resources to meet the needs of data consumption; if the data write rate of the data partition is higher than the data read rate of the data partition and the absolute value of the difference between the data write rate and the data read rate of the data partition is greater than the second rate threshold, it means that there is a backlog of data in the data partition, which is not compatible with the speed of data consumption. At this time, the data partition can be split to generate enough data partitions to match the speed of data consumption.

[0079] For example, if the absolute value of the difference between the data channel consumption time and the current time exceeds the time threshold, it means that the current data provision does not match the real-time needs of the data service, and data consumption is delayed. At this time, the data partition can be split to match the speed of data consumption and ensure the real-time nature of data consumption.

[0080] After the table storage cluster data partition scheduling is completed, the data partition scheduling information is synchronized to the data channel controller, so that the data channel controller performs corresponding scheduling on the data channel according to the data partition scheduling information. For example, if the table storage cluster controller splits the data partition and generates two data sub-partitions, the data channel corresponding to the data parent partition needs to be adjusted accordingly, such as transferring the data channel that previously served the data parent partition to serve one of the data sub-partitions, and then adding a data channel to serve the other data sub-partition, so that each data sub-partition has a corresponding data channel to perform data transmission services. For example, if the table storage cluster controller merges the data partitions, merging two data partitions into one data parent partition, then the data channel previously corresponding to the data partition can be reduced by one to serve other data partitions, and the other data channel is transferred to serve the merged data parent partition.

[0081] In another embodiment of the present invention, the step S103, i.e., the step of scheduling the table storage cluster data partitions and data channels when the load evaluation data meets the preset conditions, can also be implemented as follows:

[0082] When the data channel consumption evaluation data meets the corresponding preset conditions, a data channel scheduling instruction is sent to the data channel controller so that the data channel is scheduled according to the data channel scheduling instruction.

[0083] When the data channel consumption evaluation data meets the preset conditions, it means that the current data channel setting is no longer compatible with the actual data consumption situation, and the data channel needs to be scheduled. In this embodiment, the data channel is scheduled with the help of a data channel controller. Specifically, when the data channel consumption evaluation data meets the corresponding preset conditions, a data channel scheduling instruction is sent to the data channel controller, so that it schedules the data channel according to the data channel scheduling instruction.

[0084] For example, if the data channel consumption quantity exceeds the first quantity threshold, it means that the currently provided data channel resources are tight and may not be able to meet the data consumption demand in the future, and it is necessary to increase data channels to cope with more data transmission services; if the data channel consumption quantity is lower than the second quantity threshold, it means that the currently provided data channel resources are abundant, and the number of data channels can be reduced to save data channel resources.

[0085] In one embodiment of the present invention, the scheduling, including the scheduling of the table storage cluster data partitions and the scheduling of the data channels, can be performed periodically, that is, load evaluation data is periodically obtained, and the table storage cluster data partitions and data channels are scheduled periodically. The length of the cycle can be flexibly set according to the needs of the actual application and the characteristics of the data, and is not particularly limited in this disclosure.

[0086] In one embodiment of the present invention, the method further comprises the step of setting an initial data partition and a corresponding initial data channel, that is, Figure 3 As shown, the load scheduling method includes the following steps S301-S304:

[0087] In step S301, an initial data partition and a corresponding initial data channel are set;

[0088] In step S302, load evaluation data is obtained, wherein the load evaluation data includes table storage cluster data partition access evaluation data and data channel consumption evaluation data;

[0089] In step S303, determining whether the load evaluation data meets a preset condition;

[0090] In step S304, when the load evaluation data meets the preset conditions, the table storage cluster data partitions and data channels are scheduled.

[0091] In order to ensure that data can be written and read normally in the initial stage of data consumption and avoid the problem of slow synchronization when new data is imported, in this implementation, it is necessary to first set up an initial data partition and an initial data channel, wherein the initial data channel corresponds to the initial data partition to provide corresponding services.

[0092] The following are embodiments of the apparatus of the present invention, which can be used to execute embodiments of the method of the present invention.

[0093] Figure 4 FIG. 1 shows a structural block diagram of a load scheduling device according to an embodiment of the present invention. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 4 As shown, the load scheduling device includes:

[0094] The acquisition module 401 is configured to acquire load evaluation data, wherein the load evaluation data includes table storage cluster data partition access evaluation data and data channel consumption evaluation data;

[0095] A determination module 402 is configured to determine whether the load evaluation data meets a preset condition;

[0096] The scheduling module 403 is configured to schedule the table storage cluster data partitions and data channels when the load evaluation data meets a preset condition.

[0097] As mentioned above, with the development of data technology, the application of cloud storage is becoming more and more extensive. In order to cope with the storage and access of massive data, table storage came into being. Table storage is a distributed NoSQL database that uses data sharding technology to provide storage and real-time access to massive structured data. However, in actual data consumption, the mismatch between the data consumption time point and the current time point and the sudden changes in the amount of business data will cause the consumption data to be unbalanced, and even cause unstable data output, data congestion and other phenomena, which will greatly affect the quality of data storage and access. In the prior art, the consumption time point is usually monitored. When abnormal data consumption is found, the data partition is manually split according to the data read and write ratio. This processing method has high labor costs, complex operations and cannot meet the needs of real-time data services.

[0098] Considering the above problems, in this embodiment, a load scheduling device is proposed, which performs real-time scheduling of table storage cluster data partitions and data channels by acquiring table storage cluster data partition access evaluation data and data channel consumption evaluation data in real time. This technical solution can effectively maintain the data in and out balance of table storage clusters and data channels, quickly respond to data fluctuations, avoid data output instability, data congestion and other phenomena, thereby greatly improving the quality of data storage and access, and at the same time can greatly reduce labor cost investment, simple operation and can effectively achieve real-time data balance services.

[0099] In one embodiment of the present invention, the load evaluation data is used to provide data support for whether load scheduling is required, and includes two parts of data: table storage cluster data partition access evaluation data and data channel consumption evaluation data.

[0100] The table storage cluster data partition access evaluation data is used to characterize the table storage cluster data partition access situation, so as to provide data support for the scheduling decision of whether data partition is needed, and includes one or more of the following data: data partition access data volume, data partition access delay data, data partition data write rate, and data partition data read rate. The data partition access data volume refers to the access data volume obtained by real-time statistics for each data partition; the data partition access delay data refers to the delay time generated from the start to the completion of the data partition access request; the data partition data write rate refers to the amount of data written per second for each data partition; the data partition data read rate refers to the amount of data read per second for each data partition. The table storage cluster is composed of multiple servers that execute table storage; the data partition refers to a data unit for storing data in the table storage. Different data partitions store corresponding data according to different data ranges. Different data partitions can be distributed in the same server or in different servers according to the needs of actual applications to achieve load balancing and horizontal expansion of storage scale. In addition, each data partition is correspondingly provided with a data partition log file, and the data partition log file and the corresponding data partition are placed in the same server.

[0101] Among them, the data channel consumption evaluation data is used to characterize the consumption of the data channel to provide data support for whether the scheduling decision of the data channel is needed. The data channel consumption evaluation data includes one or more of the following data: data channel consumption quantity, data channel consumption time data. The data channel consumption quantity refers to the number of data channels that are performing data consumption or data transmission; the data channel consumption time data refers to the data channel consumption time point information. Among them, the data channel consumption refers to the task of the data channel to perform data consumption, and data consumption refers to data services such as data subscription services, data storage services, data reading services, and data access services.

[0102] Among them, the data channel is the smallest unit of data consumption and scheduling in TableStore. Each data channel contains the full data of a part of the data range of the user data table or the incremental data of a data partition. As the data partition of the user data table is split, a new data channel can be generated to correspond to the consumption of incremental data on the newly split data sub-partition.

[0103] In one embodiment of the present invention, the preset condition is used to determine whether load scheduling is required. The preset condition includes one or more of the following conditions: the amount of data accessed by a data partition exceeds a data amount threshold, the access delay of the data partition exceeds a delay threshold, the data write rate of the data partition is less than the data read rate of the data partition and the absolute value of the difference between the data write rate and the data read rate of the data partition is greater than a first rate threshold, the data write rate of the data partition is greater than the data read rate of the data partition and the absolute value of the difference between the data write rate and the data read rate of the data partition is greater than a second rate threshold, the number of data channel consumption exceeds a first number threshold, the number of data channel consumption is less than a second number threshold, the absolute value of the difference between the data channel consumption time and the current time exceeds a time threshold, and the like.

[0104] In one embodiment of the present invention, Figure 5 As shown, the acquisition module 401 includes:

[0105] The sending submodule 501 is configured to send a data partition access evaluation data acquisition request to the table storage cluster controller and send a data channel consumption evaluation data acquisition request to the data channel controller;

[0106] The acquisition submodule 502 is configured to, in response to the request being allowed, acquire the table storage cluster data partition access evaluation data through the table storage cluster server, and acquire the data channel consumption evaluation data through the data channel controller.

[0107] In order to obtain load evaluation data in real time and effectively, in this embodiment, the load evaluation data is obtained by means of a table storage cluster controller and a data channel controller respectively. Specifically, the sending submodule 501 sends a data partition access evaluation data acquisition request to the table storage cluster controller, and sends a data channel consumption evaluation data acquisition request to the data channel controller; the acquisition submodule 502 responds to the request being allowed, obtains the table storage cluster data partition access evaluation data through the table storage cluster server, and obtains the data channel consumption evaluation data through the data channel controller. Among them, the table storage cluster server can monitor the data partition access evaluation data in real time or periodically, and similarly, the data channel controller can monitor the data channel consumption evaluation data in real time or periodically. The data channel controller is responsible for maintaining the consumption state machine of each channel, so the data channel consumption evaluation data can be easily obtained. Among them, the monitoring period can be flexibly set according to the needs of the actual application and the characteristics of the data, and the present disclosure does not specifically limit the specific value of the monitoring period.

[0108] In one embodiment of the present invention, the scheduling module 403 may be configured as follows:

[0109] When the load evaluation data meets the preset conditions, a data partition scheduling instruction is sent to the table storage cluster controller, so that it schedules the table storage cluster data partition according to the data partition scheduling instruction, and synchronizes the data partition scheduling information to the data channel controller, so that the data channel controller schedules the data channel according to the data partition scheduling information.

[0110] When the load evaluation data meets the preset conditions, it means that the current data partition and / or data channel settings are no longer compatible with the actual data consumption situation, and the table storage cluster data partition and data channel need to be scheduled. In this embodiment, the table storage cluster controller and the data channel controller cooperate to achieve the scheduling of the table storage cluster data partition and data channel. Specifically, when it is determined that the table storage cluster data partition and data channel need to be scheduled, a data partition scheduling instruction is first sent to the table storage cluster controller, so that it schedules the table storage cluster data partition according to the data partition scheduling instruction. After the scheduling is completed, the data partition scheduling information is synchronized to the data channel controller, so that the data channel controller schedules the data channel accordingly according to the data partition scheduling information.

[0111] In one embodiment of the present invention, the scheduling of the data partitions of the table storage cluster includes one or more of the following scheduling processes: splitting, merging, and moving; the scheduling of the data channels includes one or more of the following scheduling processes: adding data channels, reducing data channels, and adjusting the correspondence between data channels and data partitions of the table storage cluster.

[0112] For example, if it is determined that the amount of data accessed by the data partition exceeds the first data volume threshold, it means that the current access exceeds the access load that the data partition can bear, and the data partition needs to be split to generate a new data partition to share the access load, wherein each data partition stores a continuous range of primary key data, and when the data partition is split into two data sub-partitions, each data sub-partition contains a portion of data within the data range of the data parent partition, and after the split, the data will be written into the new data sub-partition according to the data range of the new data sub-partition, and will no longer be written into the data parent partition; if it is determined that the amount of data accessed by the data partition is lower than the second data volume threshold, it means that the current data partition can bear a relatively large amount of access load, and the data partitions can be merged to save data storage resources. Among them, the first data volume threshold is greater than or equal to the second data volume threshold, and the specific values ​​of the first data volume threshold and the second data volume threshold can be set according to the needs of the actual application and the characteristics of the data, and the present disclosure does not specifically limit them.

[0113] For example, if the access delay of the data partition exceeds the delay threshold, it means that the access performance of the data partition is degraded, which may be caused by the heavy load, failure or abnormality of the server where the data partition is located. At this time, the data partition can be moved to other servers with lighter loads. The specific value of the delay threshold can be set according to the needs of the actual application and the characteristics of the data, and this disclosure does not specifically limit it.

[0114] For example, if the data write rate of the data partition is lower than the data read rate of the data partition and the absolute value of the difference between the data write rate and the data read rate of the data partition is greater than the first rate threshold, it means that the data storage capacity of the data partition is small and cannot cope with the data consumption level. At this time, the data partitions can be merged to integrate data resources to meet the needs of data consumption; if the data write rate of the data partition is higher than the data read rate of the data partition and the absolute value of the difference between the data write rate and the data read rate of the data partition is greater than the second rate threshold, it means that there is a backlog of data in the data partition, which is not compatible with the speed of data consumption. At this time, the data partition can be split to generate enough data partitions to match the speed of data consumption.

[0115] For example, if the absolute value of the difference between the data channel consumption time and the current time exceeds the time threshold, it means that the current data provision does not match the real-time needs of the data service, and data consumption is delayed. At this time, the data partition can be split to match the speed of data consumption and ensure the real-time nature of data consumption.

[0116] After the table storage cluster data partition scheduling is completed, the data partition scheduling information is synchronized to the data channel controller, so that the data channel controller performs corresponding scheduling on the data channel according to the data partition scheduling information. For example, if the table storage cluster controller splits the data partition and generates two data sub-partitions, the data channel corresponding to the data parent partition needs to be adjusted accordingly, such as transferring the data channel that previously served the data parent partition to serve one of the data sub-partitions, and then adding a data channel to serve the other data sub-partition, so that each data sub-partition has a corresponding data channel to perform data transmission services. For example, if the table storage cluster controller merges the data partitions, merging two data partitions into one data parent partition, then the data channel previously corresponding to the data partition can be reduced by one to serve other data partitions, and the other data channel is transferred to serve the merged data parent partition.

[0117] In another embodiment of the present invention, the scheduling module 403 may also be implemented as follows:

[0118] When the data channel consumption evaluation data meets the corresponding preset conditions, a data channel scheduling instruction is sent to the data channel controller so that the data channel is scheduled according to the data channel scheduling instruction.

[0119] When the data channel consumption evaluation data meets the preset conditions, it means that the current data channel setting is no longer compatible with the actual data consumption situation, and the data channel needs to be scheduled. In this embodiment, the data channel is scheduled with the help of a data channel controller. Specifically, when the data channel consumption evaluation data meets the corresponding preset conditions, a data channel scheduling instruction is sent to the data channel controller, so that it schedules the data channel according to the data channel scheduling instruction.

[0120] For example, if the data channel consumption quantity exceeds the first quantity threshold, it means that the currently provided data channel resources are tight and may not be able to meet the data consumption demand in the future, and it is necessary to increase data channels to cope with more data transmission services; if the data channel consumption quantity is lower than the second quantity threshold, it means that the currently provided data channel resources are abundant, and the number of data channels can be reduced to save data channel resources.

[0121] In one embodiment of the present invention, the scheduling, including the scheduling of the table storage cluster data partitions and the scheduling of the data channels, can be performed periodically, that is, load evaluation data is periodically obtained, and the table storage cluster data partitions and data channels are scheduled periodically. The length of the cycle can be flexibly set according to the needs of the actual application and the characteristics of the data, and is not particularly limited in this disclosure.

[0122] In one embodiment of the present invention, the device further comprises a part for setting the initial data partition and the corresponding initial data channel, that is, Figure 6 As shown, the load scheduling device includes:

[0123] A setting module 601 is configured to set an initial data partition and a corresponding initial data channel;

[0124] The acquisition module 602 is configured to acquire load evaluation data, wherein the load evaluation data includes table storage cluster data partition access evaluation data and data channel consumption evaluation data;

[0125] The determination module 603 is configured to determine whether the load evaluation data meets a preset condition;

[0126] The scheduling module 604 is configured to schedule the table storage cluster data partitions and data channels when the load evaluation data meets a preset condition.

[0127] In order to ensure that data can be written and read normally in the initial stage of data consumption and avoid the problem of slow synchronization when new data is imported, in this embodiment, the setting module 601 needs to first set the initial data partition and the initial data channel, wherein the initial data channel corresponds to the initial data partition to provide corresponding services.

[0128] Figure 7 A load scheduling architecture diagram according to an embodiment of the present invention is shown as follows: Figure 7 As shown, the table storage cluster controller and the data channel controller respectively send the data partition access evaluation data and the data channel consumption evaluation data to the acquisition module, the acquisition module sends the obtained load evaluation data to the determination module, the determination module sends a judgment message of whether the load evaluation data meets the preset conditions to the scheduling module, and the scheduling module sends a data partition scheduling instruction to the table storage cluster controller, so that it schedules the table storage cluster data partition according to the data partition scheduling instruction, and synchronizes the data partition scheduling information to the data channel controller, so that the data channel controller schedules the data channel according to the data partition scheduling information.

[0129] The embodiment of the present invention further discloses an electronic device, Figure 8 A structural block diagram of an electronic device according to an embodiment of the present invention is shown. Figure 8 As shown, the electronic device 800 includes a memory 801 and a processor 802; wherein,

[0130] The memory 801 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 802 to implement any of the above method steps.

[0131] Fig. 9 A schematic diagram of the structure of a computer system suitable for implementing the load scheduling method according to an embodiment of the present invention.

[0132] like Fig. 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various processes in the above-mentioned embodiments according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the system 900 are also stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0133] The following components are connected to the I / O interface 905: an input section 2406 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed.

[0134] In particular, according to an embodiment of the present invention, the method described above can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program tangibly contained on a readable medium, and the computer program includes program code for executing the load scheduling method. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 909, and / or installed from the removable medium 911.

[0135] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the road map or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0136] The units or modules involved in the embodiments of the present invention may be implemented by software or hardware. The units or modules described may also be arranged in a processor, and the names of these units or modules do not, in some cases, limit the units or modules themselves.

[0137] As another aspect, an embodiment of the present invention further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the device described in the above embodiment; or a computer-readable storage medium that exists independently and is not assembled into the device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the method described in the embodiment of the present invention.

[0138] The above description is only a preferred embodiment of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present invention is not limited to the technical solutions formed by the specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with (but not limited to) the technical features with similar functions disclosed in the embodiments of the present invention.

Claims

1. A load scheduling method, characterized in that: include: Obtain load evaluation data, wherein the load evaluation data includes table storage cluster data partition access evaluation data and data channel consumption evaluation data; the table storage cluster data partition access evaluation data includes one or more of the following data: data partition access data volume, data partition access delay data, data partition data write rate, data partition data read rate; and / or, the data channel consumption evaluation data includes one or more of the following data: data channel consumption quantity, data channel consumption time data; Determining whether the load evaluation data meets a preset condition; When the load evaluation data meets the preset conditions, a data partition scheduling instruction is sent to the table storage cluster controller, so that it schedules the table storage cluster data partition according to the data partition scheduling instruction, and synchronizes the data partition scheduling information to the data channel controller, so that the data channel controller schedules the data channel according to the data partition scheduling information; or When the data channel consumption evaluation data meets the corresponding preset conditions, a data channel scheduling instruction is sent to the data channel controller so that the data channel is scheduled according to the data channel scheduling instruction.

2. The method according to claim 1, characterized in that: The obtaining of load evaluation data includes: Send a data partition access evaluation data acquisition request to the table storage cluster controller, and send a data channel consumption evaluation data acquisition request to the data channel controller; In response to the request being allowed, the table storage cluster data partition access evaluation data is obtained through the table storage cluster server, and the data channel consumption evaluation data is obtained through the data channel controller.

3. The method according to claim 1 or 2, characterized in that: The preset conditions include one or more of the following conditions: the amount of data accessed by the data partition exceeds a first data amount threshold, the amount of data accessed by the data partition is lower than a second data amount threshold, the access delay of the data partition exceeds a delay threshold, the data write rate of the data partition is lower than the data read rate of the data partition and the absolute value of the difference between the data write rate and the data read rate of the data partition is greater than a first rate threshold, the data write rate of the data partition is greater than the data read rate of the data partition and the absolute value of the difference between the data write rate and the data read rate of the data partition is greater than a second rate threshold, the number of data channel consumption exceeds a first number threshold, the number of data channel consumption is lower than a second number threshold, and the absolute value of the difference between the data channel consumption time and the current time exceeds a time threshold.

4. The method according to claim 1 or 2, characterized in that: The scheduling of the table storage cluster data partitions includes one or more of the following scheduling processes: splitting, merging, and moving; the scheduling of the data channels includes one or more of the following scheduling processes: adding data channels, reducing data channels, and adjusting the correspondence between data channels and table storage cluster data partitions.

5. The method according to claim 1 or 2, characterized in that: Also includes: Set up the initial data partitions and the corresponding initial data channels.

6. A load dispatching device, characterized in that: include: The acquisition module is configured to acquire load evaluation data, wherein the load evaluation data includes table storage cluster data partition access evaluation data and data channel consumption evaluation data; the table storage cluster data partition access evaluation data includes one or more of the following data: data partition access data volume, data partition access delay data, data partition data write rate, data partition data read rate; and / or, the data channel consumption evaluation data includes one or more of the following data: data channel consumption quantity, data channel consumption time data; A determination module, configured to determine whether the load evaluation data meets a preset condition; The scheduling module is configured to send a data partition scheduling instruction to the table storage cluster controller when the load evaluation data meets the preset conditions, so that the table storage cluster controller schedules the data partition according to the data partition scheduling instruction, and synchronize the data partition scheduling information to the data channel controller, so that the data channel controller schedules the data channel according to the data partition scheduling information; or When the data channel consumption evaluation data meets the corresponding preset conditions, a data channel scheduling instruction is sent to the data channel controller so that the data channel is scheduled according to the data channel scheduling instruction.

7. The device according to claim 6, characterized in that The acquisition module comprises: A sending submodule, configured to send a data partition access evaluation data acquisition request to the table storage cluster controller, and send a data channel consumption evaluation data acquisition request to the data channel controller; The acquisition submodule is configured to, in response to the request being allowed, acquire the table storage cluster data partition access evaluation data through the table storage cluster server, and acquire the data channel consumption evaluation data through the data channel controller.

8. The device according to claim 6 or 7, characterized in that The preset conditions include one or more of the following conditions: the amount of data accessed by the data partition exceeds a first data amount threshold, the amount of data accessed by the data partition is lower than a second data amount threshold, the access delay of the data partition exceeds a delay threshold, the data write rate of the data partition is lower than the data read rate of the data partition and the absolute value of the difference between the data write rate and the data read rate of the data partition is greater than a first rate threshold, the data write rate of the data partition is greater than the data read rate of the data partition and the absolute value of the difference between the data write rate and the data read rate of the data partition is greater than a second rate threshold, the number of data channel consumption exceeds a first number threshold, the number of data channel consumption is lower than a second number threshold, and the absolute value of the difference between the data channel consumption time and the current time exceeds a time threshold.

9. The device according to claim 6 or 7, characterized in that The scheduling of the table storage cluster data partitions includes one or more of the following scheduling processes: splitting, merging, and moving; the scheduling of the data channels includes one or more of the following scheduling processes: adding data channels, reducing data channels, and adjusting the correspondence between data channels and table storage cluster data partitions.

10. The device according to claim 6 or 7, characterized in that Also includes: The setting module is configured to set an initial data partition and a corresponding initial data channel.

11. An electronic device, characterized in that: comprising a memory and a processor; wherein, The memory is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method steps described in any one of claims 1-5.

12. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by a processor, the method steps described in any one of claims 1 to 5 are implemented.

13. A computer program product, characterized in that The method comprises a computer program, which implements the method steps described in any one of claims 1 to 5 when executed by a processor.