CN113420269B - Method, system, device and medium for managing multiple tenants based on big data platform - Google Patents
Method, system, device and medium for managing multiple tenants based on big data platform Download PDFInfo
- Publication number
- CN113420269B CN113420269B CN202110529045.8A CN202110529045A CN113420269B CN 113420269 B CN113420269 B CN 113420269B CN 202110529045 A CN202110529045 A CN 202110529045A CN 113420269 B CN113420269 B CN 113420269B
- Authority
- CN
- China
- Prior art keywords
- tenant
- resources
- administrator
- module
- developer
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000002955 isolation Methods 0.000 claims description 28
- 230000004044 response Effects 0.000 claims description 12
- 238000004590 computer program Methods 0.000 claims description 7
- 238000013468 resource allocation Methods 0.000 claims description 7
- 238000012545 processing Methods 0.000 claims description 3
- 238000012423 maintenance Methods 0.000 abstract description 3
- 238000011161 development Methods 0.000 abstract description 2
- 238000007726 management method Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000000007 visual effect Effects 0.000 description 3
- 238000013523 data management Methods 0.000 description 2
- 230000014509 gene expression Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Computing Systems (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses a method, a system, equipment and a storage medium for managing multiple tenants based on a big data platform, wherein the method comprises the following steps: creating a user module and a tenant module, creating a tenant administrator at the user module, and creating a tenant at the tenant module; distributing corresponding tenant resources to each tenant, and distributing each tenant to a corresponding tenant administrator; creating a plurality of developer accounts in the user module, and dividing tenant resources corresponding to tenants belonging to the same tenant administrator into the developer accounts corresponding to the tenant administrator; and view and use owned resources and permissions in the developer account. According to the invention, through establishing the user system and the tenant system, multiple tenants can realize authority management of multiple clusters, multiple resources and fine granularity, the concept is clear, the use is convenient, and the operation, maintenance and development efficiency is effectively improved.
Description
Technical Field
The present invention relates to the field of big data platforms, and more particularly, to a method, a system, a computer device, and a readable medium for managing multiple tenants based on a big data platform.
Background
With the popularization of big data platforms, more and more service data and service scenes are continuously migrated to the big data platforms. Taking an existing big data platform (represented by Hadoop as a typical example) as an example, a plurality of types of data resources are collected, and different types of data resources are often managed by different data management components in the big data platform respectively. For example: a distributed file system (typified by HDFS) manages file-type data objects such as directories and files; the distributed type column database system (represented by Hbase) manages data objects such as namespaces, tables, column families, columns and the like; while distributed table systems (typified by Hive) manage data objects such as databases, tables, fields, etc. At the same time, different data management components use different access control policies to protect the data objects they manage from unauthorized access operations.
This makes it very difficult to uniformly allocate and manage distributed storage resources, computing resources and service resources on a large data platform in a multi-tenant manner. In the prior art, users and resources are mixed together, which brings much inconvenience to the users.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method, a system, a computer device, and a computer readable storage medium for managing multiple tenants based on a big data platform, and the method and the system visually create users and tenants and perform fine-grained resource partitioning in a manner of combining a user module and a tenant module, thereby effectively improving efficiency of operation and maintenance staff and developers, and implementing convenient and efficient management of multiple tenants.
Based on the above purpose, an aspect of the embodiments of the present invention provides a method for managing multiple tenants based on a big data platform, including the following steps: creating a user module and a tenant module, creating a tenant administrator at the user module, and creating a tenant at the tenant module; distributing corresponding tenant resources to each tenant, and distributing each tenant to a corresponding tenant administrator; creating a plurality of developer accounts in the user module, and dividing tenant resources corresponding to tenants belonging to the same tenant administrator into the developer accounts corresponding to the tenant administrator; and view and use owned resources and permissions in the developer account.
In some embodiments, the method further comprises: roaming services are set up in the cluster where resource allocation is needed for display in the resource list.
In some embodiments, the allocating the corresponding tenant resource to each of the tenants includes: and responding to the existence of a plurality of clusters under the tenant, creating a tenant directory of resources corresponding to the tenant in each cluster, and storing the information of the tenant directory into a database.
In some embodiments, the dividing tenant resources corresponding to tenants belonging to the same tenant administrator into developer accounts corresponding to the tenant administrator includes: judging whether the tenant type of the tenant is a sharing type or an isolation type; and in response to the fact that the tenant type of the tenant is a sharing type, all tenant resources of the tenant are shared to all developer accounts corresponding to the tenant administrator.
In some embodiments, the dividing tenant resources corresponding to tenants belonging to the same tenant administrator into developer accounts corresponding to the tenant administrator includes: judging whether the tenant type of the tenant is a sharing type or an isolation type; and in response to that the tenant type of the tenant is an isolation type, dividing the tenant resources of the tenant into a plurality of parts according to requirements, and allocating each part to only one developer account corresponding to the tenant administrator.
In some embodiments, the dividing tenant resources corresponding to tenants belonging to the same tenant administrator into developer accounts corresponding to the tenant administrator includes: judging whether the tenant type of the tenant is a sharing type or an isolation type; and in response to the tenant type of the tenant being an isolation type, allocating all of the tenant resources of the tenant to one developer account corresponding to the tenant administrator.
In some embodiments, the dividing tenant resources corresponding to tenants belonging to the same tenant administrator into developer accounts corresponding to the tenant administrator includes: creating a catalog of the developer account usage in the tenant catalog in the cluster.
In another aspect of the embodiments of the present invention, a system for managing multiple tenants based on a big data platform is provided, including: the system comprises a creation module, a tenant module and a processing module, wherein the creation module is configured to create a user module and a tenant module, create a tenant administrator at the user module and create a tenant at the tenant module; the first allocation module is configured to allocate corresponding tenant resources to each tenant, and allocate each tenant to a corresponding tenant administrator; the second distribution module is configured to create a plurality of developer accounts in the user module, and divide tenant resources corresponding to tenants belonging to the same tenant administrator into the developer accounts corresponding to the tenant administrator; and an execution module configured to view and use the owned resources and permissions in the developer account.
In another aspect of the embodiments of the present invention, there is also provided a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method as above.
In a further aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, in which a computer program for implementing the above method steps is stored when the computer program is executed by a processor.
The invention has the following beneficial technical effects:
(1) A user system and a tenant system are respectively established, multiple tenants can realize authority management of multiple clusters, multiple resources and fine granularity, the concept is clear, the use is convenient, and the operation and maintenance and development efficiency are effectively improved;
(2) In a user system, users are divided into platform administrators, cluster administrators, tenant administrators and developer accounts through different responsibilities, the platform administrators, the cluster administrators, the tenant administrators and the developer accounts respectively perform own functions, and the tenant system is communicated, so that the management is convenient;
(3) The multi-tenant management system can manage a plurality of clusters and a plurality of resources in a big data platform, the tenant types are divided into isolation types and sharing types, the requirements of different scenes are met, fine-grained resource authority division is achieved, and the authority can be controlled more flexibly.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of an embodiment of a method for managing multiple tenants based on a big data platform according to the present invention;
FIG. 2 is a schematic diagram of a user architecture in an embodiment of the invention;
FIG. 3 is a schematic diagram of a tenant architecture in an embodiment of the invention;
FIG. 4 is a schematic hardware configuration diagram of an embodiment of a large data platform-based multi-tenant management computer device provided in the present invention;
FIG. 5 is a schematic diagram of an embodiment of a computer storage medium for managing multiple tenants based on a big data platform according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are used for distinguishing two entities with the same name but different names or different parameters, and it should be noted that "first" and "second" are only used for convenience of expression and should not be construed as a limitation to the embodiments of the present invention, and no description is given in the following embodiments.
In a first aspect of the embodiments of the present invention, an embodiment of a method for managing multiple tenants based on a big data platform is provided. Fig. 1 is a schematic diagram illustrating an embodiment of a method for managing multiple tenants based on a big data platform provided by the present invention. As shown in fig. 1, the embodiment of the present invention includes the following steps:
the method comprises the following steps that S1, a user creating module and a tenant module are created, a tenant administrator is created in the user module, and a tenant is created in the tenant module;
s2, distributing corresponding tenant resources to each tenant, and distributing each tenant to a corresponding tenant administrator;
s3, creating a plurality of developer accounts in the user module, and dividing tenant resources corresponding to tenants belonging to the same tenant administrator into the developer accounts corresponding to the tenant administrator; and
and S4, checking and using the owned resources and the rights in the account of the developer.
The basic idea of the embodiment of the invention is as follows: creating a tenant administrator at a user module, creating a tenant at a tenant module, setting a tenant name and a tenant category, adding tenant resources, and then allocating the tenant to the tenant administrator; a tenant administrator logs in and creates a developer account in a user module; in a tenant module, dividing tenant resources into developer accounts; the developer account is logged in, and can view and use the resources allocated to the developer account.
First, a user system and a tenant system in an embodiment of the present invention are described.
Fig. 2 is a schematic diagram illustrating a user architecture in an embodiment of the present invention, and as shown in fig. 2, a user architecture includes four roles of a platform administrator, a cluster administrator, a tenant administrator, and a developer account. The platform administrator is a super user, can add a license and create a cluster, and has all the rights of operating the cluster; a cluster administrator may manage all clusters, but has no authority to create clusters; the tenant administrator has tenant resources, and can allocate the tenant resources to the developer account; the developer account is a common user and can only use the resources and the rights allocated to the developer account. The platform administrator is created based on the platform, and after the platform administrator creates the cluster, the platform administrator correspondingly creates the corresponding cluster administrator, so that the platform administrator can create the cluster administrator. In addition, both the platform administrator and the cluster administrator may create a tenant administrator, which may create a developer account.
Fig. 3 is a schematic diagram illustrating an architecture of a tenant architecture in an embodiment of the present invention, and as shown in fig. 3, a tenant architecture includes a plurality of tenants, each tenant may include a plurality of clusters, and each cluster includes various resources.
The method comprises the steps of creating a user module and a tenant module, creating a tenant administrator at the user module, and creating a tenant at the tenant module. The tenant administrator is created, and may be tentadamin, for example, one tenant administrator may manage multiple tenants, and one tenant may only have one tenant administrator. The method comprises the steps of creating a tenant, firstly setting a tenant name which can be, for example, tenant01, then selecting a tenant type, wherein the tenant type comprises an isolation type and a sharing type, the isolation type tenant can further perform resource authority division, resources owned by developer accounts are isolated, the sharing type tenant can only divide the whole amount of tenant resources into the developer accounts, and the developer accounts share the resources in the tenant.
In some embodiments, the method further comprises: and setting roaming service in the cluster needing resource allocation so as to display the roaming service in a resource list. Each cluster requiring resource allocation is guaranteed to be equipped with a range service, and one range service only manages resource permissions in the corresponding cluster.
And allocating corresponding tenant resources to each tenant, and allocating each tenant to a corresponding tenant administrator. For example, the tenant resources include HDFS, HBase, hive, and Yarn, and specifically may be: the HDFS in the cluster 1 is set to have the capacity of 1T, and the number of files is limited to 10000; the HDFS in the cluster 2 is set to have the capacity of 2T and the file number is limited to 20000; HBase in the cluster 1, wherein the naming space is tentat 01; hive in cluster 1, with the library name tent 01; yarn in cluster 1, queue name tenant01, queue value 60%. The tenant01 is assigned to the tenant administrator tenantadmin.
When a plurality of clusters exist in the management platform, when tenant resources are allocated to the tenants, a plurality of clusters (the clusters need to be provided with a range service) for candidate display are displayed in the resource list, and if the resources of the clusters are selected, the tenants contain the cluster resources. It is noted that, rather than the tenant managing multiple clusters, here it is simply said that the tenant contains multiple cluster resources. The tenant includes a plurality of cluster resources, and the tenant administrator manages the tenant, so that the tenant administrator can manage a plurality of clusters, but can only manage the clusters included in the corresponding tenant.
In some embodiments, the allocating the corresponding tenant resource to each of the tenants includes: and responding to the existence of a plurality of clusters under the tenant, creating a tenant directory of resources corresponding to the tenant in each cluster, and storing the information of the tenant directory into a database. If the tenant contains a plurality of cluster resources, at this time, corresponding resources are divided in each cluster through a code program, for example, an HDFS directory is created in each cluster by the HDFS resource, for example: tennt/tennt 01, and then stores the information in a database.
And creating a plurality of developer accounts in the user module, and dividing tenant resources corresponding to tenants belonging to the same tenant administrator into the developer accounts corresponding to the tenant administrator. The tenant administrator tenantadmin logs in the system, and developer accounts user01, user02 and user03 are respectively created on a user interface. In a tenant module, dividing a tenant01 into a user01, a user02 and a user03 respectively, specifically, dividing the tenant01 into a directory user01 of an HDFS of a user01 cluster 1, wherein the capacity is 200G, the file number is limited to 500, and the tenant module has read, write and execution permissions; the Yarn queue user01 of cluster 1, with a queue value of 50%, specifically submits and manages permissions. The directory user02 is divided into the HDFS in the user02 cluster 2, the capacity is 500G, the number of files is 1000, and the directory user has read-write permission. And table1 in the command space tenat 01 of the HBase in the user03 cluster 1 is divided, and all execution authorities are possessed.
In some embodiments, the dividing tenant resources corresponding to tenants belonging to the same tenant administrator to developer accounts corresponding to the tenant administrator includes: judging whether the tenant type of the tenant is a sharing type or an isolation type; and responding to the fact that the type of the tenant is a sharing type, and sharing all tenant resources of the tenant to all developer accounts corresponding to the tenant administrator. If the tenant type of the tenant is a sharing type, the tenant resources of the tenant can be shared in the developer accounts owned by the tenant administrator.
In some embodiments, the dividing tenant resources corresponding to tenants belonging to the same tenant administrator to developer accounts corresponding to the tenant administrator includes: judging whether the tenant type of the tenant is a sharing type or an isolation type; and in response to that the tenant type of the tenant is an isolation type, dividing the tenant resources of the tenant into a plurality of parts according to requirements, and allocating each part to only one developer account corresponding to the tenant administrator. In some cases, a tenant's tenant resources may be divided into multiple portions, each portion being assigned to a different developer account. Tenant resources of the tenant can be further subdivided into developer accounts, for example, directories, sizes and file numbers of the HDFS can be divided, and one or more of read, write and execution permissions can be selected, so that resources among the developer accounts are isolated and cannot be viewed and used mutually. When the tenant administrator further divides the isolation type tenant resources into developer accounts, a plurality of cluster resources owned by the tenant are displayed in the list, one or more clusters can be selected, and the tenant resources are divided into a certain developer account, for example, the HDFS resources in the cluster 1 in the tenant tenat 01 are divided into a part of the developer account user 01.
In some embodiments, the dividing tenant resources corresponding to tenants belonging to the same tenant administrator to developer accounts corresponding to the tenant administrator includes: judging whether the tenant type of the tenant is a sharing type or an isolation type; and responding to the fact that the type of the tenant is an isolation type, and distributing all tenant resources of the tenant to one developer account corresponding to the tenant administrator. In some cases, tenant resources of a tenant may all be allocated to one developer account.
In some embodiments, the dividing tenant resources corresponding to tenants belonging to the same tenant administrator into developer accounts corresponding to the tenant administrator includes: creating a catalog of the developer account usage in the tenant catalog in a cluster. Resources may be further divided among the various clusters, such as HDFS resources may create a catalog of developer account usage under the created tenant catalog, for example: the resource authority management can be managed through a Ranger service, authority management information of each resource is stored in the resource authority management information, for example, a directory/tenant/tenant 01/user01 can only be used by the user01 and has read-write authority, and other developer accounts cannot be seen and used.
Owned resources and permissions are viewed and used in the developer account. When the developer account uses resources, the program firstly checks whether the developer account in the range service has the right, if so, the program can continue to operate, and if not, the program terminates the operation, for example, a user01 can check the directory of/tenant/tenant 01/user01, but when a user02 checks the directory of/tenant/tenant 01/user01, a right error prompt is reported, and the content in the user cannot be displayed.
The embodiment of the invention can carry out multi-tenant fine-grained resource authority management in a system-level visual mode, thereby realizing a multi-tenant management method which is uniform, efficient and easy to use by users; the user system is divided into platform administrators, system administrators, tenant administrators and developer accounts, functions are clear, permissions are separated, and safety and reliability are achieved; the multi-tenant management system manages a plurality of clusters and a plurality of resources uniformly, and divides resources and authorities in a similar method through a visual interface, so that the multi-tenant management system is visual and easy to use; the tenants are divided into an isolation type and a sharing type, so that different scene requirements can be met; and fine-grained resource division enables the tenant resource authority to be better controlled.
It should be particularly noted that, the steps in the embodiments of the method for managing multiple tenants based on a big data platform described above may be intersected, replaced, added, and deleted, so that these reasonable permutation and combination transformations should also belong to the scope of the present invention, and should not limit the scope of the present invention to the embodiments.
In view of the above, a second aspect of the embodiments of the present invention provides a system for managing multiple tenants based on a big data platform, including: the system comprises a creation module, a setting module and a setting module, wherein the creation module is configured to create a user module and a tenant module, create a tenant administrator at the user module and create a tenant at the tenant module; the first allocation module is configured to allocate corresponding tenant resources to each tenant and allocate each tenant to a corresponding tenant administrator; the second distribution module is configured to create a plurality of developer accounts in the user module, and divide tenant resources corresponding to tenants belonging to the same tenant administrator into the developer accounts corresponding to the tenant administrator; and an execution module configured to view and use the owned resources and permissions in the developer account.
In some embodiments, the system further comprises a service module configured to: roaming services are set up in the cluster where resource allocation is needed for display in the resource list.
In some embodiments, the first distribution module is configured to: and responding to the existence of a plurality of clusters under the tenant, creating a tenant directory of resources corresponding to the tenant in each cluster, and storing the information of the tenant directory into a database.
In some embodiments, the second allocation module is configured to: judging whether the tenant type of the tenant is a sharing type or an isolation type; and in response to the fact that the tenant type of the tenant is a sharing type, all tenant resources of the tenant are shared to all developer accounts corresponding to the tenant administrator.
In some embodiments, the second allocation module is configured to: and in response to the fact that the tenant type of the tenant is an isolation type, dividing the tenant resources of the tenant into a plurality of parts according to requirements, and allocating each part to only one developer account corresponding to the tenant administrator.
In some embodiments, the second allocation module is configured to: and in response to the fact that the tenant type of the tenant is an isolation type, all tenant resources of the tenant are allocated to one developer account corresponding to the tenant administrator.
In some embodiments, the second allocating module is configured to: creating a catalog of the developer account usage in the tenant catalog in a cluster.
In view of the above object, a third aspect of the embodiments of the present invention provides a computer device, including: at least one processor; and a memory storing computer instructions executable on the processor, the instructions being executable by the processor to perform the steps of: the method comprises the following steps that S1, a user creating module and a tenant module are created, a tenant administrator is created in the user module, and a tenant is created in the tenant module; s2, distributing corresponding tenant resources to each tenant, and distributing each tenant to a corresponding tenant administrator; s3, creating a plurality of developer accounts in the user module, and dividing tenant resources corresponding to tenants belonging to the same tenant administrator into the developer accounts corresponding to the tenant administrator; and S4, viewing and using the owned resources and the rights in the account of the developer.
In some embodiments, the steps further comprise: and setting roaming service in the cluster needing resource allocation so as to display the roaming service in a resource list.
In some embodiments, the allocating the corresponding tenant resource to each of the tenants includes: and responding to the existence of a plurality of clusters under the tenant, creating a tenant directory of resources corresponding to the tenant in each cluster, and storing the information of the tenant directory into a database.
In some embodiments, the dividing tenant resources corresponding to tenants belonging to the same tenant administrator to developer accounts corresponding to the tenant administrator includes: judging whether the tenant type of the tenant is a sharing type or an isolation type; and responding to the fact that the type of the tenant is a sharing type, and sharing all tenant resources of the tenant to all developer accounts corresponding to the tenant administrator.
In some embodiments, the dividing tenant resources corresponding to tenants belonging to the same tenant administrator to developer accounts corresponding to the tenant administrator includes: judging whether the tenant type of the tenant is a sharing type or an isolation type; and in response to that the tenant type of the tenant is an isolation type, dividing the tenant resources of the tenant into a plurality of parts according to requirements, and allocating each part to only one developer account corresponding to the tenant administrator.
In some embodiments, the dividing tenant resources corresponding to tenants belonging to the same tenant administrator to developer accounts corresponding to the tenant administrator includes: judging whether the tenant type of the tenant is a sharing type or an isolation type; and in response to the tenant type of the tenant being an isolation type, allocating all of the tenant resources of the tenant to one developer account corresponding to the tenant administrator.
In some embodiments, the dividing tenant resources corresponding to tenants belonging to the same tenant administrator to developer accounts corresponding to the tenant administrator includes: creating a catalog of the developer account usage in the tenant catalog in a cluster.
Fig. 4 is a schematic hardware structural diagram of an embodiment of the computer device for managing multiple tenants based on a big data platform provided by the present invention.
Taking the apparatus shown in fig. 4 as an example, the apparatus includes a processor 201 and a memory 202, and may further include: an input device 203 and an output device 204.
The processor 201, the memory 202, the input device 203 and the output device 204 may be connected by a bus or other means, and the bus connection is exemplified in fig. 4.
The memory 202, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as program instructions/modules corresponding to the method for managing multiple tenants based on a big data platform in the embodiment of the present application. The processor 201 executes various functional applications of the server and data processing by running the nonvolatile software programs, instructions and modules stored in the memory 202, that is, the method for managing multiple tenants based on a large data platform of the above method embodiment is implemented.
The memory 202 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the method of managing multi-tenants based on the big data platform, and the like. Further, the memory 202 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, memory 202 may optionally include memory located remotely from processor 201, which may be connected to local modules over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 203 may receive information such as a user name and a password that are input. The output device 204 may include a display device such as a display screen.
Program instructions/modules corresponding to one or more methods for managing multi-tenancy based on a big data platform are stored in the memory 202, and when executed by the processor 201, perform the method for managing multi-tenancy based on a big data platform in any of the above method embodiments.
Any embodiment of the computer device executing the method for managing multiple tenants based on the big data platform can achieve the same or similar effects as any corresponding method embodiment.
The invention also provides a computer readable storage medium storing a computer program which, when executed by a processor, performs the method as above.
Fig. 5 is a schematic diagram of an embodiment of the computer storage medium for managing multiple tenants based on a big data platform according to the present invention. Taking the computer storage medium as shown in fig. 5 as an example, the computer readable storage medium 3 stores a computer program 31 which, when executed by a processor, performs the above method.
Finally, it should be noted that, as those skilled in the art can understand, all or part of the processes in the methods according to the embodiments described above can be implemented by instructing relevant hardware through a computer program, and the program of the method for managing multiple tenants based on a big data platform can be stored in a computer readable storage medium, and when executed, the program may include the processes of the embodiments of the methods described above. The storage medium of the program may be a magnetic disk, an optical disk, a read-only memory (ROM), or a Random Access Memory (RAM). The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
The foregoing is an exemplary embodiment of the present disclosure, but it should be noted that various changes and modifications could be made herein without departing from the scope of the present disclosure as defined by the appended claims. The functions, steps and/or actions of the method claims in accordance with the disclosed embodiments described herein need not be performed in any particular order. Furthermore, although elements of the disclosed embodiments of the invention may be described or claimed in the singular, the plural is contemplated unless limitation to the singular is explicitly stated.
It should be understood that, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly supports the exception. It should also be understood that "and/or" as used herein is meant to include any and all possible combinations of one or more of the associated listed items.
The numbers of the embodiments disclosed in the embodiments of the present invention are merely for description, and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
Those of ordinary skill in the art will understand that: the discussion of any embodiment above is meant to be exemplary only, and is not intended to intimate that the scope of the disclosure, including the claims, of embodiments of the invention is limited to these examples; within the idea of an embodiment of the invention, also technical features in the above embodiment or in different embodiments may be combined and there are many other variations of the different aspects of the embodiments of the invention as described above, which are not provided in detail for the sake of brevity. Therefore, any omissions, modifications, substitutions, improvements, and the like that may be made without departing from the spirit and principles of the embodiments of the present invention are intended to be included within the scope of the embodiments of the present invention.
Claims (8)
1. A method for managing multiple tenants based on a big data platform is characterized by comprising the following steps:
creating a user module and a tenant module, creating a tenant administrator at the user module, and creating a tenant at the tenant module;
allocating corresponding tenant resources to each tenant, and allocating each tenant to a corresponding tenant administrator;
creating a plurality of developer accounts in the user module, and dividing tenant resources corresponding to tenants belonging to the same tenant administrator into the developer accounts corresponding to the tenant administrator;
view and use owned resources and permissions in developer accounts; and
roaming services are set up in the cluster where resource allocation is required for display in the resource list,
wherein the allocating of the corresponding tenant resources to each of the tenants comprises:
and responding to the existence of a plurality of clusters under the tenant, creating a tenant directory of resources corresponding to the tenant in each cluster, and storing the information of the tenant directory into a database.
2. The method of claim 1, wherein the dividing tenant resources corresponding to tenants belonging to the same tenant administrator to developer accounts corresponding to the tenant administrator comprises:
judging whether the tenant type of the tenant is a sharing type or an isolation type; and
and in response to the fact that the tenant type of the tenant is a sharing type, all tenant resources of the tenant are shared to all developer accounts corresponding to the tenant administrator.
3. The method of claim 1, wherein the dividing tenant resources corresponding to tenants belonging to the same tenant administrator to developer accounts corresponding to the tenant administrator comprises:
judging whether the tenant type of the tenant is a sharing type or an isolation type; and
and in response to the fact that the tenant type of the tenant is an isolation type, dividing the tenant resources of the tenant into a plurality of parts according to requirements, and distributing each part to only one developer account corresponding to the tenant administrator.
4. The method of claim 1, wherein the dividing tenant resources corresponding to tenants belonging to the same tenant administrator to developer accounts corresponding to the tenant administrator comprises:
judging whether the tenant type of the tenant is a sharing type or an isolation type; and
and in response to the fact that the tenant type of the tenant is an isolation type, all tenant resources of the tenant are allocated to one developer account corresponding to the tenant administrator.
5. The method according to any one of claims 3 or 4, wherein the dividing tenant resources corresponding to tenants belonging to the same tenant administrator to developer accounts corresponding to the tenant administrator comprises:
creating a catalog of the developer account usage in a tenant catalog in the cluster.
6. A big data platform-based system for managing multiple tenants, comprising:
the system comprises a creation module, a tenant module and a processing module, wherein the creation module is configured to create a user module and a tenant module, create a tenant administrator at the user module and create a tenant at the tenant module;
the first allocation module is configured to allocate corresponding tenant resources to each tenant, and allocate each tenant to a corresponding tenant administrator;
the second distributing module is configured to create a plurality of developer accounts in the user module, and divide tenant resources corresponding to tenants belonging to the same tenant administrator into developer accounts corresponding to the tenant administrator; and
the execution module is configured to view and use owned resources and permissions in a developer account, and set roaming services in a cluster needing resource allocation so as to display the roaming services in a resource list;
wherein the allocating of the corresponding tenant resources to each of the tenants comprises:
and responding to the existence of a plurality of clusters under the tenant, creating a tenant directory of resources corresponding to the tenant in each cluster, and storing the information of the tenant directory into a database.
7. A computer device, comprising:
at least one processor; and
a memory storing computer instructions executable on the processor, the instructions when executed by the processor implementing the steps of the method of any one of claims 1 to 5.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110529045.8A CN113420269B (en) | 2021-05-14 | 2021-05-14 | Method, system, device and medium for managing multiple tenants based on big data platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110529045.8A CN113420269B (en) | 2021-05-14 | 2021-05-14 | Method, system, device and medium for managing multiple tenants based on big data platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113420269A CN113420269A (en) | 2021-09-21 |
CN113420269B true CN113420269B (en) | 2023-02-28 |
Family
ID=77712421
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110529045.8A Active CN113420269B (en) | 2021-05-14 | 2021-05-14 | Method, system, device and medium for managing multiple tenants based on big data platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113420269B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115766342A (en) * | 2022-11-14 | 2023-03-07 | 浪潮云信息技术股份公司 | Method and system for designated tenant to share VLAN subnet |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8391206B2 (en) * | 2008-08-07 | 2013-03-05 | Alcatel Lucent | Method of joint resource allocation and clustering of base stations |
CN104618349B (en) * | 2015-01-13 | 2018-09-11 | 上海华为技术有限公司 | A kind of trunked communication system, server and communication means |
CN106485101B (en) * | 2015-08-24 | 2020-06-09 | 阿里巴巴集团控股有限公司 | Data access method and device in cloud computing environment |
US9558004B1 (en) * | 2015-10-16 | 2017-01-31 | International Business Machines Corporation | Inter-platform management of computing resources |
CN107659450B (en) * | 2017-09-29 | 2020-07-14 | 深圳索信达数据技术有限公司 | Method and device for allocating big data cluster resources and storage medium |
CN110519361B (en) * | 2019-08-22 | 2022-07-29 | 北京宝兰德软件股份有限公司 | Container cloud platform multi-tenant construction method and device based on kubernets |
-
2021
- 2021-05-14 CN CN202110529045.8A patent/CN113420269B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN113420269A (en) | 2021-09-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110519361B (en) | Container cloud platform multi-tenant construction method and device based on kubernets | |
US10176019B2 (en) | Dynamic management of computing platform resources | |
US10356161B2 (en) | System and method for classloading in a multitenant application server environment | |
CN111428256B (en) | Multi-tenant management system of big data platform | |
US10635491B2 (en) | System and method for use of a multi-tenant application server with a multitasking virtual machine | |
CN110990150A (en) | Tenant management method and system of container cloud platform, electronic device and storage medium | |
US10223170B2 (en) | Dynamic management of computing platform resources | |
US10666573B2 (en) | Dynamic management of computing platform resources | |
WO2019005400A1 (en) | Access control manager configuration based on log files mining | |
CN107659450B (en) | Method and device for allocating big data cluster resources and storage medium | |
CN113986528A (en) | Method, system, equipment and storage medium for multi-tenant space resource management | |
CN114239055A (en) | Distributed database multi-tenant isolation method and system | |
CN113420269B (en) | Method, system, device and medium for managing multiple tenants based on big data platform | |
CN111045802B (en) | Redis cluster component scheduling system and method and platform equipment | |
CN114285850A (en) | Cross-cluster multi-tenant resource management system based on container platform | |
Won et al. | Advanced resource management with access control for multitenant Hadoop | |
CN113296891A (en) | Multi-scene knowledge graph processing method and device based on platform | |
US9361351B2 (en) | Data management via active and inactive table space containers | |
US11940969B2 (en) | Managing locations of derived storage objects | |
CN114090969B (en) | Multilevel multi-tenant cross authorization management method | |
CN115618409A (en) | Database cloud service generation method, device, equipment and readable storage medium | |
DE102021130965A1 (en) | UPGRADING A SEQUENCE OF MICROSERVICES IN A CLOUD COMPUTING ENVIRONMENT | |
CN113010492A (en) | Database access method and device | |
CN105653710A (en) | Method and device for constructing file system | |
CN115600185A (en) | Resource operation method and system of cloud native platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |