A method and device for uniformly distributing data

Secondary classification and resource allocation in the data center are carried out through clustering algorithms and customer transaction history information, which solves the problem of uneven distribution of data and resources in the banking system and improves transaction performance and system processing capabilities.

CN113052507BInactive Publication Date: 2024-10-29BANK OF CHINA
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202110486177.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-30
Publication Date
2024-10-29
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Under the distributed architecture of the existing banking system, data and resources are unevenly distributed, causing some data centers to be too hot in high concurrency scenarios while other data centers have less transactions, resulting in a waste of hardware resources and performance degradation.

Method used

A clustering algorithm is used to use geographical location and customer transaction history information as calculation factors to perform secondary classification of customer data to ensure that customers associated with frequent transactions are allocated in the same data center and evenly distributed through attribute characteristic values ​​and transaction behavior characteristic values. Reduce network transmission consumption and resource waste.

Benefits of technology

It achieves even distribution of data and resources between and within data centers, improves transaction performance and system processing performance, avoids resource waste and bottlenecks under high concurrency, and disperses transaction pressure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113052507B_ABST
    Figure CN113052507B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for uniformly distributing data, and the present invention relates to big data technology. The method comprises: taking geographic location as a first calculation factor, and using a clustering algorithm to perform primary classification on customer data; determining a customer transaction correlation characteristic value based on customer transaction history information; based on the result of the primary classification, taking the customer transaction correlation characteristic value as a second calculation factor, and using a clustering algorithm to perform secondary classification on customer data; determining attribute characteristic values ​​and customer transaction behavior characteristic values ​​based on customer transaction history information; and uniformly distributing the results of the secondary classification to data centers based on the attribute characteristic values ​​and customer transaction behavior characteristic values. The present invention enables uniform distribution of customer data and resources between and within data centers, ensures uniform transaction hotspots in data centers, and improves transaction performance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer data processing, and in particular to a method and device for uniformly distributing data. Background Art

[0002] This section is intended to provide a background or context to embodiments of the invention that are recited in the claims. No description herein is admitted to be prior art by inclusion in this section.

[0003] Most of the existing banking systems are centrally deployed, with data concentrated in a national center and data backup established in the same city or in different locations. In a distributed architecture, most banking systems allocate customers by province or by the total number of customers / number of data centers. In this allocation method, the data and resource allocation rules are relatively simple, and it is impossible to ensure that data and resources are evenly distributed.

[0004] Large-scale banking systems are transforming from centralized architecture to distributed architecture. The data centers of distributed architecture systems are established in multiple cities and provide business support to customers at the same time. The multi-site active-active architecture ensures that the system can continue to provide services in the event of some server failures. At the same time, providing business support in multiple locations also reduces the performance bottleneck of centralized systems in high-concurrency scenarios. If customer information and resources cannot be evenly distributed among data centers, it may lead to a situation in which one data center is overheated and another data center has less transaction volume in high-concurrency scenarios. In this case, not only hardware resources are wasted, but also a large number of transaction bottleneck resources in the overheated data center will result in a decrease in system processing performance.

[0005] Therefore, how to provide a new solution that can solve the above technical problems is a technical problem that needs to be solved urgently in this field. Summary of the invention

[0006] An embodiment of the present invention provides a method for uniformly distributing data, so as to achieve uniform distribution of customer data and resources between data centers and within a data center. The method includes:

[0007] Taking geographic location as the first calculation factor, using clustering algorithm to classify customer data at the first level; Taking geographic location as the first calculation factor, using clustering algorithm to classify customer data at the first level, including: taking the target data center as the center point, using the distance from the customer to the center point as the first calculation factor to calculate using clustering algorithm, dividing the customers closest to the center point into the nearest center angle, calculating the new center point in the converged category, repeatedly searching for the new center point, calculating multiple times until the center point of each category is stable, and completing the first level classification of customer data;

[0008] Determining the customer transaction correlation characteristic value based on the customer transaction history information; Determining the customer transaction correlation characteristic value based on the customer transaction history information includes: analyzing and calculating the correlation of the customer transaction behavior based on the customer transaction history information to determine the customer transaction correlation characteristic value;

[0009] Based on the result of the primary classification, the customer transaction correlation characteristic value is used as the second calculation factor, and the customer data is secondary classified by using a clustering algorithm; Based on the result of the primary classification, the customer transaction correlation characteristic value is used as the second calculation factor, and the customer data is secondary classified by using a clustering algorithm, including: Based on the result of the primary classification, with the customer transaction correlation as the center point, the customer transaction correlation characteristic value is used as the second calculation factor to perform cluster analysis through a clustering algorithm, until a stable center point is determined, and the customer data is secondary classified;

[0010] Determine attribute characteristic values ​​and customer transaction behavior characteristic values ​​based on customer transaction history information; Determine attribute characteristic values ​​and customer transaction behavior characteristic values ​​based on customer transaction history information, including: calculating characteristic values ​​of attributes including transaction frequency, transaction time and transaction type based on customer transaction history information to determine attribute characteristic values; performing summary analysis and calculation on attribute characteristic values ​​to determine customer transaction behavior characteristic values;

[0011] The results of the secondary classification are evenly distributed to the data center according to the attribute characteristic values ​​and the customer transaction behavior characteristic values; the results of the secondary classification are evenly distributed to the data center according to the attribute characteristic values ​​and the customer transaction behavior characteristic values, including: according to the customer transaction behavior characteristic values, at the data center level, the secondary sub-classifications included in the results of the secondary classification are evenly distributed to the corresponding data center; according to the attribute characteristic values, the customer data is partitioned within the data center, and the customer data is evenly distributed to multiple partitions within the data center.

[0012] An embodiment of the present invention further provides a device for uniformly distributing data, comprising:

