Cloud computing architecture multi-tenant task resource allocation scheduling method and device
By creating tenants in a cloud computing environment, dividing permissions, allocating computing resources, and scheduling resources based on the K8S platform, the problem of resource allocation and scheduling among multi-level tenants is solved, efficient utilization and isolation of resources is achieved, and cloud computing is improved Overall performance of the platform.
Patent Information
- Application Number
- CN202411056159.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-11-15
AI Technical Summary
In the cloud computing environment, when multi-level tenants share the same resource pool, how to effectively perform resource allocation, resource isolation and resource scheduling to solve resource conflicts between different users and duplicate allocation of public service resources.
By creating tenants and dividing permissions within the tenant, computing resources are allocated according to permissions, and resource scheduling is performed based on computing resources, and resources are managed using the public namespace and independent namespace of the K8S platform to achieve flexible allocation and scheduling of resources.
It realizes efficient utilization of resources, reduces the consumption of public service resources, solves the problems of resource allocation and scheduling in complex cloud computing environments, and improves the overall utilization and availability of resources.
Smart Images

Figure CN118964021A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a method and device for allocating and scheduling multi-tenant task resources in a cloud computing architecture. Background Art
[0002] With the development of cloud computing technology, the traditional computing model is gradually being replaced by the on-demand and easy-to-scale cloud computing model. Multi-tenant management and isolation have become important issues in cloud computing architecture.
[0003] In a cloud computing environment, multiple tenants share the same resource pool, so appropriate management and isolation measures must be taken to ensure resource allocation, resource isolation and resource scheduling among different users. Summary of the invention
[0004] The embodiments of the present invention provide a method and device for allocating and scheduling multi-tenant task resources in a cloud computing architecture, which can solve the problems of resource allocation, resource isolation and resource scheduling between different levels and different users when multi-level tenants share the same resource pool in a complex cloud computing environment; and solve the problem of repeated allocation of public service resources in a unified cloud computing platform environment.
[0005] According to one aspect of the present invention, a method for allocating and scheduling multi-tenant task resources in a cloud computing architecture is provided, comprising:
[0006] Create tenants and divide permissions within the tenants;
[0007] Allocate computing resources corresponding to different permissions within the tenant according to the permission division;
[0008] Resource scheduling is performed based on the computing resources.
[0009] Optionally, the creating a tenant and dividing permissions within the tenant includes:
[0010] Determine the Region where the service needs to be provided, create the tenant in the Region and assign a tenant administrator;
[0011] Creating a subtenant through the tenant administrator and assigning a subtenant administrator;
[0012] The sub-tenant administrator assigns common users, and assigns different permissions to different common users.
[0013] Optionally, the allocating computing resources corresponding to different permissions within the tenant according to the permission division includes:
[0014] Opening public service resources and public computing resources in the Region, wherein the public service resources and the public computing resources are located in the public namespace datalake of the K8S platform;
[0015] Allocate a private computing resource package according to the allocation application of the tenant, create an independent namespace in the K8S platform based on the resource package applied for, and allocate computing resources;
[0016] The computing resources are allocated to the sub-tenants by the tenant, and the computing resources are allocated according to the permissions of users in the sub-tenants.
[0017] Optionally, allocating the computing resources according to the permissions of the users in the sub-tenant includes:
[0018] Determine the user's permissions, including: data integration resource usage permissions, data development resource usage permissions, data security resource usage permissions, data quality inspection resource usage permissions, data asset resource usage permissions, and data model statistics resource usage permissions;
[0019] Computing resources are allocated to different computing tasks through user permissions.
[0020] Optionally, the performing resource scheduling based on the computing resources includes:
[0021] Create a scheduling center, where the scheduling center and the public computing resources are located in the same namespace of the K8S platform;
[0022] Allocating a computing task group to each tenant, and registering the computing resources corresponding to the tenant to the computing task group of the tenant;
[0023] A computing task is registered, and resource scheduling is performed based on the computing task.
[0024] Optionally, the registration computing task includes:
[0025] By creating a computing task by the user, a list of computing resources available to the user is obtained;
[0026] Binding the computing task to the computing resource so that the bound computing resources constitute a virtual resource pool for the computing task;
[0027] The scheduling strategy information is registered in the designated task group of the scheduling center.
[0028] Optionally, performing resource scheduling based on the computing task includes:
[0029] The scheduling center detects the available status of each computing resource in the virtual resource pool and eliminates abnormal resources;
[0030] Allocating the computing resources to the computing tasks according to a round-robin strategy;
[0031] The real-time high availability of the computing task is achieved through the virtual resource pool.
[0032] According to another aspect of the present invention, a multi-tenant task resource allocation and scheduling device for a cloud computing architecture is provided, comprising:
[0033] A division unit, used to create tenants and divide permissions within the tenants;
[0034] An allocation unit, configured to allocate computing resources corresponding to different permissions within the tenant according to the permission division;
[0035] A scheduling unit is used to perform resource scheduling based on the computing resources.
[0036] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0037] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the multi-tenant task resource allocation and scheduling method of the cloud computing architecture described in any embodiment of the present invention.
[0038] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cloud computing architecture multi-tenant task resource allocation and scheduling method described in any embodiment of the present invention when executed.
[0039] The embodiment of the present invention provides a method and device for allocating and scheduling multi-tenant task resources in a cloud computing architecture, which creates tenants and divides permissions within the tenants; allocates computing resources corresponding to different permissions within the tenants according to the permission division; and performs resource scheduling based on the computing resources. The solution of the embodiment of the present invention implements a solution for allocating and scheduling multi-tenant task resources based on a cloud computing architecture. Compared with the common multi-tenant task resource allocation and scheduling methods, it reduces the consumption of public service resources, solves the problems of resource allocation, resource isolation and resource scheduling between different levels and different users in a complex cloud computing environment where multi-level tenants share the same resource pool; and solves the problem of repeated allocation of public service resources in a unified cloud computing platform environment.
[0040] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0042] Figure 1 It is a flow chart of a method for allocating and scheduling multi-tenant task resources in a cloud computing architecture provided by an embodiment of the present invention;
[0043] Figure 2 is a schematic diagram of user hierarchy and computing resource allocation provided by an embodiment of the present invention;
[0044] Figure 3 is a schematic diagram of resource allocation provided by an embodiment of the present invention;
[0045] Figure 4 is a schematic diagram of a dispatching center provided by an embodiment of the present invention;
[0046] Figure 5 It is a structural diagram of a multi-tenant task resource allocation and scheduling device for a cloud computing architecture provided by an embodiment of the present invention;
[0047] Figure 6 It is a structural diagram of an electronic device for implementing the cloud computing architecture multi-tenant task resource allocation and scheduling method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions 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, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0049] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0050] like Figure 1 As shown, an embodiment of the present invention provides a method for allocating and scheduling multi-tenant task resources in a cloud computing architecture, and the method may include the following steps:
[0051] S110: Create a tenant and divide permissions within the tenant.
[0052] In the embodiment of the present invention, step S110 specifically includes:
[0053] Determine the Region where the service needs to be provided, create the tenant in the Region and assign a tenant administrator;
[0054] Creating a subtenant through the tenant administrator and assigning a subtenant administrator;
[0055] The sub-tenant administrator assigns common users, and assigns different permissions to different common users.
[0056] Figure 2 is a schematic diagram of a user hierarchy and computing resource allocation provided by an embodiment of the present invention, such as Figure 2 As shown, first select the region where the service needs to be provided, create a tenant in the selected region, and assign a tenant administrator. The tenant administrator can further create sub-tenants and designate sub-tenant administrators. Several ordinary users can be assigned to the sub-tenants. Ordinary users in the sub-tenants can be configured with different resource usage permissions.
[0057] S120. Allocate computing resources corresponding to different permissions within the tenant according to the permission division.
[0058] The resources in the present invention include three categories: Region-level public service resources, Region-level public computing resources, and tenant-level computing resources. A group of public service resource packages and several groups of public computing resource packages are allocated to each distributed cluster node (i.e., Region); platform tenants can apply to create several groups of private computing resource packages as needed; tenants can allocate the applied computing resource packages to sub-tenants as needed, and users in sub-tenants can use computing resources according to their permissions. Region-level public service resources and Region-level public computing resources can be used by tenants at all levels.
[0059] The present invention provides public service resources and public computing resources to all tenants within the Region to meet the needs of running public application services and public computing tasks with low resource consumption; supports allocating computing resources of a certain specification to a certain tenant in the form of proprietary computing resource packages, and allows tenants to further allocate resource packages to sub-tenants. Within the sub-tenants, the specific computing resource types that users can use can be restricted through permission control.
[0060] The multi-level computing resource allocation method for tenants in this example can support more flexible support for complex cloud resource allocation needs compared to conventional single-level multi-tenant solutions. According to the judgment of resource load, resources with smaller load on single tenants are promoted to public service resource packages and public computing resource packages, and the computing resource pool is shared, which can improve the overall resource utilization of the platform.
[0061] In the embodiment of the present invention, step S120 specifically includes:
[0062] Opening public service resources and public computing resources in the Region, wherein the public service resources and the public computing resources are located in the public namespace datalake of the K8S platform;
[0063] Allocate a private computing resource package according to the allocation application of the tenant, create an independent namespace in the K8S platform based on the resource package applied for, and allocate computing resources;
[0064] The computing resources are allocated to the sub-tenants by the tenant, and the computing resources are allocated according to the permissions of users in the sub-tenants.
[0065] Specifically, Figure 2 As shown in the figure, create a region for the service and open public service resources and public computing resources in the region. The public service resources and public computing resources are located in the public namespace datalake of the K8S platform and provide services to all tenants in the same region.
[0066] Create tenants in the selected Region. Tenants apply for the required private computing resource packages. For each batch of resource packages applied for, an independent namespace is opened in the K8S platform and resources are allocated. Different computing resources are located in different pods. You can apply to create computing resources with specified CPU and memory specifications on a specified server node. The naming rules for independent namespaces are:
[0067] ns-idlf-scheduler-yyyyMMdd+6-digit sequence number.
[0068] Provide a resource optimization strategy, provide a lower threshold α, an upper threshold β, based on the specified specification X, the actual use specification Y∈[αX,βX], according to the computing task requirements for elastic scaling; provide a JVM optimization strategy, according to the percentage γ, set the JVM available memory.
[0069] Tenants allocate the resources they apply for to sub-tenants. The same resource can be allocated to multiple sub-tenants, and one sub-tenant can use multiple resources.
[0070] In an embodiment of the present invention, allocating the computing resources according to the permissions of the users in the sub-tenant includes:
[0071] Determine the user's permissions, including: data integration resource usage permissions, data development resource usage permissions, data security resource usage permissions, data quality inspection resource usage permissions, data asset resource usage permissions, and data model statistics resource usage permissions;
[0072] Computing resources are allocated to different computing tasks through user permissions.
[0073] Users in a tenant use resources in a subtenant based on their permissions, including whether they have permission to use data integration resources, data development resources, data security resources, data quality inspection resources, data asset resources, data model statistics resources, etc. Users in a subtenant can allocate different resources to different computing tasks. Figure 3 It is a schematic diagram of resource allocation provided by an embodiment of the present invention.
[0074] S130. Perform resource scheduling based on the computing resources.
[0075] In the embodiment of the present invention, step S130 specifically includes:
[0076] Create a scheduling center, where the scheduling center and the public computing resources are located in the same namespace of the K8S platform;
[0077] Allocating a computing task group to each tenant, and registering the computing resources corresponding to the tenant to the computing task group of the tenant;
[0078] A computing task is registered, and resource scheduling is performed based on the computing task.
[0079] Figure 4 This is a schematic diagram of a scheduling center provided by an embodiment of the present invention, wherein a scheduling center is created to provide a public resource scheduling center. The scheduling center is created by default when the Region is deployed; the scheduling center and the public computing resources are located in the same namespace of K8S, and the scheduling center is deployed as an independent POD. The resource scheduling center application service is deployed in a dual-copy pod mode, with the pod names idlf-scheduler-0 and idlf-scheduler-1 to ensure HA high availability; the pod name of the computing resource in each space is idlf-executor-depl.
[0080] Assign tenant computing task groups. When creating a tenant, the system assigns a task group to the tenant. The task group is named as follows: subtenant space ID (32-bit UUID) + "_" + task type. For example: subtenant space ID (32-bit UUID) + "_" + "dataquality".
[0081] Register computing resources. After allocating resources to the subtenant in S203, register the resources in the corresponding computing task group. The group identifier is: subtenant space ID (32-bit UUID) + "_" + task type.
[0082] In the embodiment of the present invention, the registration computing task includes:
[0083] By creating a computing task by the user, a list of computing resources available to the user is obtained;
[0084] Binding the computing task to the computing resource so that the bound computing resources constitute a virtual resource pool for the computing task;
[0085] The scheduling strategy information is registered in the designated task group of the scheduling center.
[0086] Among them, registering computing tasks, users in subtenants, create computing tasks, and obtain a list of available computing resources based on the subtenant space ID and task type. Tasks can be bound to several resources; multiple resources constitute a virtual resource pool for the task. After binding, the scheduling policy information is registered in the designated task group of the scheduling center.
[0087] In an embodiment of the present invention, resource scheduling is performed based on the computing task, including:
[0088] The scheduling center detects the available status of each computing resource in the virtual resource pool and eliminates abnormal resources;
[0089] Allocating the computing resources to the computing tasks according to a round-robin strategy;
[0090] The real-time high availability of the computing task is achieved through the virtual resource pool.
[0091] To perform resource scheduling, the scheduling center detects the available status of each computing resource in the virtual resource pool, eliminates abnormal resources, and allocates computing resources to the task according to the polling strategy; the real-time high availability of task execution resources is achieved through the virtual resource pool.
[0092] Compared with the prior art, the present invention has the following beneficial effects:
[0093] 1. Public application service resources with light load for single tenants are opened to users in the region in the form of public service resource packages, and public computing task resources with light load are opened to users in the region in the form of public computing resource packages, thereby improving resource utilization efficiency.
[0094] 2. Based on the traditional direct allocation by tenant space, it supports the allocation and scheduling of resources at multiple levels, which is more flexible.
[0095] 3. Through built-in optimization strategies, it supports elastic scaling of computing specifications and optimizes resource utilization.
[0096] 4. By supporting virtual resource pools and combining K8S's Always automatic restart strategy, more flexible allocation of resources can be achieved while ensuring high availability of resources at the same time.
[0097] like Figure 5 As shown, an embodiment of the present invention provides a multi-tenant task resource allocation and scheduling device in a cloud computing architecture, comprising:
[0098] A division unit 510, configured to create tenants and divide permissions within the tenants;
[0099] An allocation unit 520, configured to allocate computing resources corresponding to different permissions within the tenant according to the permission division;
[0100] The scheduling unit 530 is used to perform resource scheduling based on the computing resources.
[0101] Optionally, the division unit 510 is specifically configured to perform:
[0102] Determine the Region where the service needs to be provided, create the tenant in the Region and assign a tenant administrator;
[0103] Creating a subtenant through the tenant administrator and assigning a subtenant administrator;
[0104] The sub-tenant administrator assigns common users, and assigns different permissions to different common users.
[0105] Optionally, the allocation unit 520 is specifically configured to execute:
[0106] Opening public service resources and public computing resources in the Region, wherein the public service resources and the public computing resources are located in the public namespace datalake of the K8S platform;
[0107] Allocate a private computing resource package according to the allocation application of the tenant, create an independent namespace in the K8S platform based on the resource package applied for, and allocate computing resources;
[0108] The computing resources are allocated to the sub-tenants by the tenant, and the computing resources are allocated according to the permissions of users in the sub-tenants.
[0109] Optionally, the allocating unit 520, when allocating the computing resources according to the permissions of the user in the sub-tenant, specifically performs:
[0110] Determine the user's permissions, including: data integration resource usage permissions, data development resource usage permissions, data security resource usage permissions, data quality inspection resource usage permissions, data asset resource usage permissions, and data model statistics resource usage permissions;
[0111] Computing resources are allocated to different computing tasks through user permissions.
[0112] Optionally, the scheduling unit 530 is specifically configured to execute:
[0113] Create a scheduling center, where the scheduling center and the public computing resources are located in the same namespace of the K8S platform;
[0114] Allocating a computing task group to each tenant, and registering the computing resources corresponding to the tenant to the computing task group of the tenant;
[0115] A computing task is registered, and resource scheduling is performed based on the computing task.
[0116] Optionally, the scheduling unit 530, when executing the registration computing task, specifically performs:
[0117] By creating a computing task by the user, a list of computing resources available to the user is obtained;
[0118] Binding the computing task to the computing resource so that the bound computing resources constitute a virtual resource pool for the computing task;
[0119] The scheduling strategy information is registered in the designated task group of the scheduling center.
[0120] Optionally, the scheduling unit 530, when performing resource scheduling based on the computing task, specifically performs:
[0121] The scheduling center detects the available status of each computing resource in the virtual resource pool and eliminates abnormal resources;
[0122] Allocating the computing resources to the computing tasks according to a round-robin strategy;
[0123] The real-time high availability of the computing task is achieved through the virtual resource pool.
[0124] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the multi-tenant task resource allocation and scheduling device of the cloud computing architecture. In other embodiments of the present invention, the multi-tenant task resource allocation and scheduling device of the cloud computing architecture may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0125] The information interaction, execution process and other contents between the units in the above-mentioned device are based on the same concept as the embodiment of the method of the present invention. For specific contents, please refer to the description in the embodiment of the method of the present invention, and no further description is given here.
[0126] Figure 6 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0127] like Figure 6As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0128] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0129] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 11 executes the various methods and processes described above, such as a multi-tenant task resource allocation and scheduling method for a cloud computing architecture.
[0130] In some embodiments, the cloud computing architecture multi-tenant task resource allocation and scheduling method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the cloud computing architecture multi-tenant task resource allocation and scheduling method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the cloud computing architecture multi-tenant task resource allocation and scheduling method by any other appropriate means (for example, by means of firmware).
[0131] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0132] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0133] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0134] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0135] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0136] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0137] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0138] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A multi-tenant task resource allocation and scheduling method for cloud computing architecture, characterized in that: include: Create tenants and divide permissions within said tenants; Allocate computing resources corresponding to different permissions within the tenant according to the permission division; Resource scheduling is performed based on the computing resources.
2. The method according to claim 1, characterized in that The creating of tenants and dividing permissions within the tenants includes: Determine the Region where the service needs to be provided, create the tenant in the Region and assign a tenant administrator; Creating a subtenant through the tenant administrator and assigning a subtenant administrator; The sub-tenant administrator assigns common users, and assigns different permissions to different common users.
3. The method according to claim 2, characterized in that The allocating computing resources corresponding to different permissions within the tenant according to the permission division includes: Opening public service resources and public computing resources in the Region, wherein the public service resources and the public computing resources are located in the public namespace datalake of the K8S platform; Allocate a private computing resource package according to the allocation application of the tenant, create an independent namespace in the K8S platform based on the resource package applied for, and allocate computing resources; The computing resources are allocated to the sub-tenants by the tenant, and the computing resources are allocated according to the permissions of users in the sub-tenants.
4. The method according to claim 3, characterized in that The allocating the computing resources according to the permissions of the users in the sub-tenant includes: Determine the user's permissions, including: data integration resource usage permissions, data development resource usage permissions, data security resource usage permissions, data quality inspection resource usage permissions, data asset resource usage permissions, and data model statistics resource usage permissions; Computing resources are allocated to different computing tasks through user permissions.
5. The method according to claim 2, characterized in that: The performing resource scheduling based on the computing resources includes: Create a scheduling center, where the scheduling center and the public computing resources are located in the same namespace of the K8S platform; Allocating a computing task group to each tenant, and registering the computing resources corresponding to the tenant to the computing task group of the tenant; A computing task is registered, and resource scheduling is performed based on the computing task.
6. The method according to claim 5, characterized in that The registration calculation task includes: By creating a computing task by the user, a list of computing resources available to the user is obtained; Binding the computing task to the computing resource so that the bound computing resources constitute a virtual resource pool for the computing task; The scheduling strategy information is registered in the designated task group of the scheduling center.
7. The method according to claim 6, characterized in that The performing resource scheduling based on the computing task includes: The scheduling center detects the available status of each computing resource in the virtual resource pool and eliminates abnormal resources; Allocating the computing resources to the computing tasks according to a round-robin strategy; The real-time high availability of the computing task is achieved through the virtual resource pool.
8. A multi-tenant task resource allocation and scheduling device for cloud computing architecture, characterized in that: include: A division unit, used to create tenants and divide permissions within the tenants; An allocation unit, configured to allocate computing resources corresponding to different permissions within the tenant according to the permission division; A scheduling unit is used to perform resource scheduling based on the computing resources.
9. An electronic device, characterized in that include: at least one processor; And a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the cloud computing architecture multi-tenant task resource allocation and scheduling method described in any one of claims 1-7.
10. A computer readable medium, characterized in that The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the cloud computing architecture multi-tenant task resource allocation and scheduling method according to any one of claims 1 to 7 when executed.
