CN113923130A - Multi-tenant open interface resource configuration method, device and terminal - Google Patents
Multi-tenant open interface resource configuration method, device and terminal Download PDFInfo
- Publication number
- CN113923130A CN113923130A CN202111041837.7A CN202111041837A CN113923130A CN 113923130 A CN113923130 A CN 113923130A CN 202111041837 A CN202111041837 A CN 202111041837A CN 113923130 A CN113923130 A CN 113923130A
- Authority
- CN
- China
- Prior art keywords
- tenant
- user
- queue
- processing unit
- idle processing
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000012545 processing Methods 0.000 claims abstract description 90
- 238000004590 computer program Methods 0.000 claims description 18
- 230000006870 function Effects 0.000 description 8
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000002955 isolation Methods 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000001121 heart beat frequency Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5041—Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/50—Network service management, e.g. ensuring proper service fulfilment according to agreements
- H04L41/5041—Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
- H04L41/5054—Automatic deployment of services triggered by the service manager, e.g. service implementation by automatic configuration of network components
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
Abstract
The application discloses a multi-tenant open interface resource configuration method, device and terminal. The method comprises the following steps: receiving a service request of a user, wherein the service request at least comprises a tenant identification of a tenant queue to which the user belongs and user request information; if the tenant identification is matched with the preset tenant identification, judging whether the configuration information of the tenant queue to which the user belongs meets the preset condition; if the configuration information meets the preset condition, inquiring whether an idle processing unit exists; and if the idle processing unit exists, calling the idle processing unit to provide service for the user according to the user request information. The method and the system solve the technical problem that users under each tenant can not enjoy services according to appointed authorities in the related art.
Description
Technical Field
The present application relates to the technical field of resource configuration, and in particular, to a method, an apparatus, and a terminal for configuring resources of an open interface of multiple tenants.
Background
An open interface is a way for an internet enterprise to request processing power for external vendors or an internal shared network. Because the open interface can simultaneously support a plurality of tenants, each tenant can accommodate a plurality of users, and how the plurality of tenants share the open interface resources becomes a problem to be solved urgently.
At present, for the sharing of the open interface resources of multiple tenants, resource sharing permissions are generally set for different tenants, that is, the sharing of the open interface resources is appropriately controlled according to the importance, the use strength and the payment condition of the tenants.
However, the above method for configuring resources of an open interface of multiple tenants results in that users under each tenant cannot enjoy services according to the agreed authority.
Disclosure of Invention
The present application mainly aims to provide a method, an apparatus, and a terminal for configuring resources of an open interface of multiple tenants, so as to solve the problem in the related art that a user under each tenant cannot enjoy services according to an agreed authority.
In order to achieve the above object, in a first aspect, the present application provides a method for configuring an open interface resource of multiple tenants, including:
receiving a service request of a user, wherein the service request at least comprises a tenant identification of a tenant queue to which the user belongs and user request information;
if the tenant identification is matched with the preset tenant identification, judging whether the configuration information of the tenant queue to which the user belongs meets the preset condition;
if the configuration information meets the preset condition, inquiring whether an idle processing unit exists;
and if the idle processing unit exists, calling the idle processing unit to provide service for the user according to the user request information.
In one possible implementation, the configuration information includes a number of calls and a number of concurrencies;
if the tenant identification is matched with the preset tenant identification, judging whether the configuration information of the tenant queue to which the user belongs meets the preset conditions or not, wherein the steps comprise:
if the tenant identification is matched with the preset tenant identification, whether the calling times of the tenant queue to which the user belongs reach a first upper limit value and whether the concurrence number of the tenant queue to which the user belongs reach a second upper limit value are judged.
In a possible implementation manner, if the configuration information satisfies a preset condition, querying whether there is an idle processing unit, includes:
and if the calling times of the tenant queue to which the user belongs do not reach the first upper limit value and the concurrence number of the tenant queue to which the user belongs does not reach the second upper limit value, inquiring whether an idle processing unit exists.
In a possible implementation manner, if there is an idle processing unit, after invoking the idle processing unit to provide a service for a user according to user request information, the method further includes:
and judging whether the next tenant queue of the tenant queue to which the user belongs sends a service request.
In one possible implementation, the method further includes:
and if the idle processing unit does not exist, waiting at the tenant queue of the user until the idle processing unit exists.
In one possible implementation, the method further includes:
and if the service request of the user is not received, judging whether the next tenant queue of the tenant queue to which the user belongs sends the service request.
In one possible implementation, the method further includes:
if the tenant identification is matched with the preset tenant identification, the service request is sent to a tenant queue to which the user belongs;
and if the tenant identification is not matched with the preset tenant identification, sending request failure information to the user.
In one possible implementation, the method further includes:
and if the configuration information does not meet the preset condition, judging whether the next tenant queue of the tenant queue to which the user belongs sends a service request.
In a second aspect, an embodiment of the present invention provides a multi-tenant open interface resource configuration apparatus, including:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a service request of a user, and the service request at least comprises a tenant identification of a tenant queue to which the user belongs and user request information;
the judging module is used for judging whether the configuration information of the tenant queue to which the user belongs meets a preset condition or not if the tenant identification is matched with a preset tenant identification;
the query module is used for querying whether an idle processing unit exists or not if the configuration information meets the preset condition;
and the resource allocation module is used for calling the idle processing unit to provide service for the user according to the user request information if the idle processing unit exists.
In a third aspect, an embodiment of the present invention provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor, when executing the computer program, implements the steps of the method for configuring an open interface resource of any multi-tenant.
In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the steps of the method for configuring an open interface resource of any multi-tenant as described above are implemented.
The embodiment of the invention provides a method, a device and a terminal for configuring open interface resources of multiple tenants, wherein the method comprises the steps of receiving a service request of a user, wherein the service request at least comprises a tenant identification of a tenant queue to which the user belongs and user request information, judging whether configuration information of the tenant queue to which the user belongs meets a preset condition or not if the tenant identification is matched with the preset tenant identification, inquiring whether an idle processing unit exists or not if the configuration information meets the preset condition, and finally calling the idle processing unit to provide services for the user according to the user request information if the idle processing unit exists. The invention quantifies the open interface resources, sets the upper limit of the processing capacity of the open interface, uniformly places the calls exceeding the upper limit of the processing capacity in a queue mechanism to wait for the release of the processing resources, and avoids the condition of call failure caused by the call reaching the upper limit of the processing capacity. In addition, the resource distribution is realized through the configuration information, the condition that the resource is exhausted by part of specific tenants is avoided, the processing capacity promised by a multi-tenant system provider can be obtained by users in each tenant according to the needs, and the processing capacity can be dynamically adjusted in the tenant service peak period, so that the users can enjoy the service according to the promissory authority.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, serve to provide a further understanding of the application and to enable other features, objects, and advantages of the application to be more apparent. The drawings and their description illustrate the embodiments of the invention and do not limit it. In the drawings:
fig. 1 is an application scenario diagram of a multi-tenant open interface resource configuration method according to an embodiment of the present invention;
fig. 2 is a flowchart of an implementation of a method for configuring resources of an open interface of multiple tenants according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an open interface resource configuration apparatus for multiple tenants according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
An open interface is a way for an internet enterprise to request processing power for external vendors or an internal shared network. From the perspective of the user of the open interface, this network request processing capability is a resource that can be obtained through procurement or self-construction. The multi-tenant system is a system which can provide unified services outside a tenant level isolation data pair, each tenant can accommodate a plurality of users, and the multi-tenant can enjoy open interface resource services according to requirements. However, the purchased or self-built open interface resources have usage restrictions, and a call failure may occur when the number of calls reaches the upper limit of the open interface service capability in a unit time. Meanwhile, as users under the same tenant in data isolation have an exclusive use experience of the system when using the system, all functions in the system should not be influenced by the use of other tenant users.
According to the above problems, it is an object of the present invention to provide a system capable of fairly obtaining an open interface resource enjoying service when a user of a specific tenant in a multi-tenant system uses the system, and preventing the user from being unable to enjoy the service due to exhaustion of the open interface resource when another tenant user uses the system with high intensity. In addition, the allocation of resources can be properly controlled according to the importance, the use intensity and the payment condition of the tenant, and the dynamic increase/decrease of the processing capacity provided for the tenant is realized. Therefore, the invention provides a multi-tenant open interface resource configuration method.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following description is made by way of specific embodiments with reference to the accompanying drawings.
The method for configuring the multi-tenant open interface resources can be applied to the application environment shown in fig. 1. If the first tenant queue is a tenant queue to which the following user belongs, the server receives a service request of the user, wherein the service request at least comprises a tenant identification of the first tenant queue and user request information; if the tenant identification is matched with the preset tenant identification, judging whether the configuration information of the first tenant queue meets the preset condition; if the configuration information meets the preset condition, inquiring whether an idle processing unit exists; and if the idle processing unit exists, calling the idle processing unit to provide service for the user according to the user request information. After providing service for the first tenant queue, the server judges whether the second tenant queue has a user to send a service request, if not, the server judges whether the third tenant queue has a user to send a service request until the tenant queue has a user to send a service request, and the server provides service according to a processing mode of the service request of the user in the first tenant queue. The server may be implemented as a stand-alone server or as a server cluster consisting of a plurality of servers.
In an embodiment, as shown in fig. 2, a method for configuring an open interface resource of multiple tenants is provided, which is described by taking the method as an example applied to the server in fig. 1, and includes the following steps:
step S101: receiving a service request of a user;
step S102: if the tenant identification is matched with the preset tenant identification, judging whether the configuration information of the tenant queue to which the user belongs meets the preset condition;
step S103: if the configuration information meets the preset condition, inquiring whether an idle processing unit exists;
step S104: and if the idle processing unit exists, calling the idle processing unit to provide service for the user according to the user request information.
The service request at least comprises the tenant identification of the tenant queue to which the user belongs and user request information.
Specifically, the invention quantifies the open interface resources, determines the segmentation standard, calculates the number of processing units which can be created, and puts the minimum processing units created in batches into a resource pool for standby. The resource pool can provide the number of the idle processing units and the idle processing units to be operated, and can recycle the processing units after the processing units are used.
When a tenant sends a service request, a routing unit is established between the server and the tenant queue when the server receives the service request, and the routing unit can pre-extract the tenant identification (namely the preset tenant identification) of the tenant queue from the server. When the request reaches the routing unit, extracting the tenant identification in the service request to be matched with the tenant identification of the tenant queue extracted in advance, and distributing the successfully matched user request information to the tenant queue with the same tenant identification. And judging whether an idle processing unit exists or not, and if so, calling the idle processing unit to provide service for the user according to the user request information.
Further, taking a tenant as an enterprise as an example, when the enterprise purchases interface resources, the enterprise assigns usage rights to users inside the enterprise. When a single user initiates a service request through a network tool, the service request carries a tenant identification which can represent an enterprise where the user is located, and when the service request reaches an interface resource provider server, the tenant identification in the service request for the server is matched with the tenant identifications of all queues. If the tenant identification is matched with the preset tenant identification, the service request is sent to a tenant queue to which the user belongs; and if the tenant identification is not matched with the preset tenant identification, sending request failure information to the user.
Compared with the prior art, the method for configuring the open interface resources of the multiple tenants comprises the steps of receiving a service request of a user, judging whether configuration information of a tenant queue of the user meets a preset condition or not if a tenant identification is matched with a preset tenant identification, inquiring whether an idle processing unit exists or not if the configuration information meets the preset condition, and finally calling the idle processing unit to provide services for the user according to user request information if the idle processing unit exists. The invention quantifies the open interface resources, sets the upper limit of the processing capacity of the open interface, uniformly places the calls exceeding the upper limit of the processing capacity in a queue mechanism to wait for the release of the processing resources, and avoids the condition of call failure caused by the call reaching the upper limit of the processing capacity. In addition, the resource distribution is realized through the configuration information, the condition that the resource is exhausted by part of specific tenants is avoided, the processing capacity promised by a multi-tenant system provider can be obtained by users in each tenant according to the needs, and the processing capacity can be dynamically adjusted in the tenant service peak period, so that the users can enjoy the service according to the promissory authority.
In one embodiment, step S102 includes:
if the tenant identification is matched with the preset tenant identification, whether the calling times of the tenant queue to which the user belongs reach a first upper limit value and whether the concurrence number of the tenant queue to which the user belongs reach a second upper limit value are judged.
The configuration information comprises calling times and concurrency numbers. The server is provided with a tenant level processing counter which records the number of times of calling of the tenant (namely the number of times of used processing) and the number of times of concurrence of the tenant in unit time. According to the agreement between the open interface resources and the tenants, a maximum calling number (namely a first upper limit value) and a maximum concurrent number (namely a second upper limit value) are set for each tenant, then the calling number and the maximum calling number of the tenant queue to which the user belongs, the concurrent number and the maximum concurrent number are compared, and whether to query the idle processing unit is determined based on the comparison result.
In one embodiment, step S103 includes:
and if the calling times of the tenant queue to which the user belongs do not reach the first upper limit value and the concurrence number of the tenant queue to which the user belongs does not reach the second upper limit value, inquiring whether an idle processing unit exists.
Specifically, when the number of calls of the tenant queue to which the user belongs is less than the maximum number of calls and the number of concurrences is less than the maximum number of concurrences, whether an idle processing unit exists is queried. If the idle processing unit exists, calling the idle processing unit to provide service for the user according to the user request information; and if the idle processing unit does not exist, waiting at the tenant queue of the user until the idle processing unit exists.
Correspondingly, when any one of the calling times and the concurrency number reaches the corresponding upper limit value, the idle processing unit is not inquired, and the processing unit moves to the next tenant queue to judge whether the next tenant queue sends the service request.
In an embodiment, after step S104, the method further includes:
and judging whether the next tenant queue of the tenant queue to which the user belongs sends a service request.
Specifically, a processing module in the open access resource server in the present invention traverses all tenant queues, if the processing unit reaches the current tenant unit (i.e. the tenant queue to which the user belongs), and the current tenant queue sends out a service request, the step S102-step S104 is executed according to the service request, and when the execution is finished, the processing unit moves to the next tenant queue, and determines whether the next tenant queue sends the service request; the processing unit does not receive the service request of the current tenant queue, moves to the next tenant queue and judges whether the next tenant queue sends the service request.
Further, if the next tenant queue sends out the service request, step S102-step S104 are executed according to the service request, and when the execution is finished, the tenant queue continues to move to the next tenant queue, and the service request of the tenant queue is processed circularly.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.
The following are embodiments of the apparatus of the invention, reference being made to the corresponding method embodiments described above for details which are not described in detail therein.
Fig. 3 illustrates a schematic structural diagram of a multi-tenant open interface resource configuration apparatus according to an embodiment of the present invention, and for convenience of description, only a part related to the embodiment of the present invention is illustrated, which is detailed as follows:
as shown in fig. 3, an apparatus for configuring an open interface resource of multiple tenants includes: the receiving module 31, the judging module 32, the querying module 33 and the resource configuring module 34 are as follows:
a receiving module 31, configured to receive a service request of a user, where the service request at least includes a tenant identifier of a tenant queue to which the user belongs and user request information;
the judging module 32 is configured to, if the tenant identifier matches a preset tenant identifier, judge whether configuration information of a tenant queue to which the user belongs meets a preset condition;
the query module 33 is configured to query whether an idle processing unit exists if the configuration information meets a preset condition;
and the resource configuration module 34 is configured to, if an idle processing unit exists, invoke the idle processing unit to provide a service for the user according to the user request information.
In one possible implementation, the configuration information includes a number of calls and a number of concurrencies;
the judging module 32 includes:
and the judgment sub-module is used for judging whether the calling times of the tenant queue to which the user belongs reach a first upper limit value and whether the concurrence number of the tenant queue to which the user belongs reaches a second upper limit value if the tenant identification is matched with the preset tenant identification.
In one possible implementation, the query module 33 includes:
and the query submodule is used for querying whether an idle processing unit exists or not if the calling times of the tenant queue to which the user belongs do not reach the first upper limit value and the concurrence number of the tenant queue to which the user belongs does not reach the second upper limit value.
In a possible implementation manner, after the resource configuration module 34, the method further includes:
and the traversal module is used for judging whether the next tenant queue of the tenant queue to which the user belongs sends the service request.
In one possible implementation, the method further includes:
and the to-be-processed module is used for waiting at the tenant queue of the user until the idle processing unit exists if the idle processing unit does not exist.
In one possible implementation, the method further includes:
and the first skip module is used for judging whether the next tenant queue of the tenant queue to which the user belongs sends the service request or not when the service request of the user is not received.
In one possible implementation, the method further includes:
the first feedback module is used for sending the service request to a tenant queue to which the user belongs if the tenant identification is matched with a preset tenant identification;
and the second feedback module is used for sending request failure information to the user if the tenant identification is not matched with the preset tenant identification.
In one possible implementation, the method further includes:
and the second skipping module is used for judging whether the next tenant queue of the tenant queue to which the user belongs sends the service request or not if the configuration information does not meet the preset condition.
Fig. 4 is a schematic diagram of a terminal according to an embodiment of the present invention. As shown in fig. 4, the terminal 4 of this embodiment includes: a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processor 40. The processor 40 executes the computer program 42 to implement the steps in the above-mentioned embodiments of the method for configuring an open interface resource of multiple tenants, such as the steps 101 to 104 shown in fig. 2. Alternatively, the processor 40, when executing the computer program 42, implements the functions of the various modules/units in the above-described apparatus embodiments, such as the functions of the modules/units 31 to 34 shown in fig. 3.
Illustratively, the computer program 42 may be partitioned into one or more modules/units, which are stored in the memory 41 and executed by the processor 40 to implement the present invention. One or more of the modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 42 in the terminal. For example, the computer program 42 may be divided into the modules/units 31 to 34 shown in fig. 3.
The terminal can be a desktop computer, a notebook, a palm computer, a cloud server and other computing equipment. The terminal may include, but is not limited to, a processor 40, a memory 41. It will be appreciated by those skilled in the art that fig. 4 is only an example of a terminal and is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or different components, for example, the data processing apparatus may also include input output devices, network access devices, buses, etc.
The Processor 40 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 41 may be an internal storage unit of the terminal 4, such as a hard disk or a memory of the terminal 4. The memory 41 may also be an external storage device of the terminal 4, such as a plug-in hard disk provided on the terminal 4, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 41 may also include both an internal storage unit of the terminal 4 and an external storage device. The memory 41 is used for storing computer programs and other programs and data required by the data processing apparatus. The memory 41 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described apparatus/terminal embodiments are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the above embodiments may be implemented by a computer program, which is stored in a computer readable storage medium and used for instructing related hardware to implement the steps of the embodiments of the method for determining the heartbeat frequency described above when being executed by a processor. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may include any suitable increase or decrease as required by legislation and patent practice in the jurisdiction, for example, in some jurisdictions, computer readable media may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.
Claims (10)
1. A multi-tenant open interface resource configuration method is characterized by comprising the following steps:
receiving a service request of a user, wherein the service request at least comprises a tenant identification of a tenant queue to which the user belongs and user request information;
if the tenant identification is matched with a preset tenant identification, judging whether the configuration information of the tenant queue to which the user belongs meets a preset condition;
if the configuration information meets the preset condition, inquiring whether an idle processing unit exists;
and if the idle processing unit exists, calling the idle processing unit to provide service for the user according to the user request information.
2. The method of claim 1, wherein the configuration information includes a number of calls and a number of concurrencies;
if the tenant identification is matched with a preset tenant identification, judging whether the configuration information of the tenant queue to which the user belongs meets a preset condition or not, wherein the judgment comprises the following steps:
if the tenant identification is matched with the preset tenant identification, whether the calling times of the tenant queue to which the user belongs reach a first upper limit value and whether the concurrence number of the tenant queue to which the user belongs reach a second upper limit value are judged.
3. The method of claim 2, wherein said querying whether there is an idle processing unit if the configuration information satisfies a predetermined condition comprises:
and if the calling times of the tenant queue to which the user belongs do not reach a first upper limit value and the concurrence number of the tenant queue to which the user belongs does not reach a second upper limit value, inquiring whether an idle processing unit exists.
4. The method according to any of claims 1-3, wherein if there is an idle processing unit, after invoking the idle processing unit to provide service to the user according to the user request information, further comprising:
and judging whether the next tenant queue of the tenant queue to which the user belongs sends a service request.
5. The method of any one of claims 1-3, further comprising:
and if the idle processing unit does not exist, waiting at the tenant queue of the user until the idle processing unit exists.
6. The method of any one of claims 1-3, further comprising:
and if the service request of the user is not received, judging whether the next tenant queue of the tenant queue to which the user belongs sends the service request.
7. The method of any one of claims 1-3, further comprising:
if the tenant identification is matched with a preset tenant identification, the service request is sent to a tenant queue to which the user belongs;
and if the tenant identification is not matched with the preset tenant identification, sending request failure information to the user.
8. The method of any one of claims 1-3, further comprising:
and if the configuration information does not meet the preset condition, judging whether the next tenant queue of the tenant queue to which the user belongs sends a service request.
9. An apparatus for configuring an open interface resource of multiple tenants, comprising:
the system comprises a receiving module, a sending module and a receiving module, wherein the receiving module is used for receiving a service request of a user, and the service request at least comprises a tenant identification and user request information of a tenant queue to which the user belongs;
the judging module is used for judging whether the configuration information of the tenant queue to which the user belongs meets a preset condition or not if the tenant identification is matched with a preset tenant identification;
the query module is used for querying whether an idle processing unit exists or not if the configuration information meets the preset condition;
and the resource configuration module is used for calling the idle processing unit to provide service for the user according to the user request information if the idle processing unit exists.
10. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of the open interface resource configuration method for multi-tenant according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111041837.7A CN113923130B (en) | 2021-09-06 | 2021-09-06 | Multi-tenant open interface resource configuration method, device and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111041837.7A CN113923130B (en) | 2021-09-06 | 2021-09-06 | Multi-tenant open interface resource configuration method, device and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113923130A true CN113923130A (en) | 2022-01-11 |
CN113923130B CN113923130B (en) | 2024-03-08 |
Family
ID=79234014
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111041837.7A Active CN113923130B (en) | 2021-09-06 | 2021-09-06 | Multi-tenant open interface resource configuration method, device and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113923130B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114547494A (en) * | 2022-02-24 | 2022-05-27 | 特赞(上海)信息科技有限公司 | Total station navigation configuration system, method, electronic equipment and medium of multi-tenant system |
CN114567567A (en) * | 2022-02-24 | 2022-05-31 | 特赞(上海)信息科技有限公司 | Self-adaptive multi-cloud storage resource management method and system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63159940A (en) * | 1986-12-24 | 1988-07-02 | Nec Corp | Control system for allocation of central processing unit |
CN105630604A (en) * | 2015-12-18 | 2016-06-01 | 国云科技股份有限公司 | SLA based multi-tenant virtual machine resource allocation method |
CN106897124A (en) * | 2015-12-18 | 2017-06-27 | 华为软件技术有限公司 | A kind of multi-tenant request processing method, device and equipment |
US20170251076A1 (en) * | 2016-02-29 | 2017-08-31 | Red Hat Inc. | Quality of service in a distributed system |
WO2019196251A1 (en) * | 2018-04-12 | 2019-10-17 | 平安科技(深圳)有限公司 | Resource data packet processing method and apparatus, terminal device, and medium |
CN110913082A (en) * | 2018-09-14 | 2020-03-24 | 中国电信股份有限公司 | Call center and cloud resource multi-tenant management method, device and system thereof |
CN111478961A (en) * | 2020-04-03 | 2020-07-31 | 中国建设银行股份有限公司 | Multi-tenant service calling method and device |
-
2021
- 2021-09-06 CN CN202111041837.7A patent/CN113923130B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63159940A (en) * | 1986-12-24 | 1988-07-02 | Nec Corp | Control system for allocation of central processing unit |
CN105630604A (en) * | 2015-12-18 | 2016-06-01 | 国云科技股份有限公司 | SLA based multi-tenant virtual machine resource allocation method |
CN106897124A (en) * | 2015-12-18 | 2017-06-27 | 华为软件技术有限公司 | A kind of multi-tenant request processing method, device and equipment |
US20170251076A1 (en) * | 2016-02-29 | 2017-08-31 | Red Hat Inc. | Quality of service in a distributed system |
WO2019196251A1 (en) * | 2018-04-12 | 2019-10-17 | 平安科技(深圳)有限公司 | Resource data packet processing method and apparatus, terminal device, and medium |
CN110913082A (en) * | 2018-09-14 | 2020-03-24 | 中国电信股份有限公司 | Call center and cloud resource multi-tenant management method, device and system thereof |
CN111478961A (en) * | 2020-04-03 | 2020-07-31 | 中国建设银行股份有限公司 | Multi-tenant service calling method and device |
Non-Patent Citations (3)
Title |
---|
XU CHENG ET AL.: "A multi-tenant oriented performance monitoring,detecting and scheduling architecture based on SLA", IEEE * |
王宇: "智慧停车云多租户性能隔离技术的研究与实现", 《中国优秀硕士学位论文全文数据库》, pages 5 * |
薛兴远: "面对多租户应用性能保障的准入控制机制研究", 《中国优秀硕士学位论文全文数据库》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114547494A (en) * | 2022-02-24 | 2022-05-27 | 特赞(上海)信息科技有限公司 | Total station navigation configuration system, method, electronic equipment and medium of multi-tenant system |
CN114567567A (en) * | 2022-02-24 | 2022-05-31 | 特赞(上海)信息科技有限公司 | Self-adaptive multi-cloud storage resource management method and system |
CN114567567B (en) * | 2022-02-24 | 2024-03-01 | 特赞(上海)信息科技有限公司 | Resource management method and system for self-adaptive multi-cloud storage |
Also Published As
Publication number | Publication date |
---|---|
CN113923130B (en) | 2024-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109710236B (en) | Service development and implementation method, device, platform and medium based on shared service | |
CN108427649A (en) | Access management method, terminal device, system and the storage medium of USB interface | |
CN107465687B (en) | Method, device and terminal for realizing permission configuration | |
CN113923130B (en) | Multi-tenant open interface resource configuration method, device and terminal | |
CN113361838A (en) | Business wind control method and device, electronic equipment and storage medium | |
CN111127181A (en) | Voucher bookkeeping method and device | |
CN111163052A (en) | Method, device, medium and electronic equipment for connecting Internet of things platform | |
CN110213250B (en) | Data processing method and terminal equipment | |
CN113946816A (en) | Cloud service-based authentication method and device, electronic equipment and storage medium | |
CN114296953A (en) | Multi-cloud heterogeneous system and task processing method | |
CN113010238A (en) | Permission determination method, device and system for micro application call interface | |
CN111475230B (en) | Application function configuration method and device and electronic equipment | |
CN113541981B (en) | Member management method and system for network slice | |
CN111382141B (en) | Master-slave architecture configuration method, device, equipment and computer readable storage medium | |
CN109933959B (en) | License control method and related equipment | |
CN111045928A (en) | Interface data testing method, device, terminal and storage medium | |
CN113395326B (en) | Network service-based login method, device and computer-readable storage medium | |
CN110366164A (en) | The method of remote control terminal, terminal, calculates equipment and storage medium at server | |
CN115454616A (en) | Service resource allocation method and device, electronic equipment and storage medium | |
CN110389977B (en) | Database connection creating method and device and terminal equipment | |
CN109756362B (en) | Integrated processing method and device for third-party security component | |
CN105959406A (en) | User right splitting method and system | |
CN113703933A (en) | Task processing method and device | |
CN113760487A (en) | Service processing method and device | |
EP4443817A1 (en) | Method for processing cloud service in cloud system, and related apparatus |
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 |