[0013] The primary classification module is used to use the geographical location as the first calculation factor and use the clustering algorithm to perform primary classification on the customer data; the primary classification module is specifically used to: use the target data center as the center point, use the distance from the customer to the center point as the first calculation factor to calculate using the clustering algorithm, divide the customers closest to the center point into the nearest central angle, calculate the new center point in the converged category, repeatedly find the new center point, calculate multiple times until the center point of each category is stable, and complete the primary classification of the customer data;

[0014] The customer transaction correlation characteristic value determination module is used to determine the customer transaction correlation characteristic value according to the customer transaction history information; the customer transaction correlation characteristic value determination module is specifically used to: analyze and calculate the correlation of the customer transaction behavior according to the customer transaction history information, and determine the customer transaction correlation characteristic value;

[0015] The secondary classification module is used to perform secondary classification on customer data based on the result of the primary classification and taking the customer transaction correlation characteristic value as the second calculation factor by using the clustering algorithm; the secondary classification module is specifically used to perform clustering analysis based on the result of the primary classification and taking the customer transaction correlation as the center point and taking the customer transaction correlation characteristic value as the second calculation factor by using the clustering algorithm until a stable center point is determined, and then complete the secondary classification of customer data;

[0016] The attribute characteristic value and customer transaction behavior characteristic value determination module is used to determine the attribute characteristic value and the customer transaction behavior characteristic value according to the customer transaction history information; the attribute characteristic value and customer transaction behavior characteristic value determination module is specifically used to: calculate the characteristic value of the attributes including transaction frequency, transaction time and transaction type according to the customer transaction history information to determine the attribute characteristic value; summarize and analyze the attribute characteristic value to determine the customer transaction behavior characteristic value;

[0017] The data uniform distribution module is used to uniformly distribute the results of the secondary classification to the data center according to the attribute characteristic values ​​and the customer transaction behavior characteristic values; the data uniform distribution module is specifically used to: uniformly distribute the secondary sub-classifications included in the results of the secondary classification to the corresponding data center at the data center level according to the customer transaction behavior characteristic values; partition the customer data within the data center according to the attribute characteristic values, and uniformly distribute the customer data to multiple partitions within the data center.

[0018] An embodiment of the present invention further provides a computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method for uniformly distributing data when executing the computer program.

[0019] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above method for uniformly distributing data.

[0020] The embodiment of the present invention provides a method and device for evenly distributing data, including: firstly, taking the geographical location as the first calculation factor, and using a clustering algorithm to perform a primary classification on customer data; then, according to the customer transaction history information, determining the customer transaction correlation characteristic value; then, based on the result of the primary classification, taking the customer transaction correlation characteristic value as the second calculation factor, and using a clustering algorithm to perform a secondary classification on customer data; next, according to the customer transaction history information, determining the attribute characteristic value and the customer transaction behavior characteristic value; finally, according to the attribute characteristic value and the customer transaction behavior characteristic value, evenly distributing the result of the secondary classification to the data center. The embodiment of the present invention first performs a secondary classification on customers according to the geographical location and the correlation of customer transaction behavior. This classification method greatly ensures that customers who often have a relationship can be allocated to the same data center, which can greatly ensure that local transaction processing can be used when customers with a related relationship trade, improve transaction performance and accuracy, and also reduce a lot of network transmission consumption. The results of the secondary classification are evenly distributed to the data center through the attribute characteristic values ​​and the customer transaction behavior characteristic values, which can ensure that resources can be evenly distributed when there is high concurrency, and there will be no phenomenon that both resources are wasted and some resources become bottlenecks at the same time under high concurrency, which disperses the transaction pressure under high concurrency and improves the system processing performance. The embodiment of the present invention realizes that customer data and resources can be evenly distributed between data centers and within data centers, ensures that the transaction hotspots of the data center are even, and improves transaction performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0022] Figure 1 The figure is a schematic diagram of a method for uniformly distributing data according to an embodiment of the present invention.

[0023] Figure 2 This is a schematic diagram of the primary classification results after clustering of a method for evenly distributing data according to an embodiment of the present invention.

[0024] Figure 3 A schematic diagram of a process for determining attribute characteristic values ​​and customer transaction behavior characteristic values ​​in a method for evenly distributing data according to an embodiment of the present invention.

[0025] Figure 4 A schematic diagram of a computer device for executing a method for uniformly distributing data according to the present invention.

[0026] Figure 5 The figure is a schematic diagram of a device for uniformly distributing data according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0028] The present invention relates to big data technology. Figure 1 FIG. 1 is a schematic diagram of a method for uniformly distributing data according to an embodiment of the present invention. Figure 1 As shown, an embodiment of the present invention provides a method for uniformly distributing data, so as to achieve uniform distribution of customer data and resources between data centers and within a data center. The method includes:

[0029] Step 101: Taking the geographical location as the first calculation factor, a clustering algorithm is used to perform primary classification on the customer data;

[0030] Step 102: Determine the customer transaction correlation feature value based on the customer transaction history information;

[0031] Step 103: Based on the result of the primary classification, the customer transaction correlation feature value is used as the second calculation factor, and the customer data is classified into secondary categories using a clustering algorithm;

[0032] Step 104: Determine attribute characteristic values ​​and customer transaction behavior characteristic values ​​according to customer transaction history information;

[0033] Step 105: Distribute the secondary classification results evenly to the data centers according to the attribute feature values ​​and the customer transaction behavior feature values.

