Server merging method and device, electronic equipment and storage medium

By obtaining server user attribute data, generating median vectors and eigenvalues, constructing a bipartite graph, and determining a merging strategy, the existing technology problems of low server merging efficiency and non-global optimal merging solutions are solved, and automated merging and resource management are realized. save.

CN118526784APending Publication Date: 2024-08-23NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310172738.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-22
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

The server merging process in the existing technology is inefficient and requires manual comparison of user data, which cannot guarantee the global optimality of the merging solution, resulting in a waste of resources.

Method used

By obtaining the user attribute data on the server, generate a dimensionally reduced median vector, determine the characteristic value of the server, split the server into two groups, build a bipartite graph based on user attribute similarity, use the maximum matching result to determine the merge strategy, and automate the merge server.

Benefits of technology

It improves the efficiency of server merger, saves manpower, ensures the global optimization of the merger plan, and saves server resources to the maximum extent.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118526784A
    Figure CN118526784A
Patent Text Reader

Abstract

According to the server merging method and device, the electronic equipment and the storage medium provided by the invention, for each server in 2N servers, the attribute data of the user attribute set on the server is acquired, and the dimensionality-reduced median vector is generated according to the median in the attribute data of each user attribute on the server; the method comprises the following steps: firstly, calculating a median vector, then calculating the modulus length of the median vector to obtain feature values of servers, dividing all the servers into first servers and second servers based on the feature values of all the servers, and then constructing a bipartite graph between N first servers and N second servers according to the similarity between every two servers based on a user attribute set, and obtaining a server merging strategy based on the maximum matching result of the graph, and merging the servers by adopting the strategy. According to the technical scheme, based on the similarity of the user attribute sets among the servers and the maximum matching principle of the bipartite graph, the servers are merged more efficiently, and server resources are saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a server merging method, device, electronic device and storage medium. Background Art

[0002] With the continuous development of network technology, more and more applications are installed on users' terminal devices. Users operate the applications and use the servers that provide data support for the applications to achieve related communication, work, entertainment and other purposes among multiple users. However, in some cases, due to the small number of active users on multiple servers, the user experience will be affected. At this time, it is necessary to merge the two servers to increase user experience and save server resources.

[0003] In the prior art, the merging of servers is mainly done manually. Specifically, technicians pull user data from each server, perform manual comparison, and merge servers with similar user data in pairs.

[0004] However, in the above technical solution, technicians need to manually compare each server, which is labor-intensive, inefficient, and may not guarantee a globally optimal merging solution. Summary of the invention

[0005] In view of this, the present application provides a server merging method, device, electronic device and storage medium to solve the technical problems in the prior art that server merging is labor-intensive, inefficient, and may not guarantee a globally optimal merging solution.

[0006] A first aspect of an embodiment of the present application provides a server merging method, the method comprising:

[0007] For each of the 2N servers, obtaining attribute data of a user attribute set on the server; N is a positive integer, and the user attribute set includes at least one user attribute;

[0008] Generate a reduced-dimensional median vector according to the median of the attribute data of each of the user attributes on the server;

[0009] Determine the modulus length of the reduced-dimensional median vector to obtain the eigenvalue of the server;

[0010] According to the characteristic values ​​of the 2N servers, the 2N servers are divided into N first servers and N second servers; the sum of the characteristic values ​​of the N first servers and the sum of the characteristic values ​​of the N second servers have the smallest difference;

[0011] According to the similarity between the first server and the second server based on the user attribute set, construct a bipartite graph between the N first servers and the N second servers;

[0012] Determine the maximum matching result of the bipartite graph and obtain the server merging strategy;

[0013] According to the server merging strategy, the 2N servers are merged to save server resources.

[0014] A second aspect of an embodiment of the present application provides a server merging device, the device comprising:

[0015] An acquisition module, configured to acquire attribute data of a user attribute set on each of the 2N servers; N is a positive integer, and the user attribute set includes at least one user attribute;

[0016] A generating module, used for generating a reduced-dimensional median vector according to the median in the attribute data of each of the user attributes on the server;

[0017] A first determination module is used to determine the modulus length of the reduced-dimensional median vector to obtain the eigenvalue of the server;

[0018] a splitting module, used for splitting the 2N servers into N first servers and N second servers according to the characteristic values ​​of the 2N servers; the sum of the characteristic values ​​of the N first servers and the sum of the characteristic values ​​of the N second servers have a minimum difference;

[0019] A construction module, configured to construct a bipartite graph between the N first servers and the N second servers according to the similarity between the first server and the second server based on the user attribute set;

[0020] A second determination module is used to determine the maximum matching result of the bipartite graph and obtain the server merging strategy;

[0021] The merging module is used to merge the 2N servers according to the server merging strategy to save server resources.

[0022] A third aspect of the embodiments of the present application further provides an electronic device, including: a processor, a memory;

[0023] The memory stores computer-executable instructions;

[0024] The processor executes the computer-executable instructions so that the electronic device performs the server merging method as described in the first aspect above.

[0025] The fourth aspect of the embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the server merging method as described in the first aspect above.

[0026] A fifth aspect of an embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, is used to implement the server merging method as described in the first aspect above.

[0027] The technical solution provided by the embodiment of the present application is to obtain the attribute data of the user attribute set on each server of the 2N servers, and generate a reduced-dimensional median vector according to the median in the attribute data of each user attribute on the server, and determine the modulus length of the reduced-dimensional median vector to obtain the eigenvalue of the server, and then split the 2N servers into N first servers and N second servers according to the eigenvalues ​​of the 2N servers; the sum of the eigenvalues ​​of the N first servers is the smallest difference from the sum of the eigenvalues ​​of the N second servers, and based on the similarity between the first server and the second server based on the user attribute set, construct a bipartite graph between the N first servers and the N second servers, and finally determine the maximum matching result of the bipartite graph, obtain a server merging strategy, and use the strategy to merge 2N servers. In this technical solution, firstly, each server is split into two groups of servers by determining the server eigenvalue based on the user attribute data; secondly, by establishing the connection relationship between the two groups of servers based on the similarity between the servers determined based on the user attribute data, thereby constructing a bipartite graph between the two groups of servers; finally, the server merging strategy is determined by using the maximum matching of the bipartite graph. Automatically determining the server merging strategy based on user attribute data is highly efficient and saves manpower. The global optimal merging solution can be determined through the maximum matching of the bipartite graph, and then this strategy is used to merge 2N servers, which can save server resources to the maximum extent. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0029] Figure 1 A schematic diagram of a flow chart of an embodiment of a server merging method provided in an embodiment of the present application;

[0030] Figure 2 A schematic diagram of a bipartite graph provided in an embodiment of the present application;

[0031] Figure 3 A schematic diagram of determining the maximum matching result based on a bipartite graph provided in an embodiment of the present application;

[0032] Figure 4 A schematic diagram of a process for determining a reduced-dimensional median vector in a server merging method provided in an embodiment of the present application;

[0033] Figure 5 A schematic diagram of a process for determining a first server and a second server in a server merging method provided in an embodiment of the present application;

[0034] Figure 6 A schematic diagram of a process for determining a bipartite graph in a server merging method provided in an embodiment of the present application;

[0035] Figure 7 A schematic diagram of a server merging device provided in an embodiment of the present application;

[0036] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0037] The present application provides a server merging method, device, electronic device and storage medium to solve the technical problems of low efficiency, waste of manpower and inability to ensure that the merging result is the globally optimal merging solution in the prior art.

[0038] In order to enable those skilled in the art to better understand the technical solution of the present application, the present application is described clearly and completely below in conjunction with the drawings in the embodiments of the present application. However, the present application can be implemented in many other ways different from the above description. Therefore, based on the embodiments provided by the present application, all other embodiments obtained by those of ordinary skill in the art without creative work should fall within the scope of protection of the present application.

[0039] It should be noted that the terms "first", "second", "third", etc. in the claims, description and drawings of the present application are used to distinguish similar objects and are not used to describe a specific order or sequence. The data used in this way are interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including", "having" and their variants are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0040] First, the professional terms and technical background involved in the embodiments of the present application are explained.

[0041] Bipartite graph (also called bipartite graph): Let G = (V, E) be an undirected graph, where V is a vertex set consisting of at least 2 vertices, E is an edge set consisting of at least 1 edge, and each edge connects 2 vertices. If the vertex set V can be divided into two non-intersecting vertex subsets (A, B), and the two vertices i and j associated with each edge (i, j) in the graph G belong to these two different vertex subsets respectively, that is, i inA, j in B, then the graph G is called a bipartite graph.

[0042] Matching and maximum matching of bipartite graphs: Given a bipartite graph G, in a subgraph M of G, the edge set of M {E M If no two edges in M ​​are attached to the same vertex, then M is called a matching. Among all the matchings of a bipartite graph, the matching with the largest number of edges is called the maximum matching of the bipartite graph.

[0043] Further explanation of the technical background: As applications continue to become more popular on users' terminal devices, more and more people are using terminal devices to work, communicate, and entertain themselves. The interaction of terminal devices is based on servers that provide data and communication support for applications. When there are fewer active users on the server, for example, when there are fewer players logging into a server in a game, when Player A plays the game, the number of players he can match with is smaller, affecting Player A's gaming experience.

[0044] At this time, it is necessary to merge the servers, for example, merge two servers to increase the number of players that player A can match with and improve the gaming experience. In addition, when the number of users on a server is small, the opening of the server will also cause a waste of resources. If the two servers can be merged, server resources can be saved.

[0045] In the prior art, servers are mainly merged manually. Specifically, technicians pull user data from each server to be merged one by one, then determine servers with similar user data among the servers, and merge every two servers with similar user data, that is, migrate the data from the two servers to one server.

[0046] However, in the prior art, the above-mentioned solution of realizing server merging based on manual method has the following technical problems:

[0047] 1. The method of manually pulling the resource information of the servers one by one and formulating a merging plan is inefficient;

[0048] Second, the artificially formulated merger plan cannot be guaranteed to be the globally optimal merger plan.

[0049] In response to the technical problems existing in the above-mentioned prior art, the inventors' technical conception is as follows: the attribute data of users on each server is counted, and based on this, firstly, a parameter based on the user attribute data, namely, the characteristic value of the server, is provided, which is used to split each server into two groups of servers, thereby constructing two vertex subsets of the bipartite graph; secondly, another parameter based on the user attribute data, namely, the similarity between servers, is provided, which is used to establish a connection relationship between the two groups of servers, thereby constructing a bipartite graph between the two groups of servers; finally, the maximum matching of the bipartite graph is used to determine the server merging plan, thereby determining the globally optimal merging plan with higher server merging efficiency.

[0050] The technical solution of the present application is described in detail below through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0051] Figure 1 The following is a flow chart of an embodiment of the server merging method provided in the present application. Figure 1 As shown, the server merging method may include the following steps:

[0052] Step 11: For each of the 2N servers, obtain attribute data of a user attribute set on the server; N is a positive integer, and the user attribute set includes at least one user attribute.

[0053] In this solution, one of the purposes of server merging is to improve the user experience, and the feature related to the user experience is mainly the number of active users on the server, that is, the more users there are, the more conducive to improving the user experience. However, in order to ensure this experience, it is also necessary to ensure that the difference in attribute data pairs of user attribute sets on the two merged servers is as small as possible. Therefore, in this step, it is first necessary to obtain the attribute data of the user attribute sets active on each server.

[0054] Optionally, the user attribute set includes at least one of the following user attributes: combat power value, wealth value, equipment rating, and player level.

[0055] Taking the above-mentioned server as a game server as an example, the combat power value can be the combat power value of the virtual object controlled by the user; the wealth value can be the number of gold coins, diamond value, etc. owned by the user; the equipment score can be the score of the equipment configured on the virtual object controlled by the user; the player level can be the level of the virtual object controlled by the user.

[0056] In addition, in addition to the user attributes mentioned above, the user attribute set may also include other user attributes. When the following servers are merged, the user attributes used can be freely selected according to different user experience focuses. For example, when related servers with ranking mode of the game type are merged, the combat power values ​​and equipment scores of the users to be matched need to be similar, and the user attribute set includes: combat power value and equipment score; when related servers with matching mode of the game type are merged, various user attributes need to be comprehensively considered, and the user attribute set includes: combat power value, wealth value, equipment score, and player level.

[0057] Optionally, the attribute data of the user attributes on the server specifically includes the top K attribute data of the user attributes, where K is a positive integer.

