Resource allocation method and device, storage medium and program product

By obtaining the allocation status of organizational resources and the quota status of applications, and combining regional requirements and preset permissions, resource allocation is planned intricately, the problem of inaccurate resource allocation in the existing technology is solved, and the coordination between resource utilization efficiency and application is improved Work, enhancing system security and stability.

CN118963982APending Publication Date: 2024-11-15FUZHOU QIYUAN INFORMATION TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410716621.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

In the prior art, resource allocation is subjective, resulting in inaccurate allocation, inaccurate resource requirements, and inability to accurately meet the resource requirements of applications, affecting resource utilization efficiency and collaborative work between applications.

Method used

By obtaining the allocation status of organizational resources, resource allocation is based on the application's quota status and regional needs, ensuring that each application obtains the amount of resources it needs, and combining preset permissions and permission cycles, carefully plan the resource occupation status to avoid excessive resource Or insufficient.

Benefits of technology

It improves the overall utilization efficiency of resources, ensures that applications obtain sufficient resources within the required time period, reduces operating costs, and enhances system security and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118963982A_ABST
    Figure CN118963982A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, and discloses a resource allocation method and device, a storage medium and a program product. The method comprises the following steps: acquiring an allocation state of organization resources; allocating the organization resources to the corresponding organizations according to the allocation states; wherein the organization at least comprises two applications, and areas corresponding to the applications are different; organizational resources are allocated to the application based on the region and the quota state of the application. According to the invention, resource allocation is carried out through the quota state and the regional demand of each application, and it can be ensured that each application can obtain the most appropriate resource quantity required by the application. Therefore, excessive allocation or insufficient allocation of the resources is avoided, the overall utilization efficiency of the resources is improved, in an organization comprising a plurality of applications, the resource allocation strategy can ensure cooperative work among the applications, and the resource allocation efficiency is improved by reasonably allocating the resources. The situation that a certain application occupies too many resources and influences normal operation of other applications can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a resource allocation method, device, storage medium and program product. Background Art

[0002] Currently, applications can apply for resources from the resource platform, and the resource platform provides resources for applications to use.

[0003] Since the total amount of resources is limited, in order to ensure that different applications can enjoy resources as much as possible, it is necessary to set resource quotas to constrain the amount of resources that the organization can occupy and prevent individual applications from occupying too many resources.

[0004] In the related art, the administrator of the resource platform manually sets the resource quota for each organization, and then allocates resources to each organization according to the resource quota. Applications under the organization can use the resources allocated by the organization.

[0005] However, there is a certain degree of subjectivity in the artificial setting method, which leads to inaccurate allocation. Summary of the invention

[0006] In view of this, the present invention provides a resource allocation method, device, storage medium and program product to solve the problem that the human setting method has a certain subjectivity and leads to inaccurate allocation.

[0007] In a first aspect, the present invention provides a resource allocation method, the method comprising: obtaining the allocation status of organizational resources; allocating the organizational resources to a corresponding organization according to the allocation status; wherein the organization comprises at least two applications, and each application corresponds to a different region; and allocating the organizational resources to the application based on the region and the quota status of the application.

[0008] The resource allocation method provided in this embodiment allocates resources based on the quota status and regional requirements of each application, ensuring that each application can obtain the most appropriate amount of resources it needs. This avoids over-allocation or under-allocation of resources, thereby improving the overall utilization efficiency of resources, and in an organization containing multiple applications, this resource allocation strategy can ensure the collaborative work between the various applications. By allocating resources reasonably, it can be avoided that a certain application occupies too many resources and affects the normal operation of other applications.

[0009] In an optional implementation, organizational resources are allocated to applications based on the region and the quota status of the application, including: determining the allocation time of each application based on the region; detecting whether the usage time of the application reaches the allocation time; if the usage time of the application reaches the allocation time, allocating organizational resources to the application based on the quota status of the application.

[0010] The resource allocation method provided in this embodiment determines the allocation time of each application according to the area where the application is located, which can more accurately meet the resource needs of the application, thereby ensuring that the application obtains sufficient resource support during the time period when it is most needed. By detecting whether the application usage time reaches the allocation time, it can avoid allocating resources too early or too late.