[0034] A method for evenly distributing data provided by an embodiment of the present invention includes: firstly, taking geographic location as the first calculation factor, and using a clustering algorithm to perform a primary classification on customer data; then, based on customer transaction history information, determining the customer transaction correlation characteristic value; then, based on the result of the primary classification, taking the customer transaction correlation characteristic value as the second calculation factor, and using a clustering algorithm to perform a secondary classification on customer data; next, determining the attribute characteristic value and the customer transaction behavior characteristic value based on the customer transaction history information; finally, evenly distributing the result of the secondary classification to the data center based on the attribute characteristic value and the customer transaction behavior characteristic value. The embodiment of the present invention first performs a secondary classification on customers based on geographic location and customer transaction behavior correlation. This classification method greatly ensures that customers who often have a relationship can be allocated to the same data center, which can greatly ensure that local transaction processing can be used when customers with a related relationship trade, improve transaction performance and accuracy, and also reduce a large amount of network transmission consumption. The results of the secondary classification are evenly distributed to the data center through the attribute characteristic values ​​and the customer transaction behavior characteristic values, which can ensure that resources can be evenly distributed when there is high concurrency, and there will be no phenomenon that both resources are wasted and some resources become bottlenecks at the same time under high concurrency, which disperses the transaction pressure under high concurrency and improves the system processing performance. The embodiment of the present invention realizes that customer data and resources can be evenly distributed between data centers and within data centers, ensures that the transaction hotspots of the data center are even, and improves transaction performance.

[0035] Most banking systems are now developing from centralized to distributed, and from the cold standby architecture in the same city and different locations to the active-active architecture in the same city or multiple active-active architecture in different locations. Under the centralized framework, the business data of most systems comes from the same data center, or a cold backup of data is performed in a data center in the same city or different locations. However, most distributed banking systems now allocate customers by province or by the total number of customers / number of data centers, without evenly allocating customers according to algorithms. In this case, a method is needed to evenly distribute customer resources in each data center, evenly distribute the transaction traffic of each data center, and improve system processing performance.

[0036] To solve the above problem, an embodiment of the present invention provides a method for uniformly distributing data, which may include:

[0037] Taking geographic location as the first calculation factor, a clustering algorithm is used to classify customer data into primary categories;

[0038] Determine the customer transaction correlation feature value based on the customer transaction history information;

[0039] Based on the results of the primary classification, the customer transaction correlation feature value is used as the second calculation factor, and the customer data is classified into the secondary level using the clustering algorithm;

[0040] Determine attribute characteristic values ​​and customer transaction behavior characteristic values ​​based on customer transaction history information;

[0041] According to the attribute characteristic values ​​and customer transaction behavior characteristic values, the results of the secondary classification are evenly distributed to the data center.

[0042] In a multi-active architecture, data of a large banking system is stored in data centers in multiple regions and cities. First, customers are classified and evenly stored in multiple data centers by category. The method of the embodiment of the present invention ensures that resources and data can be evenly distributed by ensuring that customer data in each category can be uniform in many aspects.

[0043] Under the multi-site active-active architecture, the data of large banking systems is stored in data centers in multiple regions and cities. First, customers are classified and their data is evenly stored in multiple data centers by category.

[0044] Figure 2 The schematic diagram of the primary classification result after clustering of a method for uniformly distributing data according to an embodiment of the present invention is a diagram showing customer data and a resource allocation algorithm under the primary classification; as shown in 2, when a method for uniformly distributing data according to an embodiment of the present invention is specifically implemented, in one embodiment, the aforementioned method uses the geographical location as the first calculation factor and uses the clustering algorithm to perform primary classification on the customer data, including:

[0045] With the target data center as the center point, the distance from the customer to the center point is used as the first calculation factor for calculation using a clustering algorithm. The customers closest to the center point are divided into the nearest central angle, and the new center point in the converged category is calculated. The search for new center points is repeated, and calculations are performed multiple times until the center point of each category is stable, completing the first-level classification of customer data.

[0046] In an embodiment, the main process of the method for primary classification of customer data includes: taking the target data center as the center point, using the distance from the customer to the center point as the first calculation factor to calculate using a clustering algorithm, dividing the customers closest to the center point into the nearest center angle, calculating the new center point in the converged category, repeatedly searching for new center points, calculating multiple times until the center points of each category are stable, and completing the primary classification of the customer data.

[0047] First, customers are classified into the first level according to the clustering algorithm. The target data center is taken as the center point, and the distance from the customer to the center point is used as the calculation factor. Those closest to the center point are classified to the nearest center point. Multiple calculations are performed until the center points of each category are stable. Then, the first level classification of customers is completed according to the clustering algorithm.

[0048] After the above-mentioned first-level classification, users who often have transaction correlations can be allocated to the same data center. When trading, local transaction processing can be used to the greatest extent, which improves transaction performance and accuracy and reduces a lot of network transmission consumption.

[0049] In another embodiment of the present invention, customers are classified into a primary category according to a clustering algorithm, with the target data center as the center point, and the distance from the customer to the center point is calculated. The customer closest to the center point is classified to the nearest center point, and then the new center point in the converged category is calculated. The search for a new center point is repeated, and when it is stable, the first clustering of the customer is completed.

[0050] When implementing a method for uniformly distributing data provided by an embodiment of the present invention, in one embodiment, determining the customer transaction correlation feature value according to the customer transaction history information includes:

[0051] Based on the customer's transaction history information, the correlation of the customer's transaction behavior is analyzed and calculated to determine the customer transaction correlation characteristic value.

[0052] In the embodiment, the calculation process of the customer transaction correlation characteristic value mainly includes: analyzing and calculating the correlation of the customer transaction behavior according to the customer transaction history information to determine the customer transaction correlation characteristic value.

[0053] In the data processing system of the bank, we should not only pursue the uniform distribution of customers, but also the performance of the system. According to the analysis of existing customer data, there is a high possibility of transaction association between customers with high association. Putting such customers together facilitates the simultaneous processing of information between the two parties in a transaction submission, which ensures the accuracy of the transaction and improves the transaction processing performance. Therefore, the next secondary classification is based on the principle of customer association. After the first-level classification of customers, combined with the bank's customer transaction history information, the correlation of customer transaction behavior is analyzed and the characteristic value of customer transaction correlation is calculated.