[0058] For a certain game, considering that some users have not experienced the game many times after registering, the specific values ​​of the attribute data in some user attributes are low. At this time, for any user attribute on the server, it is necessary to obtain the top K attribute data under the user attribute. Using the top-ranked attribute data as the basic reference data for merging servers makes it easier to obtain the global optimal merging solution.

[0059] In a possible implementation, taking a certain server as an example, Table 1 is a schematic table of attribute data of a user attribute set provided in an embodiment of the present application (taking the user attribute set including combat power value and wealth value as an example), as shown in Table 1:

[0060] Table 1

[0061] User attributes Attribute data Combat Power 20、19、17、15、14 Wealth 100、98、87、76、65

[0062] That is, taking the combat power value as an example, you can get the combat power value data of the top 5 combat power values ​​on the server, namely 20, 19, 17, 15, and 14; taking the wealth value as an example, you can get the wealth value data of the top 5 wealth values ​​on the server, namely 100, 98, 87, 76, and 65.

[0063] In the embodiment of the present application, the merged servers need to be merged in pairs, so 2N servers need to be selected for merging, that is, the number of servers to be merged needs to be controlled to be an even number. When the number of servers is not an even number, a preset strategy can be executed by the electronic device to remove a server from the servers to be merged, or to add a new server.

[0064] For example, the preset strategy for removing a server may be that if the number of active users on the server is greater than a set value, the server may be removed and not participate in the server merging process; or a server may be removed randomly, etc.

[0065] In addition to considering user attributes, indicators such as price levels on the server can also be considered.

[0066] Step 12: Generate a reduced-dimensional median vector based on the median of the attribute data of each user attribute on the server.

[0067] In this step, the median is the number in the middle position of a set of data arranged in order of size, which represents the general level of a set of data. The median of the attribute data of each user attribute on the server also represents the general level of the attribute data of the user attribute. Furthermore, the median of the attribute data of each user attribute is used to generate a median vector to represent the general level value of the attribute data of all user attributes on the server.

[0068] Then, the median vector is dimensionally reduced to obtain a reduced-dimensional median vector. The implementation of this process can facilitate the determination of the eigenvalues ​​of the server in the following steps.

[0069] Optionally, for each user attribute, the median of the attribute data of the user attribute may be determined by sorting the attribute data of the user attribute according to size and determining the median in the sorting.

[0070] In a possible implementation, the attribute data of the user attributes are the top 5 attribute data. Taking the combat power values ​​of 20, 19, 17, 15, and 14 as examples, the median of the combat power values ​​is 17; taking the wealth values ​​of 100, 98, 87, 76, and 65 as examples, the median of the wealth values ​​is 87; taking the player levels of 100, 98, 87, 76, and 65 as examples, the median of the player levels is 87.

[0071] Furthermore, the median vector is (17, 87, 87). Taking dimensionality reduction to 2 dimensions as an example, the reduced median vector may be (a, b). The specific dimensionality reduction implementation is given in the following embodiment.

[0072] Step 13: Determine the modulus length of the reduced median vector to obtain the eigenvalue of the server.

[0073] In this step, after obtaining the reduced-dimensional median vector, the modulus length of the reduced-dimensional median vector is determined, and the modulus length of the reduced-dimensional median vector is used as the eigenvalue of the server.

[0074] Continuing with the above example, the modulus c of the median vector (a, b) is used as the eigenvalue of the server.

[0075] Step 14: split the 2N servers into N first servers and N second servers according to the characteristic values ​​of the 2N servers; the sum of the characteristic values ​​of the N first servers and the sum of the characteristic values ​​of the N second servers are minimally different.

[0076] In this step, after the characteristic values ​​of the 2N servers are obtained, in order to facilitate merging of the servers in pairs, the 2N servers are first split into N first servers and N second servers.

[0077] Optionally, the splitting strategy is to ensure that the sum of the characteristic values ​​of each server of the N first servers and the sum of the characteristic values ​​of each server of the N second servers are minimally different, that is, to ensure that the characteristics of the attribute data of all user attributes on the two servers are as similar as possible.

[0078] In a possible implementation, taking 8 servers as an example, Table 2 is a schematic table of characteristic values ​​of the servers provided in the embodiment of the present application, as shown in Table 2:

[0079] Table 2

[0080] Server Number Eigenvalue Server 01 32 Server 02 34 Server 03 36 Server 04 33 Server 05 36 Server 06 30 Server 07 35 Server 08 34

[0081] Furthermore, by splitting the above 8 servers, we can obtain the following first server group and second server group with the smallest difference in the sum of characteristic values: first server group: server 01, server 02, server 03, server 04; second server group: server 05, server 06, server 07, server 08.

[0082] Specifically, the sum of the characteristic values ​​of server 01, server 02, server 03, and server 04 is 135, the sum of the characteristic values ​​of server 05, server 06, server 07, and server 08 is 135, and the difference between the characteristic values ​​of the two groups of servers is 0, which is the minimum. The specific implementation of this step is given by the following embodiment.

[0083] Step 15: construct a bipartite graph between the N first servers and the N second servers according to the similarity between the first servers and the second servers based on the user attribute set.

[0084] In this step, in order to more accurately determine the servers suitable for merging, the embodiment of the present application adopts the maximum matching method in the bipartite graph to determine them. First, based on each server in the first server group and the second server group, a bipartite graph between N first servers and N second servers is constructed.

[0085] Optionally, since the bipartite graph includes two point sets (i.e., each server in the first server group and the second server group constitutes two point sets respectively) and edges between points in one point set and points in the other point set, whether an edge is established between two points (i.e., any first server and any second server) can be determined based on the similarity between the two points (i.e., the similarity between the first server and the second server based on the user attribute set).

[0086] In a possible implementation, based on the above example, Figure 2 A schematic diagram of a bipartite graph provided in an embodiment of the present application, such as Figure 2 As shown, the schematic diagram includes: 4 first servers and 4 second servers,

[0087] Among them, the four first servers are: server 01, server 02, server 03, server 04, and the four second servers are server 05, server 06, server 07, server 08.

[0088] exist Figure 2 In the figure, the first server 01 constructs an edge of the bipartite graph with the second server 05 and the second server 07 respectively; the first server 02 constructs an edge of the bipartite graph with the second server 05; the first server 03 constructs an edge of the bipartite graph with the second server 05 and the second server 06 respectively; the first server 04 constructs an edge of the bipartite graph with the second server 07 and the second server 08 respectively.

[0089] At this point, the bipartite graph between the four first servers and the four second servers is constructed.

[0090] In addition, the specific implementation of the similarity in this step and the establishment of a bipartite graph based on the similarity is given in the following embodiment.

[0091] Step 16: Determine the maximum matching result of the bipartite graph and obtain the server merging strategy.

[0092] In this step, after constructing the bipartite graph between the N first servers and the N second servers, a maximum matching algorithm (for example, the Hungarian algorithm) is used on the bipartite graph to determine the maximum matching result of the bipartite graph (that is, the second server that matches each first server), and the maximum matching result is used as the server merging strategy.

[0093] In one possible implementation, Figure 2 (hereinafter referred to as the server number), the following matches exist:

[0094] Group 1: 01-05, 03-06, 04-07;

[0095] Group 2: 01-07, 02-05, 03-06, 04-08.

[0096] In the above two types of matching, the maximum matching is the group with the largest number of edges among all matchings of the bipartite graph, that is, the second group is the maximum matching result, that is, Figure 3 As shown ( Figure 3 A schematic diagram of determining the maximum matching result based on a bipartite graph provided in an embodiment of the present application).

[0097] Therefore, the server merging strategy is: 01-07, 02-05, 03-06, 04-08, that is, server 01 and server 07 are a pair of servers to be merged, server 02 and server 05 are a pair of servers to be merged, server 03 and server 06 are a pair of servers to be merged, and server 04 and server 08 are a pair of servers to be merged.

[0098] Step 17: According to the server merging strategy, merge the 2N servers to save server resources.

[0099] Continuing with the example of the previous step, in this step, server 01 and server 07 may be merged, server 02 and server 05 may be merged, server 03 and server 06 may be merged, and server 04 and server 08 may be merged.

[0100] The server merging method provided in the embodiment of the present application obtains the attribute data of the user attribute set on each server in the 2N servers, and generates a reduced-dimensional median vector according to the median in the attribute data of each user attribute on the server, and determines the modulus length of the reduced-dimensional median vector to obtain the eigenvalue of the server; then, according to the eigenvalues ​​of the 2N servers, the 2N servers are split into N first servers and N second servers, and the sum of the eigenvalues ​​of the N first servers is the smallest difference from the sum of the eigenvalues ​​of the N second servers; then, based on the similarity between the first server and the second server based on the user attribute set, a bipartite graph between the N first servers and the N second servers is constructed, and finally the maximum matching result of the bipartite graph is determined to obtain the server merging strategy. In this technical solution, first, each server is split into two groups of servers by determining the server eigenvalue based on the user attribute data; secondly, by establishing the connection relationship between the two groups of servers based on the similarity between the servers determined based on the user attribute data, a bipartite graph between the two groups of servers is constructed; finally, the server merging strategy is determined by using the maximum matching of the bipartite graph. Automatically determining the server merging strategy based on user attribute data is highly efficient and saves manpower. The global optimal merging solution can be determined through the maximum matching of the bipartite graph, and then this strategy is used to merge 2N servers, which can save server resources to the maximum extent.

[0101] Based on the above embodiments, Figure 4 Schematic diagram of the process of determining the median vector of dimension reduction in the server merging method provided in the embodiment of the present application. Figure 4 As shown, the implementation of the above step 12 may include the following steps:

[0102] Step 41: Generate a median vector according to the median in the attribute data of each user attribute on the server.

[0103] In this step, for each server, after the attribute data of each user attribute on the server is determined, the median in the attribute data of each user attribute is used as each element of the vector, and the vector composed of each element is called a median vector.

[0104] In a possible implementation, the medians of the attribute data of each user attribute on the server are: the median of the wealth value is 87, the median of the combat power value is 86, and the median of the equipment score is 76, then a median vector (87, 86, 76) is generated.

[0105] Step 42: Map the median vector to a two-dimensional vector in a two-dimensional space to obtain a reduced-dimensional median vector.

[0106] In this step, the median vector of each server represents the characteristics of the attribute data of all user attributes on the server and all user attributes on other servers. At this time, the median vector of each server is reduced in dimension to obtain a reduced-dimensional median vector, which can be convenient for subsequent processing.

[0107] Optionally, the dimension reduction method may be based on a principal component analysis (PCA) method to map the median vector into a two-dimensional vector in a two-dimensional space.

[0108] For example, for the median vector (87, 86, 76), it needs to be reduced to 2 dimensions. The implementation process at this time is:

[0109] 1) Remove the average value of the median vector, that is, subtract the average value of all elements from each element in the median vector;

[0110] 2) According to the above results, construct the covariance matrix;

[0111] 3), determine the eigenvalues ​​and eigenvectors of the covariance matrix;

[0112] 4) Sort the eigenvalues ​​of the covariance matrix, select the two largest ones, and then use the eigenvectors corresponding to these two values ​​as row vectors to form an eigenvector matrix;

[0113] 5) Convert the median vector into the two-dimensional space constructed by two eigenvectors to obtain the reduced-dimensional median vector.

[0114] The above process can refer to the relevant technology of the PCA algorithm, and the embodiments of the present application will not be repeated here.

[0115] Correspondingly, the specific implementation method of determining the modulus length of the reduced-dimensional median vector in step 13 includes: determining the distance between the two-dimensional vector and the origin of the two-dimensional space to obtain the eigenvalue of the server.

[0116] Specifically, if the two-dimensional vector of server 01 is (m, n), the distance between the two-dimensional vector and the origin of the two-dimensional space is 32, that is, the eigenvalue of the server is 32.

[0117] The server merging method provided in the embodiment of the present application generates a median vector according to the median in the attribute data of each user attribute on the server, and maps the median vector to a two-dimensional vector in a two-dimensional space to obtain a reduced-dimensional median vector, and then maps the median vector to a two-dimensional vector in a two-dimensional space to obtain a reduced-dimensional median vector. In this technical solution, the median that can represent the size of the sequence is used to represent the majority data distribution of each indicator in the user attribute set, which makes it easier to determine the best merging strategy, and the use of dimensionality reduction makes data calculation more convenient.