[0011] In an optional embodiment, the method also includes: obtaining configuration information corresponding to the first target object; allocating preset permissions to the first target object based on the configuration information; obtaining the execution operation of the first target object and determining the target permissions of the first target object; detecting whether the target permissions are consistent with the preset permissions; if the target permissions are consistent with the preset permissions, processing the application in response to the execution operation of the first target object.

[0012] The resource allocation method provided in this embodiment can accurately allocate preset permissions to the first target object by obtaining the configuration information of the first target object, thereby ensuring that the resource can only be accessed and used by the authorized object, and the allocation of preset permissions is based on strict configuration information, which helps to reduce unauthorized access and potential security risks. At the same time, by detecting the compliance of the target permissions with the preset permissions, it can be further ensured that only operations that meet the requirements can be executed, thereby enhancing the security of the system.

[0013] In an optional embodiment, the method also includes: in response to the configuration operation of the second target object, based on preset permissions and permission cycles, determining the resource occupancy status of the application at each stage within the permission cycle; based on the resource occupancy status, allocating organizational resources to each stage within the permission cycle.

[0014] The resource allocation method provided in this embodiment can plan the occupation status of resources at different stages more finely by considering preset permissions and permission cycles, thereby ensuring that resources are fully utilized when needed, while avoiding excessive resource occupation in unnecessary time periods, and allocating resources according to the actual resource requirements of applications at each stage, thereby avoiding waste and idleness of resources. This on-demand allocation strategy can maximize resource utilization efficiency and reduce the operating costs of an organization.

[0015] In an optional implementation, based on the resource occupancy status, organizational resources are allocated to each stage within the permission cycle, including: obtaining a status baseline; wherein the status baseline is used to characterize the range value of the resource occupancy status of each stage; detecting whether the resource occupancy status of each stage is within the status baseline; if the resource occupancy status is within the status baseline, based on the resource occupancy status, organizational resources are allocated to each stage within the permission cycle.

[0016] The resource allocation method provided in this embodiment provides clear standards and ranges for resource occupancy status through the status baseline, so that the administrator can clearly understand the expected range of resource occupancy at each stage. This helps to maintain consistency in the resource allocation process and reduce subjectivity and errors. In addition, by ensuring that the resource occupancy status is within the status baseline, it can be ensured that resources are reasonably and effectively used at each stage. This helps to avoid waste and excessive occupancy of resources and improve overall resource utilization efficiency.

[0017] In an optional embodiment, the method also includes: if the resource occupancy state is not within the state baseline, detecting whether the resource occupancy state is greater than the maximum value of the state baseline; if the resource occupancy state is greater than the maximum value of the state baseline, based on the maximum value, allocating organizational resources to each stage within the authority cycle; if the resource occupancy state is less than the minimum value of the state baseline, based on the minimum value, allocating organizational resources to each stage within the authority cycle.

[0018] The resource allocation method provided in this embodiment can detect and respond immediately by detecting that the resource occupancy status is not within the status baseline, which ensures that the system monitors and adjusts the resource occupancy status in real time and avoids the problem of insufficient or wasted resources.

[0019] Furthermore, the system can adjust resource allocation in a targeted manner according to whether the resource usage status exceeds the maximum or minimum value of the status baseline. If the resource usage is too large, the resource allocation can be increased to ensure the stable operation of the application; if the resource usage is too small, the resource allocation can be reduced to avoid resource waste. This optimization strategy helps to improve resource utilization efficiency.

[0020] In addition, by detecting resource usage and adjusting resource allocation, potential problems can be prevented. For example, when resource usage is close to or exceeds the maximum value, timely increasing resource allocation can prevent the application from crashing or performance degradation due to insufficient resources. Similarly, when resource usage is far below the minimum value, reducing resource allocation can avoid unnecessary resource waste.

[0021] In an optional implementation, the method further includes: obtaining the processing permissions of each application under the current organization; if the application is in other organizations, synchronizing the processing permissions corresponding to the application to other organizations.

[0022] The resource allocation method provided in this embodiment can ensure that the processing permissions of the application remain consistent regardless of which organization the application is running under by synchronizing the processing permissions. This helps to avoid operation errors or data inconsistency problems caused by inconsistent permissions, and improves the stability and reliability of the system.