[0054] When implementing a method for uniformly distributing data provided by an embodiment of the present invention, in one embodiment, based on the result of the primary classification, the customer transaction correlation feature value is used as the second calculation factor, and the customer data is classified into secondary categories using a clustering algorithm, including:

[0055] Based on the results of the primary classification, with customer transaction correlation as the center point, the customer transaction correlation characteristic value is used as the second calculation factor to perform clustering analysis through the clustering algorithm until a stable center point is determined, and then the secondary classification of customer data is completed.

[0056] In the embodiment, the main process of secondary classification of customer data includes: based on the results of the primary classification, taking the customer transaction correlation as the center point, and using the customer transaction correlation feature value as the second calculation factor to perform cluster analysis through a clustering algorithm, until a stable center point is determined, and the secondary classification of the customer data is completed.

[0057] In the embodiment, after analyzing the correlation of customer transaction behaviors and calculating the customer transaction correlation characteristic value, the customer transaction correlation characteristic value is used as a calculation factor to perform secondary classification on the customers based on the primary classification according to the clustering algorithm, and customers with stronger correlation are placed in a secondary subcategory.

[0058] In another embodiment of the present invention, after the aforementioned primary classification of customers, the correlation of customer transaction behaviors is analyzed in combination with the bank customer transaction history record information to obtain the correlation characteristic value, and then the users are again classified at a secondary level based on the primary classification according to the customer transaction correlation, and cluster analysis is performed again according to the customer correlation characteristic value until a stable center point is determined, and the secondary classification based on the primary classification is completed. After the above secondary classification, it can be ensured that users who often have transaction correlations are allocated to the same data center, and when trading, local transaction processing problems can be used to the greatest extent, which improves transaction performance and accuracy, and also reduces a large amount of network transmission consumption.

[0059] The embodiment of the present invention first performs secondary classification of customers based on their geographical locations and the correlation between their transaction behaviors. This classification method ensures to a great extent that customers who often have relationships can be allocated to the same data center. This can ensure to a great extent that local transactions can be used to process problems when customers with related relationships trade, thereby improving transaction performance and accuracy and reducing a large amount of network transmission consumption.

[0060] Figure 3 FIG. 1 is a schematic diagram of a process for determining attribute characteristic values ​​and customer transaction behavior characteristic values ​​in a method for evenly distributing data according to an embodiment of the present invention. Figure 3 As shown, when a method for uniformly distributing data provided by an embodiment of the present invention is specifically implemented, in one embodiment, the aforementioned determining the attribute characteristic value and the customer transaction behavior characteristic value according to the customer transaction history information includes:

[0061] Based on the customer's transaction history information, characteristic values ​​of attributes including transaction frequency, transaction time, and transaction type are calculated to determine the attribute characteristic values;

[0062] Summarize, analyze and calculate the attribute characteristic values ​​to determine the characteristic values ​​of customer transaction behavior.

[0063] In the embodiment, the calculation process of attribute characteristic values ​​and customer transaction behavior characteristic values ​​mainly includes: calculating characteristic values ​​of attributes including transaction frequency, transaction time and transaction type based on customer transaction history information to determine attribute characteristic values; summarizing and analyzing the attribute characteristic values ​​to determine customer transaction behavior characteristic values.

[0064] After classifying by region and customer transaction relevance, the characteristic values ​​of each customer's transaction history are calculated according to attributes such as transaction frequency, transaction time, and transaction type to obtain the attribute characteristic value. Then, all attribute characteristic values ​​are summarized and calculated to obtain the customer transaction behavior characteristic value. The customer transaction behavior characteristic value represents the popularity of transactions of a certain type of customer. The larger the characteristic value, the more active the customer is and the more transactions occur. Therefore, the weighted sum of the heat characteristic values ​​of a certain type of customer determines how much resources a certain type of secondary sub-category customer needs and even how many data centers they are allocated to.

[0065] In another embodiment of the present invention, after classification according to region and customer transaction relevance, the transaction history of each customer is subjected to feature value calculation according to attributes such as transaction frequency, transaction time, and transaction type, and attribute feature values ​​are obtained, such as Figure 3 The calculation process of the characteristic value of customer behavior data is shown. Then all attribute characteristic values ​​are summarized and calculated to obtain the customer transaction behavior characteristic value, and the transaction behavior characteristic values ​​of customers under the secondary classification are sorted and summarized.

[0066] When implementing a method for uniformly distributing data provided by an embodiment of the present invention, in one embodiment, the above-mentioned uniformly distributing the results of the secondary classification to the data center according to the attribute feature value and the customer transaction behavior feature value includes:

[0067] According to the customer transaction behavior characteristic value, the secondary sub-classifications included in the secondary classification results at the data center level are evenly distributed to the corresponding data centers;

[0068] According to the attribute characteristic values, the customer data is partitioned within the data center and evenly distributed to multiple partitions within the data center.

[0069] In an embodiment, the main process of evenly distributing customer data includes: evenly distributing the secondary sub-classifications included in the results of the secondary classification to the corresponding data centers at the data center level according to the customer transaction behavior characteristic values; partitioning the customer data within the data center according to the attribute characteristic values, and evenly distributing the customer data to multiple partitions within the data center.

[0070] The customer transaction behavior characteristic value represents the popularity of transactions of a certain type of customer. The larger the characteristic value, the more active the customer is and the more transactions occur. Therefore, the weighted sum of the heat characteristic values ​​of a certain type of customer determines how much resources a certain type of secondary sub-category customer needs and even how many data centers they are allocated to.

