Server processing method and apparatus, electronic device, storage medium, and program product
By collecting and analyzing information on target items within the server, calculating a health index, and monitoring the server's supply and demand relationship in real time, the problem of untimely and inaccurate server health detection was solved, enabling early intervention and user return, and improving server health and user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NETEASE (HANGZHOU) NETWORK CO LTD
- Filing Date
- 2023-03-16
- Publication Date
- 2026-05-29
AI Technical Summary
In existing technologies, server health detection is neither timely nor accurate, resulting in merging only after a significant loss of players. This fails to effectively alleviate server pressure, and the problem of player loss persists even after the merger.
By collecting information on target items from user interactions within the server, the storage and demand of these target items can be determined, a health index can be calculated, and the server's supply and demand activity can be monitored in real time, enabling intervention in the early stages of sub-health trends.
It improved the timeliness and accuracy of server health detection, reduced user churn, improved the game ecosystem balance, and enhanced the user experience.
Smart Images

Figure CN116328292B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a server processing method, apparatus, electronic device, storage medium, and program product. Background Technology
[0002] In related technologies, server health is typically determined based on the number of active accounts on the server. When a server is found to have too few active accounts, it is merged with a server that has more active accounts to alleviate the pressure on the server with more active accounts. However, server health can often only be determined by the number of active accounts after a significant player exodus has already occurred, resulting in problems with untimely and inaccurate server health detection. Summary of the Invention
[0003] In view of this, this application proposes a server processing method, apparatus, electronic device, storage medium, and program product.
[0004] In a first aspect, this application provides a server processing method, the method comprising:
[0005] Collect target item information of the target items that the user is interacting with in the current server; wherein, the target item information includes quantity information indicating the quantity of the target items;
[0006] Based on the target item information, determine the current storage quantity of the target item and the demand quantity of the target item in the current server within a first preset time period;
[0007] The health index of the current server is determined based on the quantitative relationship between the storage amount and the demand amount in the current server within a first preset time period, and the health status of the current server is determined based on the health index; wherein, the health index is used to characterize the activity level of the supply and demand of the target item in the server within the first preset time period.
[0008] In a second aspect, this application provides a server processing apparatus, the apparatus comprising:
[0009] The data acquisition module is configured to acquire target item information of target items interacted by users within the current server; wherein, the target item information includes quantity information indicating the quantity of the target items;
[0010] The first determining module is configured to determine the storage quantity of the target item in the current server and the demand quantity of the target item within a first preset time period based on the target item information.
[0011] The second determining module is configured to determine the health index of the current server based on the quantitative relationship between the storage amount and the demand amount in the current server within a first preset time period, and to determine the health status of the current server based on the health index; wherein, the health index is used to characterize the activity level of the supply and demand of the target item in the server within the first preset time period.
[0012] In a third aspect, this application provides an electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the server processing method as described in the first aspect.
[0013] In a fourth aspect, this application provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the server processing method as described in the first aspect.
[0014] In a fifth aspect, this application provides a computer program product including computer program instructions that, when executed on a computer, cause the computer to perform the server processing method as described in the first aspect.
[0015] As can be seen from the above, the server processing method, apparatus, electronic device, storage medium, and program product provided in this application can collect target item information of target items interacted by users within the current server. This target item information may include quantity information indicating the quantity of target items. Based on this target item information, the storage quantity and demand quantity of target items within the current server can be determined. By determining the quantitative relationship between the storage quantity and demand quantity of target items within a first preset time period, the health index of the current server can be determined, and further, the health status of the current server can be determined based on the health index. The health index can be used to characterize the activity level of target item supply and demand on the server within the first preset time period. By detecting the supply and demand relationship of goods on the server, real-time monitoring of the server's health status is achieved, allowing for intervention in the early stages of a sub-healthy trend, thus improving the timeliness and accuracy of server health detection. Attached Figure Description
[0016] To more clearly illustrate the technical solutions in this application or related technologies, the drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0017] Figure 1An exemplary flowchart of a server processing method provided in an embodiment of this application is shown.
[0018] Figure 2 An exemplary structural diagram of a server processing apparatus provided in an embodiment of this application is shown.
[0019] Figure 3 This illustration shows an exemplary structural diagram of an electronic device provided in an embodiment of this application. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.
[0021] It should be noted that, unless otherwise defined, the technical or scientific terms used in the embodiments of this application should have the ordinary meaning understood by one of ordinary skill in the art to which this application pertains. The terms "first," "second," and similar terms used in the embodiments of this application do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Terms such as "comprising" or "including" mean that the element or object preceding the word encompasses the elements or objects listed after the word and their equivalents, without excluding other elements or objects. Terms such as "connected" or "linked" are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. Terms such as "upper," "lower," "left," and "right" are only used to indicate relative positional relationships; when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0022] As described in the background section, server health is usually determined based on the number of active accounts on the server. When it is detected that there are too few active accounts on a server, the server with fewer active accounts is merged with the server with more active accounts, thereby relieving the pressure on the server with more active accounts.
[0023] The inventors' research revealed that in related technologies, server health is often only determined by the number of active accounts after a significant player churn has already occurred. Because this intervention is too late, users who left before the server merge do not return when there are too few active accounts, failing to mitigate the losses from user churn. Furthermore, no measures are taken to improve user activity on servers with insufficient active accounts, resulting in continued player churn even after the merge. Therefore, there are issues with untimely and inaccurate server health detection.
[0024] Therefore, the server processing method, apparatus, electronic device, storage medium, and program product provided in this application can collect target item information of target items interacted by users within the current server. This target item information may include quantity information indicating the quantity of target items. Based on this information, the storage quantity and demand quantity of target items within the current server can be determined. By determining the quantitative relationship between the storage quantity and demand quantity of target items within a first preset time period, the current server's health index can be determined. Furthermore, the health status of the current server can be determined based on the health index, which can characterize the activity level of target item supply and demand on the server within the first preset time period. By detecting the supply and demand relationship of goods on the server, real-time monitoring of the server's health status is achieved, allowing for intervention in the early stages of a sub-healthy trend, thus improving the timeliness and accuracy of server health detection.
[0025] The server processing method provided in this application will be specifically described below through specific embodiments.
[0026] Figure 1 An exemplary flowchart of a server processing method provided in an embodiment of this application is shown.
[0027] refer to Figure 1 The server processing method provided in this application specifically includes the following steps:
[0028] S102: Collect target item information of the target item that the user is interacting with in the current server; wherein, the target item information includes quantity information used to indicate the quantity of the target item.
[0029] S104: Determine the storage quantity of the target item and the demand quantity of the target item in the current server within a first preset time period based on the target item information.
[0030] S106: Determine the health index of the current server based on the quantitative relationship between the storage amount and the demand amount in the current server within the first preset time period, and determine the health status of the current server based on the health index; wherein, the health index is used to characterize the activity level of the supply and demand of the target item in the server within the first preset time period.
[0031] In some embodiments, the server can specifically be a game server, which can provide game services, such as providing in-game resources and calculating the allocation of various resources. The terminal can be a user terminal, such as a mobile phone, computer, wearable smart device, tablet, etc., on which the game itself can run, and the terminal can interact with the server, which can process game data uploaded by the terminal. For example, the game running on the terminal can include virtual characters and virtual resources. Virtual characters can be controlled by any terminal, and virtual resources can include consumable items and virtual currency within the game. Specifically, consumable items can be usable items provided by the game's official website, such as costumes and equipment. Virtual currency can be used to exchange for consumable items at the official resource exchange point within the game, or to achieve barter between different virtual characters using virtual currency or consumable items. The target item can include virtual resources within the game.
[0032] Therefore, a supply and demand relationship exists within the server based on virtual resources, and player activity levels influence this relationship. The health of the server can be determined by the level of player activity; for example, lower player activity indicates a less healthy server. Low activity means fewer active players, slower changes in virtual resources, and consequently, reduced player interest in acquiring virtual resources, further decreasing player activity and creating a vicious cycle.
[0033] In some embodiments, target item information may include the quantity and virtual value of the target item, such as the quantity and virtual value of virtual resources in a game. The quantity and virtual value information of target items interacted by users within the current server can be collected. For example, data on items clicked by users in the official store, the in-game merchant, and player stores within the current server can be collected and transmitted to determine the quantity and virtual value of the clicked target items. Similarly, the quantity and virtual value of target items purchased by users in the official store, the in-game merchant, and player stores within the current server can be collected and transmitted to determine the quantity and virtual value information of target items interacted by users within the current server.
[0034] Furthermore, interaction data from users within the current server can be collected, and the required quantity and value of the target items requested by users can be determined based on this data. Specifically, chat logs from each user in the world channel within the current server can be collected and transmitted back. Using jieba word segmentation and Chinese semantic analysis technology, the quantity and value of the target items that users wish to sell, as well as the quantity and value of the target items that users wish to acquire, can be obtained, thereby determining the required quantity and value of the target items requested by users. For example, if user A posts a message in the world channel, "Exchange 10 virtual items X for 50 virtual items Y," then "virtual item Y" is the target item requested by user A, the quantity "50" corresponding to virtual item Y is the required quantity information of the target item requested by user A, and since user A wishes to exchange "10 virtual items X" for "50 virtual items Y," then "10 virtual items X" is the required value information of the target item (i.e., virtual item Y). It should be noted that the message posted by user A, "Exchange 10 virtual items X for 50 virtual items Y", can be recorded as an interaction data point for users on the current server. This interaction data can be used to determine the relative virtual value relationship between the mentioned virtual items (such as virtual item X and virtual item Y).
[0035] Furthermore, the collected quantity information, virtual value information, demand quantity information, and demand value information can be preprocessed to determine the target item information. Specifically, since the essence of sometimes item transactions between users is to complete resource transfer, such as currency transfer, the virtual value information and corresponding demand value information of target items with virtual value information greater than or equal to the maximum preset abnormal virtual value information can be removed using an outlier detection algorithm. For example, the virtual value information and corresponding demand value information of target items with excessively high unit prices can be removed. Since sometimes the same user provides resources, such as currency, to another account through the transaction of target items, the virtual value information and demand value information of target items with virtual value information less than or equal to the minimum preset abnormal virtual value information can be removed using an outlier detection algorithm. For example, the virtual value information and corresponding demand value information of target items with excessively low unit prices can be removed.
[0036] Since there may be inactive users on the server, whose interaction frequency with the target item is very low, the virtual value and demand value information of the target item corresponding to these users may contain outliers. Therefore, we can determine the interaction frequency between users and the target item, and remove the quantity, virtual value, demand quantity, and demand value information of the target item corresponding to users whose interaction frequency is less than or equal to a preset frequency threshold. Then, based on the quantity, virtual value, demand quantity, and demand value information after removing the above data, we can determine the target item information.
[0037] It should be noted that the user's interaction frequency with a target item represents the number of times a user interacts with the target item in the game per unit of time. For example, interaction can specifically include the number of clicks on a target item for sale in the game store. The interaction frequency can be the number of times a user clicks on virtual items for sale in the store within a day. For example, if user A clicks on virtual item X for sale in the store 0 times within a day, it proves that user A's interaction frequency with virtual item X is very low, which may indicate that the user is an inactive user. For example, the user may no longer be playing the corresponding virtual game on the server. In this case, the quantity information, virtual value information, demand quantity information, and demand value information of the target item (e.g., virtual item X) corresponding to user A can be removed to avoid affecting the overall data within the current server.
[0038] In some embodiments, the storage quantity and demand quantity of target items in the current server can be determined based on target item information, thereby determining whether the supply and demand relationship of target items in the current server is normal. Specifically, a first quantity of target items for sale in the current server, a second quantity of target items owned by users, and a third quantity of items to be converted by users for obtaining target items can be determined based on target item information. The storage quantity of target items in the current server can then be determined based on the sum of the first, second, and third quantities. For example, assuming there are M users in the current server, the first quantity S of target items for sale in the current server can be determined. onsalei The second quantity S of the target items owned by the user, such as the target items existing in the user's warehouse or backpack. pakagei And the items that the user possesses that can be converted into the target item, such as the third quantity S of the items that can be converted into the target item. translatei If the item to be converted cannot be converted into an integer number of target items, the third quantity can be rounded down. The storage quantity of the target items is determined according to the following formula:
[0039]
[0040] In some embodiments, the fourth quantity corresponding to the user's demand for the target item within a target time period, the fifth quantity of the target item acquired by the user within the target time period, and the sixth quantity of items to be converted by the user within the target time period can be determined based on the target item information. The storage quantity of the target item in the current server can then be determined based on the difference between the fourth, fifth, and sixth quantities. For example, assuming there are M users in the current server, the fourth quantity corresponding to the user's demand for the target item within the target time period can be the number of target items N that the user posted in the past week. chati The fifth quantity of the target item acquired by the user within the target time period can be represented as the number of target items N acquired since the user posted their demand for the target item. pakagei The sixth quantity of items that a user acquires within a target time period that can be converted into the target item, and the quantity N of items that can be converted into the target item in the user's inventory or warehouse since the user posted their demand for the target item. translatei If the item to be converted cannot be converted into an integer number of target items, the sixth quantity can be rounded down. The required quantity of the target items is determined according to the following formula:
[0041]
[0042] In some embodiments, the supply and demand relationship within the current server can be determined based on the storage quantity and demand of the target item, thereby determining whether the current server is in a healthy state. Specifically, the virtual value information of the target item for sale corresponding to a user can be obtained. If, within a first preset time period, the number of users whose storage quantity is greater than the demand quantity and whose virtual value information corresponding to at least a first preset number of target items is less than or equal to the preset virtual value information reaches a first quantity threshold, then it is determined that the storage quantity and the demand quantity have not reached a preset quantity relationship within the first preset time period. In this case, the server's health index has not reached a preset health index, further proving that the current server is in a sub-healthy state. The health index can be used to characterize the activity level of the supply and demand of the target item within the current server within the first preset time period. For example, this activity level can be reflected by the number of active players and the frequency of interaction between players and various target items.
[0043] Specifically, the health of a server can be determined by identifying the relationship between storage capacity and demand. For example, when S... total >N totalIf, at that time, the daily listed prices in user stores have recently shown no fluctuation or a downward trend, and over 80% of users' products exhibit this trend in more than 70% of their items, the health index is determined to be 0.7. The preset health index for a server in a normal healthy state is 1. Therefore, the current server's health index is less than the preset health index, and the server is judged to be in a sub-healthy state. It should be noted that the server's health status can also be determined by determining the ratio between storage capacity and demand, for example, S... total With N total When the ratio between the two is greater than 1, and the daily price of the user's store has recently shown no fluctuation or a downward trend, and more than 70% of the products of more than 80% of users show the above trend, the health index is determined to be 0.7. The preset health index corresponding to the server in a normal healthy state is 1. Therefore, the current health index of the server is less than the preset health index, and the server is judged to be in a sub-healthy state.
[0044] Furthermore, if it is determined that the storage quantity exceeds the demand quantity within the first preset time period, and at least a second preset number of users whose virtual value information corresponding to target items is less than or equal to the preset virtual value information reaches the second quantity threshold and / or at least a third preset number of users whose virtual value information corresponding to target items remains unchanged, then it is determined that the storage quantity and demand quantity have not reached the preset quantity relationship within the first preset time period. In this case, the server's health index is below the preset health index, further proving that the current server is in a sub-healthy state. For example, specifically, the server's health status can be determined by determining the relationship between the storage quantity and the demand quantity. When S total >N total If, at any given time, the daily prices in a user's store have remained unchanged recently, and the products on the shelves have remained unchanged (including quantity and virtual price) for more than a week, and more than 60% of users exhibit the above situation, the health index is determined to be 0.6. The preset health index for a server in a normal healthy state is 1. Therefore, the current server's health index is less than the preset health index, and the server is judged to be in a sub-healthy state. It should be noted that the server's health status can also be determined by determining the ratio between storage capacity and demand, for example, S... total With N total When the ratio between the two is greater than 1, and the daily price of the user's store has not changed recently, the shelf products have not changed (including quantity and virtual price) for more than a week, and more than 60% of users have the above situation, the health index is determined to be 0.6. The preset health index corresponding to the server in a normal healthy state is 1. Therefore, the current health index of the server is less than the preset health index, and the server is judged to be in a sub-healthy state.
[0045] In some embodiments, when determining the health status of a server by determining the size relationship between storage and demand, if Stotal ≥N total Furthermore, the daily price list in the user's store shows a fluctuating upward trend, and over 80% of users have any items exhibiting this trend. Therefore, the health index is set at 1.2. The default health index for a server in a normal healthy state is 1. Thus, the current server's health index is greater than the default health index, and the server is judged to be in a normal healthy state. Alternatively, when S... total ≥N total If the interval between changes in the products on a user's store shelf (including quantity and virtual price) is less than or equal to 3 days, and more than 80% of users experience the above situation, the health index is determined to be 1.2. The preset health index corresponding to a server in a normal healthy state is 1. Therefore, the current health index of the server is greater than the preset health index, and the server is determined to be in a normal healthy state.
[0046] In some embodiments, when it is determined that the storage quantity and demand quantity have not reached a preset quantity relationship within a first preset time period, i.e., when the current server is determined to be in a sub-healthy state, an item conversion configuration table can be obtained. The item conversion configuration table is used to indicate the conversion relationship between each item. Target items in the current server are set as nodes, and conversion items that have a conversion relationship with the target items are connected to the target items to determine a directed acyclic graph. The connections include vector directions, which are used to indicate the conversion direction between the conversion items and the target items. The minimum spanning subtree in the directed acyclic graph is determined, and a search is performed from the root node of the minimum spanning subtree to determine the items to be converted to obtain the target item. For example, an item conversion configuration table can be obtained, and target items with supply and demand issues in the server can be drawn as nodes. If the target item has a synthesis / being-synthesized relationship with other items, a connection is drawn, and the direction of the connection is from the synthesized material to the synthesized product. For example, if target item A can be synthesized from item B to be converted, then the direction of the connection is from B to A, thus forming a directed acyclic graph. The minimum spanning subtree in the directed acyclic graph can be found using the Zhu-Liu algorithm, and the items to be converted in the minimum spanning subtree can be determined.
[0047] Furthermore, since the current server is in a sub-healthy state, adjustments can be made to improve its health. For example, the quantity of items to be converted into the target item can be increased, and / or the virtual value information corresponding to the target item can be increased to adjust the supply and demand relationship within the server. For instance, the minimum spanning subtree can be searched from the root node to find the target item available for sale in the official store, and the discount on the target item can be gradually reduced. Alternatively, the minimum spanning subtree can be searched from the root node, and based on the item acquisition path mapping table specified in the game data, the target item that users can obtain through participating in activities can be found. This broadens the ways users can obtain the target item, such as increasing the supply during weekend events, making it more cost-effective for users to convert the conversion materials (e.g., items to be converted) into the target item than to directly purchase it, thus encouraging users to return and participate in activities to convert and sell the target item for profit.
[0048] In some embodiments, it can be determined whether the number of users interacting with the target item within a second preset time period reaches a preset number and whether the storage and demand reach a preset quantity relationship. It can also be determined whether the current server's health index can reach a preset health index within the second preset time period, i.e., whether the current server can be upgraded to a normal healthy state within the second preset time period. For example, user activity and return user activity can be detected. If the threshold time specified in the second preset time period is reached, the new acquisition channels for the target item can be closed. If the threshold time specified in the second preset time period is not reached, the quantity of items to be converted into the target item and / or the virtual value information corresponding to the target item can be increased. When the number of active users increases and the number of returning users increases, so that the number of users interacting with the target item within the second preset time period reaches a preset number and the storage and demand reach a preset quantity relationship, then the current server's health index can reach the preset health index, and the server is in a normal healthy state. In this case, the acquisition channels for the target item are gradually reduced until all new acquisition channels are closed, while keeping the quantity and value information of all items unchanged at the current moment.
[0049] In some embodiments, the current server may be located within a server cluster system, which includes multiple servers other than the current server. Each server can provide the same game service, and the types of in-game resources provided may be the same, although their quantities and supply-demand relationships may differ. The servers in the server cluster system that provide the same game service as the current server can form a server list.
[0050] In some embodiments, if the threshold time specified in the second preset time period is reached, and the number of users interacting with the target item within the second preset time period does not reach a preset number, or the storage and demand do not reach a preset quantity relationship, then the health index of the current server fails to reach the preset health index, and it is determined that the current server is still in a sub-healthy state. In order to ensure that the computing resources of the current server are not wasted and to further save the computing resources of the server, a server to be merged with the current server can be found. Specifically, the supply and demand relationship of each server determined by formulas (1) and (2) in the server list can be read, and it can be determined whether there is a target server in the server list whose storage and demand reach a preset quantity relationship, that is, in a normal healthy state. If there is a target server whose storage and demand reach a preset quantity relationship, that is, in a normal healthy state, at least one target server is merged with the current server.
[0051] In some embodiments, if there is no target server in a normal and healthy state where the storage and demand of each item do not reach a preset quantity relationship, the supply and demand relationship of each server determined by formulas (1) and (2) in the server list can be read, and the set of items in each server whose storage and demand do not reach the preset quantity relationship, and the set of target items corresponding to the target item in the current server can be determined. Further, it is determined whether there is a set of items whose intersection with the target item set is an empty set, because a set of items whose intersection with the target item set is not an empty set means that although the server corresponding to the set of items has a supply and demand imbalance problem, the items causing the supply and demand imbalance do not overlap with the items causing the supply and demand imbalance in the current server. When it is determined that there exists an item set whose intersection with the target item set is empty, candidate servers corresponding to these item sets are identified. A candidate score is then determined for each item set based on a preset weight for each item. For example, if item A in one candidate server's item set has a weight of 0.1, and item B in another candidate server's item set has a weight of 0.5, it indicates that item B causes a more severe supply-demand imbalance. Therefore, the candidate server corresponding to the item set with the lowest candidate score can be identified as the target server, and the target server is merged with the current server. It should be noted that although both the target server and the current server have supply-demand imbalances, because the items causing these imbalances are different, merging them will not exacerbate the supply-demand imbalance within either server. Therefore, they can be merged.
[0052] It should be noted that it is also possible to stipulate that the lower the weight of an item, the more serious the supply and demand imbalance caused by that item. In this way, the candidate server corresponding to the set of items with the highest candidate scores can be determined as the target server, and the target server can be merged with the current server.
[0053] As can be seen from the above description, the server processing method, apparatus, electronic device, storage medium, and program product provided in this application can collect target item information of target items interacting with by users within the current server. This target item information may include quantity information indicating the quantity of target items. Based on this target item information, the storage quantity and demand quantity of target items within the current server can be determined. When it is determined that the storage quantity and demand quantity of target items do not reach a preset quantity relationship within a first preset time period, i.e., the current server's health index does not reach a preset health index, it proves that the current server is in a sub-healthy state. The health index can be used to characterize the activity level of target item supply and demand within the first preset time period. Furthermore, the target item information can be adjusted at this time to adjust the supply and demand relationship of target items within the current server, and it can be determined whether the number of users interacting with the target items within a second preset time period reaches a preset number and whether the storage quantity and demand quantity of target items reach a preset quantity relationship. Furthermore, if it is determined that the number of users interacting with the target item within the second preset time period has not reached the preset number and / or the storage and demand of the target item have not reached the preset quantity relationship, then it can be determined whether there is a target server in the server list where the storage and demand of each item have reached the preset quantity relationship. Further still, if it is determined that there is a target server where the storage and demand of each item have reached the preset quantity relationship, at least one target server can be merged with the current server. Firstly, when it is determined that the current server is in a sub-healthy state, the health of the current server can be improved by adjusting the quantity of items or virtual value within the current server. If it is determined that the health of the current server cannot be improved to a healthy state, a target server with a higher health status can be identified and merged with the current server, thereby improving the health of the current server and reducing server operating costs. By detecting the supply and demand relationship of goods on the server, real-time monitoring of the server's health status can be achieved, allowing for intervention in the early stages of a sub-healthy trend. This improves the timeliness and accuracy of server health detection, further enhancing the user's gaming experience and enabling timely improvement of the game's ecological balance.
[0054] It should be noted that the method in this embodiment can be executed by a single device, such as a computer or server. The method can also be applied in a distributed scenario, where multiple devices cooperate to complete the task. In such a distributed scenario, one of these devices may execute only one or more steps of the method in this embodiment, and the multiple devices will interact with each other to complete the method described.
[0055] It should be noted that the above description describes some embodiments of this application. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in a different order than that shown in the above embodiments and still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0056] Figure 2 An exemplary structural diagram of a server processing apparatus provided in an embodiment of this application is shown.
[0057] Based on the same inventive concept, corresponding to any of the above-described embodiments, this application also provides a server processing device.
[0058] refer to Figure 2 The server processing device includes: a data acquisition module, a first determination module, and a second determination module; wherein,
[0059] The data acquisition module is configured to acquire target item information of target items interacted by users within the current server; wherein, the target item information includes quantity information indicating the quantity of the target items;
[0060] The first determining module is configured to determine the storage quantity of the target item in the current server and the demand quantity of the target item within a first preset time period based on the target item information.
[0061] The second determining module is configured to determine the health index of the current server based on the quantitative relationship between the storage amount and the demand amount in the current server within a first preset time period, and to determine the health status of the current server based on the health index; wherein, the health index is used to characterize the activity level of the supply and demand of the target item in the server within the first preset time period.
[0062] In one possible implementation,
[0063] The target item information also includes: virtual value information indicating the value of the target item, as well as demand quantity information and demand value information corresponding to the target item;
[0064] The acquisition module is further configured to:
[0065] Collect information on the quantity and virtual value of the target items that users are interacting with on the current server.
[0066] Collect the interaction data corresponding to the user in the current server, and determine the required quantity information and required value information of the target item requested by the user based on the interaction data;
[0067] The quantity information, virtual value information, demand quantity information, and demand value information are preprocessed to determine the target item information.
[0068] In one possible implementation, the acquisition module is further configured as follows:
[0069] The virtual value information and the demand value information that are greater than or equal to the maximum preset abnormal virtual value information are removed, and the virtual value information and the demand value information that are less than or equal to the minimum preset abnormal virtual value information are removed to determine the target item information;
[0070] And / or,
[0071] The frequency of interaction between a user and the target item is determined, and the quantity information, virtual value information, demand quantity information, and demand value information corresponding to users whose interaction frequency is less than or equal to a preset frequency threshold are removed to determine the target item information.
[0072] In one possible implementation, the first determining module is further configured to:
[0073] Based on the target item information, determine the first quantity of the target item currently on sale on the server, the second quantity of the target item owned by the user, and the third quantity of the items owned by the user that are to be converted into the target item.
[0074] The storage quantity of the target item in the current server is determined by the sum of the first quantity, the second quantity, and the third quantity.
[0075] In one possible implementation, the first determining module is further configured to:
[0076] Based on the target item information, determine the fourth quantity corresponding to the user's demand for the target item within the target time period, the fifth quantity corresponding to the target item acquired by the user within the target time period, and the sixth quantity corresponding to the items to be converted by the user within the target time period for conversion into the target item.
[0077] The storage quantity of the target item in the current server is determined based on the difference between the fourth, fifth, and sixth quantities.
[0078] In one possible implementation, the health state includes: a sub-healthy state;
[0079] The second determining module is further configured as follows:
[0080] Obtain the virtual value information of the target item for sale corresponding to the user;
[0081] If it is determined that the storage amount is greater than the demand amount within the first preset time period, and the number of users whose virtual value information for sale corresponding to at least a first preset number of target items is less than or equal to the preset virtual value information reaches the first quantity threshold, then it is determined that the health index has not reached the preset health index within the first preset time period, and the current health status of the server is determined to be sub-healthy.
[0082] And / or,
[0083] If it is determined that the storage amount is greater than the demand amount within the first preset time period, and the number of users whose virtual value information corresponding to at least a second preset number of target items is less than or equal to the preset virtual value information reaches the second quantity threshold, and / or the number of users whose virtual value information corresponding to at least a third preset number of target items remains unchanged, then it is determined that the health index has not reached the preset health index within the first preset time period, and the current health status of the server is determined to be sub-healthy.
[0084] In one possible implementation, the device further includes: an adjustment module;
[0085] The adjustment module is configured as follows:
[0086] Adjust the target item information of the target item.
[0087] In one possible implementation, the adjustment module is further configured as follows:
[0088] Obtain the item conversion configuration table; wherein, the item conversion configuration table is used to indicate the conversion relationship between items;
[0089] The target item in the current server is set as a node, and a connection is set between the target item and the conversion item that has a conversion relationship with the target item to determine a directed acyclic system graph; the connection includes a vector direction, which is used to indicate the conversion direction between the conversion item and the target item;
[0090] Determine the minimum spanning subtree in the directed acyclic graph, and search from the root node of the minimum spanning subtree to determine the item to be converted to obtain the target item;
[0091] Increase the quantity of items to be converted to obtain the target item, and / or increase the virtual value information corresponding to the target item.
[0092] In one possible implementation, the health state includes: a normal health state;
[0093] The second determining module is further configured to:
[0094] Determine whether the number of users interacting with the target item within the second preset time period has reached a preset number and whether the current server's health index has reached a preset health index.
[0095] If it is determined that the number of users interacting with the target item within the second preset time period reaches a preset number and the current server's health index reaches a preset health index, then the current server's health status is determined to be a normal health status, and the quantity information and virtual value information corresponding to all items at the current moment remain unchanged.
[0096] In one possible implementation, the device further includes: a processing module;
[0097] The processing module is configured as follows:
[0098] If it is determined that the number of users interacting with the target item within the second preset time period has not reached the preset number or the current health status of the server is sub-healthy, then determine whether there is a target server with a normal health status in the server list.
[0099] If there is a target server with a normal health status, merge at least one of the target servers with the current server.
[0100] In one possible implementation, the processing module is further configured to:
[0101] If there is no target server in a normal health state, read the storage quantity and demand quantity of each item corresponding to each server;
[0102] Identify the set of items in each server whose storage and demand have not reached the preset ratio, and the set of target items corresponding to the target item in the current server;
[0103] Determine whether there exists a set of items whose intersection with the target set is an empty set;
[0104] If there exists an item set whose intersection with the target item set is an empty set, determine the candidate server corresponding to the item set, and determine the candidate score corresponding to each item set according to the preset weight corresponding to each item.
[0105] The candidate server corresponding to the set of items with the lowest candidate score is determined as the target server, and the target server is merged with the current server.
[0106] For ease of description, the above devices are described in terms of function, divided into various modules. Of course, in implementing this application, the functions of each module can be implemented in one or more software and / or hardware.
[0107] The apparatus of the above embodiments is used to implement the corresponding server processing method in any of the foregoing embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0108] Figure 3 This illustration shows an exemplary structural diagram of an electronic device provided in an embodiment of this application.
[0109] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the server processing method described in any of the above embodiments. Figure 3 This embodiment illustrates a more specific hardware structure of an electronic device, which may include a processor 310, a memory 320, an input / output interface 330, a communication interface 340, and a bus 350. The processor 310, memory 320, input / output interface 330, and communication interface 340 are interconnected internally via the bus 350.
[0110] The processor 310 can be implemented using a general-purpose CPU (Central Processing Unit), microprocessor, application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0111] The memory 320 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 320 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program code is stored in the memory 320 and is called and executed by the processor 310.
[0112] Input / output interface 330 is used to connect input / output modules to realize information input and output. Input / output modules can be configured as components in the device (not shown in the figure) or externally connected to the device to provide corresponding functions. Input devices may include keyboards, mice, touch screens, microphones, various sensors, etc., and output devices may include displays, speakers, vibrators, indicator lights, etc.
[0113] The communication interface 340 is used to connect a communication module (not shown in the figure) to enable communication between this device and other devices. The communication module can communicate via wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.).
[0114] Bus 350 includes a pathway for transmitting information between various components of the device (e.g., processor 310, memory 320, input / output interface 330, and communication interface 340).
[0115] It should be noted that although the above-described device only shows the processor 310, memory 320, input / output interface 330, communication interface 340, and bus 350, in specific implementations, the device may also include other components necessary for normal operation. Furthermore, those skilled in the art will understand that the above-described device may only include the components necessary for implementing the embodiments of this specification, and not necessarily all the components shown in the figures.
[0116] The electronic devices described above are used to implement the corresponding server processing methods in any of the foregoing embodiments and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0117] Based on the same inventive concept, corresponding to the methods of any of the above embodiments, this application also provides a non-transitory computer-readable storage medium that stores computer instructions for causing the computer to execute the server processing method as described in any of the above embodiments.
[0118] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.
[0119] The computer instructions stored in the storage medium of the above embodiments are used to cause the computer to execute the server processing method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0120] Based on the same inventive concept, corresponding to the server processing method described in any of the above embodiments, this disclosure also provides a computer program product, which includes computer program instructions. In some embodiments, the computer program instructions can be executed by one or more processors of a computer to cause the computer and / or the processors to perform the server processing method. Corresponding to the execution entity for each step in each embodiment of the server processing method, the processor executing the corresponding step may belong to the corresponding execution entity.
[0121] The computer program products of the above embodiments are used to cause the computer and / or the processor to execute the server processing method as described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0122] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to imply that the scope of this application (including the claims) is limited to these examples; within the framework of this application, the technical features of the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other variations of different aspects of the embodiments of this application as described above, which are not provided in the details for the sake of brevity.
[0123] Additionally, to simplify the description and discussion, and to avoid obscuring the embodiments of this application, the well-known power / ground connections to integrated circuit (IC) chips and other components may or may not be shown in the provided drawings. Furthermore, the apparatus may be shown in block diagram form to avoid obscuring the embodiments of this application, and this also takes into account the fact that the details of the implementation of these block diagram apparatuses are highly dependent on the platform on which the embodiments of this application will be implemented (i.e., these details should be fully understood by those skilled in the art). While specific details (e.g., circuits) have been set forth to describe exemplary embodiments of this application, it will be apparent to those skilled in the art that the embodiments of this application can be implemented without these specific details or with variations thereof. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0124] Although this application has been described in conjunction with specific embodiments thereof, many substitutions, modifications, and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may be used with the embodiments discussed.
[0125] The embodiments of this application are intended to cover all such substitutions, modifications, and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the embodiments of this application should be included within the protection scope of this application.
Claims
1. A server processing method, characterized in that, The method includes: Collecting target item information of target items interacted by users within the current server includes: collecting quantity information and virtual value information of target items interacted by users within the current server; collecting interaction data corresponding to users within the current server, and determining the required quantity information and required value information of target items needed by users based on the interaction data; preprocessing the quantity information, virtual value information, required quantity information, and required value information to determine the target item information; wherein, the target item information includes quantity information indicating the quantity of the target item, virtual value information indicating the corresponding value of the target item, and required quantity information and required value information corresponding to the target item; Determining the storage quantity and demand quantity of the target item in the current server within a first preset time period based on the target item information includes: determining, based on the target item information, a first quantity of target items currently on sale in the server, a second quantity of target items owned by the user, and a third quantity of items to be converted by the user for obtaining the target item; determining, based on the target item information, a fourth quantity of the user's demand for the target item within a target time period, a fifth quantity of target items acquired by the user within the target time period, and a sixth quantity of items to be converted by the user within the target time period; determining the storage quantity of the target item in the current server based on the sum of the first, second, and third quantities; and determining the demand quantity of the target item in the current server based on the difference between the fourth, fifth, and sixth quantities. The health index of the current server is determined based on the quantitative relationship between the storage volume and the demand volume in the current server within a first preset time period, and the health status of the current server is determined based on the health index, including: obtaining the virtual value information of the target items for sale corresponding to the user; if it is determined that the storage volume is greater than the demand volume within the first preset time period, and at least a first preset number of users whose virtual value information for sale corresponding to the target items is less than or equal to the preset virtual value information reaches a first quantity threshold, then it is determined that the health index has not reached the preset health index within the first preset time period, and the health status of the current server is determined to be sub-healthy; and / or, if it is determined that the storage volume is greater than the demand volume within the first preset time period, and at least a second preset number of users whose virtual value information for sale corresponding to the target items is less than or equal to the preset virtual value information reaches a second quantity threshold, and / or at least a third preset number of users whose virtual value information for sale corresponding to the target items remains unchanged, then it is determined that the health index has not reached the preset health index within the first preset time period, and the health status of the current server is determined to be sub-healthy; wherein, the health index is used to characterize the activity level of the supply and demand of target items on the server within the first preset time period.
2. The method according to claim 1, characterized in that, The preprocessing of the quantity information, virtual value information, demand quantity information, and demand value information to determine the target item information includes: The virtual value information and the demand value information that are greater than or equal to the maximum preset abnormal virtual value information are removed, and the virtual value information and the demand value information that are less than or equal to the minimum preset abnormal virtual value information are removed to determine the target item information; And / or, The frequency of interaction between a user and the target item is determined, and the quantity information, virtual value information, demand quantity information, and demand value information corresponding to users whose interaction frequency is less than or equal to a preset frequency threshold are removed to determine the target item information.
3. The method according to claim 1, characterized in that, After determining that the current server's health status is sub-healthy, the process also includes: Adjust the target item information of the target item.
4. The method according to claim 3, characterized in that, The step of adjusting the target item information of the target item includes: obtaining an item conversion configuration table; wherein the item conversion configuration table is used to indicate the conversion relationship between items; The target item in the current server is set as a node, and a connection is set between the target item and the conversion item that has a conversion relationship with the target item to determine a directed acyclic system; the connection includes a vector direction, which is used to indicate the conversion direction between the conversion item and the target item; Determine the minimum spanning subtree in the directed acyclic graph, and search from the root node of the minimum spanning subtree to determine the item to be converted to obtain the target item; Increase the quantity of items to be converted to obtain the target item, and / or increase the virtual value information corresponding to the target item.
5. The method according to claim 3 or 4, characterized in that, The health status includes: normal health status; After adjusting the target item information of the target item, the method further includes: Determine whether the number of users interacting with the target item within the second preset time period has reached a preset number and whether the current server's health index has reached a preset health index. If it is determined that the number of users interacting with the target item within the second preset time period reaches a preset number and the current server's health index reaches a preset health index, then the current server's health status is determined to be a normal health status, and the quantity information and virtual value information of all items at the current moment remain unchanged.
6. The method according to claim 5, characterized in that, After determining whether the number of users interacting with the target item within the second preset time period has reached a preset number and whether the current server's health index has reached a preset health index, the process further includes: If it is determined that the number of users interacting with the target item within the second preset time period has not reached the preset number or the current health status of the server is sub-healthy, then it is determined whether there is a target server with a normal health status in the server list. If there is a target server with a normal health status, merge at least one of the target servers with the current server.
7. The method according to claim 6, characterized in that, After determining whether a target server with a normal health status exists in the server list, the process further includes: If there is no target server in a normal health state, read the storage quantity and demand quantity of each item corresponding to each server; Identify the set of items in each server whose storage and demand do not meet the preset quantity relationship, and the set of target items corresponding to the target item in the current server; Determine whether there exists a set of items whose intersection with the target set is an empty set; If there exists an item set whose intersection with the target item set is an empty set, determine the candidate server corresponding to the item set, and determine the candidate score corresponding to each item set according to the preset weight corresponding to each item. The candidate server corresponding to the set of items with the lowest candidate score is determined as the target server, and the target server is merged with the current server.
8. A server processing device, characterized in that, The device includes: The data acquisition module is configured to acquire target item information of target items interacted by users within the current server, including: acquiring quantity information and virtual value information of target items interacted by users within the current server; acquiring interaction data corresponding to users within the current server, and determining the required quantity information and required value information of target items based on the interaction data; preprocessing the quantity information, virtual value information, required quantity information, and required value information to determine the target item information; wherein, the target item information includes quantity information indicating the quantity of the target item, virtual value information indicating the corresponding value of the target item, and required quantity information and required value information corresponding to the target item; The first determining module is configured to determine, based on the target item information, the storage quantity of the target item in the current server and the demand quantity of the target item within a first preset time period, including: determining, based on the target item information, a first quantity of target items currently on sale in the current server, a second quantity of target items owned by the user, and a third quantity of items owned by the user that need to be converted into the target item; determining, based on the target item information, a fourth quantity of the user's demand quantity for the target item within a target time period, a fifth quantity of target items acquired by the user within the target time period, and a sixth quantity of items acquired by the user within the target time period that need to be converted into the target item; determining, based on the sum of the first, second, and third quantities, the storage quantity of the target item in the current server; and determining, based on the difference between the fourth, fifth, and sixth quantities, the demand quantity of the target item in the current server. The second determining module is configured to determine the health index of the current server based on the quantitative relationship between the storage amount and the demand amount in the current server within a first preset time period, and to determine the health status of the current server based on the health index, including: obtaining the virtual value information of the target items for sale corresponding to the user; if it is determined that the storage amount is greater than the demand amount within the first preset time period, and at least a first preset number of users whose virtual value information corresponding to the target items is less than or equal to the preset virtual value information reaches a first quantity threshold, then it is determined that the health index has not reached the preset health index within the first preset time period, and the health status of the target items is determined to be lower than the preset health index. The current health status of the server is described as sub-healthy; and / or, if it is determined that the storage volume is greater than the demand volume within a first preset time period, and at least a second preset number of users whose virtual value information corresponding to target items is less than or equal to the preset virtual value information reaches a second quantity threshold, and / or at least a third preset number of users whose virtual value information corresponding to target items remains unchanged, then it is determined that the health index has not reached the preset health index within the first preset time period, and the current health status of the server is determined to be sub-healthy; wherein, the health index is used to characterize the activity level of the supply and demand of target items on the server within the first preset time period.
9. An electronic 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 program, it implements the method as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to implement the method according to any one of claims 1 to 7.
11. A computer program product comprising computer program instructions that, when executed on a computer, cause the computer to perform the method as described in any one of claims 1 to 7.