[0118] Further, based on the above embodiments, Figure 5 This is a schematic diagram of the determination process of the first server and the second server in the server merging method provided in the embodiment of the present application. Figure 5 As shown, the implementation of the above step 14 may include the following steps:

[0119] Step 51: Split the 2N servers into two groups of servers with the same number of servers and any different combinations, and obtain at least one split result.

[0120] In this step, in order to use the above bipartite graph to realize the merging of two servers, it is first necessary to determine two point sets in the bipartite graph, that is, to split the 2N servers into two server groups with the same number of servers, and each server is a point.

[0121] Optionally, there may be multiple ways to split the data. Taking the eight servers shown in Table 2 as an example, the following ways of achieving split results may be determined:

[0122] Specifically, Table 3 is a schematic table of splitting results provided in an embodiment of the present application, as shown in Table 3 (Table 3 does not exhaust all possible splitting possibilities, and the following four types are taken as examples):

[0123] Table 3

[0124]

[0125]

[0126] Step 52: For each of the two groups of servers in the split result, determine the sum of the characteristic values ​​of each server in the two groups of servers.

[0127] Continuing with the example shown in Table 3 above, the sum of the characteristic values ​​of each server in each server group under each split result is calculated respectively.

[0128] Specifically, Table 4 is a schematic table of the sum of characteristic values ​​provided in the embodiment of the present application, as shown in Table 4:

[0129] Table 4

[0130]

[0131] Step 53: Determine the absolute value of the difference between the sum of the characteristic values ​​of each server in the two groups of servers.

[0132] Continuing with the example shown in Table 4 above, the absolute value of the difference between the sum of the characteristic values ​​of each server in the two server groups under each split result is calculated respectively.

[0133] Specifically, Table 5 is a schematic table of absolute values ​​of the difference between the sums of the characteristic values ​​provided in the embodiment of the present application, as shown in Table 5:

[0134] Table 5

[0135]

[0136] Step 54: Select the split result with the smallest absolute value from each split result, and determine one group of servers in the selected split result as first servers, and determine another group of servers as second servers.

[0137] In this step, two server groups with the smallest absolute value of the difference between the sums of the server feature values ​​are determined from the above groups and are respectively used as two point sets of the bipartite graph.

[0138] That is, following the example in Table 5 above, in the split result 1, the servers 01, 02, 03, and 04 in the first group can be used as the first server, and the servers 05, 06, 07, and 08 in the second group can be used as the second server.

[0139] In addition, when selecting two server groups with the smallest absolute value of the difference between the sums of the server characteristic values ​​from each two server groups obtained by splitting, if there are multiple server groups with the smallest absolute values, they can be selected randomly.

[0140] The server merging method provided in the embodiment of the present application obtains at least one splitting result by splitting 2N servers into two groups of servers of any different combinations with the same number of servers, and for the two groups of servers in each splitting result, respectively determines the sum of the characteristic values ​​of each server in the two groups of servers, then determines the absolute value of the difference between the sum of the characteristic values ​​of each server in the two groups of servers, and finally selects the splitting result with the smallest absolute value from each splitting result, and determines one group of servers in the selected splitting result as each first server, and the other group of servers as each second server. The implementation of this scheme is to ensure the similarity of the data characteristics between the user attributes on the two groups of servers as much as possible, so as to more easily determine the best merging strategy.

[0141] Based on the above embodiments, Figure 6 Schematic diagram of the process of determining a bipartite graph in the server merging method provided in the embodiment of the present application. Figure 6 As shown, before the above step 15, the server merging method may further include the following steps 61-62:

[0142] Step 61: For each user attribute, determine a first similarity between the first server and the second server based on the user attribute according to the attribute data of the user attribute on the first server and the attribute data of the user attribute on the second server.

[0143] In this step, in order to determine the similarity between the first server and the second server based on the user attribute set, it is necessary to first determine the first similarity between the first server and the second server based on each user attribute.

[0144] Furthermore, taking the user attribute being wealth value as an example, first obtain the attribute data of the wealth value on the first server and the attribute data of the wealth value on the second server, and then calculate the first similarity based on wealth value between the two servers according to the attribute data of the wealth value on the first server and the attribute data of the wealth value on the second server.

[0145] Optionally, the implementation of this step can be based on the following steps:

[0146] Step 1: Determine the median of the attribute data of the user attributes in the first server as the first median.

[0147] In a possible implementation, it is taken as an example that the user attribute is wealth value, the first server 01, the second server 05, and the attribute data are the top 5 data.

[0148] For example, the attribute data of the wealth value in the first server 01 are 100, 98, 87, 86, and 76 respectively, and the median 87 in the attribute data is used as the first median.

[0149] Step 2: Determine the median of the attribute data of the user attributes in the second server as the second median.

[0150] For example, the attribute data of the wealth value in the second server 05 are 98, 84, 81, 76, and 72 respectively, and the median 81 in the attribute data is used as the second median.

[0151] Step 3: Determine the median of the attribute data of the user attributes in the first server and the second server as the third median.

[0152] For example, the attribute data of the wealth values ​​in the first server 01 and the second server 05 are 100, 98, 98, 87, 86, 84, 81, 76, 76, 72 respectively, and the average value 85 of 86 and 84 is taken as the third median.

[0153] Step 4: Determine a first similarity between the first server and the second server based on user attributes according to the first median, the second median, and the third median.

[0154] For example, according to the first median 87 , the second median 81 , and the third median 85 , a first similarity based on wealth value between the first server 01 and the second server 05 is determined.

[0155] Optionally, the first similarity between the first server i and the second server j based on the user attribute x is determined by the following formula:

[0156]

[0157] in, is the first similarity between the first server i and the second server j based on the user attribute x, M i is the first median of the attribute data based on user attribute x in the first server i, M j is the second median of the attribute data of the second server j based on the user attribute x, M ij is the third median based on the user attribute x in the first server i and the second server j.

[0158] Continuing with the example of the above steps, Table 6 is an example table of the first similarity provided in an embodiment of the present application, as shown in Table 6:

[0159] Table 6

[0160] First median Second median The third median First similarity 87 81 85 0.024

[0161] Specifically, the first median of the wealth value of the first server 01 is 87, the second median of the wealth value of the second server 05 is 81, and the third median of the wealth values ​​on the first server 01 and the second server 05 is 85. The first similarity between the first server 01 and the second server 05 based on the wealth value is 0.024.