[0071] The weighted sum of the heat characteristic values ​​of a certain type of customers represents the transaction heat of this type of customers. The higher the value, the more transactions occur. Therefore, this value determines how many resources a certain type of secondary classification customer requires and even how many data centers they are allocated to. For example, if the sum of the characteristic values ​​of a certain type of customers is low, this type of customers will be combined with other types of customers and stored in the same data center. If the sum of the characteristic values ​​of a certain type of customers is high, this type of customers will be deployed in one data center or even 2-N data centers.

[0072] After allocating resources to the secondary subcategories, the customer data must be partitioned within the data center, and customer resources must be evenly distributed within the data center. Customers are partitioned according to the calculated customer attribute feature values. For example, the transaction time feature value can be used to comprehensively allocate users according to the popularity of the transaction time, ensuring that the popularity of each zone is even within each time period, and the transaction type feature value ensures that the popularity of each type of transaction in each zone is even.

[0073] The embodiment of the present invention ensures that customer data and resources can be evenly distributed between and within data centers through the above classification. Customer data is distributed to one or more different data centers based on the total eigenvalue, and customer data is distributed to different partitions under the data center based on the attribute eigenvalue. The eigenvalues ​​of the classified data are calculated, and a certain type of customer is allocated to different data centers based on the total eigenvalue of the customer transaction as the heat value and the total eigenvalue of all customers under the category as the principle of allocating resources; the customer data under the data center is partitioned based on the eigenvalues ​​of different attributes of the customer transaction, to ensure that the transaction hotspots under the data center are uniform and improve transaction performance.

[0074] After classifying the customers, resources are allocated to the customers according to the total transaction behavior characteristic value of a certain type of customers. The total transaction behavior characteristic value of the customers represents the transaction heat of a certain type of customers. Such allocation can ensure that resources can be evenly allocated when there is high concurrency, and there will not be a phenomenon that both resources are wasted and some resources become bottlenecks at the same time under high concurrency. At the same time, the present invention partitions the data center according to the attribute characteristic value of the customer, ensuring that the transaction heat of each area in the same data center is also uniform, dispersing the transaction pressure under high concurrency to the greatest extent, and improving the system processing performance.

[0075] The embodiment of the present invention further provides a data flow of a method for uniformly distributing data, including:

[0076] 1) Under the multi-site active-active architecture, the data of large banking systems is stored in data centers in multiple regions and cities. We first classify customers and store customer data evenly in multiple data centers based on categories.

[0077] 2) First, we classify the customers according to the clustering algorithm. We take the target data center as the center point and the distance from the customer to the center point as the calculation factor. The customer closest to the center point is classified to the nearest center point. We calculate multiple times until each type of center point is stable. Then we have completed the first-level classification of the customers according to the clustering algorithm.

[0078] 3) After the above secondary classification, it can be ensured that users who often have transaction correlations are allocated to the same data center. When trading, local transaction processing problems can be used to the greatest extent, which improves transaction performance and accuracy and reduces a lot of network transmission consumption.

[0079] 4) After the first-level classification of customers, combined with the bank's customer transaction history information, the correlation of customer transaction behaviors is analyzed and the customer transaction correlation characteristic value is calculated. The customer transaction correlation characteristic value is used as a calculation factor to perform a second-level classification on the basis of the first-level classification according to the clustering algorithm, and customers with strong correlation are placed in a second-level subcategory.

[0080] 5) After classifying by region and customer transaction relevance, the characteristic values ​​of each customer's transaction history are calculated according to attributes such as transaction frequency, transaction time, and transaction type to obtain the attribute characteristic value. Then, all attribute characteristic values ​​are summarized and calculated to obtain the customer transaction behavior characteristic value. The customer transaction behavior characteristic value represents the popularity of transactions of a certain type of customer. The larger the characteristic value, the more active the customer is and the more transactions occur. Therefore, the weighted sum of the heat characteristic values ​​of a certain type of customer determines how much resources a certain type of secondary sub-category customer needs and even how many data centers they are allocated to.

[0081] 6) After allocating resources to the secondary subcategories, we need to partition customer data within the data center and further evenly distribute customer resources within the data center. We partition customers according to the calculated customer attribute feature values. For example, the transaction time feature value can comprehensively allocate users according to the popularity of the transaction time to ensure that the popularity in each zone is uniform in each time period, and the transaction type feature value ensures that the popularity of each type of transaction in each zone is uniform.

[0082] In the development process of the above data flow, from the development perspective, the technical innovations that technicians in this field need to make include:

[0083] 1) Find a suitable clustering algorithm to perform primary classification of customer data. In most cases, for a multi-site active-active architecture, geographic location will be selected as a calculation factor to cluster customers.

[0084] 2) After the first-level clustering, the customer's correlation characteristic value is used as a calculation factor to perform second-level clustering on the customers, and the customers are classified according to their correlation.

[0085] 3) Under the secondary sub-classification, calculate the multi-dimensional characteristic values ​​of customer transactions and the total characteristic values ​​of customer transaction behaviors, allocate data and resources to sub-classes at the data center level according to the total characteristic values ​​of customer transaction behaviors, and partition customer data in the data center according to the multi-dimensional characteristic values ​​of customer transaction attributes. The above classification ensures that customer data and resources can be evenly distributed between and within data centers.

[0086] A method for evenly distributing data provided by the above-mentioned embodiment of the present invention first uses geographic location as a calculation factor to perform primary classification on customer data using a clustering algorithm; on the basis of the primary classification, the customer data is subjected to secondary classification using customer association characteristic values ​​as calculation factors; the attribute characteristic values ​​of the customer transaction data under the secondary classification and the total characteristic value of the customer transaction are calculated, and the customer data is distributed to one or more different data centers based on the total characteristic value, and the customer data is distributed to different partitions under the data center based on the attribute characteristic values.