[0023] In a second aspect, the present invention provides a resource allocation device, which includes: an allocation status acquisition module, used to obtain the allocation status of organizational resources; a first allocation module, used to allocate organizational resources to corresponding organizations according to the allocation status; wherein the organization includes at least two applications, and each application corresponds to a different area; a second allocation module, used to allocate organizational resources to applications based on the area and the quota status of the application.

[0024] In a third aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the resource allocation method of the first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0025] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the resource allocation method of the first aspect or any corresponding embodiment thereof.

[0026] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, wherein the computer instructions are used to enable a computer to execute the resource allocation method of the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0028] Figure 1 is a schematic diagram of a flow chart of a resource allocation method according to an embodiment of the present invention;

[0029] Figure 2 is a flow chart of another resource allocation method according to an embodiment of the present invention;

[0030] Figure 3 is a structural block diagram of a resource allocation device according to an embodiment of the present invention;

[0031] Figure 4 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0032] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0033] Based on relevant technologies, currently, applications can apply for resources from a resource platform, and the resource platform provides resources for the applications to use.

[0034] Since the total amount of resources is limited, in order to ensure that different applications can enjoy resources as much as possible, it is necessary to set resource quotas to constrain the amount of resources that the organization can occupy and prevent individual applications from occupying too many resources.

[0035] In the related art, the administrator of the resource platform manually sets the resource quota for each organization, and then allocates resources to each organization according to the resource quota. Applications under the organization can use the resources allocated by the organization.

[0036] However, there is a certain degree of subjectivity in the artificial setting method, which leads to inaccurate allocation.

[0037] Based on this, the present invention provides a resource allocation method, which allocates resources according to the quota status and regional requirements of each application, and can ensure that each application can obtain the most appropriate amount of resources it needs. This avoids over-allocation or under-allocation of resources, thereby improving the overall utilization efficiency of resources, and in an organization containing multiple applications, this resource allocation strategy can ensure the collaborative work between various applications. By allocating resources reasonably, it can be avoided that a certain application occupies too many resources and affects the normal operation of other applications.

[0038] According to an embodiment of the present invention, a resource allocation method embodiment is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0039] In this embodiment, a resource allocation method is provided, which can be used for computer devices, such as computers, servers, etc. Figure 1 is a flow chart of a resource allocation method according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0040] Step S101, obtaining the allocation status of organizational resources.

[0041] Organizational resources can be used to represent the resources that an organization can deploy, and organizational resources may include: central processing unit (CPU), thread, memory, etc., which are not specifically limited here.

[0042] The allocation status can be used to characterize the resource allocation of the region where the organizational resource is applied. For example, the region can be region A, region B, etc., and then region A is allocated 10 CPUs, 100 memories, and region B is allocated 15 CPUs, 120 threads, etc. Specifically, the computer device can directly read the allocation status of any organizational resource, and can also manually set the allocation status of organizational resources, etc., which is not specifically limited here and can be implemented by those skilled in the art.

[0043] Step S102: Allocate organizational resources to corresponding organizations according to the allocation status; wherein the organization includes at least two applications, and each application corresponds to a different area.

[0044] After determining the allocation status of organizational resources, the organizational resources are allocated to the corresponding organizations. For example, 10 CPUs and 100 memories are allocated to region A, and 15 CPUs and 120 threads are allocated to region B. Applications can be used to represent programs that need to be run within an organization.

[0045] Step S103: Allocate organizational resources to the application based on the region and the quota status of the application.

[0046] The quota status of an application can be used to characterize the number of threads, CPUs and other resources occupied by each application when it is used (such as testing, running, etc.). Specifically, the usage area of ​​each application can be different, and organizational resources are allocated to applications in different areas in combination with the quota status of the application.

[0047] It should be noted that the quota status refers to the quota corresponding to different resource description information corresponding to different organizations in the resource platform. The quota data can store the organization's relevant information, resource description information, and quota correspondence. For example, the organization's relevant information may include the organization's user ID (User Identification, UID), and the organization's UID and resource description information are used as key names (keys), and the corresponding quotas are used as key values ​​(values) to store them in the form of key-value pairs. The UIDs of different organizations and the available zone information and specification information can form multiple combinations, and one combination can correspond to one resource description information. A key name can represent a combination, and the preset quota data includes the quota corresponding to each combination. For the same organization, the quotas corresponding to different resource description information may be different.

[0048] The resource allocation method provided in this embodiment allocates resources based on the quota status and regional requirements of each application, ensuring that each application can obtain the most appropriate amount of resources it needs. This avoids over-allocation or under-allocation of resources, thereby improving the overall utilization efficiency of resources, and in an organization containing multiple applications, this resource allocation strategy can ensure the collaborative work between the various applications. By allocating resources reasonably, it can be avoided that a certain application occupies too many resources and affects the normal operation of other applications.

[0049] like Figure 2 As shown, in an optional implementation, the above step S103 includes:

[0050] Step S2031, determining the deployment time of each application based on the region.

[0051] The deployment time can be one time period or multiple time periods, etc., and is not specifically limited here. The deployment time of applications corresponding to each region is different. Taking China time as the standard time, region B often uses applications in the middle of the night, and region A often uses applications during the day.

[0052] Step S2032, detecting whether the usage time of the application reaches the allocation time.

[0053] Use system monitoring tools or log analysis to track application usage, including user active time, resource consumption, etc. Then set up a detection mechanism to automatically detect whether the application usage time reaches the allocation time. This can be achieved by writing scripts or using existing automation tools, which are not specifically limited here.

[0054] Step S2033: if the usage time of the application reaches the allocation time, the organizational resources are allocated to the application based on the quota status of the application.

[0055] If the application usage time reaches the allocation time, the application quota status can be used to allocate organizational resources to the application. For example, in the same organization, the organization's resources are 10 CPUs and 100 memories. In the process of using any application under the corresponding organization, 10 CPUs and 100 memories can be used. Among them, the allocation time of region M is A and the allocation time of region N is B. When the application is used in region M, all the 10 CPUs and 100 memories can be allocated to region M for use. When the application is used in region N, all the 10 CPUs and 100 memories can be allocated to region N for use. In this way, the purpose of double memory usage can be achieved.

[0056] The resource allocation method provided in this embodiment determines the allocation time of each application according to the area where the application is located, which can more accurately meet the resource needs of the application, thereby ensuring that the application obtains sufficient resource support during the time period when it is most needed. By detecting whether the application usage time reaches the allocation time, it can avoid allocating resources too early or too late.

[0057] In an optional embodiment, the above method further includes:

[0058] Step a1, obtaining configuration information corresponding to the first target object.

[0059] The first target object can be used to represent the user who processes the application. The configuration information can be used to represent the usage status of each first target object for the application. The configuration information may include: user ID, user authority, etc., which are not specifically limited here.

[0060] Step a2: assigning preset permissions to the first target object based on the configuration information.

[0061] The preset permissions can be used to represent the permissions for processing the application. Among them, the preset permissions may include: read-only operation, development operation, test operation, operation and maintenance operation, etc., which are not specifically limited here. Specifically, different permissions can be assigned to the first target object according to the configuration information of different first target objects. For example: configuration information A, the system assigns test operation permissions; configuration information B, the system assigns development operation permissions, etc.

[0062] Step a3: obtaining the execution operation of the first target object and determining the target permission of the first target object.

[0063] When the first target object performs an operation on the application, it is possible to determine which operations the first target object currently performs on the application, and then determine the target permission of the first target object.

[0064] Step a4, checking whether the target authority is consistent with the preset authority.

[0065] As can be seen from the above, the preset permissions of each first target object have been determined. When the first target object uses permissions, it can be detected whether the target permissions are consistent with the preset permissions, that is, whether the target permissions are the same as the preset permissions.

[0066] Step a5: If the target permission matches the preset permission, the application is processed in response to the execution operation of the first target object.

[0067] If the target permission is consistent with the preset permission, it can be represented that the first target object can process the application, and the computer device processes the application through the execution operation.

[0068] The resource allocation method provided in this embodiment can accurately allocate preset permissions to the first target object by obtaining the configuration information of the first target object, thereby ensuring that the resource can only be accessed and used by the authorized object, and the allocation of preset permissions is based on strict configuration information, which helps to reduce unauthorized access and potential security risks. At the same time, by detecting the compliance of the target permissions with the preset permissions, it can be further ensured that only operations that meet the requirements can be executed, thereby enhancing the security of the system.