[0162] Step 62: Determine the similarity between the first server and the second server based on the user attribute set according to the first similarity between the first server and the second server based on each user attribute.

[0163] The similarity between the first server and the second server based on the user attribute set is the similarity between the first server and the second server based on the user attribute set.

[0164] Optionally, in the embodiment of the present application, there are two implementation methods based on the similarity of user attribute sets:

[0165] Method 1:

[0166] Step 1: Add the first similarities between the first server and the second server corresponding to all user attributes to obtain the sum of the similarities.

[0167] For example, under the above calculation method, the first similarities of all user attributes can be obtained as follows: the first similarity of wealth value is 0.024, the first similarity of combat power value is 0.21, and the first similarity of equipment score is 0.076.

[0168] Furthermore, the sum of the similarities obtained by adding the above three first similarities is 0.024+0.21+0.076=0.31.

[0169] Step 2: Determine the ratio of the sum of the similarities to the number of user attributes in the user attribute set, and obtain the similarity between the first server and the second server based on the user attribute set.

[0170] For example, the user attributes in the above user attribute set are: wealth value, combat power value, and equipment score, and the number of user attributes is 3.

[0171] Furthermore, the similarity between the first server 01 and the second server 05 based on the user attribute set is 0.31 / 3=0.103.

[0172] Method 2:

[0173] Step 1: Add the first similarities between the first server and the second server corresponding to all user attributes to obtain the similarity between the first server and the second server based on the user attribute set.

[0174] For example, under the above calculation method, the first similarities of all user attributes can be obtained as follows: the first similarity of wealth value is 0.024, the first similarity of combat power value is 0.21, and the first similarity of equipment score is 0.076.

[0175] Furthermore, the sum of the three first similarities is added to obtain 0.024+0.21+0.076=0.31, that is, 0.31 is used as the similarity between the first server 01 and the second server 05 based on the user attribute set.

[0176] Accordingly, step 15 specifically includes the following steps 63:

[0177] Step 63: For each first server and each second server, if the similarity between the first server and the second server based on the user attribute set is greater than a preset threshold, an edge of a bipartite graph is constructed between the first server and the second server to obtain a bipartite graph between the N first servers and the N second servers.

[0178] Among them, the setting of the preset threshold is used to screen whether the two servers establish the edge of the bipartite graph. When the similarity between the two servers based on the user attribute set is greater than the preset threshold, that is, the similarity is large, the edge of the bipartite graph can be established as the basis for subsequent maximum matching processing.

[0179] Based on the above two implementation methods of determining the similarity based on the user attribute set, when establishing a bipartite graph, the setting of the preset threshold is also divided into two possible implementations:

[0180] In the first case, the determination based on the similarity of the user attribute set is obtained by the method 1, and the preset threshold is the first preset threshold.

[0181] For example, the first preset threshold is 0.1. In method one, the similarity between the first server 01 and the second server 05 based on the user attribute set is 0.103. Since the similarity 0.103 is greater than the first preset threshold 0.1, an edge of a bipartite graph is constructed between the first server 01 and the second server 05.

[0182] The second type, if the determination based on the similarity of the user attribute set is obtained by the second method, the preset threshold is the second preset threshold, wherein the ratio of the second preset threshold to the first preset threshold is the number of user attributes in the user attribute set.

[0183] For example, the second preset threshold is the product of the first preset threshold 0.1 and the number 3 of user attributes in the user attribute set, that is, the second preset threshold is 0.3.

[0184] In the second mode, the similarity between the first server 01 and the second server 05 based on the user attribute set is 0.31. Since the similarity 0.31 is greater than the second preset threshold 0.3, an edge of a bipartite graph is constructed between the first server 01 and the second server 05.

[0185] That is, in the first implementation, based on the similarity of the user attribute set The preset threshold is Th, and in the second implementation, based on the similarity of the user attribute set The preset threshold is Th×|P|, where |P| is the number of user attributes in the user attribute set.

[0186] In a possible implementation, that is, combining the above Figure 2 The above table illustrates the construction of a bipartite graph, wherein the preset threshold (the second preset threshold) of 0.3 is taken as an example.

[0187] Among them, the four first servers are: server 01, server 02, server 03, server 04, and the four second servers are server 05, server 06, server 07, server 08. Table 7 is a schematic table of similarity based on user attribute sets provided in an embodiment of the present application, as shown in Table 7 (it should be understood that the data in the table are only for example):

[0188] Table 7

[0189]

[0190]

[0191] That is, if Figure 2 As shown in the figure, an edge of a bipartite graph is constructed between the first server and the second server based on the similarity of the user attribute set being greater than 0.3, thereby generating a bipartite graph.

[0192] Furthermore, according to the generated bipartite graph, the maximum matching result of the bipartite graph is determined, and the server merging strategy is obtained. After that, each two servers that are paired in the maximum matching result can be merged. Figure 3 The maximum matching result of the bipartite graph shown can merge server 01 and server 07, merge server 02 and server 05, merge server 03 and server 06, and merge server 04 and server 08.

[0193] The server merging method provided in the embodiment of the present application determines the first similarity between the first server and the second server based on the user attribute for each user attribute according to the attribute data of the user attribute on the first server and the attribute data of the user attribute on the second server, and determines the similarity between the first server and the second server based on the user attribute set according to the first similarity between the first server and the second server based on each user attribute. For each first server and each second server, if the similarity between the first server and the second server based on the user attribute set is greater than a preset threshold, an edge of a bipartite graph is constructed between the first server and the second server, and a bipartite graph between N first servers and N second servers is obtained. In this technical solution, starting from the similarity of each user attribute in each two servers, the data similarity between the user groups on each two servers is determined as much as possible, and then a bipartite graph that can determine the global optimal merging solution is obtained.

[0194] Based on the above method embodiment, Figure 7 A schematic diagram of a server merging device provided in an embodiment of the present application, such as Figure 7 As shown, the server merging device includes: an acquisition module 71, a generation module 72, a first determination module 73, a splitting module 74, a construction module 75, and a second determination module 76.

[0195] An acquisition module 71 is used to acquire attribute data of a user attribute set on each of the 2N servers; N is a positive integer, and the user attribute set includes at least one user attribute;

