CN110365547A - Tenant's node creation method, device, equipment and the medium of multi-layer tenant's system - Google Patents

Tenant's node creation method, device, equipment and the medium of multi-layer tenant's system Download PDF

Info

Publication number
CN110365547A
CN110365547A CN201910845826.0A CN201910845826A CN110365547A CN 110365547 A CN110365547 A CN 110365547A CN 201910845826 A CN201910845826 A CN 201910845826A CN 110365547 A CN110365547 A CN 110365547A
Authority
CN
China
Prior art keywords
tenant
node
layer
level
type
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.)
Granted
Application number
CN201910845826.0A
Other languages
Chinese (zh)
Other versions
CN110365547B (en
Inventor
伍育珂
郎朗
张茂华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Digital Guangdong Network Construction Co Ltd
Original Assignee
Digital Guangdong Network Construction Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Digital Guangdong Network Construction Co Ltd filed Critical Digital Guangdong Network Construction Co Ltd
Priority to CN201910845826.0A priority Critical patent/CN110365547B/en
Publication of CN110365547A publication Critical patent/CN110365547A/en
Application granted granted Critical
Publication of CN110365547B publication Critical patent/CN110365547B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0645Rental transactions; Leasing transactions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0893Assignment of logical groups to network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The present invention relates to a kind of tenant's node creation method, device, equipment and media based on multi-layer tenant's architecture, obtain tenant's node request to create that current tenant's node is initiated, the target tenant's node tenant type carried according to the request to create, tenant's level corresponding with tenant's type is determined in multi-layer tenant's architecture, multi-layer tenant's architecture includes multiple tenant's levels, different tenant's types is corresponded respectively to, target tenant's node is then created that in tenant's level.The program can be according to target tenant's node tenant type to be created, search corresponding tenant's level, new tenant's node is created that in tenant's level, the creation process of tenant's node not will increase new tenant's level, tenant's level quantity of tenant's system entire in this way will not increase with the increase of tenant's node, so that the level quantity of multi-layer tenant's architecture, which is able to maintain, reduces the time complexity that tenant's system realizes logic for constant.

Description

Tenant's node creation method, device, equipment and the medium of multi-layer tenant's system
Technical field
The present invention relates to Internet technical fields, save more particularly to a kind of tenant based on multi-layer tenant's architecture It point creation method, tenant's node creating device based on multi-layer tenant's architecture, computer equipment and computer-readable deposits Storage media.
Background technique
Multi-layer tenant's architecture is generally applied in cloud service platform (such as IaaS, PaaS and SaaS).Such as cloud The tenant of computing services platform designs, and is that relatively independent resource management is provided for different tenants by way of resource isolation Ability.Wherein, tenant is the mode of the common resource isolation of one of cloud computing service platform, such as an IaaS cloud service Platform needs to provide cloud resource (such as computing capability, network and storage resource) to A enterprise and B enterprise, flat in IaaS cloud service In the architecture design of platform, it would be desirable to be able to distinguish the cloud resource of different enterprises purchase, it is ensured that access, use when A corporate user registration It is the cloud resource of A enterprise purchase, rather than the cloud resource of B enterprise, the design method of this resource isolation are exactly tenant's system, and In cloud service platform, there are the demand of multistage tenant, the tenant of cloud service platform can create and manage level-one of oneself Tenant, the sub- tenant of level-one can also have the sub- tenant of second level of oneself, and so on, so that the distribution of resource, using and managing more Add flexibly.
When creating new tenant's node in multi-layer tenant's system, traditional technology is usually that current tenant's node configuration is more The attribute of kind of tenant's type, and new tenant's node is directly created that under tenant's node in this prior based on the attribute, to increase Add the level of level tenant's system.But this mode can make tree of the multi-layer tenant's architecture as unlimited level Shape structure, and as level increases, tenant's system realizes that the time complexity of logic can be also higher and higher.
Summary of the invention
Based on this, it is necessary to which, for traditional technology as level increases, tenant's system realizes the time complexity meeting of logic Also higher and higher technical problem provides a kind of tenant's node creation method based on multi-layer tenant's architecture, based on more Tenant's node creating device, computer equipment and the computer readable storage medium of level tenant's architecture.
A kind of tenant's node creation method based on multi-layer tenant's architecture, comprising steps of
Obtain tenant's node request to create;Tenant's node request to create is what current tenant's node was initiated;Tenant's section Point request to create carries target tenant's node tenant type to be created;
According to tenant's type, tenant's layer corresponding with tenant's type is determined in multi-layer tenant's architecture Grade;Wherein, the multi-layer tenant architecture includes multiple tenant's levels, and each tenant's level corresponds respectively to different rents Family type;
The target tenant node is created in tenant's level.
A kind of tenant's node creating device based on multi-layer tenant's architecture, comprising:
Request module, for obtaining tenant's node request to create;Tenant's node request to create is current tenant's node It initiates;Tenant's node request to create carries target tenant's node tenant type to be created;
Level determining module is used for according to tenant's type, determining and tenant's class in multi-layer tenant's architecture The corresponding tenant's level of type;Wherein, the multi-layer tenant architecture includes multiple tenant's levels, each tenant's level point Tenant's type that Dui Yingyu be not different;
Node creation module, for creating the target tenant node in tenant's level.
A kind of computer equipment, including processor and memory, the memory are stored with computer program, the processing Device realizes following steps when executing the computer program:
Obtain tenant's node request to create;Tenant's node request to create is what current tenant's node was initiated;Tenant's section Point request to create carries target tenant's node tenant type to be created;According to tenant's type, in multi-layer tenant Tenant's level corresponding with tenant's type is determined in architecture;Wherein, the multi-layer tenant architecture includes Multiple tenant's levels, each tenant's level correspond respectively to different tenant's types;The mesh is created in tenant's level Mark tenant's node.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor Following steps are realized when row:
Obtain tenant's node request to create;Tenant's node request to create is what current tenant's node was initiated;Tenant's section Point request to create carries target tenant's node tenant type to be created;According to tenant's type, in multi-layer tenant Tenant's level corresponding with tenant's type is determined in architecture;Wherein, the multi-layer tenant architecture includes Multiple tenant's levels, each tenant's level correspond respectively to different tenant's types;The mesh is created in tenant's level Mark tenant's node.
Above-mentioned tenant's node creation method based on multi-layer tenant's architecture, device, computer equipment and storage are situated between Matter first obtains tenant's node request to create that current tenant's node is initiated, then carries according in tenant's node request to create Target tenant's node tenant type, corresponding with tenant's type tenant is determined in multi-layer tenant's architecture Level, wherein multi-layer tenant's architecture includes multiple tenant's levels, and each tenant's level corresponds respectively to different tenants Then type is created that target tenant's node in tenant's level.The program can be according to target tenant's node to be created Tenant type finds corresponding tenant's level, new tenant's node is created that in tenant's level, in tenant's node Creation during not will increase new tenant's level, the quantity of tenant's level of tenant's system entire in this way will not be saved with tenant The increase of point and increase so that the level quantity of multi-layer tenant's architecture is able to maintain as constant, reduce the multi-layer The time complexity of tenant's system realization logic.
Detailed description of the invention
Fig. 1 is the process signal of tenant's node creation method based on multi-layer tenant's architecture in one embodiment Figure.
Fig. 2 is the schematic illustration that tenant's node is created in a kind of multi-layer tenant architecture.
Fig. 3 is the schematic illustration for creating tenant's node in one embodiment in multi-layer tenant's architecture.
Fig. 4 is the structural block diagram of tenant's node creating device based on multi-layer tenant's architecture in one embodiment.
Fig. 5 is the internal structure chart of computer equipment in one embodiment.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the present invention, not For limiting the present invention.
In one embodiment, a kind of tenant's node creation method based on multi-layer tenant's architecture is provided, is joined Fig. 1 is examined, Fig. 1 is the flow diagram of tenant's node creation method based on multi-layer tenant's architecture in one embodiment, This method can be realized based on the server of Cloud Server platform, be somebody's turn to do tenant's node based on multi-layer tenant's architecture Creation method may comprise steps of:
Step S101 obtains tenant's node request to create.
In this step, tenant's node request to create is that current tenant's node is initiated, and tenant's node request to create is main For creating new tenant's node for current tenant's node.Wherein, it is carried in tenant's node request to create to be created Target tenant's node tenant type.
Specifically, the realization logic of tenant's system is to be associated organization and tenant, an organization can be same The multiple tenant's types of Shi Yongyou, this step can be using tenant's types as the attribute of tenant to the tenant of different tenant's types It distinguishes, and for multi-layer tenant's architecture, each tenant's level can be set multiple tenant's nodes, and tenant can be with Acquisition, distribution and the management of resource are carried out by tenant's node corresponding in tenant's architecture.
In this step, current tenant's node can be the tenant's node being previously provided in multi-layer tenant architecture One or more of when, for example, if being previously provided with tenant's node A, Zu Hujie in multi-layer tenant's architecture Point B and tenant node C, then current tenant's node can be one in tenant's node A, tenant's node B and tenant's node C or It is multiple.When current tenant's node needs create new tenant's node in multi-layer tenant's architecture, this can be waited for New tenant's node of creation is set as target tenant's node, and determines tenant's type of target tenant's node, by tenant's class Type is loaded into tenant's node request to create as the attribute information of target tenant's node, so that current tenant's node hair The tenant's node request to create risen carries tenant's type belonging to target tenant's node.
Step S102 determines rent corresponding with tenant's type according to tenant's type in multi-layer tenant's architecture Family level.
In this step, multi-layer tenant's architecture may include multiple tenant's levels, and each tenant's level respectively corresponds In different tenant's types.Wherein, an organization can generally possess multiple tenant's types simultaneously, tenant's type conduct One attribute is for distinguishing different tenants, and tenant's type is also associated by this step with tenant's level, i.e., multi-layer is rented Different tenant's levels of family architecture correspond to different tenant's types.Specifically, if tenant's type includes tenant's type A, tenant's type B and tenant's Type C, then multi-layer tenant's architecture is tenant's system knot of three tenant's levels composition Structure may include top layer, middle layer and bottom, correspond respectively to tenant's type A, tenant's type B and tenant's Type C.In this way, When getting tenant's node request to create that current tenant's node is initiated, target tenant's node to be created can be therefrom extracted Affiliated tenant's type, to determine tenant's level corresponding with tenant's type according to tenant's type.
In one embodiment, multi-layer tenant's architecture can be constructed in advance in the following way:
Determine multiple tenant's types;Configure multiple tenant's levels;Wherein, multiple tenant's level corresponds respectively to multiple tenant's classes Type;In tenant's level, tenant's node that tenant's type of creation and tenant's level matches constructs multi-layer tenant system Structure.
In the present embodiment, the total quantity of tenant's type required for multi-layer tenant's architecture can be first determined, if you need to Three kinds of tenant's types, four kinds of tenant's types etc. are wanted, is respectively then these tenant's type configuration tenant's levels, for three kinds of tenants Type then configures three tenant's levels, then configures four tenant's levels for four kinds of tenant's types, each tenant's level is right respectively It should be corresponded in different tenant's types, i.e. tenant's level and tenant's type.Then, it can be created in each tenant's level Build multiple tenant's nodes, and each tenant's node tenant type in same tenant's level be it is identical, belong to this The corresponding tenant's type of tenant's level, to complete the building of multi-layer tenant's architecture.
Step S103 creates target tenant node in tenant's level.
This step is mainly after having determined tenant's level corresponding with target tenant's node tenant type, directly New tenant's node is created in tenant's level as target tenant's node, wherein target tenant node and hair The current tenant's node for playing tenant's node request to create can be carried out resource management and configuration by the same tenant, and since this is new Tenant's node do not created in current tenant's node not instead of directly, created in existing tenant's level, so the rent The creation process of family node, will not due to creation tenant's number of nodes increase and cause the increase of tenant's level, so as to Keep tenant's level quantity of multi-layer tenant's architecture constant, so that the realization logic of multi-layer tenant's architecture Time complexity it is lower, such as the multi-layer tenant's architecture for being 3 for tenant's number of levels realizes that the time of logic is multiple Miscellaneous degree is O (1).
Above-mentioned tenant's node creation method based on multi-layer tenant's architecture first obtains what current tenant's node was initiated Tenant's node request to create, with then according to the target tenant's node tenant class carried in tenant's node request to create Type determines tenant's level corresponding with tenant's type, wherein multi-layer tenant's body in multi-layer tenant's architecture Architecture includes multiple tenant's levels, and each tenant's level corresponds respectively to different tenant's types, then in tenant's level It is created that target tenant's node.The program can be found corresponding according to target tenant's node tenant type to be created Tenant's level, new tenant's node is created that in tenant's level, do not will increase during the creation of tenant's node new Tenant's level, the quantity of tenant's level of tenant's system entire in this way will not increase with the increase of tenant's node, to make The level quantity of multi-layer tenant architecture is able to maintain and reduces the time that multi-layer tenant's system realizes logic for constant Complexity.
In one embodiment, sub- tenant's node can also be configured for newly created target tenant node, so that the target Tenant's node can carry out the operation such as resource allocation, management for its sub- tenant's node, after above-mentioned steps S103, can also wrap Include following steps:
Based on multi-layer tenant's architecture, sub- tenant's level of target tenant level subordinate is determined;It is created in sub- tenant's level Build sub- tenant's node of target tenant's node.
In the present embodiment, target tenant's level refers to tenant's layer corresponding with target tenant's node tenant type Grade.By taking three level tenant's architectures as an example, if target tenant's node tenant type is tenant's type B, B pairs of tenant's level Middle layer in Ying Yusan level tenant's architecture, then target tenant level refers to the middle layer.
In multi-layer tenant's architecture, between each tenant's level have certain hierarchical relationship, tenant's level compared with High tenant's node can carry out resource allocation and management to sub- tenant's node of its subordinate, this step can be rented based on multi-layer Family architecture determines sub- tenant's level of newly created target tenant level subordinate, by taking three level tenant's architectures as an example, If target tenant's level is that middle layer can determine under target tenant's level then according to three levels tenant's architecture The sub- tenant's level belonged to is bottom.Then, so that it may the sub- tenant section of target tenant's node is created in sub- tenant's level Point.Scheme provided in this embodiment for target tenant node creation node is not increasing multi-layer tenant's system knot Under the precondition of tenant's level quantity of structure, achieve the effect that be convenient for mesh for target tenant's node creation tenant's node Mark tenant's node creates and manages its sub- tenant's node.
In one embodiment, multi-layer tenant architecture includes three tenant's levels;Tenant's type includes that top layer is rented Family, middle layer tenant and bottom tenant.
The present embodiment mainly uses three hierarchical structures as above-mentioned multi-layer tenant architecture.In the present embodiment, Multi-layer tenant's architecture includes that three tenant's levels correspondingly, tenant's type also includes three kinds correspond respectively to three altogether A tenant's level.Wherein, tenant's type may include top layer tenant, middle layer tenant and bottom tenant, and top layer tenant corresponds to Top layer in three tenant's levels, and middle layer tenant corresponds to the middle layer in three tenant's levels, bottom tenant is then right Bottom in Ying Yusan tenant's level.And there is certain hierarchical relationship between tenant's level, which can be used in really Determine the resource allocation between different levels and the logical relation of management, wherein bottom is the most bottom in three level tenant's architectures Layer, is subordinate's level of middle layer, and middle layer is then subordinate's level of top layer, and top layer is in three levels tenant's architecture It is top, be usually only provided with tenant's node in top layer, tenant's node of the top layer can be defined resource, point Tenant's node of dispensing middle layer, tenant's node of middle layer then can obtain resource from tenant's node of top layer, distribute to Tenant's node of bottom.Using three hierarchical structures of the present embodiment as tenant's architecture, the distribution to resource can satisfy Tenant's number of levels with the demand of management, and tenant's system setting is constant 3, realizes that the time complexity of logic is O (1)。
Further, above-mentioned multi-layer tenant architecture can be used as multi-layer tenant's system knot of cloud service platform Structure, the resource convenient for being provided based on multi-layer tenant architecture cloud service platform are allocated and are managed.Wherein, multilayer Grade tenant architecture can use tenant's architecture of three levels, set platform owner, middle layer for top layer tenant Tenant is set as platform operation person, and bottom tenant is set as common tenant.
In one embodiment, tenant's node request to create in step S101 can be the corresponding tenant's section of common tenant What point was initiated, i.e., current tenant's node tenant type can be common tenant, and target tenant's node tenant type It can be platform operation person.That is, can initiate the creation of tenant's node when common tenant wants to be platform operation person and ask It asks, creates new tenant's node in tenant's level where platform operation person, and tenant's class as described in new tenant's node Type be platform operation person, in this way, originally initiate tenant's node request to create common tenant can new tenant's node into One step creates and manages its sub- tenant's node, carries out the operation such as distribution and management of resource.
And for tenant's node of different tenant's types, the permission with different distribution and management resource, in a reality It applies in example, tenant type is tenant's node of platform owner, can be used for defining resource, and to tenant type Resource is distributed for tenant's node of platform operation person, tenant type is tenant's node of platform operation person, is used for from affiliated Tenant's type is tenant's node acquisition resource of platform owner, and is tenant's node of common tenant to tenant type Distribute resource;Tenant type is tenant's node of common tenant, for being the rent of platform operation person from tenant type Family node obtains resource, which cannot allocate resources to other common tenant.
Scheme provided by the above embodiment can satisfy the fields such as cloud service platform for the demand of multi-layer tenant, also It is the multi-layer management for resource isolation and distribution, while ensures to realize that the time complexity of logic will not increase with level And increase, the realization of resource isolation and pricing strategy is also fairly simple.
Technical solution provided by the invention is illustrated in order to apparent, in conjunction with Fig. 2 and Fig. 3 to base provided in an embodiment of the present invention It is illustrated in tenant's node creation method of multi-layer tenant's architecture:
As shown in Fig. 2, Fig. 2 is the schematic illustration for creating tenant's node in a kind of multi-layer tenant architecture, which is The principle of the creation tenant's node used in traditional technology: on a preset condition based, platform owner corresponds to top layer, platform operation Person corresponds to middle layer, and tenant a corresponds to bottom, wherein tenant a is the tenant of platform operation person originally, and present tenant a needs As platform operation person, the identity of platform operation person is directly authorized to tenant a at this time, that is, tenant a possesses 2 bodies simultaneously Part: then tenant and platform network operator can be created that two sub- tenant's nodes at the corresponding tenant's node of the tenant a, that is, rent The corresponding sub- tenant's node of family b1 and tenant b2, it is seen then that the number of levels of multi-layer tenant architecture increases 1 layer at this time;And If on this basis, the tenant b1 of tenant a(platform operation person a) also wants to be platform operation person now, then give at this time Tenant b1 directly authorizes network operator's identity, that is, tenant b1 possesses 2 identity simultaneously: then tenant and platform network operator can Two sub- tenant's nodes, i.e. tenant c1 and tenant c2 are created that at the corresponding tenant's node of the tenant b1, so far the multi-layer The number of levels of tenant's architecture is incremented by again.This tenant's system arrives implementation, is all unlimited from logical design The tree of level, in addition to leaf node, any intermediate node all has dual identity, is the sub- tenant of superior node, It is the father tenant of downstream site again, this design, the complexity that the technology that will lead to is realized improves, such as needs support n grades User Defined Resource isolation strategy and pricing strategy, an intermediate node in order to it downstream site distribute resource, it is necessary first to To its superior node buy resource, but if superior node resource pool is not enough, it is also necessary to this superior node continue to Superior node application resource, and so on, as level is more, such case is more difficult, such as level increases, generates account Single logic and process can become increasingly complex.
As shown in figure 3, Fig. 3 is the principle signal for creating tenant's node in one embodiment in multi-layer tenant's architecture Figure, the principle are the principle for creation tenant's node that various embodiments of the present invention use, and on a preset condition based, platform owner is corresponding In top layer, platform operation person corresponds to middle layer, and tenant a corresponds to bottom, and tenant a is the tenant of platform operation person originally, existing It needs to become platform operation person in tenant a, then in addition opens the identity of a platform operation person b to tenant a, it then can be at this The corresponding tenant's node creation tenant's node of platform operation person b, i.e. tenant b1 and the corresponding tenant's node of tenant b2, at this point, The number of levels of multi-layer tenant's architecture remains as 3, does not increase with the creation of tenant's node;On this basis, The tenant b1 of tenant a(platform operation person b) wants to be platform operation person, then in addition opens a platform fortune to the tenant b1 The identity of battalion person c, then can be in the corresponding tenant's node creation tenant's node of the platform operation person c, i.e. tenant c1 and rent The corresponding tenant's node of family c2, at this point, the number of levels of multi-layer tenant's architecture is not still with the wound of tenant's node It builds and increases, remain as 3.
Time for creating the mode of tenant's node in above two multi-layer tenant architecture, in technology realization Complexity can make following analysis: some input value n is directed to, if the execution time of algorithm is the function f (n) of n, algorithm Time complexity be O (n), if the execution time of algorithm is a fixed constant, the time complexity of algorithm is O (1). For both the above multi-layer tenant's system, first method realizes that logic is uncertain n-layer structure, when the execution of code Between can be increased according to the increase of level n, so time complexity is O (n), and the tenant no matter second method needs to create Node is how many, realizes that logic is fixed 3-tier architecture, the execution time of code, will not change with n, so the time is multiple Miscellaneous degree is O (1).Therefore, tenant's node is created using method provided in an embodiment of the present invention, can be effectively reduced multi-layer rent The time complexity of family system realization logic.
In one embodiment, a kind of tenant's node creating device based on multi-layer tenant's architecture is provided, is joined Fig. 4 is examined, Fig. 4 is the structural block diagram of tenant's node creating device based on multi-layer tenant's architecture in one embodiment, should Tenant's node creating device based on multi-layer tenant's architecture may include:
Request module 101, for obtaining tenant's node request to create;Tenant's node request to create is current tenant's node hair It rises;Tenant's node request to create carries target tenant's node tenant type to be created;
Level determining module 102, for according to tenant's type, determination to be opposite with tenant's type in multi-layer tenant's architecture The tenant's level answered;Wherein, multi-layer tenant architecture includes multiple tenant's levels, and each tenant's level corresponds respectively to not Same tenant's type;
Node creation module 103, for creating target tenant node in tenant's level.
In one embodiment, above-mentioned tenant's node creating device based on multi-layer tenant's architecture can also wrap It includes:
Sub- tenant's node creation module determines that the son of target tenant level subordinate is rented for being based on multi-layer tenant architecture Family level;Wherein, target tenant level is tenant's level corresponding with target tenant's node tenant type;In sub- tenant Sub- tenant's node of target tenant node is created in level.
In one embodiment, multi-layer tenant architecture includes three tenant's levels;Tenant's type includes that top layer is rented Family, middle layer tenant and bottom tenant;Wherein, top layer tenant corresponds to the top layer of three tenant's levels, and middle layer tenant is corresponding In the middle layer of three tenant's levels, bottom tenant corresponds to the bottom of three tenant's levels;Bottom is subordinate's layer of middle layer Grade, middle layer are subordinate's level of top layer.
In one embodiment, multi-layer tenant architecture is multi-layer tenant's architecture of cloud service platform;Top Layer tenant is platform owner, and middle layer tenant is platform operation person, and bottom tenant is common tenant.In one embodiment, Tenant type is tenant's node of platform owner, for defining resource, and to tenant type be platform operation Tenant's node of person distributes resource;Tenant type is tenant's node of platform operation person, for being from tenant type Tenant's node of platform owner obtains resource, and distributes resource to tenant's node that tenant type is common tenant; Tenant type is tenant's node of common tenant, for obtaining from tenant's node that tenant type is platform operation person Resource.
In one embodiment, current tenant's node tenant type is the common tenant;Target tenant node institute Category tenant's type is the platform operation person.
In one embodiment, above-mentioned tenant's node creating device based on multi-layer tenant's architecture can also wrap It includes:
Architecture creation module, for determining multiple tenant's types;Configure multiple tenant's levels;Multiple tenant's levels are right respectively It should be in multiple tenant's types;In tenant's level, tenant's node that tenant's type of creation and tenant's level matches, building Multi-layer tenant's architecture.
Tenant's node creating device based on multi-layer tenant's architecture of the invention and of the invention based on multi-layer Tenant's node creation method of tenant's architecture corresponds, about tenant's node wound based on multi-layer tenant's architecture The specific restriction for building device may refer to above for tenant's node creation method based on multi-layer tenant's architecture Limit, above-mentioned tenant's node creation method based on multi-layer tenant's architecture embodiment illustrate technical characteristic and its Beneficial effect is no longer superfluous herein suitable for the embodiment of tenant's node creating device based on multi-layer tenant's architecture It states.Modules in above-mentioned tenant's node creating device based on multi-layer tenant's architecture can be fully or partially through soft Part, hardware and combinations thereof are realized.Above-mentioned each module can be embedded in the form of hardware or independently of the processing in computer equipment It in device, can also be stored in a software form in the memory in computer equipment, in order to which processor calls execution above each The corresponding operation of a module.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can using as shown in figure 5, Fig. 5 as the internal structure chart of computer equipment in one embodiment.The computer equipment includes logical Cross processor, memory, network interface and the database of system bus connection.Wherein, the processor of the computer equipment is used for Calculating and control ability are provided.The memory of the computer equipment includes non-volatile memory medium, built-in storage.This is non-volatile Property storage medium is stored with operating system, computer program and database.The built-in storage is in non-volatile memory medium The operation of operating system and computer program provides environment.The database of the computer equipment can be used for storing tenant's node wound Build the data such as request, tenant's type, multi-layer tenant's architecture.The network interface of the computer equipment is used for and external end End passes through network connection communication.It is a kind of based on multi-layer tenant architecture to realize when the computer program is executed by processor Tenant's node creation method.
It will be understood by those skilled in the art that structure shown in Fig. 5, only part relevant to the present invention program is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to the present invention program, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of computer equipment, including processor and memory, the memory storage are provided There is computer program, the processor is realized described in as above any one embodiment when executing the computer program based on multilayer Tenant's node creation method of grade tenant's architecture.
In one embodiment, a kind of computer equipment, including processor and memory, the memory storage are provided There is computer program, the processor performs the steps of when executing the computer program
Obtain tenant's node request to create;Tenant's node request to create is what current tenant's node was initiated;The creation of tenant's node is asked It asks and carries target tenant's node tenant type to be created;According to tenant's type, in multi-layer tenant's architecture really Fixed tenant's level corresponding with tenant's type;Wherein, multi-layer tenant architecture includes multiple tenant's levels, each tenant Level corresponds respectively to different tenant's types;The target tenant node is created in tenant's level.
In one embodiment, it is also performed the steps of when processor executes computer program
Based on multi-layer tenant's architecture, sub- tenant's level of target tenant level subordinate is determined;Wherein, target tenant level For tenant's level corresponding with target tenant's node tenant type;Target tenant node is created in sub- tenant's level Sub- tenant's node.
In one embodiment, multi-layer tenant architecture includes three tenant's levels;Tenant's type includes that top layer is rented Family, middle layer tenant and bottom tenant;Wherein, top layer tenant corresponds to the top layer of three tenant's levels, and middle layer tenant is corresponding In the middle layer of three tenant's levels, bottom tenant corresponds to the bottom of three tenant's levels;Bottom is subordinate's layer of middle layer Grade, middle layer are subordinate's level of top layer.
In one embodiment, multi-layer tenant architecture is multi-layer tenant's architecture of cloud service platform;Top Layer tenant is platform owner, and middle layer tenant is platform operation person, and bottom tenant is common tenant.
In one embodiment, tenant type is tenant's node of platform owner, for defining resource, Yi Jixiang Tenant type is that tenant's node of platform operation person distributes resource;Tenant type is that the tenant of platform operation person saves Point, for from tenant type be platform owner tenant's node obtain resource, and to tenant type be common Tenant's node of tenant distributes resource;Tenant type is tenant's node of common tenant, for being from tenant type Tenant's node of platform operation person obtains resource.
In one embodiment, current tenant's node tenant type is common tenant;It is rented belonging to target tenant node Family type is platform operation person.
In one embodiment, it is also performed the steps of when processor executes computer program
Determine multiple tenant's types;Configure multiple tenant's levels;Multiple tenant's levels correspond respectively to multiple tenant's types;It is renting In the level of family, tenant's node that tenant's type of creation and tenant's level matches constructs multi-layer tenant architecture.
Above-mentioned computer equipment can be according to target to be created by the computer program run on the processor Tenant's node tenant type, finds corresponding tenant's level, and new tenant's node is created that in tenant's level, New tenant's level is not will increase during the creation of tenant's node, the quantity of tenant's level of tenant's system entire in this way will not Increase with the increase of tenant's node, so that the level quantity of multi-layer tenant's architecture is able to maintain as constant, reduction The time complexity of multi-layer tenant's system realization logic.
Those of ordinary skill in the art will appreciate that realizing described in as above any one embodiment based on multi-layer tenant's body All or part of the process in tenant's node creation method of architecture, be can be instructed by computer program it is relevant hard Part is completed, and the computer program can be stored in a non-volatile computer read/write memory medium, the computer journey Sequence is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, made in each embodiment provided by the present invention Any reference to memory, storage, database or other media, may each comprise non-volatile and/or volatile storage Device.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM(EPROM), electricity Erasable programmable ROM(EEPROM) or flash memory.Volatile memory may include random-access memory (ram) or external height Fast buffer storage.By way of illustration and not limitation, RAM is available in many forms, such as static state RAM(SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhanced SDRAM(ESDRAM), synchronization link (Synchlink) DRAM(SLDRAM), memory bus (Rambus) direct RAM(RDRAM), direct memory bus dynamic ) and memory bus dynamic ram (RDRAM) etc. RAM(DRDRAM.
Accordingly, a kind of computer readable storage medium is also provided in one embodiment, is stored thereon with computer program, Wherein, the rent based on multi-layer tenant's architecture described in as above any one embodiment is realized when which is executed by processor Family node creation method.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program performs the steps of when being executed by processor
Obtain tenant's node request to create;Tenant's node request to create is what current tenant's node was initiated;The creation of tenant's node is asked It asks and carries target tenant's node tenant type to be created;According to tenant's type, in multi-layer tenant's architecture really Fixed tenant's level corresponding with tenant's type;Wherein, multi-layer tenant architecture includes multiple tenant's levels, each tenant Level corresponds respectively to different tenant's types;The target tenant node is created in tenant's level.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Based on multi-layer tenant's architecture, sub- tenant's level of target tenant level subordinate is determined;Wherein, target tenant level For tenant's level corresponding with target tenant's node tenant type;Target tenant node is created in sub- tenant's level Sub- tenant's node.
In one embodiment, multi-layer tenant architecture includes three tenant's levels;Tenant's type includes that top layer is rented Family, middle layer tenant and bottom tenant;Wherein, top layer tenant corresponds to the top layer of three tenant's levels, and middle layer tenant is corresponding In the middle layer of three tenant's levels, bottom tenant corresponds to the bottom of three tenant's levels;Bottom is subordinate's layer of middle layer Grade, middle layer are subordinate's level of top layer.
In one embodiment, multi-layer tenant architecture is multi-layer tenant's architecture of cloud service platform;Top Layer tenant is platform owner, and middle layer tenant is platform operation person, and bottom tenant is common tenant.
In one embodiment, tenant type is tenant's node of platform owner, for defining resource, Yi Jixiang Tenant type is that tenant's node of platform operation person distributes resource;Tenant type is that the tenant of platform operation person saves Point, for from tenant type be platform owner tenant's node obtain resource, and to tenant type be common Tenant's node of tenant distributes resource;Tenant type is tenant's node of common tenant, for being from tenant type Tenant's node of platform operation person obtains resource.
In one embodiment, current tenant's node tenant type is common tenant;It is rented belonging to target tenant node Family type is platform operation person.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Determine multiple tenant's types;Configure multiple tenant's levels;Multiple tenant's levels correspond respectively to multiple tenant's types;It is renting In the level of family, tenant's node that tenant's type of creation and tenant's level matches constructs multi-layer tenant architecture.
Above-mentioned computer readable storage medium can be rented by the computer program that it is stored according to target to be created Family node tenant type, finds corresponding tenant's level, and new tenant's node is created that in tenant's level, is being rented New tenant's level is not will increase during the creation of family node, the quantity of tenant's level of tenant's system entire in this way will not be with The increase of tenant's node and increase so that the level quantity of multi-layer tenant's architecture is able to maintain as constant, reducing should The time complexity of multi-layer tenant's system realization logic.
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of tenant's node creation method based on multi-layer tenant's architecture, which is characterized in that comprising steps of
Obtain tenant's node request to create;Tenant's node request to create is what current tenant's node was initiated;Tenant's section Point request to create carries target tenant's node tenant type to be created;
According to tenant's type, tenant's layer corresponding with tenant's type is determined in multi-layer tenant's architecture Grade;Wherein, the multi-layer tenant architecture includes multiple tenant's levels, and each tenant's level corresponds respectively to different rents Family type;
The target tenant node is created in tenant's level.
2. the method according to claim 1, wherein creating the target rent in tenant's level described After the step of family node, further includes:
Based on the multi-layer tenant architecture, sub- tenant's level of target tenant level subordinate is determined;Wherein, the target Tenant's level is tenant's level corresponding with the target tenant node tenant type;
Sub- tenant's node of the target tenant node is created in sub- tenant's level.
3. the method according to claim 1, wherein the multi-layer tenant architecture includes three tenant's layers Grade;Tenant's type includes top layer tenant, middle layer tenant and bottom tenant;Wherein,
The top layer tenant corresponds to the top layer of three tenant's levels, and the middle layer tenant corresponds to three tenants The middle layer of level, the bottom tenant correspond to the bottom of three tenant's levels;The bottom is the middle layer Subordinate's level, the middle layer are subordinate's level of the top layer.
4. according to the method described in claim 3, it is characterized in that, the multi-layer tenant architecture is cloud service platform Multi-layer tenant's architecture;The top layer tenant is platform owner, and the middle layer tenant is platform operation person, the bottom Layer tenant is common tenant.
5. according to the method described in claim 4, it is characterized in that,
Tenant type is tenant's node of platform owner, for defining resource, and to tenant type be platform Tenant's node of network operator distributes resource;
Tenant type is tenant's node of platform operation person, for saving from the tenant that tenant type is platform owner Point obtains resource, and distributes resource to tenant's node that tenant type is common tenant;
Tenant type is tenant's node of common tenant, for being tenant's node of platform operation person from tenant type Obtain resource.
6. according to the method described in claim 4, it is characterized in that, current tenant's node tenant type is described general Logical tenant;The target tenant node tenant type is the platform operation person.
7. the method according to claim 1, wherein further comprising the steps of:
Determine multiple tenant's types;
Configure multiple tenant's levels;The multiple tenant's level corresponds respectively to the multiple tenant's type;
In tenant's level, tenant's node that tenant's type of creation and tenant's level matches constructs the multilayer Grade tenant's architecture.
8. a kind of tenant's node creating device based on multi-layer tenant's architecture characterized by comprising
Request module, for obtaining tenant's node request to create;Tenant's node request to create is current tenant's node It initiates;Tenant's node request to create carries target tenant's node tenant type to be created;
Level determining module is used for according to tenant's type, determining and tenant's class in multi-layer tenant's architecture The corresponding tenant's level of type;Wherein, the multi-layer tenant architecture includes multiple tenant's levels, each tenant's level point Tenant's type that Dui Yingyu be not different;
Node creation module, for creating the target tenant node in tenant's level.
9. a kind of computer equipment, including processor and memory, the memory are stored with computer program, feature exists In when the processor executes the computer program the step of any one of realization claim 1 to 7 the method.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of any one of claim 1 to 7 the method is realized when being executed by processor.
CN201910845826.0A 2019-09-09 2019-09-09 Method, device and equipment for creating tenant node of multi-level tenant system and computer readable storage medium Active CN110365547B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910845826.0A CN110365547B (en) 2019-09-09 2019-09-09 Method, device and equipment for creating tenant node of multi-level tenant system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910845826.0A CN110365547B (en) 2019-09-09 2019-09-09 Method, device and equipment for creating tenant node of multi-level tenant system and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN110365547A true CN110365547A (en) 2019-10-22
CN110365547B CN110365547B (en) 2019-12-24

Family

ID=68225505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910845826.0A Active CN110365547B (en) 2019-09-09 2019-09-09 Method, device and equipment for creating tenant node of multi-level tenant system and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110365547B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110730106A (en) * 2019-12-18 2020-01-24 数字广东网络建设有限公司 Electronic official document exchange method and device based on tree structure and computer equipment
CN111865943A (en) * 2020-07-02 2020-10-30 北京同创永益科技发展有限公司 Multi-level tenant authentication method and device based on micro-service
CN112532632A (en) * 2020-11-30 2021-03-19 数字广东网络建设有限公司 Resource allocation method and device for multi-level cloud platform and computer equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123616A (en) * 2014-07-25 2014-10-29 南京邮电大学 Cloud computing system towards multiple tenants
CN104144143A (en) * 2013-05-08 2014-11-12 华为技术有限公司 Network establishment method and control device
CN105917309A (en) * 2014-01-20 2016-08-31 惠普发展公司,有限责任合伙企业 Determining a permission of a first tenant with respect to a second tenant
CN108092806A (en) * 2017-12-11 2018-05-29 国云科技股份有限公司 A kind of administration of multiple roles method based on cloudy platform
CN108551399A (en) * 2018-03-29 2018-09-18 深信服科技股份有限公司 Dispositions method, system and the relevant apparatus serviced under a kind of cloud environment
CN109040276A (en) * 2018-08-20 2018-12-18 郑州云海信息技术有限公司 A kind of method, apparatus, computer storage medium and terminal constructing cloud platform
US20190065278A1 (en) * 2017-08-31 2019-02-28 Cisco Technology, Inc. Tenant-specific policy generation and enforcement within containers

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104144143A (en) * 2013-05-08 2014-11-12 华为技术有限公司 Network establishment method and control device
CN105917309A (en) * 2014-01-20 2016-08-31 惠普发展公司,有限责任合伙企业 Determining a permission of a first tenant with respect to a second tenant
CN104123616A (en) * 2014-07-25 2014-10-29 南京邮电大学 Cloud computing system towards multiple tenants
US20190065278A1 (en) * 2017-08-31 2019-02-28 Cisco Technology, Inc. Tenant-specific policy generation and enforcement within containers
CN108092806A (en) * 2017-12-11 2018-05-29 国云科技股份有限公司 A kind of administration of multiple roles method based on cloudy platform
CN108551399A (en) * 2018-03-29 2018-09-18 深信服科技股份有限公司 Dispositions method, system and the relevant apparatus serviced under a kind of cloud environment
CN109040276A (en) * 2018-08-20 2018-12-18 郑州云海信息技术有限公司 A kind of method, apparatus, computer storage medium and terminal constructing cloud platform

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
赖春彬: "Warden多租户网络隔离设计与实现", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110730106A (en) * 2019-12-18 2020-01-24 数字广东网络建设有限公司 Electronic official document exchange method and device based on tree structure and computer equipment
CN110730106B (en) * 2019-12-18 2020-04-17 数字广东网络建设有限公司 Electronic official document exchange method and device based on tree structure and computer equipment
CN111865943A (en) * 2020-07-02 2020-10-30 北京同创永益科技发展有限公司 Multi-level tenant authentication method and device based on micro-service
CN112532632A (en) * 2020-11-30 2021-03-19 数字广东网络建设有限公司 Resource allocation method and device for multi-level cloud platform and computer equipment

Also Published As

Publication number Publication date
CN110365547B (en) 2019-12-24

Similar Documents

Publication Publication Date Title
CN110365547A (en) Tenant's node creation method, device, equipment and the medium of multi-layer tenant's system
CN105808633B (en) Data archiving method and system
CN105531688B (en) The service of resource as other services is provided
CN105808323A (en) Virtual machine creation method and system
CN105589715A (en) Information processing device, library loading method, and computer readable medium
US20080104250A1 (en) Identity migration system apparatus and method
CN106598737A (en) Method and device for implementing hardware resource allocation
CN104252454A (en) Method and system for multi-tenant mode data authority control oriented to cloud calculation
CN109189572A (en) A kind of resource predictor method and system, electronic equipment and storage medium
CN112685091A (en) Service request processing method, device, equipment and medium based on big data
CN109033365B (en) Data processing method and related equipment
CN106649654A (en) Data updating method and device
CN113592426A (en) Generation method and device of approval strategy, computer equipment and storage medium
CN109190888A (en) project evaluation distribution method, device, terminal device and storage medium
CN108667940A (en) Resource allocation methods, device and the computer readable storage medium of cloud platform
CN112433983B (en) File system management method supporting multi-job parallel IO performance isolation
CN107562520A (en) The method and apparatus of the internal memory of dilatation virtual machine
CN106293966A (en) The communication means of AP layer and SP layer and LFS system in a kind of LFS system
CN110969354A (en) Linear flow configuration method and device, computer equipment and storage medium
CN114090969B (en) Multilevel multi-tenant cross authorization management method
US8656410B1 (en) Conversion of lightweight object to a heavyweight object
CN106598687A (en) Script preheating method and device
CN113052696A (en) Financial business task processing method and device, computer equipment and storage medium
CN112650598A (en) Multi-application access method for workflow system
CN109542631A (en) A kind of recurrence method, apparatus, server and the storage medium of standby host

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
CP02 Change in the address of a patent holder

Address after: 7, 9-12 / F, Zhujiang Yide building, 362 Dongfeng Middle Road, Yuexiu District, Guangzhou, Guangdong 510000

Patentee after: DIGITAL GUANGDONG NETWORK CONSTRUCTION Co.,Ltd.

Address before: 510300 room 230, building 14, No. 788, Guangzhou Avenue South, Haizhu District, Guangzhou City, Guangdong Province

Patentee before: DIGITAL GUANGDONG NETWORK CONSTRUCTION Co.,Ltd.

CP02 Change in the address of a patent holder