A method, system and device for determining tenant system resource value
By receiving tenant system resource query requests, the tenant's activity is determined and the resource value is calculated, the resource waste problem caused by the tenant's unclear use of system resources is solved, and the balanced allocation of resources and the balance of system load is achieved.
Patent Information
- Application Number
- CN202111601405.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-24
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2041-12-24
AI Technical Summary
In the prior art, the cost of tenants using the system is unclear, resulting in low resource utilization and waste of resources. Especially due to the different times each tenant visits the system, the resource allocation is uneven.
By receiving a system resource query request carrying a tenant's identity, the tenant's activity is determined, and the calculation resource value and storage resource value used by the tenant are calculated based on the activity, so as to achieve balanced resource allocation. The specific method includes obtaining the number of times the tenant accesses the system, calculating the resource proportion and storing the resource proportion, and then determining the resource quantity value of the tenant.
The balanced allocation of resources is achieved, the resource waste among tenants is avoided, and the system load is balanced.
Smart Images

Figure CN114297256B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of database technology, and in particular to a method, system and device for determining a tenant system resource value. Background Art
[0002] With the development of Internet technology, more and more products are deployed on the SAAS side. Tenants can order the required application software services from manufacturers through the Internet according to actual work needs, pay fees to manufacturers according to the amount of ordered services and the length of time, and obtain services provided by SAAS platform suppliers through the Internet.
[0003] Application software providers often charge tenants a one-time fee for using their accounts, for example, an annual fee. However, the fees for tenants to use the system are unclear, and because each tenant accesses the system at different times, this can lead to low resource utilization and waste of resources.
[0004] Therefore, there is an urgent need for a method that can determine the amount of system resources for tenants by considering the tenant activity. Summary of the invention
[0005] The embodiments of this specification provide a method, system and device for determining the value of tenant system resources to solve the problem of wasting system resources in the existing system resource allocation method and achieve the purpose of resource balancing.
[0006] To solve the above technical problems, the embodiments of this specification are implemented as follows:
[0007] The method for determining the value of tenant system resources provided in the embodiments of this specification includes:
[0008] Receive a system resource query request carrying a tenant identifier, the system resource query request being used to query a value of computing resources used by the tenant;
[0009] Determining the tenant's access activity to the system according to the tenant identifier;
[0010] The amount of computing resources used by the tenant is determined according to the activity of the tenant in accessing the system.
[0011] Optionally, determining the activity of the tenant accessing the system according to the tenant identifier includes:
[0012] According to the tenant identifier, obtaining a project identifier of at least one project information associated with the tenant identifier;
[0013] According to the project identifier, a plurality of subject identifiers associated with the project identifier are obtained;
[0014] Determining the number of times the tenant accesses the system according to the number of times the subject identifier accesses the system;
[0015] Obtaining the total number of visits to the system;
[0016] Determining the computing resource ratio of the tenant according to the number of times the tenant accesses the system and the total number of times the system is accessed;
[0017] According to the computing resource ratio, the amount of computing resources used by the tenant is determined.
[0018] Optionally, determining the number of times the tenant accesses the system according to the number of times the subject identifier accesses the system includes:
[0019] Acquire the tracking data acquired by the system in a tracking manner, wherein the tracking data is data collected from the data of the subject identifier interacting with the system;
[0020] The number of times the subject identification accesses the system is determined based on the buried data.
[0021] Optionally, the system resource query request is also used to query the value of storage resources used by the tenant;
[0022] Determining the storage space of the tenant according to the subject identifier;
[0023] Get the total storage space of the system;
[0024] Calculating the storage resource ratio of the tenant according to the storage space of the tenant and the total storage space of the system;
[0025] The storage resource amount used by the tenant is determined according to the storage resource ratio.
[0026] Optionally, determining the storage space of the tenant according to the subject identifier includes:
[0027] Determining, according to the subject identifier, attribute information of the subject associated with the subject identifier;
[0028] The storage space of the tenant is determined according to the storage space occupied by the attribute information.
[0029] The system for determining the value of tenant system resources provided by the embodiment of this specification has an access page, and the access page includes:
[0030] A tenant management module, used to create different types of tenants, the tenant management module is associated with the project management module;
[0031] The project management module is used to create a product experiment model, so that the subject can feed back parameters associated with the product experiment model to the project management module;
[0032] A subject management module, used to create a subject module, wherein the subject module is associated with the project management module;
[0033] A storage resource management module, used to allocate required storage resources to the tenant;
[0034] The computing resource management module is used to apply the above-mentioned method for determining the tenant system resource value to query the computing resource value for the tenant.
[0035] The embodiment of this specification provides a device for determining a tenant system resource value, including:
[0036] A receiving unit, configured to receive a system resource query request carrying a tenant identifier, wherein the system resource query request is used to query a value of computing resources used by the tenant;
[0037] an activity determination unit, configured to determine the activity of the tenant in accessing the system according to the tenant identifier;
[0038] The first determining unit is used to determine the value of the computing resources used by the tenant according to the activity of the tenant accessing the system.
[0039] Optionally, the activity determination unit includes:
[0040] a project identification determination subunit, configured to obtain, according to the tenant identification, a project identification of at least one project information associated with the tenant identification;
[0041] A subject identification determination subunit, configured to obtain a plurality of subject identifications associated with the project identification according to the project identification;
[0042] An access count determination subunit, configured to determine the number of times the tenant has accessed the system according to the number of times the subject identifier has accessed the system;
[0043] A total number of access times determining subunit, used to obtain the total number of access times of the system;
[0044] A computing resource ratio subunit, used to determine the computing resource ratio of the tenant according to the number of times the tenant accesses the system and the total number of times the system is accessed;
[0045] The computing resource determination subunit is used to determine the amount of computing resources used by the tenant according to the computing resource ratio.
[0046] Optionally, the access count determination subunit is also used to obtain the tracking data obtained by the system through the tracking method, and the tracking data is data collected from the data of the interaction between the subject identifier and the system; based on the tracking data, determine the number of times the subject identifier visits the system.
[0047] Optionally, the receiving unit is further used to query the storage resource value used by the tenant; the device also includes:
[0048] a second determination unit, configured to determine the storage space of the tenant according to the subject identifier; the second determination unit is further configured to determine the attribute information of the subject associated with the subject identifier according to the subject identifier; and determine the storage space of the tenant according to the storage space occupied by the attribute information;
[0049] A second acquisition unit is used to acquire the total storage space of the system;
[0050] A second calculation unit, configured to calculate the storage resource ratio of the tenant according to the storage space of the tenant and the total storage space of the system;
[0051] The third determining unit is used to determine the amount of storage resources used by the tenant according to the storage resource ratio.
[0052] One embodiment of this specification can achieve at least the following beneficial effects:
[0053] When responding to a tenant's system resource query request, the tenant's activity on the system is detected by obtaining the number of times the tenant accesses the system, and the tenant's computing resource value is determined based on the tenant's activity in accessing the system. The method for determining the value of the tenant's use of system resources provided in the embodiments of this specification fully considers the tenant's activity and realizes balanced allocation of system resources. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0055] Figure 1 This is a schematic diagram of the overall solution flow of a method for determining a tenant system resource value provided by an embodiment of this specification;
[0056] Figure 2 It is a flowchart of a method for determining a tenant system resource value provided by an embodiment of this specification;
[0057] Figure 3 The embodiments of this specification provide corresponding to Figure 2 A schematic diagram of the structure of a system for determining a tenant system resource value;
[0058] Figure 4 The embodiments of this specification provide corresponding to Figure 2 A structural diagram of an apparatus for determining a tenant system resource value. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solutions and advantages of one or more embodiments of this specification clearer, the technical solutions of one or more embodiments of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of one or more embodiments of this specification.
[0060] It should be understood that although the terms first, second, third, etc. may be used in this application document to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
[0061] The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.
[0062] In the prior art, application software providers often charge tenants a one-time account usage fee, for example, an annual fee. However, the fees for tenants to use the system are unclear, and since each tenant accesses the system at different times, it will cause problems such as low resource utilization and waste of resources.
[0063] In order to solve the defects in the prior art, this solution provides the following embodiments:
[0064] Figure 1 This is a schematic diagram of the overall solution flow of a method for determining the value of tenant system resources provided by an embodiment of this specification. Figure 1 As shown, the overall solution includes a system and tenants, wherein software products are deployed on the system, and the tenants use the subscribed software products by accessing the system.
[0065] The system in the embodiments of this specification can be a software as a service platform (Software as a Service, referred to as SAAS platform). The SaaS platform is a software layout model designed for network delivery, which is convenient for application software providers to host, deploy and access through the Internet. SAAS platform providers build all network infrastructure and software and hardware operation platforms required for informatization for enterprises.
[0066] In this embodiment, the software product deployed on the SAAS platform may be an Electronic Data Capture System (EDC system for short), which is a platform software suitable for clinical trial data collection and transmission. The platform software can input clinical research data online, eliminating the need to fill out paper case report forms. For example, laboratory data, electrocardiogram, electroencephalogram and other examination data can be directly uploaded to the database, greatly reducing the workload of input.
[0067] Tenants rent the EDC system and create multiple projects in the EDC system to build product models according to the project objectives. Among them, the project can be data collection for new drugs in the research and development stage. The data collected for different projects can be different. The subjects provide corresponding experimental data according to the clinical research stage of the drug. In actual applications, the experimental data of the subjects can be obtained by the tenant assigning permissions to the hospital.
[0068] Figure 2 This is a flow chart of a method for determining the value of tenant system resources provided by an embodiment of this specification. From a program perspective, the execution subject of the process can be a program installed in an application system or an application terminal.
[0069] like Figure 2 As shown, the process may include the following steps:
[0070] Step 202: Receive a system resource query request carrying a tenant identifier, where the system resource query request is used to query the value of computing resources used by the tenant.
[0071] Tenants rent application software located in the system and need to pay fees to the application software provider.
[0072] The tenant ID can be in the form of a string, for example: USER001. System resources can include computing resources and storage resources, where computing resources refer to the consumption of the system's central processing unit (CPU) and memory when the tenant accesses the software product. Storage resources refer to the amount of disk space occupied by the tenant's related data.
[0073] In actual applications, system resources also include the fees for tenants to create new accounts. For example, during the project, tenants need to pay fees to the application software provider when they open new temporary accounts or management accounts. The above fees of tenants can be queried through system resource query requests.
[0074] Step 204: Determine the tenant's activity in accessing the system according to the tenant identifier.
[0075] Step 206: Determine the amount of computing resources used by the tenant based on the tenant's activity in accessing the system.
[0076] The activity of a tenant may be the frequency of the tenant accessing the application software of the system, and the value of the computing resources used by the tenant is determined according to the frequency of the tenant accessing the application software of the system.
[0077] The method for determining the amount of system resources in the embodiment of this specification obtains the activity of the tenant in accessing the system and determines the amount of computing resources used by the tenant based on the activity of the tenant. The system resources in the embodiment of this specification are allocated according to the activity of the tenant, thereby avoiding resource waste between tenants and balancing the system load.
[0078] It should be understood that in the methods described in one or more embodiments of this specification, the order of some steps can be adjusted according to actual needs, or some steps can be omitted.
[0079] based on Figure 2 The method, the embodiments of this specification also provide some specific implementation methods of the method, which are described below.
[0080] Optionally, determining the activity of the tenant's access to the system based on the tenant identifier includes: obtaining a project identifier of at least one project information associated with the tenant identifier based on the tenant identifier; obtaining multiple subject identifiers associated with the project identifier based on the project identifier; determining the number of times the tenant accesses the system based on the number of times the subject identifier accesses the system; obtaining the total number of times the system is accessed; determining the tenant's computing resource ratio based on the number of times the tenant accesses the system and the total number of times the system is accessed; and determining the amount of computing resources used by the tenant based on the computing resource ratio.
[0081] The total number of system accesses refers to the total number of times the system is accessed by tenants within a predetermined time. For example, the predetermined time may be one day or one month. It should be understood that the predetermined time in the embodiments of this specification may also be other specific times.
[0082] After obtaining the total number of accesses and the number of times the tenant accesses the system, the computing resource ratio is obtained according to Formula 1, which is as follows:
[0083] Computing resource ratio = number of times a tenant accesses the system / total number of system accesses
[0084] The amount of computing resources used by the tenant is determined based on the rental fee of the system's CPU and memory within a scheduled time and the computing resource ratio.
[0085] In the embodiments of this specification, the tenant identifier is associated with at least one project identifier, and the number of project identifiers is related to the number of projects carried out by the tenant. The project identifier is associated with at least one subject identifier, and the number of subject identifiers is related to the content of the projects carried out by the tenant. Generally, a tenant will use EDC to carry out clinical trials of multiple drugs. In a clinical trial study of a drug (a project), multiple subjects will be recruited to experiment on parameters such as the efficacy of the new drug. The number of times the tenant has accessed the system is determined by the number of times the subject has accessed the system.
[0086] Optionally, determining the number of times the tenant accesses the system based on the number of times the subject identifier accesses the system includes: obtaining tracking data obtained by the system through tracking, the tracking data being data collected from the interaction between the subject identifier and the system; and determining the number of times the subject identifier accesses the system based on the tracking data.
[0087] In actual scenarios, certain characteristic information can be pre-set on the system, and this characteristic information can be carried in the interactive data of the tenant accessing the system. By checking whether the buried data carries the characteristic information, it can be determined whether the tenant has accessed the system, thereby recording the number of times the tenant has accessed the system. That is, the characteristic information is detected in the buried data. If the characteristic information is detected, it is determined that the tenant has accessed the system, otherwise, it is determined that the tenant has not accessed the system.
[0088] Through the above method, the tenant's access to the system can be accurately determined, and the amount of computing resources used by the tenant can be further determined based on the number of times the tenant accesses the system.
[0089] Optionally, the system resource query request is also used to query the amount of storage resources used by the tenant; determine the storage space of the tenant based on the subject identifier; obtain the total storage space of the system; calculate the storage resource ratio of the tenant based on the storage space of the tenant and the total storage space of the system; and determine the amount of storage resources used by the tenant based on the storage resource ratio.
[0090] The storage resource stores the experimental parameters related to the subject identification under the project identification. The total amount of storage space of the system can be the total amount of experimental parameters related to the subject identification stored in the system within the predetermined time. For example, the predetermined time can be one day or one month. It should be understood that the predetermined time in the embodiments of this specification can also be other exact times.
[0091] After obtaining the total storage space of the system and the storage space of the tenant, the storage resource ratio is calculated according to Formula 2, which is as follows:
[0092] Storage resource ratio = tenant's storage space / total system storage space
[0093] Optionally, determining the storage space of the tenant based on the subject identifier includes: determining attribute information of the subject associated with the subject identifier based on the subject identifier; and determining the storage space of the tenant based on the storage space occupied by the attribute information.
[0094] The attribute information may be related experimental parameters under the subject identification, such as blood sugar, blood pressure and other experimental parameters, or image parameters such as electrocardiogram and B-ultrasound images.
[0095] According to the above description, an embodiment of this specification provides a method for determining the value of tenant system resources in an actual application scenario.
[0096] The EDC system is deployed on the system platform. The EDC system needs to pay fees to the SAAS platform, which includes the fees for renting disks, CPUs, and memory. Tenants need to pay fees to the EDC system to use the EDC system. The EDC system needs to charge each tenant based on the system rental fees they need to pay. The tenant's fees are also divided into two parts: the fees for renting disks and the fees for renting CPUs and memory.
[0097] When the storage resource is a disk, the total value and total cost of renting the disk within the scheduled time are obtained, and the value of renting the disk for the tenant is determined according to the amount of data in the database built by the tenant on the EDC system. Then, the storage resource ratio is calculated according to the total value of the disk rented by the tenant, so as to obtain the cost of renting the disk by the tenant. Among them, the tenant's database stores the projects carried out by the tenant on the EDC, and the experimental data related to the subjects are stored in the project.
[0098] When the rented computing resources are CPU and memory, the total cost of renting CPU and memory within the scheduled time is obtained. The computing resource ratio is calculated based on the total number of times all tenants access their respective databases and the number of times a single tenant accesses their respective databases on the EDC system. The cost of renting CPU and memory for the tenant is then calculated based on the total cost of CPU and memory.
[0099] The following is another specific embodiment provided in this specification.
[0100] Assume that a user has three projects on the EDC system, where the user ID may be USER001, the identifier of the first project may be USER001-001, the identifier of the second project may be USER001-002, and the third identifier may be USER001-003. The number of subjects under the project USER001-001 carried out by USER001 may be 1,000, the number of subjects under the project USER001-002 may be 2,000, and the number of subjects under the project USER001-003 may be 3,000. The total number of subjects under the tenant of USER001 is 6,000, the size of the established database is 89,654 megabytes, the size of the disk rented by EDC on that day is 7,172,320 megabytes, the storage resource ratio is 89,654 / 7,172,320=1.25%, and the total cost of renting the disk by the EDC system on that day is 600 yuan. According to the method of this application, it can be calculated that the cost of renting the disk for the tenant on that day is 7.5 yuan. The number of times the tenant USER001 accessed the tenant's database on that day was 10,000 times, the total number of times the database was accessed on that day was 125,000 times, the total rental fee of the CPU and memory on that day was 6,000 yuan, and the computing resource ratio was 10,000 / 125,000=8%. According to the method of the present application, it can be calculated that the cost of renting the CPU and memory for the tenant on that day was 480 yuan. It can be seen from the above embodiment that it is more reasonable to use the method for determining the tenant system resource value of the present application to calculate the rental fee of related resources.
[0101] Based on the same idea, the embodiments of this specification also provide a system corresponding to the above method.
[0102] Figure 3 The embodiments of this specification provide corresponding to Figure 2 A schematic diagram of the structure of a method for determining the value of tenant system resources. Figure 3 As shown, the system may include an access page, and the access page includes:
[0103] A tenant management module 301, used to create different types of tenants, the tenant management module is associated with a project management module 303;
[0104] The project management module 303 is used to create a product experiment model, so that the subject can feed back parameters associated with the product experiment model to the project management module;
[0105] A subject management module 305, for creating a subject module, the subject module being associated with the project management module;
[0106] The storage resource management module 307 is used to allocate the required storage resources to the tenant;
[0107] The computing resource management module 309 is used to apply the above-mentioned method for determining the value of tenant system resources to query the computing resource value for the tenant.
[0108] Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method. Figure 4 The embodiments of this specification provide corresponding to Figure 2 A schematic diagram of a structure of a device for determining a tenant system resource value. Figure 4 As shown, the device may include:
[0109] A receiving unit 402 is configured to receive a system resource query request carrying a tenant identifier, wherein the system resource query request is used to query the value of computing resources used by the tenant;
[0110] An activity determination unit 404, configured to determine the activity of the tenant accessing the system according to the tenant identifier;
[0111] The first determining unit 406 is configured to determine the amount of computing resources used by the tenant according to the activity of the tenant accessing the system.
[0112] based on Figure 4 The present specification also provides some specific implementation schemes of the method, which are described below.
[0113] Optionally, the activity determination unit includes: a project identification determination subunit, used to obtain the project identification of at least one project information associated with the tenant identification according to the tenant identification; a subject identification determination subunit, used to obtain multiple subject identifications associated with the project identification according to the project identification; an access number determination subunit, used to determine the number of times the tenant accesses the system according to the number of times the subject identification accesses the system; a total access number determination subunit, used to obtain the total number of accesses to the system; a computing resource ratio subunit, used to determine the computing resource ratio of the tenant according to the number of times the tenant accesses the system and the total number of accesses to the system; a computing resource determination subunit, used to determine the amount of computing resources used by the tenant according to the computing resource ratio.
[0114] Optionally, the access count determination subunit is also used to obtain the tracking data obtained by the system through the tracking method, and the tracking data is data collected from the data of the interaction between the subject identifier and the system; based on the tracking data, determine the number of times the subject identifier visits the system.
[0115] Optionally, the receiving unit is also used to query the amount of storage resources used by the tenant; the device also includes: a second determination unit, used to determine the storage space of the tenant based on the subject identifier; the second determination unit is also used to determine the attribute information of the subject associated with the subject identifier based on the subject identifier; determine the storage space of the tenant based on the storage space occupied by the attribute information; a second acquisition unit, used to acquire the total storage space of the system; a second calculation unit, used to calculate the storage resource ratio of the tenant based on the storage space of the tenant and the total storage space of the system; a third determination unit, used to determine the amount of storage resources used by the tenant based on the storage resource ratio.
[0116] It is understood that the above modules refer to computer programs or program segments for executing one or more specific functions. In addition, the distinction between the above modules does not mean that the actual program codes must also be separated.
[0117] The above describes specific embodiments of the present specification. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0118] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other.
[0119] The devices, equipment and methods provided in the embodiments of this specification correspond to each other, and therefore, the devices and equipment also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the corresponding devices and equipment will not be repeated here.
[0120] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.
[0121] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.
[0122] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0123] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0124] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0125] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0126] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0127] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0128] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0129] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0130] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0131] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0132] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0133] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0134] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A method for determining the value of tenant system resources, It is characterized in that include: Receive a system resource query request carrying a tenant identifier, the system resource query request being used to query a value of computing resources used by the tenant; Determining the tenant's access activity to the system according to the tenant identifier; The activity level is the frequency of tenants accessing the system's application software; Determining the amount of computing resources used by the tenant according to the activity of the tenant in accessing the system; Wherein, determining the activity of the tenant accessing the system according to the tenant identifier includes: obtaining, according to the tenant identifier, a project identifier of at least one project information associated with the tenant identifier; obtaining, according to the project identifier, a plurality of subject identifiers associated with the project identifier; determining the number of times the tenant accesses the system according to the number of times the subject identifier accesses the system; And, according to the activity of the tenant in accessing the system, determining the amount of computing resources used by the tenant, including: obtaining the total number of visits to the system; determining the tenant's computing resource ratio according to the number of times the tenant accesses the system and the total number of visits to the system; determining the amount of computing resources used by the tenant according to the computing resource ratio.
2. The method for determining the tenant system resource value according to claim 1, It is characterized in that The determining the number of times the tenant accesses the system according to the number of times the subject identifier accesses the system includes: Acquire the tracking data acquired by the system in a tracking manner, wherein the tracking data is data collected from the data of the subject identifier interacting with the system; The number of times the subject identification accesses the system is determined based on the buried data.
3. The method for determining the tenant system resource value according to claim 1, It is characterized in that The system resource query request is also used to query the storage resource value used by the tenant; Determining the storage space of the tenant according to the subject identifier; Get the total storage space of the system; Calculating the storage resource ratio of the tenant according to the storage space of the tenant and the total storage space of the system; The storage resource amount used by the tenant is determined according to the storage resource ratio.
4. The method for determining the tenant system resource value according to claim 3, It is characterized in that The step of determining the storage space of the tenant according to the subject identifier includes: Determining, according to the subject identifier, attribute information of the subject associated with the subject identifier; The storage space used by the tenant is determined according to the storage space occupied by the attribute information.
5. A system for determining the value of tenant system resources, It is characterized in that The system resource allocation system has an access page, which includes: A tenant management module, used to create different types of tenants, the tenant management module is associated with the project management module; The project management module is used to create a product experiment model, so that the subject can feed back parameters associated with the product experiment model to the project management module; A subject management module, used to create a subject module, wherein the subject module is associated with the project management module; A storage resource management module, used to allocate required storage resources to the tenant; A computing resource management module, used to apply the method for determining the tenant system resource value according to any one of claims 1 to 4 to query the computing resource value for the tenant.
6. A device for determining the value of tenant system resources, It is characterized in that include: A receiving unit, configured to receive a system resource query request carrying a tenant identifier, wherein the system resource query request is used to query the computing resource value of the tenant; an activity determination unit, configured to determine the activity of the tenant in accessing the system according to the tenant identifier; The activity level is the frequency of tenants accessing the system's application software; A first determining unit, configured to determine a value of computing resources used by the tenant according to the activity of the tenant accessing the system; Wherein, determining the activity of the tenant accessing the system according to the tenant identifier includes: obtaining, according to the tenant identifier, a project identifier of at least one project information associated with the tenant identifier; obtaining, according to the project identifier, a plurality of subject identifiers associated with the project identifier; determining the number of times the tenant accesses the system according to the number of times the subject identifier accesses the system; And, according to the activity of the tenant in accessing the system, determining the amount of computing resources used by the tenant, including: obtaining the total number of visits to the system; determining the tenant's computing resource ratio according to the number of times the tenant accesses the system and the total number of visits to the system; determining the amount of computing resources used by the tenant according to the computing resource ratio.
7. The device for determining the value of tenant system resources according to claim 6, It is characterized in that The activity determination unit includes: a project identification determination subunit, configured to obtain, according to the tenant identification, a project identification of at least one project information associated with the tenant identification; A subject identification determination subunit, configured to obtain a plurality of subject identifications associated with the project identification according to the project identification; An access count determination subunit, configured to determine the number of times the tenant has accessed the system according to the number of times the subject identifier has accessed the system; A total number of access times determining subunit, used to obtain the total number of access times of the system; A computing resource ratio subunit, used to determine the computing resource ratio of the tenant according to the number of times the tenant accesses the system and the total number of times the system is accessed; The computing resource determination subunit is used to determine the amount of computing resources used by the tenant according to the computing resource ratio.
8. The device for determining the value of tenant system resources according to claim 7, It is characterized in that The access count determination subunit is also used to obtain the tracking data obtained by the system through tracking, and the tracking data is the data collected from the interaction between the subject identifier and the system; based on the tracking data, the number of times the subject identifier visits the system is determined.
9. The device for determining the value of tenant system resources according to claim 7, It is characterized in that The receiving unit is also used to query the storage resource value for the tenant; the device also includes: a second determination unit, configured to determine the storage space of the tenant according to the subject identifier; the second determination unit is further configured to determine the attribute information of the subject associated with the subject identifier according to the subject identifier; and determine the storage space of the tenant according to the storage space occupied by the attribute information; A second acquisition unit is used to acquire the total storage space of the system; A second calculation unit, configured to calculate the storage resource ratio of the tenant according to the storage space of the tenant and the total storage space of the system; The third determining unit is used to determine the amount of storage resources used by the tenant according to the storage resource ratio.
Citation Information
Patent Citations
Low profile module and frame assembly for arc lamps
US7172320B1
Method and system for determining resource utilization rate of each tenant in multi-tenant architecture
CN101656657A
Method and device used for controlling using of computer resource in data base service
CN103136055A
Container charging method of cloud platform, apparatus and system thereof, and equipment and storage medium
CN107516199A
Micro-service access method, device and equipment and storage medium
CN112615849A