[0196] A generating module 72, configured to generate a reduced-dimensional median vector according to the median of the attribute data of each of the user attributes on the server;

[0197] A first determination module 73 is used to determine the modulus length of the reduced-dimensional median vector to obtain the eigenvalue of the server;

[0198] A splitting module 74 is used to split the 2N servers into N first servers and N second servers according to the characteristic values ​​of the 2N servers; the sum of the characteristic values ​​of the N first servers and the sum of the characteristic values ​​of the N second servers have a minimum difference;

[0199] A construction module 75, configured to construct a bipartite graph between the N first servers and the N second servers according to the similarity between the first server and the second server based on the user attribute set;

[0200] A second determination module 76 is used to determine the maximum matching result of the bipartite graph and obtain the server merging strategy;

[0201] The merging module 77 is used to merge the 2N servers according to the server merging strategy to save server resources.

[0202] In a possible implementation of the embodiment of the present application, before constructing a bipartite graph between N first servers and N second servers according to the similarity between the first server and the second server based on the user attribute set, the device further includes:

[0203] A first similarity determination submodule, configured to determine, for each user attribute, a first similarity between the first server and the second server based on the user attribute according to attribute data of the user attribute on the first server and attribute data of the user attribute on the second server;

[0204] The second similarity determination submodule is used to determine the similarity between the first server and the second server based on the user attribute set according to the first similarity between the first server and the second server based on each user attribute, and the similarity between the first server and the second server based on the user attribute set is the similarity between the first server and the second server based on the user attribute set.

[0205] Optionally, the first similarity determination submodule includes:

[0206] A first determining unit, configured to determine a median in attribute data of user attributes in a first server as a first median;

[0207] A second determining unit, configured to determine a median in the attribute data of the user attributes in the second server as a second median;

[0208] A third determining unit, configured to determine a median of attribute data of user attributes in the first server and the second server as a third median;

[0209] The fourth determining unit is used to determine a first similarity between the first server and the second server based on user attributes according to the first median, the second median, and the third median.

[0210] Optionally, the fourth determining unit is specifically configured to:

[0211] Determine the first similarity between the first server i and the second server j based on the user attribute x by the following formula;

[0212]

[0213] in, is the first similarity between the first server i and the second server j based on the user attribute x, M iis the first median of the attribute data of user attribute x in the first server i, M j is the second median of the attribute data of user attribute x in the second server j, M ij is the third median of the attribute data of the user attribute x in the first server i and the second server j.

[0214] In another possible implementation of the embodiment of the present application, the second similarity determination submodule is specifically used to:

[0215] Adding first similarities corresponding to all user attributes between the first server and the second server to obtain a sum of similarities;

[0216] The ratio of the sum of the similarities to the number of user attributes in the user attribute set is determined to obtain the similarity between the first server and the second server based on the user attribute set.

[0217] In another possible implementation of the embodiment of the present application, the second similarity determination submodule is specifically used to:

[0218] The first similarities between the first server and the second server corresponding to all user attributes are added to obtain the similarity between the first server and the second server based on the user attribute set.

[0219] In another possible implementation of the embodiment of the present application, the construction module 75 is specifically used to:

[0220] For each first server and each second server, if the similarity between the first server and the second server based on the user attribute set is greater than a preset threshold, an edge of a bipartite graph is constructed between the first server and the second server to obtain a bipartite graph between the N first servers and the N second servers.

[0221] In another possible implementation of the embodiment of the present application, the generating module 72 is specifically used for:

[0222] Generate a median vector according to the median of the attribute data of each user attribute on the server;

[0223] Map the median vector to a two-dimensional vector in a two-dimensional space to obtain a reduced-dimensional median vector;

[0224] Accordingly, the first determining module 73 is specifically configured to:

[0225] The distance between the two-dimensional vector and the origin of the two-dimensional space is determined to obtain the eigenvalue of the server.

[0226] In another possible implementation of the embodiment of the present application, the splitting module 74 is specifically used to:

[0227] Split the 2N servers into two groups of servers with the same number of servers and any different combinations, and obtain at least one split result;

[0228] For each of the two groups of servers in the split result, the sum of the characteristic values ​​of each server in the two groups of servers is determined respectively;

[0229] Determine the absolute value of the difference between the sum of the characteristic values ​​of each server in the two groups of servers;

[0230] From each split result, a split result with the smallest absolute value is selected, and a group of servers in the selected split result is determined as each first server, and another group of servers is determined as each second server.

[0231] Optionally, the merging module 77 is specifically used for:

[0232] Each two of the servers that are paired together in the maximum pairing result are merged.

[0233] Optionally, the attribute data of the user attributes on the server specifically includes the attribute data of the top K user attributes; K is a positive integer.

[0234] Optionally, the user attribute set includes at least one of the following user attributes: combat power value, wealth value, equipment rating, and player level.

[0235] The server merging device provided in the embodiment of the present application can be used to execute the technical solution corresponding to the server merging method in the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0236] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.

[0237] Furthermore, Figure 8 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 8 As shown, the electronic device may include: a processor 81 , a memory 82 , and computer program instructions stored in the memory 82 and executable on the processor 81 .

[0238] The processor 81 executes the computer execution instructions stored in the memory 82, so that the processor 81 executes the scheme in the above embodiment. The processor 81 can be a general-purpose processor, including a central processing unit CPU, a network processor (network processor, NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0239] The memory 82 is connected to the processor 81 via a system bus and completes communication between them. The memory 82 is used to store computer program instructions.

[0240] Optionally, the structure of the electronic device further includes: a transceiver 83, which is connected to the processor 81 via a system bus and completes communication between them.

[0241] In implementation, the transceiver 83 may correspond to Figure 7 The acquisition module 71 in the illustrated embodiment.

[0242] The system bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0243] The electronic device provided in the embodiment of the present application can be used to execute the technical solution corresponding to the server merging method in the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.

[0244] An embodiment of the present application also provides a chip for running instructions, which is used to execute the technical solution of the server merging method in the above embodiment.

[0245] An embodiment of the present application further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a server, the server executes the technical solution of the server merging method in the above embodiment.

[0246] An embodiment of the present application further provides a computer program product, including a computer program, which, when executed by a processor, is used to execute the technical solution of the server merging method in the above embodiment.

[0247] The computer readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or dedicated server.

[0248] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

[0249] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.