[0069] In an optional embodiment, the above method further includes:

[0070] Step b1, in response to the configuration operation of the second target object, based on the preset permission and permission period, determining the resource occupation status of the application at each stage within the permission period.

[0071] The second target object can be used to characterize the administrator. The configuration operation can be triggered by the administrator by clicking the mouse, tapping the keyboard, etc., wherein the computer device responds to the configuration operation and sets the resource occupancy status of the application at each stage within the permission cycle. Each stage can be used to characterize the resource occupancy status of the read-only operation, development operation, test operation, operation and maintenance operation, etc.

[0072] Step b2, based on the resource occupancy status, allocate organizational resources to various stages within the authority cycle.

[0073] After determining the resource occupancy status of each stage, allocate organizational resources to each stage within the authority cycle.

[0074] Specifically, the above step b2 includes:

[0075] Step b21, obtaining a status baseline; wherein the status baseline is used to characterize the range value of the resource occupancy status at each stage.

[0076] The status baseline is used to characterize the range of resource usage status at each stage. For example, the maximum value of read-only operation is 30 memory and the minimum value is 10 memory; another example is: the maximum value of development operation is 50 memory and the minimum value is 30 memory, etc., which are not specifically limited here.

[0077] Step b22, detecting whether the resource occupancy status of each stage is within the status baseline.

[0078] Step b23: If the resource occupancy status is within the status baseline, the organizational resources are allocated to various stages within the authority cycle based on the resource occupancy status.

[0079] Real-time monitoring and detection of resource occupation status of organizational resources in each stage. This usually involves collecting and analyzing real-time data from systems or applications to determine the current amount of resource occupation. Then, compare these resource occupation status with the status baseline to determine whether the resource occupation status is within the allowed range. If the resource occupation status is within the status baseline, the organizational resources are allocated to each stage in the permission cycle based on the resource occupation status.

[0080] The resource allocation method provided in this embodiment can plan the occupation status of resources at different stages more finely by considering preset permissions and permission cycles, thereby ensuring that resources are fully utilized when needed, while avoiding excessive resource occupation in unnecessary time periods, and allocating resources according to the actual resource requirements of applications at each stage, thereby avoiding waste and idleness of resources. This on-demand allocation strategy can maximize resource utilization efficiency and reduce the operating costs of an organization.

[0081] In an optional embodiment, the above method further includes:

[0082] Step c1: if the resource occupancy state is not within the state baseline, detect whether the resource occupancy state is greater than the maximum value of the state baseline.

[0083] Step c2: if the resource occupancy status is greater than the maximum value of the status baseline, the organizational resources are allocated to each stage within the authority cycle based on the maximum value.

[0084] Step c3: If the resource occupancy status is less than the minimum value of the status baseline, the organizational resources are allocated to each stage within the authority cycle based on the minimum value.

[0085] The system monitors and detects the resource usage status at each stage and compares it with the status baseline to determine whether it is within the allowed range. If the resource usage status is not within the status baseline, the next step is to determine whether it exceeds the maximum value or is below the minimum value. The system determines whether the current resource usage status exceeds the maximum value defined by the status baseline. If the resource usage status is indeed greater than the maximum value of the status baseline, the system needs to take measures to ensure the stability and performance of the system.

[0086] The system can reallocate organizational resources based on the maximum value defined by the status baseline. This means that the system may need to adjust resource allocations in other phases to provide more resources for the current phase while ensuring that resource allocations in other phases remain within their status baselines. When allocating resources, the system needs to consider factors such as the priorities of each phase, business needs, etc. to ensure that resource allocation is reasonable and efficient.

[0087] If the resource occupancy status is below the minimum value of the status baseline, this may mean that resources are over-allocated or that the demand for that phase is low. In this case, the system can reallocate organizational resources based on the minimum value defined by the status baseline. This can free up excess resources for use by other phases, or allocate those resources to phases that need them more.