[0087] The embodiment of the present invention further provides another example of a data flow of a method for uniformly distributing data, including:

[0088] In a multi-active architecture, large-scale banking system data is stored in data centers in multiple regions and cities. We first classify customers and evenly store them in multiple data centers by category. This method ensures that resources and data can be evenly distributed by ensuring that customer data in each category is uniform in many aspects.

[0089] First, we classify the customers according to the clustering algorithm. We take the target data center as the center point and calculate the distance between the customer and the center point. The customer closest to the center point is classified to the nearest center point. Then, we calculate the new center point in the converged category and repeatedly search for new center points. Once it stabilizes, we have completed the first clustering of the customers.

[0090] In the system, we not only pursue the uniform distribution of customers, but also the performance of the system. According to the analysis of existing customer data, there is a high possibility of transaction association between customers with high association. Putting such customers together facilitates the simultaneous processing of information between the two parties in a transaction submission, which ensures the accuracy of the transaction and improves the transaction processing performance. Therefore, the following secondary classification is based on the principle of customer association. After the first-level classification of customers, combined with the bank's customer transaction history information, the correlation of customer transaction behavior is analyzed to obtain the correlation characteristic value. According to the customer transaction correlation, the user is again classified at the second level on the basis of the first-level classification, and the cluster analysis is performed again according to the customer's correlation characteristic value until a stable center point is determined, and the secondary classification based on the first-level classification is completed. After the above secondary classification, it can ensure that users who often have transaction associations are allocated in the same data center. When trading, local transaction processing problems can be used to the greatest extent, which improves transaction performance and accuracy, and also reduces a lot of network transmission consumption.

[0091] After classifying by region and customer transaction relevance, the characteristic values ​​of each customer's transaction history are calculated according to the attributes such as transaction frequency, transaction time, and transaction type to obtain the attribute characteristic values, such as Figure 3 As shown. Then all attribute feature values ​​are summarized and calculated to obtain the customer transaction behavior feature values. We sort and summarize the transaction behavior feature values ​​of customers under the secondary classification. The weighted sum of the heat feature values ​​of a certain type of customer represents the transaction heat of this type of customer. The higher the value, the more transactions occur. Therefore, this value determines how many resources a certain type of secondary classification customer needs and even how many data centers are allocated to it. For example, if the sum of the feature values ​​of a certain type of customer is low, this type of customer will be merged with other types of customers and stored in the same data center. If the sum of the feature values ​​of a certain type of customer is high, this type of customer will be deployed in one data center or even 2-N data centers.

[0092] After allocating resources to the secondary subcategories, we need to partition customers within the data center and further evenly distribute customer resources within the data center. We partition customers according to the calculated customer attribute feature values. For example, the transaction time feature value can comprehensively allocate users according to the popularity of the transaction time to ensure that the popularity in each zone is even in each time period. The transaction type feature value ensures that the popularity of each type of transaction in each zone is even.

[0093] In the process of implementing the above data flow, it is necessary to include:

[0094] The customer transaction information big data storage center stores customers' historical transaction data.

[0095] The clustering algorithm center clusters customers according to other calculation factors such as geographic location or correlation feature values.

[0096] .Customer transaction information feature value calculation center, calculates and stores the feature values ​​of multiple attributes of customer transactions.

[0097] The customer data and resource partitioning unit, in the secondary subclass, allocates resources to customers according to customer transaction feature values ​​and allocates customer data to appropriate data centers and data partitions.

[0098] In another example of the data flow of the above-mentioned method for evenly distributing data, the following technical effects are achieved: a clustering algorithm is used to perform secondary classification of customers based on geographic location and the correlation between customer transactions as calculation factors; characteristic value calculation is performed on the classified data, and a certain type of customer is allocated to different data centers based on the total characteristic value of the customer transaction as the heat value and the total characteristic value of all customers under the category as the principle for allocating resources; customer data under the data center is partitioned based on the characteristic values ​​of different attributes of the customer transaction to ensure that the transaction hotspots under the data center are uniform and improve transaction performance.

[0099] The distributed multi-active banking system in different locations distributes customer data in multiple data centers. In order to balance the resource allocation of each data center and ensure that the data centers in various locations can provide business support to customers efficiently and to the maximum extent under high concurrency, we must ensure that customer data can be evenly distributed in each data center. In this way, it can be avoided that the transaction heat of a certain data center is too high and the transaction volume of a certain data center is small under busy nodes. The present invention first classifies customers secondary according to the geographical location and the correlation of customer transaction behavior. This classification method greatly ensures that customers who often have a relationship can be allocated to the same data center. This can greatly ensure that local transaction processing can be used when customers with a related relationship trade, improve transaction performance and accuracy, and reduce a lot of network transmission consumption.

[0100] After classifying customers, we allocate resources to customers according to the total transaction behavior characteristic value of a certain type of customers. The total transaction behavior characteristic value of customers represents the transaction heat of a certain type of customers. Such allocation can ensure that resources can be evenly distributed during high concurrency, and there will not be a phenomenon of both resource waste and some resources becoming bottlenecks at the same time under high concurrency. At the same time, the present invention partitions the data center according to the attribute characteristic value of the customer, ensuring that the transaction heat of each zone in the same data center is also uniform, dispersing the transaction pressure under high concurrency to the greatest extent, and improving the system processing performance.

[0101] The embodiments of the present invention can evenly distribute bank customer resources in various data centers in a multi-active scenario, evenly disperse transaction hotspots during busy hours in various data centers, and improve system processing performance.

[0102] Figure 4 A schematic diagram of a computer device for running a method for evenly distributing data implemented by the present invention, such as Figure 4 As shown, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned method of uniformly distributing data when executing the computer program.

