Data processing method and server
Patent Information
- Application Number
- CN202110062126.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-18
- Publication Date
- 2026-10-23
- Estimated Expiration
- 2041-01-18
AI Technical Summary
[0042]应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。
Smart Images

Figure CN112817747B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of electronic information technology, and in particular to data processing methods and apparatus. Background Technology
[0002] To improve office efficiency, existing technologies offer zero-terminal office systems, which allow users to work remotely with just a terminal and a cloud server. However, while these systems offer convenience, they also present a challenge: as the number of employees increases, their usage scenarios and requirements differ, leading to varying virtual machine configuration needs. Currently, administrators often batch-copy a single configuration template and distribute it to employees. This approach fails to meet the demands of resource-intensive tasks (such as large-scale design or video editing / rendering), while wasting resources for basic office work (administration, finance, sales). In such cases, manual intervention is required, with administrators adjusting resource configurations to suit individual employee needs, ultimately resulting in low resource allocation efficiency. Summary of the Invention
[0003] This disclosure provides a data processing method and server that can solve the problem of low resource allocation efficiency when allocating resources to terminal devices. The technical solution is as follows:
[0004] According to a first aspect of the present disclosure, a data processing method is provided, applied to a server, the method comprising:
[0005] Retrieve user information of logged-in users;
[0006] According to the preset scenario strategy, an initial work scenario that matches the user information is found in at least one work scenario. The work scenario includes a preset resource allocation strategy, and the preset resources include at least CPU preset resources, memory preset resources and graphics card preset resources.
[0007] Once the initial work scenario is determined, obtain the target resource usage information of the logged-in user within a preset time period;
[0008] When the usage information of the target resource does not match the allocation strategy of the preset resource, switch to the initial working scenario.
[0009] In one embodiment, the method further includes:
[0010] Obtain the resource request information of the logged-in user. This resource request information is used to request the allocation of the target resource. The resource request information includes at least the parameter information of the target resource and the user information of the logged-in user.
[0011] Based on the resource request information of the logged-in user, an initial working scenario is generated. The initial working scenario includes the allocation strategy corresponding to the preset resources. The allocation strategy includes the allowed range, allowed usage duration and weight value of each resource in the target resource.
[0012] In one embodiment, the allocation strategy in the method includes a preset range of allowed resource usage, and the method further includes:
[0013] Based on the usage information of the target resource, obtain the consumption value of the target resource and the corresponding usage duration;
[0014] When the consumption value of the target resource exceeds the allowable range of the preset resource, and the usage duration exceeds the preset value, it is determined that the usage information of the target resource does not match the allocation strategy of the preset resource.
[0015] In one embodiment, switching the initial working scene in the method includes:
[0016] Based on the usage information of the target resource, when the used target resource exceeds the upper limit of the allowed usage range of the preset resource, switch to the first working scenario. In the first working scenario, the lower limit of the allowed usage range of the preset resource is greater than the upper limit of the allowed usage range of the resource in the initial working scenario.
[0017] Once the first work scenario is successfully switched, the usage information of the logged-in user for the target resources within the preset time period will be monitored.
[0018] When the usage of the target resource is less than the lower limit of the preset allowed resource usage range in the first working scenario, switch to the initial working scenario;
[0019] When the usage of the target resource exceeds the upper limit of the preset resource usage range in the first working scenario, the system switches to the second working scenario, where the lower limit of the preset resource usage is greater than the upper limit of the preset resource usage in the first working scenario.
[0020] In one embodiment, the method further includes:
[0021] Retrieve the historical usage information of the target resource for the logged-in user within the historical time period;
[0022] Based on the historical usage information of the target resource and the permitted usage range of the target resource in at least one work scenario, determine the initial work scenario corresponding to the logged-in user in at least one work scenario.
[0023] The data processing method provided in this embodiment is applied to the server side. When the server detects that a terminal device has logged in, it obtains the user information of the logged-in user, finds an initial working scenario that matches the user information based on the user information, and allocates resources to the terminal device. It continuously monitors the resource usage information of the logged-in user within a preset time period. When the resource usage information does not match the allocation strategy in the initial working scenario, it changes the initial working mode. This enables timely adjustment of resource configuration according to the user's actual work needs, improves data processing efficiency, and reduces resource waste.
[0024] According to a second aspect of the present disclosure, a server is provided, the server comprising: an acquisition module, an initialization module, a resource monitoring module, and a resource statistics control module.
[0025] This acquisition module is used to acquire user information of logged-in users;
[0026] The initialization module is used to find an initial working scenario that matches the user information in at least one working scenario according to a preset scenario strategy. The working scenario includes a preset resource allocation strategy, and the preset resources include at least CPU preset resources, memory preset resources and graphics card preset resources.
[0027] This resource monitoring module is used to obtain the usage information of the target resources of the logged-in user within a preset time period after the initial working scenario is determined.
[0028] The resource statistics module is used to activate the scene switching module when the usage information of the target resource does not match the allocation strategy of the preset resource. The scene switching module is used to switch the initial working scene.
[0029] In one embodiment, the initialization module in the server is used to obtain resource request information of the logged-in user. The resource request information is used to request the allocation of target resources. The resource request information includes at least parameter information of the target resources and user information of the logged-in user.
[0030] Based on the resource request information of the logged-in user, an initial working scenario is generated. The initial working scenario includes the allocation strategy corresponding to the preset resources. The allocation strategy includes the allowed range, allowed usage duration and weight value of each resource in the target resource.
[0031] In one embodiment, the resource statistics module in the server is used for
[0032] Based on the usage information of the target resource, obtain the consumption value of the target resource and the corresponding usage duration;
[0033] When the consumption value of the target resource exceeds the allowable range of the preset resource, and the usage duration exceeds the preset value, it is determined that the usage information of the target resource does not match the allocation strategy of the preset resource.
[0034] In one embodiment, the scene switching module in the server is used for
[0035] When the used target resource exceeds the upper limit of the allowed range of the preset resource, switch to the first working scenario. In the first working scenario, the lower limit of the allowed range of the preset resource is greater than the upper limit of the allowed range of the resource in the initial working scenario.
[0036] After successfully switching to the first work scenario, monitor the target resources used by the logged-in user within a preset time period;
[0037] When the usage of the target resource is less than the lower limit of the preset allowed resource usage range in the first working scenario, switch to the initial working scenario;
[0038] When the usage of the target resource exceeds the upper limit of the preset resource usage range in the first working scenario, the system switches to the second working scenario, where the lower limit of the preset resource usage is greater than the upper limit of the preset resource usage in the first working scenario.
[0039] In one embodiment, the initialization module in the server is used for
[0040] Retrieve the historical usage information of the target resource for the logged-in user within the historical time period;
[0041] Based on the historical usage information of the target resource and the permitted usage range of the target resource in at least one work scenario, determine the initial work scenario corresponding to the logged-in user in at least one work scenario.
[0042] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0043] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0044] Figure 1 This is a flowchart of a data processing method provided in an embodiment of this disclosure;
[0045] Figure 2This is a structural diagram of a server provided in an embodiment of this disclosure;
[0046] Figure 2a This is a system architecture diagram of a server provided in an embodiment of this disclosure. Detailed Implementation
[0047] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.
[0048] Example 1
[0049] This disclosure provides a data processing method, such as... Figure 1 As shown, the data processing method includes the following steps:
[0050] 101. Obtain user information of logged-in users.
[0051] The user information provided in this disclosure can be the user information when a user logs into the server through a terminal device. This user information includes user identification information, terminal device identification information, login information, and other information.
[0052] Furthermore, this user information can be matched with at least one work scenario, thereby facilitating the quick matching of the corresponding work scenario during login and allocating appropriate resources to the logged-in user.
[0053] 102. Based on the preset scenario strategy, find the initial work scenario that matches the user information in at least one work scenario.
[0054] This work scenario includes a preset resource allocation strategy, which includes at least preset CPU resources, preset memory resources, and preset graphics card resources;
[0055] Specifically, the user's initial work scenario can be redefined based on a fixed scenario strategy each time the user initiates or disconnects; or, the user's initial work scenario can be redefined at regular intervals.
[0056] The method provided in this disclosure allows for the pre-setting of resource configuration ranges for different scenarios based on user needs; common scenarios include basic office scenario A (general configuration), large-scale design scenario B (high memory), and video editing / rendering / game scenario C (high memory, high graphics card), etc., specifically including:
[0057] Obtain the resource request information of the logged-in user. This resource request information is used to request the allocation of the target resource. The resource request information includes at least the parameter information of the target resource and the user information of the logged-in user.
[0058] Based on the resource request information of the logged-in user, an initial working scenario is generated. The working scenario includes the allocation strategy corresponding to the preset resources. The allocation strategy includes the allowed range, allowed usage duration and weight value of each resource in the target resource.
[0059] When creating a server-side desktop for a logged-in user for the first time, the administrator can configure and allocate resources for the initial work scenario. The method provided in this disclosure installs a resource monitoring module RM (ResourceMonitor) and a resource statistics module RS (Resource Statistics) on the S side. RM monitors the resource consumption and usage data of S in real time. RS will aggregate and perform AI analysis on the monitoring data of RM according to different counting periods (month, week, day, hour, minute, second). Based on the employee's work resource usage and AI statistical analysis, the scene switching module SS (Scene Switch) is triggered to increase or decrease the resource configuration of the work scenario, so as to dynamically allocate the company's resources as a whole on demand and maximize and optimize the use of company resources.
[0060] 103. Once the initial working scenario is determined, obtain the target resource usage information of the logged-in user within the preset time period.
[0061] The usage information of the target resource is used to indicate the information of the logged-in user's use of the target resource within a preset time period. Specifically, it may include the consumption value and usage duration of at least one resource within the preset time period.
[0062] Furthermore, this disclosure also aggregates and analyzes the usage information of the target resource according to different counting periods (month, week, day, hour, minute, second) to facilitate understanding of the resource usage information of the logged-in user and timely adjustments.
[0063] Furthermore, when the consumption of a certain resource exceeds a threshold, the usage time when the threshold is exceeded is recorded. This threshold can be set according to the resource range allowed by the initial work mode, so as to facilitate the determination of whether it is necessary to switch the current initial work scenario, increase or decrease the resource configuration of the work scenario, and dynamically allocate the company's resources as a whole on demand, so as to maximize and optimize the use of company resources.
[0064] This solves the problem of existing technologies where managers manually adjust resource configurations based on employee needs. While this seems to solve the problem, it significantly increases the workload for operations and maintenance personnel. Furthermore, if there are many employees, it's impractical and impossible to adjust resource configurations for each one individually. It also presents a potential risk: for example, an employee might need to perform a specific task requiring high memory and graphics card specifications, and then request IT to upgrade the configuration. However, this task might only take half a month to complete, and then the employee might return to work requiring less powerful specifications. In this case, most people won't proactively request IT to revert the configuration back. As a result, resources aren't released, with high-configuration resources being used for simple tasks, leading to insufficient resources for employees who genuinely need high-configuration configurations. Over time, this will overload the entire company's server system and negatively impact overall work efficiency.
[0065] 104. When the usage information of the target resource does not match the allocation strategy of the preset resource, switch the initial working scenario.
[0066] The allocation strategy provided in this disclosure includes a preset range of permitted resource usage. The process of determining whether the usage information of the target resource matches the preset resource allocation strategy based on the allocation strategy may include:
[0067] Based on the usage information of the target resource, obtain the consumption value of the target resource and the corresponding usage duration;
[0068] When the consumption value of the target resource exceeds the allowable range of the preset resource, and the usage duration exceeds the preset value, it is determined that the usage information of the target resource does not match the allocation strategy of the preset resource.
[0069] Furthermore, when determining whether the usage information of the target resource matches the preset resource allocation strategy, the weight value of the target resource can also be used for judgment. When the weight value of the target resource is greater than the preset weight value, the usage information of the target resource matches the preset resource allocation strategy based on the consumption value and usage duration.
[0070] The method provided in this disclosure can dynamically adjust the user's work scenario according to a temporary scenario strategy during the period from the current determination of the initial work scenario to the next determination of the initial work scenario, based on the real-time resource usage of the logged-in user.
[0071] The temporary scenario strategy is as follows:
[0072] In the current scenario, if the user's resource consumption exceeds the preset limit of the current scenario within a continuous preset time period, the user's current scenario will be adjusted to the corresponding scenario based on the user's resource consumption.
[0073] In the current scenario, if the user's resource consumption is lower than the preset limit for resource usage in the current scenario within a continuous preset time period, the user's current scenario will be adjusted to the corresponding scenario based on the user's resource consumption request.
[0074] Based on the user's resource consumption, the user's current scenario should be adjusted to a corresponding scenario, including:
[0075] Based on the user's average or maximum resource consumption within a preset time period, the user's current scene will be adjusted to the scene corresponding to that average or maximum value.
[0076] For example, assuming an employee's initial work scenario is scenario A, when the user logs in, the system will monitor the user's resource usage: it will count the current resource usage and duration. If the employee's resource consumption exceeds the recommended limit for resource usage in the initial work scenario for one consecutive minute, it will be determined that the initial work scenario is incompatible and the work scenario needs to be switched.
[0077] The method provided in this disclosure also includes usage information of the target resource, including the target resource already used by the logged-in user, and the switching of the initial working scenario includes:
[0078] When the used target resource exceeds the upper limit of the allowed range of the preset resource, switch to the first working scenario. In the first working scenario, the lower limit of the allowed range of the preset resource is greater than the upper limit of the allowed range of the resource in the initial working scenario.
[0079] After successfully switching to the first work scenario, monitor the target resources used by the logged-in user within a preset time period;
[0080] When the usage of the target resource is less than the lower limit of the preset allowed resource usage range in the first working scenario, switch to the initial working scenario;
[0081] When the usage of the target resource exceeds the upper limit of the preset resource usage range in the first working scenario, the system switches to the second working scenario, where the lower limit of the preset resource usage is greater than the upper limit of the preset resource usage in the first working scenario.
[0082] This section provides specific examples illustrating how to switch between different work scenarios:
[0083] The following detailed explanation of the solution uses a specific example:
[0084] Example 1: Assuming an employee's initial work scenario is Scenario A, when the user account logs in, the system will monitor the user's resource usage: statistics on current resource usage and duration of usage. If the employee's resource consumption exceeds the recommended limit for Scenario A for 1 consecutive minute (configurable) and reaches the limit range for Scenario B, the temporary scenario switching module SS (SceneSwitch) will be triggered to switch to Scenario B, thereby temporarily increasing the resource configuration.
[0085] The recommended threshold values in the above scenarios are determined based on the allowed resource usage range in the resource allocation strategy.
[0086] Simultaneously, the counter in RS starts timing, recording the current resource usage and duration. When resource consumption falls below the minimum recommended value for Scenario B for 5 consecutive minutes (configurable), the switching function is triggered, switching to Scenario A to reduce resource configuration. This "exceeding the recommended limit for Scenario A" means that the actual usage of at least one resource exceeds the upper limit of the corresponding resource parameter in Scenario A.
[0087] Example 2: Assuming an employee's initial work scenario is Scenario A, when the user account logs in, the system will monitor the user's resource usage: It will statistically analyze the current resource consumption and duration. If resource consumption exceeds the recommended limit for Scenario A for one consecutive minute (configurable) and reaches the limit for Scenario B, the temporary scenario switching module SS (SceneSwitch) will be triggered to switch to Scenario B, thereby temporarily increasing resource configuration. Simultaneously, a counter in RS will start timing, statistically analyzing the current resource consumption and duration. If resource consumption still exceeds the recommended limit for Scenario B for one consecutive minute (configurable), the switching function will be triggered to switch to Scenario C, thereby temporarily increasing resource configuration.
[0088] Example 3: Assuming an employee's initial work scenario is Scenario A, when the user account logs in, the system monitors the user's resource usage: it calculates the current resource consumption and duration. If the employee's resource consumption exceeds the recommended threshold for Scenario A for 1 consecutive minute (configurable) and reaches the threshold range for Scenario C, the temporary scenario switching module SS (SceneSwitch) is triggered to switch to Scenario C, thereby temporarily increasing the resource configuration. At the same time, the counter in RS starts timing, calculating the current resource consumption and duration. If the resource consumption is below the minimum recommended value for Scenario C for 5 consecutive minutes (configurable) and is within the threshold range for Scenario B, the switching function is triggered to switch to Scenario B, thereby decreasing the resource configuration.
[0089] The method provided in this disclosure can also analyze the resource consumption of the logged-in user within a historical time period when switching the initial work scenario, thereby determining the initial work scenario of the logged-in user:
[0090] Retrieve the historical usage information of the target resource for the logged-in user within the historical time period;
[0091] Based on the historical usage information of the target resource and the range of resources that are allowed to be used in at least one work scenario, determine the initial work scenario corresponding to the logged-in user in at least one work scenario.
[0092] Specifically, the system can retrieve and analyze the current user's resource usage over a preset duration (e.g., 1 day, 2 days, 5 days, etc.) prior to the current time. First, it determines the scope of the resource usage within a specific work scenario. If the resource usage falls within the longest possible range of a particular scenario's boundaries, that scenario is designated as the user's initial application scenario. For example, analyzing the user's resource usage over 5 days reveals that the longest duration falls within the resource parameter range of scenario B; therefore, scenario B is designated as the user's current initial application scenario. After determining the initial application scenario, the user's resource configuration is dynamically adjusted according to a temporary scenario strategy until the initial application scenario is redefined.
[0093] The data processing method provided in this embodiment is applied to the server side. When the server detects that a terminal device has logged in, it obtains the user information of the logged-in user, finds an initial working scenario that matches the user information based on the user information, and allocates resources to the terminal device. It continuously monitors the resource usage information of the logged-in user within a preset time period. When the resource usage information does not match the allocation strategy in the initial working scenario, the initial working mode is changed. This enables timely adjustment of resource configuration according to the user's actual work needs, improves data processing efficiency, and reduces resource waste.
[0094] Example 2
[0095] Based on the above Figure 1 The data processing methods described in the corresponding embodiments are described below as device embodiments of this disclosure, which can be used to execute the method embodiments of this disclosure.
[0096] This disclosure provides a server, such as Figure 2 As shown, the server 20 includes: an acquisition module 201, an initialization module 202, a resource monitoring module 203, and a resource statistics control module 204.
[0097] The acquisition module 201 is used to acquire user information of logged-in users;
[0098] The initialization module 202 is used to find an initial working scenario that matches the user information in at least one working scenario according to a preset scenario strategy. The working scenario includes a preset resource allocation strategy, and the preset resources include at least CPU preset resources, memory preset resources and graphics card preset resources.
[0099] The resource monitoring module 203 is used to obtain the usage information of the target resources of the logged-in user within a preset time period after the initial working scenario is determined.
[0100] The resource statistics module 204 is used to activate the scene switching module when the usage information of the target resource does not match the allocation strategy of the preset resource. The scene switching module is used to switch the initial working scene.
[0101] In an optional embodiment, the logical architecture between the server 20 and the terminal device can be as follows: Figure 2a As shown:
[0102] The system comprises a server, a relay server, and terminal devices. The server includes a server (S-end), which acts as a data acquisition terminal, capturing desktop images from a virtualized desktop (VM) generated by a virtualization server. The S-end encodes the captured desktop image data and sends the encoded image data to the terminal devices via the relay server. The terminal devices decode the received encoded image data using a server (R-end), reconstructing the desktop image data and displaying it on the screen.
[0103] In an optional embodiment, the method provided in this disclosure installs a resource monitoring module RM (Resource Monitor) and a resource statistics module RS (Resource Statistics) on the sending end of the server. RM monitors the resource consumption and occupancy data of S in real time. RS aggregates and performs AI analysis on the monitoring data of RM according to different counting periods (month, week, day, hour, minute, second). Based on the employee's work resource occupancy and AI statistical analysis, the scene switching module SS (SceneSwitch) is triggered to increase or decrease the resource configuration of the work scene, so as to dynamically allocate the company's resources as a whole on demand and maximize and optimize the use of company resources.
[0104] In an optional embodiment, the initialization module in the server 20 provided in this disclosure is used to obtain resource request information of the logged-in user. The resource request information is used to request the allocation of target resources. The resource request information includes at least parameter information of the target resources and user information of the logged-in user.
[0105] Based on the resource request information of the logged-in user, an initial working scenario is generated. The initial working scenario includes the allocation strategy corresponding to the preset resources. The allocation strategy includes the allowed range, allowed usage duration and weight value of each resource in the target resource.
[0106] In an optional embodiment, the initialization module 202 in the server 20 provided in this disclosure is used to obtain the historical usage information of the target resource by the logged-in user within a historical time period;
[0107] Based on the historical usage information of the target resource and the permitted usage range of the target resource in at least one work scenario, determine the initial work scenario corresponding to the logged-in user in at least one work scenario.
[0108] In an optional embodiment, the resource statistics module in the server 20 provided in this disclosure is used for
[0109] Based on the usage information of the target resource, obtain the consumption value of the target resource used by the logged-in user and the corresponding usage duration of the target resource;
[0110] When the consumption value of the target resource exceeds the allowed usage range of the preset resource, and the usage duration exceeds the preset value, it is determined that the usage information of the target resource does not match the allocation strategy of the preset resource.
[0111] In an optional embodiment, the scene switching module in the server 20 provided in this disclosure is used for
[0112] When the used target resource exceeds the upper limit of the allowed range of the preset resource, switch to the first working scenario. In the first working scenario, the lower limit of the allowed range of the preset resource is greater than the upper limit of the allowed range of the resource in the initial working scenario.
[0113] After successfully switching to the first work scenario, monitor the target resources used by the logged-in user within a preset time period;
[0114] When the usage of the target resource is less than the lower limit of the preset allowed resource usage range in the first working scenario, switch to the initial working scenario;
[0115] When the usage of the target resource exceeds the upper limit of the preset resource usage range in the first working scenario, the system switches to the second working scenario, where the lower limit of the preset resource usage is greater than the upper limit of the preset resource usage in the first working scenario.
[0116] The server provided in this embodiment of the present disclosure, when detecting a terminal device login, obtains the user information of the logged-in user, finds an initial working scenario matching the user information based on the user information, and allocates resources to the terminal device; continuously monitors the resource usage information of the logged-in user within a preset time period, and when the resource usage information does not match the allocation strategy in the initial working scenario, changes the initial working mode, thereby enabling timely adjustment of resource configuration according to the user's actual work needs, improving data processing efficiency and reducing resource waste.
[0117] Based on the above Figure 1 In addition to the data processing methods described in the corresponding embodiments, this disclosure also provides a computer-readable storage medium. For example, a non-transitory computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a CD-ROM, magnetic tape, a floppy disk, or an optical data storage device. This storage medium stores computer instructions for executing the above-described data processing methods. Figure 1 The data processing methods described in the corresponding embodiments will not be repeated here.
[0118] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the disclosure herein. This application is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.
Claims
1. A data processing method, characterized in that, Applied to a server, the method includes: Retrieve user information of logged-in users; According to a preset scenario strategy, an initial work scenario matching the user information is found in at least one work scenario. The work scenario includes a preset resource allocation strategy, and the preset resources include at least CPU preset resources, memory preset resources, and graphics card preset resources. Once the initial working scenario is determined, the usage information of the target resources of the logged-in user within a preset time period is obtained; When the usage information of the target resource does not match the preset resource allocation strategy, the initial working scenario is switched. The allocation strategy includes a preset range of allowed resource usage. Determining whether the usage information of the target resource matches the preset resource allocation strategy based on the allocation strategy includes: Based on the usage information of the target resource, obtain the consumption value of the target resource and the corresponding usage duration of the target resource; when the consumption value of the target resource exceeds the allowed usage range of the preset resource, and the usage duration exceeds the preset value, determine that the usage information of the target resource does not match the allocation strategy of the preset resource. The switching of the initial working scenario includes: based on the usage information of the target resource, when the used target resource exceeds the upper limit of the preset allowed usage range of the resource, switching to a first working scenario, where the lower limit of the preset allowed usage range of the resource in the first working scenario is greater than the upper limit of the allowed usage range of the resource in the initial working scenario; after successfully switching to the first working scenario, monitoring the usage information of the target resource of the logged-in user within a preset time period; when the used target resource usage is less than the lower limit of the preset allowed usage range of the resource in the first working scenario, switching back to the initial working scenario; when the used target resource usage is greater than the upper limit of the preset allowed usage range of the resource in the first working scenario, switching to a second working scenario, where the lower limit of the preset allowed usage range of the resource in the second working scenario is greater than the upper limit of the preset allowed usage range of the resource in the first working scenario.
2. The method according to claim 1, characterized in that, The method further includes: Obtain resource request information from the logged-in user. The resource request information is used to request the allocation of target resources. The resource request information includes at least parameter information of the target resources and user information of the logged-in user. Based on the resource request information of the logged-in user, an initial work scenario for the logged-in user is generated. The initial work scenario includes a preset resource allocation strategy, and the allocation strategy includes the allowed range and allowed usage duration for each type of resource in the target resource.
3. The method according to claim 1, characterized in that, The method further includes: Obtain the historical usage information of the target resources by the logged-in user within the historical time period; Based on the historical usage information of the target resource and the permitted usage range of the target resource in at least one work scenario, determine the initial work scenario corresponding to the logged-in user in at least one work scenario.
4. A server, characterized in that, include: The server includes: an acquisition module, an initialization module, a resource monitoring module, and a resource statistics module. The acquisition module is used to acquire user information of logged-in users; The initialization module is used to find an initial working scenario that matches the user information in at least one working scenario according to a preset scenario strategy. The working scenario includes a preset resource allocation strategy, and the preset resources include at least CPU preset resources, memory preset resources and graphics card preset resources. The resource monitoring module is used to obtain the target resource usage information of the logged-in user within a preset time period after the initial working scenario is determined. The resource statistics module is used to activate the scene switching module when the usage information of the target resource does not match the preset resource allocation strategy. The scene switching module is used to switch the initial working scene. The allocation strategy includes a preset range of allowed resource usage; The resource statistics module is used to obtain the consumption value of the target resource and the corresponding usage duration of the target resource based on the usage information of the target resource; when the consumption value of the target resource exceeds the allowed usage range of the preset resource, and the usage duration exceeds the preset value, it is determined that the usage information of the target resource does not match the allocation strategy of the preset resource. The scenario switching module is configured to switch to a first working scenario when the used target resources exceed the upper limit of the preset resource usage range, wherein the lower limit of the preset resource usage range in the first working scenario is greater than the upper limit of the resource usage range in the initial working scenario; after successfully switching to the first working scenario, it monitors the target resources used by the logged-in user within a preset time period; when the used target resources are less than the lower limit of the preset resource usage range in the first working scenario, it switches to the initial working scenario; when the used target resources are greater than the upper limit of the preset resource usage range in the first working scenario, it switches to a second working scenario, wherein the lower limit of the preset resource usage range in the second working scenario is greater than the upper limit of the preset resource usage range in the first working scenario.
5. The server according to claim 4, characterized in that, The initialization module is used to obtain resource request information of the logged-in user. The resource request information is used to request the allocation of target resources. The resource request information includes at least the parameter information of the target resources and the user information of the logged-in user. Based on the resource request information of the logged-in user, an initial working scenario is generated. The initial working scenario includes a preset resource allocation strategy. The allocation strategy includes the allowed usage range, allowed usage duration, and weight value of each resource in the target resource.
6. The server according to claim 4, characterized in that, The initialization module is used for Obtain the historical usage information of the target resources by the logged-in user within the historical time period; Based on the historical usage information of the target resource and the permitted usage range of the target resource in at least one work scenario, determine the initial work scenario corresponding to the logged-in user in at least one work scenario.
Citation Information
Patent Citations
Mobile terminal and scene recognition method
CN106412336A
Cloud desktop intelligent pushing system
CN107864217A