[0088] The resource allocation method provided in this embodiment can detect and respond immediately by detecting that the resource occupancy state is not within the state baseline. This ensures that the system monitors the resource occupancy in real time and adjusts it in time to avoid the problem of insufficient or wasted resources. In addition, according to whether the resource occupancy state exceeds the maximum or minimum value of the state baseline, the system can adjust the allocation of resources in a targeted manner. If the resource occupancy is too large, the stable operation of the application can be ensured by increasing the resource allocation; if the resource occupancy is too small, the resource allocation can be reduced to avoid resource waste. This optimization strategy helps to improve the utilization efficiency of resources. In addition, by detecting the resource occupancy state and adjusting the resource allocation, potential problems can be prevented. For example, when the resource occupancy is close to or exceeds the maximum value, timely increasing the resource allocation can prevent the application from crashing or performance degradation due to insufficient resources. Similarly, when the resource occupancy is far below the minimum value, reducing the resource allocation can avoid unnecessary resource waste.

[0089] In an optional embodiment, the above method further includes:

[0090] Step d1, obtain the processing permissions of each application under the current organization.

[0091] The system needs to first identify all applications under the current organization. This can usually be achieved by querying the organization's application list or registration information. For each application, the system needs to obtain its corresponding processing permissions. These permissions may include data access permissions, operation execution permissions, function use permissions, etc. The specific content and form of permissions depend on the organization's business needs and system design. Ways to obtain application processing permissions may include querying the database, calling API interfaces, reading configuration files, etc. The specific method depends on how the permission information is stored and the system architecture.

[0092] Step d2: If the application is in other organizations, synchronize the processing permissions corresponding to the application to other organizations.

[0093] The system needs to determine whether an application exists in both the current organization and other organizations. This can usually be achieved by comparing the unique identifier of the application (such as ID, name, etc.) or querying the application mapping relationship across organizations. If an application is found to exist in other organizations at the same time, the system needs to synchronize its processing permissions in the current organization to these other organizations. This is to ensure the consistency of applications and the uniformity of permission management between different organizations. Ways to synchronize permissions may include sending messages, calling remote services, updating databases, etc. The specific method depends on the communication method between systems and the permission management architecture. When synchronizing permissions, the system needs to pay attention to the integrity and consistency of permissions. That is, it is necessary to ensure that the synchronized permissions are consistent with the original permissions and will not have a negative impact on applications from other organizations.

[0094] The resource allocation method provided in this embodiment can ensure that the processing permissions of the application remain consistent regardless of which organization the application is running under by synchronizing the processing permissions. This helps to avoid operation errors or data inconsistency problems caused by inconsistent permissions, and improves the stability and reliability of the system.

[0095] In this embodiment, a resource allocation device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0096] This embodiment provides a resource allocation device, such as Figure 3 As shown, it includes: an allocation status acquisition module 301, which is used to obtain the allocation status of organizational resources; a first allocation module 302, which is used to allocate organizational resources to corresponding organizations according to the allocation status; wherein the organization includes at least two applications, and each application corresponds to a different area; a second allocation module 303, which is used to allocate organizational resources to applications based on the area and the quota status of the application.

[0097] In an optional embodiment, the second allocation module 303 includes: a first determination unit, used to determine the allocation time of each application based on the region; a first detection unit, used to detect whether the usage time of the application reaches the allocation time; a first allocation unit, used to allocate organizational resources to the application based on the quota status of the application if the usage time of the application reaches the allocation time.

[0098] In an optional embodiment, the above-mentioned device also includes: a first acquisition module, used to obtain configuration information corresponding to the first target object; a third allocation module, used to allocate preset permissions to the first target object based on the configuration information; a second acquisition module, used to obtain the execution operation of the first target object and determine the target permissions of the first target object; a first detection module, used to detect whether the target permissions are consistent with the preset permissions; and a first processing module, used to process the application in response to the execution operation of the first target object if the target permissions are consistent with the preset permissions.

[0099] In an optional embodiment, the above-mentioned device also includes: a first determination module, which is used to determine the resource occupancy status of the application at each stage within the permission period in response to the configuration operation of the second target object, based on preset permissions and permission periods; and a fourth allocation module, which is used to allocate organizational resources to each stage within the permission period based on the resource occupancy status.

[0100] In an optional embodiment, the fourth allocation module includes: a first acquisition unit, used to acquire a status baseline; wherein the status baseline is used to characterize the range value of the resource occupancy status of each stage; a second detection unit, used to detect whether the resource occupancy status of each stage is within the status baseline; and a second allocation unit, used to allocate organizational resources to each stage within the authority cycle based on the resource occupancy status if the resource occupancy status is within the status baseline.