[0103] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for executing the above method for evenly distributing data.

[0104] The present invention also provides a device for uniformly distributing data, as described in the following embodiments. Since the principle of the device to solve the problem is similar to that of a method for uniformly distributing data, the implementation of the device can refer to the implementation of a method for uniformly distributing data, and the repeated parts will not be repeated.

[0105] Figure 5 FIG. 1 is a schematic diagram of a device for uniformly distributing data according to an embodiment of the present invention. Figure 5 As shown, the embodiment of the present invention further provides a device for uniformly distributing data, which may include:

[0106] A primary classification module 501, used to use the geographical location as the first calculation factor and perform primary classification on the customer data using a clustering algorithm;

[0107] A customer transaction correlation characteristic value determination module 502, used to determine the customer transaction correlation characteristic value based on the customer transaction history information;

[0108] The secondary classification module 503 is used to perform secondary classification on the customer data by using a clustering algorithm based on the result of the primary classification and taking the customer transaction correlation feature value as a second calculation factor;

[0109] The attribute characteristic value and customer transaction behavior characteristic value determination module 504 is used to determine the attribute characteristic value and the customer transaction behavior characteristic value according to the customer transaction history information;

[0110] The data uniform distribution module 505 is used to uniformly distribute the results of the secondary classification to the data center according to the attribute characteristic values ​​and the customer transaction behavior characteristic values.

[0111] When specifically implementing a device for uniformly distributing data provided by an embodiment of the present invention, in one embodiment, the aforementioned primary classification module is specifically used to:

[0112] With the target data center as the center point, the distance from the customer to the center point is used as the first calculation factor for calculation using a clustering algorithm. The customers closest to the center point are divided into the nearest central angle, and the new center point in the converged category is calculated. The search for new center points is repeated, and calculations are performed multiple times until the center point of each category is stable, completing the first-level classification of customer data.

[0113] When implementing a device for uniformly distributing data provided by an embodiment of the present invention, in one embodiment, the aforementioned customer transaction correlation feature value determination module is specifically used to:

[0114] Based on the customer's transaction history information, the correlation of the customer's transaction behavior is analyzed and calculated to determine the customer transaction correlation characteristic value.

[0115] When implementing a device for uniformly distributing data provided by an embodiment of the present invention, in one embodiment, the aforementioned secondary classification module is specifically used to:

[0116] Based on the results of the primary classification, with customer transaction correlation as the center point, the customer transaction correlation characteristic value is used as the second calculation factor to perform clustering analysis through the clustering algorithm until a stable center point is determined, and then the secondary classification of customer data is completed.

[0117] When implementing a device for uniformly distributing data provided by an embodiment of the present invention, in one embodiment, the aforementioned attribute characteristic value and customer transaction behavior characteristic value determination module is specifically used to:

[0118] Based on the customer's transaction history information, characteristic values ​​of attributes including transaction frequency, transaction time, and transaction type are calculated to determine the attribute characteristic values;

[0119] Summarize, analyze and calculate the attribute characteristic values ​​to determine the characteristic values ​​of customer transaction behavior.

[0120] When implementing a device for uniformly distributing data provided by an embodiment of the present invention, in one embodiment, the above-mentioned data uniform distribution module is specifically used to:

[0121] According to the customer transaction behavior characteristic value, the secondary sub-classifications included in the secondary classification results at the data center level are evenly distributed to the corresponding data centers;

[0122] According to the attribute characteristic values, the customer data is partitioned within the data center and evenly distributed to multiple partitions within the data center.

[0123] In summary, the embodiment of the present invention provides a method and device for evenly distributing data, including: firstly, taking the geographical location as the first calculation factor, and using a clustering algorithm to perform a primary classification on customer data; then, based on the customer transaction history information, determining the customer transaction correlation characteristic value; then, based on the result of the primary classification, taking the customer transaction correlation characteristic value as the second calculation factor, and using a clustering algorithm to perform a secondary classification on customer data; next, based on the customer transaction history information, determining the attribute characteristic value and the customer transaction behavior characteristic value; finally, according to the attribute characteristic value and the customer transaction behavior characteristic value, evenly distributing the results of the secondary classification to the data center. The embodiment of the present invention first performs a secondary classification on customers based on the geographical location and the correlation between customer transaction behavior. This classification method greatly ensures that customers who often have a relationship can be allocated to the same data center, which can greatly ensure that local transaction processing can be used when customers with a related relationship trade, improve transaction performance and accuracy, and also reduce a lot of network transmission consumption. The results of the secondary classification are evenly distributed to the data center through the attribute characteristic values ​​and the customer transaction behavior characteristic values, which can ensure that resources can be evenly distributed when there is high concurrency, and there will be no phenomenon that both resources are wasted and some resources become bottlenecks at the same time under high concurrency, which disperses the transaction pressure under high concurrency and improves the system processing performance. The embodiment of the present invention realizes that customer data and resources can be evenly distributed between data centers and within data centers, ensures that the transaction hotspots of the data center are even, and improves transaction performance.

[0124] The distributed multi-active banking system distributes customer data in multiple data centers in multiple locations. In order to balance the resource allocation of each data center and ensure that the data centers in each location can provide business support to customers efficiently and to the maximum extent under high concurrency, it is necessary to ensure that customer data can be evenly distributed in each data center. In this way, it can be avoided that the transaction heat of a certain data center is too high and the transaction volume of another data center is small under busy nodes. The present invention first classifies customers secondary according to the geographical location and the correlation of customer transaction behavior. This classification method greatly ensures that customers who often have a relationship can be allocated to the same data center. In this way, it can greatly ensure that local transaction processing can be used when customers with a related relationship trade, which improves transaction performance and accuracy, and also reduces a lot of network transmission consumption.