Claims

1. A server merging method, characterized in that: The method comprises: For each of the 2N servers, obtaining attribute data of a user attribute set on the server; N is a positive integer, and the user attribute set includes at least one user attribute; Generate a reduced-dimensional median vector according to the median of the attribute data of each of the user attributes on the server; Determine the modulus length of the reduced-dimensional median vector to obtain the eigenvalue of the server; According to the characteristic values ​​of the 2N servers, the 2N servers are divided into N first servers and N second servers; the sum of the characteristic values ​​of the N first servers and the sum of the characteristic values ​​of the N second servers have the smallest difference; According to the similarity between the first server and the second server based on the user attribute set, construct a bipartite graph between the N first servers and the N second servers; Determine the maximum matching result of the bipartite graph and obtain the server merging strategy; According to the server merging strategy, the 2N servers are merged to save server resources.

2. The method according to claim 1, characterized in that Before constructing a bipartite graph between the N first servers and the N second servers according to the similarity between the first server and the second server based on the user attribute set, the method further includes: For each of the user attributes, determining a first similarity between the first server and the second server based on the user attribute according to the attribute data of the user attribute on the first server and the attribute data of the user attribute on the second server; The similarity between the first server and the second server based on the user attribute set is determined according to the first similarity between the first server and the second server based on each of the user attributes.

3. The method according to claim 2, characterized in that The determining, according to the attribute data of the user attributes on the first server and the attribute data of the user attributes on the second server, a first similarity between the first server and the second server based on the user attributes, comprises: Determine a median in the attribute data of the user attribute in the first server as a first median; Determine a median in the attribute data of the user attribute in the second server as a second median; Determine that the median of the attribute data of the user attributes in the first server and the second server is a third median; A first similarity between the first server and the second server based on the user attribute is determined according to the first median, the second median, and the third median.

4. The method according to claim 3, characterized in that: The determining, according to the first median, the second median, and the third median, a first similarity between the first server and the second server based on the user attribute includes: The first similarity between the first server i and the second server j based on the user attribute x is determined by the following formula: Among them, the is the first similarity between the first server i and the second server j based on the user attribute x, and the M i is the first median in the attribute data of the user attribute x in the first server i, and the M j is the second median of the attribute data of the user attribute x in the second server j, and the M ij is the third median in the attribute data of the user attribute x in the first server i and the second server j.

5. The method according to claim 2, characterized in that: The determining, according to the first similarity between the first server and the second server based on each of the user attributes, the similarity between the first server and the second server based on the user attribute set comprises: Adding the first similarities between the first server and the second server corresponding to the attributes of all users to obtain a sum of the similarities; The ratio of the sum of the similarities to the number of user attributes in the user attribute set is determined to obtain the similarity between the first server and the second server based on the user attribute set.

6. The method according to claim 2, characterized in that The determining, according to the first similarity between the first server and the second server based on each of the user attributes, the similarity between the first server and the second server based on the user attribute set comprises: The first similarities between the first server and the second server corresponding to the attributes of all the users are added to obtain the similarity between the first server and the second server based on the set of user attributes.

7. The method according to claim 1, characterized in that The constructing a bipartite graph between the N first servers and the N second servers according to the similarity between the first server and the second server based on the user attribute set includes: For each of the first servers and each of the second servers, if the similarity between the first server and the second server based on the user attribute set is greater than a preset threshold, an edge of the bipartite graph is constructed between the first server and the second server to obtain the bipartite graph between N first servers and N second servers.

8. The method according to claim 1, characterized in that The step of generating a reduced-dimensional median vector according to the median of the attribute data of each user attribute on the server comprises: Generate a median vector according to the median in the attribute data of each of the user attributes on the server; Mapping the median vector to a two-dimensional vector in a two-dimensional space to obtain the reduced-dimensional median vector; Accordingly, determining the modulus length of the reduced-dimensional median vector to obtain the eigenvalue of the server includes: The distance between the two-dimensional vector and the origin of the two-dimensional space is determined to obtain a characteristic value of the server.

9. The method according to claim 1, characterized in that: The step of splitting the 2N servers into N first servers and N second servers according to the characteristic values ​​of the 2N servers includes: Splitting the 2N servers into two groups of servers with the same number of servers in any different combinations, and obtaining at least one split result; For each of the two groups of servers in the split result, respectively determine the sum of the characteristic values ​​of each of the servers in the two groups of servers; Determining an absolute value of a difference between the sum of the characteristic values ​​of each of the servers in the two groups of servers; From each of the split results, the split result with the smallest absolute value is selected, and one group of the servers in the selected split result is determined as each of the first servers, and another group of the servers is determined as each of the second servers.

10. The method according to claim 1, characterized in that The merging of the 2N servers according to the server merging strategy includes: Each two of the servers that are paired together in the maximum pairing result are merged.

11. The method according to claim 1, characterized in that: The attribute data of the user attributes on the server specifically includes the top K attribute data of the user attributes; K is a positive integer.

12. The method according to claim 1, characterized in that The user attribute set includes at least one of the following user attributes: combat power value, wealth value, equipment score, and player level.

13. A server merging device, characterized in that: The device comprises: An acquisition module, configured to acquire attribute data of a user attribute set on each of the 2N servers; N is a positive integer, and the user attribute set includes at least one user attribute; A generating module, used for generating a reduced-dimensional median vector according to the median in the attribute data of each of the user attributes on the server; A first determination module is used to determine the modulus length of the reduced-dimensional median vector to obtain the eigenvalue of the server; a splitting module, used for splitting the 2N servers into N first servers and N second servers according to the characteristic values ​​of the 2N servers; the sum of the characteristic values ​​of the N first servers and the sum of the characteristic values ​​of the N second servers have a minimum difference; A construction module, configured to construct a bipartite graph between the N first servers and the N second servers according to the similarity between the first server and the second server based on the user attribute set; A second determination module is used to determine the maximum matching result of the bipartite graph and obtain the server merging strategy; The merging module is used to merge the 2N servers according to the server merging strategy to save server resources.

14. An electronic device, characterized in that: include: A processor, a memory, and computer program instructions stored on the memory and executable on the processor; When the processor executes the computer program instructions, the server consolidation method as described in any one of claims 1 to 12 is implemented.

15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the server merging method as described in any one of claims 1 to 12 above.