[0101] In an optional embodiment, the above-mentioned device also includes: a second detection module, which is used to detect whether the resource occupancy state is greater than the maximum value of the state baseline if the resource occupancy state is not within the state baseline; a fifth allocation module, which is used to allocate organizational resources to each stage within the authority cycle based on the maximum value if the resource occupancy state is greater than the maximum value of the state baseline; and a sixth allocation module, which is used to allocate organizational resources to each stage within the authority cycle based on the minimum value if the resource occupancy state is less than the minimum value of the state baseline.

[0102] In an optional embodiment, the above-mentioned device also includes: a third acquisition module, used to obtain the processing permissions of each application under the current organization; and a synchronization module, used to synchronize the processing permissions corresponding to the application to other organizations if the application is in other organizations.

[0103] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0104] The resource allocation device in this embodiment is presented in the form of a functional unit, where the functional unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0105] The embodiment of the present invention also provides a computer device having the above Figure 3 The resource allocation device shown.

[0106] See also Figure 4 , Figure 4 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 4 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 4 A processor 10 is taken as an example.

[0107] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0108] The memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiment.

[0109] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0110] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0111] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0112] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0113] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0114] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A resource allocation method, characterized in that: The method comprises: Get the allocation status of organizational resources; According to the allocation status, the organization resource is allocated to a corresponding organization; wherein the organization includes at least two applications, and each application corresponds to a different area; The organizational resources are allocated to the application based on the zone and the quota status of the application.

2. The resource allocation method according to claim 1, characterized in that: The allocating the organizational resources to the application based on the zone and the quota status of the application includes: Determining a deployment time for each of the applications based on the region; Detecting whether the usage time of the application reaches the allocation time; If the usage time of the application reaches the allocation time, the organizational resources are allocated to the application based on the quota status of the application.

3. The resource allocation method according to claim 1, characterized in that: The method further comprises: Obtain configuration information corresponding to the first target object; Allocating preset permissions to the first target object based on the configuration information; Acquire an execution operation of a first target object, and determine a target permission of the first target object; Detecting whether the target permission is consistent with the preset permission; If the target permission matches the preset permission, the application is processed in response to the execution operation of the first target object.

4. The resource allocation method according to claim 3, characterized in that: The method further comprises: In response to the configuration operation of the second target object, based on the preset permission and the permission period, determining the resource occupation state of the application at each stage within the permission period; Based on the resource occupancy status, the organizational resources are allocated to various stages within the authority cycle.

5. The resource allocation method according to claim 4, characterized in that: The allocating the organizational resources to each stage in the permission cycle based on the resource occupancy status includes: Obtaining a status baseline; wherein the status baseline is used to characterize the range value of the resource occupancy status at each stage; Detecting whether the resource occupancy status at each stage is within the status baseline; If the resource occupancy status is within the status baseline, the organizational resources are allocated to various stages within the authority cycle based on the resource occupancy status.

6. The resource allocation method according to claim 5, characterized in that: The method further comprises: If the resource occupancy state is not within the state baseline, detecting whether the resource occupancy state is greater than a maximum value of the state baseline; If the resource occupancy status is greater than the maximum value of the status baseline, based on the maximum value, the organizational resources are allocated to each stage within the authority cycle; If the resource occupancy status is less than a minimum value of the status baseline, the organizational resources are allocated to various stages within the authority cycle based on the minimum value.

7. The resource allocation method according to any one of claims 1 to 6, characterized in that: The method further comprises: Get the processing permissions of each application under the current organization; If the application is in other organizations, the processing permissions corresponding to the application are synchronized to the other organizations.

8. A resource allocation device, characterized in that: The device comprises: An allocation status acquisition module is used to obtain the allocation status of organizational resources; A first allocation module, configured to allocate the organizational resources to a corresponding organization according to the allocation status; wherein the organization includes at least two applications, and each of the applications corresponds to a different area; The second allocation module is used to allocate the organizational resources to the application based on the zone and the quota status of the application.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the resource allocation method according to any one of claims 1 to 7.

10. A computer program product, characterized in that The method comprises computer instructions, wherein the computer instructions are used to cause a computer to execute the resource allocation method according to any one of claims 1 to 7.