[0125] After classifying the customers, resources are allocated to the customers according to the total transaction behavior characteristic value of a certain type of customers. The total transaction behavior characteristic value of the customers represents the transaction heat of a certain type of customers. Such allocation can ensure that resources can be evenly allocated when there is high concurrency, and there will not be a phenomenon that both resources are wasted and some resources become bottlenecks at the same time under high concurrency. At the same time, the present invention partitions the data center according to the attribute characteristic value of the customer, ensuring that the transaction heat of each area in the same data center is also uniform, dispersing the transaction pressure under high concurrency to the greatest extent, and improving the system processing performance.

[0126] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0127] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0128] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0129] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1The steps for the functions specified in one or more boxes.

[0130] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for uniformly distributing data, characterized in that: include: Taking geographic location as the first calculation factor, a clustering algorithm is used to classify customer data into primary categories; The geographical location is used as the first calculation factor, and the customer data is classified into the first level using the clustering algorithm, including: taking the target data center as the center point, using the distance from the customer to the center point as the first calculation factor to calculate using the clustering algorithm, dividing the customers closest to the center point into the nearest center angle, calculating the new center point in the clustered category, repeatedly searching for the new center point, and calculating multiple times until the center point of each category is stable, thus completing the first level classification of the customer data; Determining the customer transaction correlation characteristic value based on the customer transaction history information; Determining the customer transaction correlation characteristic value based on the customer transaction history information includes: analyzing and calculating the correlation of the customer transaction behavior based on the customer transaction history information to determine the customer transaction correlation characteristic value; Based on the result of the primary classification, the customer transaction correlation characteristic value is used as the second calculation factor, and the customer data is secondary classified by using a clustering algorithm; Based on the result of the primary classification, the customer transaction correlation characteristic value is used as the second calculation factor, and the customer data is secondary classified by using a clustering algorithm, including: Based on the result of the primary classification, with the customer transaction correlation as the center point, the customer transaction correlation characteristic value is used as the second calculation factor to perform cluster analysis through a clustering algorithm, until a stable center point is determined, and the customer data is secondary classified; Determine attribute characteristic values ​​and customer transaction behavior characteristic values ​​based on customer transaction history information; Determine attribute characteristic values ​​and customer transaction behavior characteristic values ​​based on customer transaction history information, including: calculating characteristic values ​​of attributes including transaction frequency, transaction time and transaction type based on customer transaction history information to determine attribute characteristic values; performing summary analysis and calculation on attribute characteristic values ​​to determine customer transaction behavior characteristic values; The results of the secondary classification are evenly distributed to the data center according to the attribute characteristic values ​​and the customer transaction behavior characteristic values; the results of the secondary classification are evenly distributed to the data center according to the attribute characteristic values ​​and the customer transaction behavior characteristic values, including: according to the customer transaction behavior characteristic values, at the data center level, the secondary sub-classifications included in the results of the secondary classification are evenly distributed to the corresponding data center; according to the attribute characteristic values, the customer data is partitioned within the data center, and the customer data is evenly distributed to multiple partitions within the data center.

2. A device for uniformly distributing data, characterized in that: include: A primary classification module is used to classify customer data using a clustering algorithm using geographic location as the first calculation factor; The primary classification module is specifically used to: take the target data center as the center point, use the distance from the customer to the center point as the first calculation factor to calculate using the clustering algorithm, divide the customers closest to the center point into the nearest center angle, calculate the new center point in the clustered category, repeatedly find the new center point, calculate multiple times until the center point of each category is stable, and complete the primary classification of customer data; The customer transaction correlation characteristic value determination module is used to determine the customer transaction correlation characteristic value according to the customer transaction history information; the customer transaction correlation characteristic value determination module is specifically used to: analyze and calculate the correlation of the customer transaction behavior according to the customer transaction history information, and determine the customer transaction correlation characteristic value; The secondary classification module is used to perform secondary classification of customer data based on the result of the primary classification and taking the customer transaction correlation characteristic value as the second calculation factor by using the clustering algorithm; The secondary classification module is specifically used to: based on the results of the primary classification, take the customer transaction correlation as the center point, use the customer transaction correlation feature value as the second calculation factor to perform clustering analysis through a clustering algorithm, until a stable center point is determined, and then complete the secondary classification of customer data; An attribute characteristic value and a customer transaction behavior characteristic value determination module, used to determine the attribute characteristic value and the customer transaction behavior characteristic value according to the customer transaction history information; The attribute characteristic value and customer transaction behavior characteristic value determination module is specifically used to: calculate the characteristic value of the attributes including transaction frequency, transaction time and transaction type according to the customer transaction history information, and determine the attribute characteristic value; Summarize, analyze and calculate the attribute characteristic values ​​to determine the characteristic values ​​of customer transaction behavior; The data uniform distribution module is used to uniformly distribute the results of the secondary classification to the data center according to the attribute characteristic values ​​and the customer transaction behavior characteristic values; the data uniform distribution module is specifically used to: uniformly distribute the secondary sub-classifications included in the results of the secondary classification to the corresponding data center at the data center level according to the customer transaction behavior characteristic values; partition the customer data within the data center according to the attribute characteristic values, and uniformly distribute the customer data to multiple partitions within the data center.

3. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method of claim 1 is implemented.

4. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program for executing the method of claim 1.

Citation Information

Patent Citations

  • Method for identifying resident place, and terminal

    CN107515890A

  • Client address aggregation method, apparatus, and computer readable storage medium

    CN109522923A

  • Business object distribution method, device and equipment and storage medium

    CN111698332A

  • Automatic task allocation method and device based on data statistics and computer equipment

    CN111709613A

  • Property maintenance resource allocation method and device, computer equipment and storage medium

    CN112700017A