WO2019019807A1 - 一种资源分配方法和装置 - Google Patents

一种资源分配方法和装置 Download PDF

Info

Publication number
WO2019019807A1
WO2019019807A1 PCT/CN2018/089864 CN2018089864W WO2019019807A1 WO 2019019807 A1 WO2019019807 A1 WO 2019019807A1 CN 2018089864 W CN2018089864 W CN 2018089864W WO 2019019807 A1 WO2019019807 A1 WO 2019019807A1
Authority
WO
WIPO (PCT)
Prior art keywords
resources
transaction
type
resource
target
Prior art date
Application number
PCT/CN2018/089864
Other languages
English (en)
French (fr)
Inventor
田龙辉
田丰
Original Assignee
***股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ***股份有限公司 filed Critical ***股份有限公司
Publication of WO2019019807A1 publication Critical patent/WO2019019807A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Definitions

  • the embodiments of the present invention relate to the field of data scheduling technologies, and in particular, to a resource allocation method and apparatus.
  • UnionPay has business cooperation with more and more institutions, and its institutional nature is diversified, including banks, third-party payment institutions, mobile phone manufacturers, operators, and merchants. Different organizations have different industries, different technical capabilities, and different operation and maintenance objectives. Therefore, the flow control system that is connected to it should be flexible in deploying the application resources of the system, and the maximum availability of the business.
  • the system pre-allocates the total thread resources to each institution according to the historical transaction volume, and each institution can only use pre-allocated resources when conducting transactions.
  • a pre-allocated resource cannot meet the transaction demand due to marketing or other reasons due to marketing or other reasons, the transaction of the institution will not be able to proceed, and the resource usage of other institutions may be low during the same period of time. Because of the pre-allocated resources, the multiplexing of thread resources cannot be implemented in the existing flow control system, resulting in low utilization of thread resources.
  • the embodiments of the present invention provide a resource allocation method and device, which are used to solve the problem that the thread resource reuse cannot be realized in the existing flow control system, and the thread resource utilization rate is low.
  • an embodiment of the present invention provides a resource allocation method, including:
  • the allocating resources for the to-be-processed transaction from the second type of resources includes:
  • the usage rate of the second type of resource is greater than the first threshold, and the average transaction time of the target organization is less than a second threshold, allocate resources for the to-be-processed transaction from the second type of resources;
  • the average transaction time of the target institution is determined according to transaction data of the target institution within a set time period.
  • the method further includes: if the usage rate of the second type of resources is greater than the first threshold, and the average transaction time of the target organization is less than a second threshold, After the transaction is allocated to allocate resources, it also includes:
  • the preset resource of the target organization is increased.
  • it also includes:
  • the usage rate of the second type of resource is greater than the first threshold, and the average transaction time of the target organization is not less than the second threshold, stop allocating resources for the to-be-processed transaction, and reduce the target The organization's default resources.
  • the method further includes:
  • the preset resource of the target institution is increased.
  • the embodiment of the present invention further provides a resource allocation apparatus, including:
  • An obtaining module configured to acquire a transaction to be processed and determine a target institution corresponding to the transaction to be processed
  • a processing module configured to determine, according to transaction data of the target organization within a set time period, a current resource usage of the target organization; and determining whether a current resource usage of the target organization exceeds a preset resource of the target organization a usage situation, where the preset resource usage is determined according to a resource that is pre-allocated to the target organization and a first type of resource that is pre-allocated to all organizations; if yes, the to-be-processed from the second type of resource
  • the transaction allocates resources, and the second type of resources are resources other than the first type of resources in the total resources.
  • processing module is specifically configured to:
  • the usage rate of the second type of resource is greater than the first threshold, and the average transaction time of the target organization is less than a second threshold, allocate resources for the to-be-processed transaction from the second type of resources;
  • the average transaction time of the target institution is determined according to transaction data of the target institution within a set time period.
  • processing module is further configured to:
  • the preset resource of the target organization is increased.
  • processing module is further configured to:
  • the usage rate of the second type of resource is greater than the first threshold, and the average transaction time of the target organization is not less than the second threshold, stop allocating resources for the to-be-processed transaction, and reduce the target The organization's default resources.
  • processing module is further configured to:
  • the preset resource of the target institution is increased.
  • an embodiment of the present invention provides a computer device, including a transceiver, a memory, and a processor, where:
  • a transceiver configured to acquire a transaction to be processed and determine a target institution corresponding to the transaction to be processed
  • a memory for storing program instructions
  • a processor configured to invoke a program instruction stored in the memory, and execute the method in the first aspect or any possible implementation manner of the first aspect according to the obtained program.
  • an embodiment of the present invention provides a computer readable storage medium for storing computer program instructions for use in the computer device, including a program for executing the resource allocation method.
  • an embodiment of the present invention provides a computer program product, the computer program product comprising a computing program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program instruction is The computer, when executed, causes the computer to perform the method of the first aspect or any possible implementation of the first aspect.
  • the embodiment of the present invention indicates that the to-be-processed transaction is acquired and the target institution corresponding to the to-be-processed transaction is determined; and then the current resource usage of the target institution is determined according to the transaction data of the target institution within a set time period; Whether the current resource usage of the target organization exceeds the preset resource usage of the target organization, and the preset resource usage is based on resources allocated in advance to the target institution and first resources allocated in advance to all organizations. Determining; if yes, allocating resources from the second type of resources for the to-be-processed transaction, the second type of resources being resources of the total resources other than the first type of resources.
  • the total resources are divided into the first type of resources and the second type of resources, the first type of resources are used for pre-allocation to all organizations, and the second type of resources are used for multiplexing resources, when the target organization's current resource usage is used.
  • the second type of resource is used to allocate resources to the target institution's pending transaction, so the pending transaction of the target organization does not cause the business to be incapable due to insufficient resources allocated to the target organization in advance, Improve the stability of the transaction, and achieve the reuse of resources.
  • FIG. 1 is a schematic flowchart of a resource allocation method according to an embodiment of the present disclosure
  • FIG. 2 is a schematic diagram of an observation window according to an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart diagram of another resource allocation method according to an embodiment of the present disclosure.
  • FIG. 4 is a schematic structural diagram of a resource allocation apparatus according to an embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
  • FIG. 1 exemplarily shows a flow of a resource allocation method provided by an embodiment of the present invention, which may be performed by a resource allocation apparatus.
  • Step S101 Acquire a transaction to be processed and determine a target institution corresponding to the transaction to be processed.
  • Step S102 Determine the current resource usage of the target organization according to the transaction data of the target organization within the set time period.
  • Step S103 Determine whether the current resource usage of the target organization exceeds the preset resource usage of the target organization.
  • Step S104 if it is exceeded, allocate resources for the transaction to be processed from the second type of resources.
  • the transaction to be processed may be a transfer, a consumption, or the like
  • the institution may be a bank, a third-party payment institution, a mobile phone manufacturer, an operator, a merchant, etc.
  • the transactions of each institution are distinguished by a specific identifier, and are obtained.
  • the target institution to which the transaction to be processed belongs can be determined according to the identifier of the transaction to be processed.
  • the time period is set to a time period before the transaction to be processed is acquired, and the duration may be determined according to a specific situation, such as 10 seconds, 20 seconds, and the like.
  • the set time period can be used as an observation window for observing and counting the transaction data of each institution within the set time period.
  • the transaction data includes the transaction volume, the average transaction time, the transaction start time, and the transaction end time.
  • the observation window can be moved once every other time, and is moved every 1 second as an example. As shown in FIG. 2, for example, if the current observation window is 0 to 20 seconds, the transaction data of each institution in 0 to 20 seconds is counted. After 1 second, the observation window moves. The next observation window is 1 to 21 seconds.
  • the transaction data of each organization in 1 to 21 seconds is counted.
  • the current resource usage can be the current resource ratio, that is, the current occupation of the target organization.
  • the ratio of resources to the first type of resources; the current resource usage can also be the resources currently occupied by the target organization.
  • the preset resource usage is determined based on the resources allocated in advance to the target institution and the first type of resources pre-allocated to all organizations.
  • the preset resource usage may be a preset resource proportion, that is, a ratio of resources allocated to the target organization in advance to the first type of resources.
  • the preset resource usage may also be a resource that is pre-allocated to the target organization.
  • the embodiment of the present invention does not specifically limit the use of the preset resource.
  • the first type of resource is the sum of resources pre-allocated to all institutions, and also refers to the total length of transactions allowed within the set time period.
  • the first type of resources can be pre-assigned to each institution according to the weight, wherein the weight is determined according to the historical transaction data of each institution, and the first type of resources can also be directly distributed to each institution.
  • the first type of resources specifically conforms to formula (1):
  • A is the first type of resource
  • M is the total number of threads allocated to all organizations in advance
  • S is the duration of the set time period.
  • step S104 when the current resource usage of the target organization does not exceed the preset resource usage of the target organization, it indicates that there are remaining resources allocated to the target organization, and the remaining resources may be used to complete the pending transaction.
  • the current resource usage of the target organization exceeds the target resource usage of the target organization, it indicates that the resources allocated to the target organization have been exhausted, and the resources for the pending transaction can no longer be provided.
  • the second type of resources needs to be used. Pending transactions.
  • the second type of resource is the resource of the total resource other than the first type of resource.
  • the total resources are divided into the first type of resources and the second type of resources, the first type of resources are used for pre-allocation to all organizations, and the second type of resources are used for multiplexing resources, when the target organization's current resource usage is used.
  • the second type of resource is used to allocate resources to the target institution's pending transaction, so the pending transaction of the target organization does not cause the business to be incapable due to insufficient resources allocated to the target organization in advance, Improve the stability of the transaction, and achieve the reuse of resources.
  • the following describes the process of determining the current resource usage of the target organization.
  • the resource currently occupied by the target organization is used as the current resource usage of the target organization
  • the resource currently occupied by the target organization is determined according to the transaction data of the target organization within the set time period, and specifically includes the following two methods:
  • Method 1 Through the observation window, the transaction volume and the average transaction time of the target organization in the set time period are counted, and the resources currently occupied by the target institution are determined by calculating the product of the transaction volume of the target institution and the average transaction time in the set time period, for example,
  • the fixed time period is 20 seconds before the transaction to be processed, and the transaction volume of the target institution in the 20 seconds is 1000 times, and the average transaction time is 10 milliseconds, and the resource currently occupied by the target institution is 10000 thread seconds.
  • Method 2 Through the observation window, the start time and the end time of all transactions of the target institution in the set time period are set, and then the duration of each transaction is determined according to the start time and the end time of each transaction, and finally the durations of all transactions are added.
  • the target institution needs to be further determined by calculating the ratio of the resources currently occupied by the target organization to the first type of resources.
  • Current resource share In the embodiment of the present invention, the current resource occupation time of the target organization is determined by statistically setting the total transaction duration of the target organization, and the current resource occupation ratio is determined according to the currently occupied resource and the first type resource, instead of the target organization.
  • the number of threads occupied determines the current resource occupied by the target organization and the current resource proportion of the target organization, and determines the current resource occupancy ratio is finer, thereby improving the accuracy of determining the current resource usage of the target organization.
  • resources are allocated for the pending transaction from the second type of resources, including the following four cases:
  • Case 1 When it is determined that the usage rate of the second type of resources is not greater than the first threshold, indicating that the second type of resources is sufficient, resources are allocated for the pending transactions from the second type of resources.
  • Case 2 When the usage rate of the second type resource is greater than the first threshold, and the average transaction time of the target institution is less than the second threshold, indicating that the second type of resource is tight and the transaction processing speed of the target institution is normal, then the second category is Resources are allocated for pending transactions in the resource.
  • the average trading time of the target institution is determined according to the transaction data of the target institution within a set time period, and the second threshold is determined according to a specific situation.
  • Case 3 determining that the usage rate of the second type resource is greater than the first threshold, and the average transaction time of the target institution is not less than the second threshold, indicating that the second type of resource is tight and the transaction processing speed of the target institution is abnormal, then the process is stopped.
  • the transaction allocates resources.
  • Case 4 determining that the usage rate of the second type of resources is greater than the first threshold, the average transaction time of the target institution is not less than the second threshold, and the resource currently occupied by the target organization is not less than the third threshold, indicating that the second type of resources is tight, and the target institution If the transaction processing speed is abnormal and occupies a large amount of resources, the resource for the pending transaction is stopped, and the resource currently occupied by the target institution is determined according to the transaction data of the target organization within the set time period.
  • the second type of resources are directly allocated to the pending transaction, and when the second type of resources is insufficient, the state of the target institution is The judgment is made, and resources are allocated for the transaction to be processed according to the state of the target institution, so that the second type of resources can be fully utilized on the one hand, and the system is congested by the abnormal organization occupying a large amount of resources on the other hand.
  • the allocation of the first type of resources needs to be adjusted correspondingly to alleviate the second resource.
  • the use pressure including the following five situations:
  • Case 1 If the usage rate of the second type resource is greater than the first threshold, and the average transaction time of the target organization is less than the second threshold, after the resources are allocated for the transaction to be processed from the second type of resources, the target organization is set.
  • the transaction data in the time period determines the resources currently occupied by the target organization.
  • the target organization is in a marketing state, and a large amount of resources are required for the transaction, and the target institution's preset is increased.
  • the resource wherein the preset resource is a resource pre-allocated to the target institution in the first type of resource, the target resource may be adjusted by adjusting the weight, or the target resource may be adjusted by adjusting the total resource of the first resource. Preset resources.
  • Case 2 If the usage rate of the second type resource is greater than the first threshold, and the average transaction time of the target organization is less than the second threshold, after the resource is allocated for the transaction to be processed from the second type of resource, the target organization is set.
  • the transaction data in the time period determines the resources currently occupied by the target organization. When it is determined that the resources currently occupied by the target organization are not greater than the third threshold, the preset resources of the target organization are not adjusted.
  • Case 3 If the usage rate of the second type of resources is greater than the first threshold, and the average transaction time of the target institution is not less than the second threshold, indicating that the second type of resources is tight, and the target institution is in an abnormal state, the target institution is reduced. Pre-defined resources.
  • Case 4 If the usage rate of the second type of resource is greater than the first threshold, the average transaction time of the target organization is not less than the second threshold, and the resource currently occupied by the target organization is not less than the third threshold, indicating that the second type of resource is tight, and this When the target organization is in an abnormal state and occupies a large amount of resources, the target resources of the target organization are reduced.
  • Case 5 After allocating resources for the transaction to be processed from the second type of resources, the statistical target organization uses the second type of resources to conduct the transaction volume, and when the transaction volume is determined to be greater than the fourth threshold, the first type of resources are pre-allocated to The resources of the target organization can no longer meet the transaction needs of the target organization, and the target resources of the target organization are increased.
  • the usage rate of the second type of resources and the resources currently occupied by the target organization are monitored in real time, and the number of times the target organization uses the second type of resources for the transaction is counted, and then according to the usage rate of the second type of resources, the current target institution
  • the occupied resources and the number of transactions using the second type of resources can adjust the target resources of the target organization in real time, which is conducive to the smooth progress of the target organization's transactions, and can also reduce the use pressure of the second type of resources.
  • Step S301 acquiring a pending transaction of the target institution.
  • Step S302 determining resources currently occupied by the target organization.
  • Step S303 determining the current resource proportion of the target organization.
  • step S304 it is determined whether the current resource occupation ratio of the target organization is smaller than the preset resource proportion of the target organization. If yes, step S305 is performed; otherwise, step S306 is performed.
  • step S305 resources allocated in advance to the target institution are allocated to the transaction to be processed.
  • Step S306 determining whether the usage rate of the second type resource is greater than the first threshold, if yes, executing step S307, otherwise performing step S312.
  • step S307 it is determined whether the average transaction time of the target institution is less than the second threshold. If yes, step S308 is performed; otherwise, step S311 is performed.
  • step S308 it is determined whether the resource currently occupied by the target organization is greater than a third threshold. If yes, step S309 is performed; otherwise, step S310 is performed.
  • Step S309 allocating the second type of resources to the transaction to be processed and increasing the proportion of the preset resources of the target institution.
  • Step S310 assigning a second type of resource to the transaction to be processed.
  • Step S311 stop allocating resources to the pending transaction and reduce the preset resource proportion of the target institution.
  • Step S312 assigning a second type of resource to the transaction to be processed.
  • the present invention further provides an embodiment of another resource allocation method, that is, combining the average transaction time of the target organization with the resource currently occupied by the target organization to determine the state of the target organization, according to The state of the target organization is allocated resources.
  • the first threshold is set to 80%. Assuming that there are 5 institutions, the organization numbers are A1, A2, A3, A4, and A5.
  • the five organizations pre-allocate resources as shown in Table 1:
  • the weights of resources pre-allocated to each institution are determined according to the historical transaction data of the five institutions, and the proportion of the preset resources corresponding to each institution is further calculated.
  • the resource allocation method is determined according to the current resource ratio of the organization and the preset resource ratio of the organization, as shown in Table 2:
  • the current transactions of the institutions A1 and A5 can directly use the pre-allocated resources, that is, the first type of resources.
  • the current transactions of the institutions A2, A3 and A4 need to utilize the second type of resources.
  • the allocation rules if institutions A2, A3 and A4 use the second type of resources for transactions, the second type of resources are used less than 80%, then institutions A2, A3 and A4 directly use the second type of resources to process transactions. If institutions A2, A3, and A4 use the second type of resources for processing transactions, the usage rate of the second type of resources is greater than 80%, and then it is determined according to the transaction data of the institutions A2, A3, and A4 within the set time period.
  • the second threshold is set to 20 milliseconds
  • the third threshold is 500 thread seconds
  • the average transaction time of the mechanism A2 in the set time period is 30 milliseconds, so the average transaction time of the mechanism A2 in the set time period is greater than the second threshold, the mechanism The current resource occupied by A2 is 600 thread seconds. Therefore, the resource currently occupied by the mechanism A2 is greater than the third threshold, so that the mechanism A2 is in an abnormal state, the second type resource is stopped from being allocated to the transaction of the mechanism A2, and the preset of the mechanism A2 is lowered. The proportion of resources. Based on the same method, the mechanisms A3 and A4 are judged.
  • the judgment result is that the resource currently occupied by the mechanism A3 is less than the third threshold, and the second type resource is allocated to the transaction of the institution A2.
  • the average transaction time of the organization A4 in the set time period is less than the second threshold, and the resource currently occupied by the mechanism A4 is greater than the third threshold, so that the determining mechanism A4 is in the marketing state, the second type resource is allocated to the transaction of the institution A4, and the organization is raised.
  • the embodiment of the present invention indicates that the to-be-processed transaction is obtained and the target institution corresponding to the to-be-processed transaction is determined; and the current resource usage of the target institution is determined according to the transaction data of the target institution within a set time period; Whether the current resource usage of the target organization exceeds the preset resource usage of the target organization, and the preset resource usage is determined according to resources allocated in advance to the target institution and first-class resources pre-allocated to all organizations. If exceeded, allocate resources for the to-be-processed transaction from the second type of resources, where the second type of resources are resources other than the first type of resources.
  • the total resources are divided into the first type of resources and the second type of resources, the first type of resources are used for pre-allocation to all organizations, and the second type of resources are used for multiplexing resources, when the target organization's current resource usage is used.
  • the second type of resource is used to allocate resources to the target institution's pending transaction, so the pending transaction of the target organization does not cause the business to be incapable due to insufficient resources allocated to the target organization in advance, Improve the stability of the transaction, and achieve the reuse of resources.
  • FIG. 4 exemplarily shows a structure of a resource allocation apparatus according to an embodiment of the present invention, and the apparatus can execute a flow of a resource allocation method.
  • the device comprises:
  • An obtaining module 401 configured to acquire a transaction to be processed and determine a target institution corresponding to the to-be-processed transaction
  • the processing module 402 is configured to determine, according to the transaction data of the target organization in the set time period, the current resource usage of the target organization; and determine whether the current resource usage of the target organization exceeds a preset of the target organization. a resource usage situation, where the preset resource usage is determined according to a resource that is pre-allocated to the target organization and a first type of resource that is pre-allocated to all organizations; if yes, the second type of resource is the Processing a transaction allocation resource, the second type of resource being a resource of the total resource other than the first type of resource.
  • processing module 402 is specifically configured to:
  • the usage rate of the second type of resource is greater than the first threshold, and the average transaction time of the target organization is less than a second threshold, allocate resources for the to-be-processed transaction from the second type of resources;
  • the average transaction time of the target institution is determined according to transaction data of the target institution within a set time period.
  • processing module 402 is further configured to:
  • the preset resource of the target organization is increased.
  • processing module 402 is further configured to:
  • the usage rate of the second type of resource is greater than the first threshold, and the average transaction time of the target organization is not less than the second threshold, stop allocating resources for the to-be-processed transaction, and reduce the target The organization's default resources.
  • processing module 402 is further configured to:
  • the preset resource of the target institution is increased.
  • FIG. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
  • the computer device includes a transceiver 501, a processor 502, a memory 503, and a communication interface 504; wherein the transceiver 501, the processor 502, the memory 503, and the communication interface 504 are connected to one another via a bus 505.
  • the memory 503 is used to store programs.
  • the program can include program code, and the program code includes computer operating instructions.
  • the memory 503 may be a volatile memory, such as a random-access memory (RAM), or a non-volatile memory, such as a flash memory.
  • RAM random-access memory
  • non-volatile memory such as a flash memory.
  • HDD hard disk drive
  • SSD solid-state drive
  • the memory 503 stores the following elements, executable modules or data structures, or a subset thereof, or an extended set thereof:
  • Operation instructions include various operation instructions for implementing various operations.
  • Operating system Includes a variety of system programs for implementing various basic services and handling hardware-based tasks.
  • the bus 505 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus.
  • PCI peripheral component interconnect
  • EISA extended industry standard architecture
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 5, but it does not mean that there is only one bus or one type of bus.
  • the communication interface 504 can be a wired communication access port, a wireless communication interface, or a combination thereof, wherein the wired communication interface can be, for example, an Ethernet interface.
  • the Ethernet interface can be an optical interface, an electrical interface, or a combination thereof.
  • the wireless communication interface can be a WLAN interface.
  • the processor 502 can be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and an NP. It can also be a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof.
  • the PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a general array logic (GAL) or any combination.
  • the transceiver 501 is configured to acquire a transaction to be processed and determine a target organization corresponding to the to-be-processed transaction;
  • a memory 503, configured to store program instructions
  • the processor 502 is configured to determine, according to the transaction data of the target organization in the set time period, the current resource usage of the target organization, and determine whether the current resource usage of the target organization exceeds a preset of the target organization. a resource usage situation, where the preset resource usage is determined according to a resource that is pre-allocated to the target organization and a first type of resource that is pre-allocated to all organizations; if yes, the second type of resource is the Processing a transaction allocation resource, the second type of resource being a resource of the total resource other than the first type of resource.
  • the processor 502 is specifically configured to: determine whether a usage rate of the second type of resources is greater than a first threshold; if a usage rate of the second type of resources is not greater than the first threshold, Allocating resources to the to-be-processed transaction in the second type of resources; or, if the usage rate of the second type of resources is greater than the first threshold, and the average transaction time of the target organization is less than a second threshold, And allocating resources for the to-be-processed transaction from the second type of resources; the average transaction time of the target institution is determined according to transaction data of the target institution within a set time period.
  • the processor 502 is further configured to: if the usage rate of the second type of resources is greater than the first threshold, and the average transaction time of the target organization is less than a second threshold, After the resource is allocated to the to-be-processed transaction in the second type of resources, the method further includes: determining, according to the transaction data of the target organization in the set time period, the resource currently occupied by the target organization; determining the current occupation of the target organization When the resource is greater than the third threshold, the preset resource of the target institution is increased.
  • the processor 502 is further configured to: if the usage rate of the second type of resources is greater than the first threshold, and the average transaction time of the target organization is not less than the second threshold, stop Allocating resources for the to-be-processed transaction while reducing preset resources of the target institution.
  • the processor 502 is further configured to: after allocating resources for the to-be-processed transaction from the second type of resources, statistics, by the target organization, the transaction amount of the transaction by using the second type of resources;
  • the preset resource of the target institution is increased.
  • an embodiment of the present invention provides a computer readable storage medium for storing computer program instructions for use in the above computer device, including a program for executing the resource allocation method.
  • the computer storage medium can be any available media or data storage device accessible by a computer, including but not limited to magnetic storage (eg, floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc.), optical storage (eg, CD, DVD) , BD, HVD, etc.), and semiconductor memories (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid state drive (SSD)).
  • magnetic storage eg, floppy disk, hard disk, magnetic tape, magneto-optical disk (MO), etc.
  • optical storage eg, CD, DVD
  • BD magneto-optical disk
  • HVD etc.
  • semiconductor memories such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid state drive (SSD)).
  • an embodiment of the present invention provides a computer program product, the computer program product comprising a computing program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions, when the program When the instruction is executed by the computer, the computer is caused to execute the resource allocation method described above.
  • the embodiment of the present invention indicates that the to-be-processed transaction is acquired and the target institution corresponding to the to-be-processed transaction is determined; and then the current resource usage of the target institution is determined according to the transaction data of the target institution within a set time period; Whether the current resource usage of the target organization exceeds the preset resource usage of the target organization, and the preset resource usage is based on resources allocated in advance to the target institution and first resources allocated in advance to all organizations. Determining; if yes, allocating resources from the second type of resources for the to-be-processed transaction, the second type of resources being resources of the total resources other than the first type of resources.
  • the total resources are divided into the first type of resources and the second type of resources, the first type of resources are used for pre-allocation to all organizations, and the second type of resources are used for multiplexing resources, when the target organization's current resource usage is used.
  • the second type of resource is used to allocate resources to the target institution's pending transaction, so the pending transaction of the target organization does not cause the business to be incapable due to insufficient resources allocated to the target organization in advance, Improve the stability of the transaction, and achieve the reuse of resources.
  • embodiments of the present invention can be provided as a method, or a computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明实施例提供一种资源分配方法和装置,获取目标机构的待处理交易,根据目标机构的交易数据确定目标机构当前的资源使用情况;确定目标机构当前的资源使用情况是否超过预设资源使用情况,预设资源使用情况为根据预先分配给目标机构的资源与预先分配给所有机构的第一类资源确定的;若超过,则从第二类资源中为待处理交易分配资源,第二类资源为总资源中除第一类资源之外的资源。本发明实施例中,当目标机构当前的资源使用情况超过目标机构的预设资源使用情况时,利用第二类资源为目标机构的待处理交易分配资源,故目标机构的待处理交易不会因为预先分配给目标机构的资源不足导致业务无法进行,既提高了交易的稳定性,又实现了资源的复用。

Description

一种资源分配方法和装置
本申请要求在2017年7月24日提交中国专利局、申请号为201710606745.6、发明名称为“一种资源分配方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及数据调度技术领域,尤其涉及一种资源分配方法和装置。
背景技术
当前,银联与越来越多的机构有业务合作,而且机构性质多样化,有银行、第三方支付机构、手机厂商、运营商、商户等。各机构所处行业不同,技术能力不同,运维目标不同,所以与之对接的流控***应该做到灵活调配本***应用资源,最大可能保证业务的可用性。现有的流控***中,***将总线程资源按照历史交易量预先分配给各机构,各机构在进行交易时只能使用预先分配的资源。当某一时间段内因营销或其他原因导致机构的交易量增多而预先分配的资源无法满***易需求时,该机构的交易将无法进行,而同一时间段内可能出现其他机构的资源使用量远低于预先分配的资源,故现有的流控***中不能实现线程资源的复用,导致线程资源利用率低。
发明内容
本发明实施例提供一种资源分配方法和装置,用于解决现有流控***中不能实现线程资源复用而导致线程资源利用率低的问题。
第一方面,本发明实施例提供了一种资源分配方法,包括:
获取待处理交易并确定所述待处理交易对应的目标机构;
根据所述目标机构在设定时间段内的交易数据确定所述目标机构当前的资源使用情况;
确定所述目标机构当前的资源使用情况是否超过所述目标机构的预设资源使用情况,所述预设资源使用情况为根据预先分配给所述目标机构的资源与预先分配给所有机构的第一类资源确定的;
若超过,则从第二类资源中为所述待处理交易分配资源,所述第二类资源为总资源中除所述第一类资源之外的资源。
可选地,所述从第二类资源中为所述待处理交易分配资源,包括:
确定所述第二类资源的使用率是否大于第一阈值;
若所述第二类资源的使用率不大于所述第一阈值,则从所述第二类资源中为所述待处理交易分配资源;或,
若所述第二类资源的使用率大于所述第一阈值,且,所述目标机构的平均交易时间小于第二阈值,则从所述第二类资源中为所述待处理交易分配资源;所述目标机构的平均交易时间是根据所述目标机构在设定时间段内的交易数据确定的。
可选地,还包括:若所述第二类资源的使用率大于所述第一阈值,且,所述目标机构的平均交易时间小于第二阈值,则从所述第二类资源中为所述待处理交易分配资源之后,还包括:
根据所述目标机构在设定时间段内的交易数据确定所述目标机构当前占用的资源;
在确定所述目标机构当前占用的资源大于第三阈值时,增加所述目标机构的预设资源。
可选地,还包括:
若所述第二类资源的使用率大于所述第一阈值,且,所述目标机构的平均交易时间不小于所述第二阈值,停止为所述待处理交易分配资源,同时减少所述目标机构的预设资源。
可选地,所述从第二类资源中为所述待处理交易分配资源之后,还包括:
统计所述目标机构利用所述第二类资源进行交易的交易量;
在确定所述交易量大于第四阈值时,增加所述目标机构的预设资源。
第二方面,本发明实施例还提供了一种资源分配装置,包括:
获取模块,用于获取待处理交易并确定所述待处理交易对应的目标机构;
处理模块,用于根据所述目标机构在设定时间段内的交易数据确定所述目标机构当前的资源使用情况;确定所述目标机构当前的资源使用情况是否超过所述目标机构的预设资源使用情况,所述预设资源使用情况为根据预先分配给所述目标机构的资源与预先分配给所有机构的第一类资源确定的;若超过,则从第二类资源中为所述待处理交易分配资源,所述第二类资源为总资源中除所述第一类资源之外的资源。
可选地,所述处理模块具体用于:
确定所述第二类资源的使用率是否大于第一阈值;
若所述第二类资源的使用率不大于所述第一阈值,则从所述第二类资源中为所述待处理交易分配资源;或,
若所述第二类资源的使用率大于所述第一阈值,且,所述目标机构的平均交易时间小于第二阈值,则从所述第二类资源中为所述待处理交易分配资源;所述目标机构的平均交易时间是根据所述目标机构在设定时间段内的交易数据确定的。
可选地,所述处理模块还用于:
若所述第二类资源的使用率大于所述第一阈值,且,所述目标机构的平均交易时间小于第二阈值,则从所述第二类资源中为所述待处理交易分配资源之后,还包括:
根据所述目标机构在设定时间段内的交易数据确定所述目标机构当前占用的资源;
在确定所述目标机构当前占用的资源大于第三阈值时,增加所述目标机构的预设资源。
可选地,所述处理模块还用于:
若所述第二类资源的使用率大于所述第一阈值,且,所述目标机构的平均交易时间不小于所述第二阈值,停止为所述待处理交易分配资源,同时减少所述目标机构的预设资源。
可选地,所述处理模块还用于:
从第二类资源中为所述待处理交易分配资源之后,统计所述目标机构利用所述第二类资源进行交易的交易量;
在确定所述交易量大于第四阈值时,增加所述目标机构的预设资源。
第三方面,本发明实施例提供了一种计算机设备,包括收发器、存储器和处理器;其中:
收发器,用于获取待处理交易并确定所述待处理交易对应的目标机构;
存储器,用于存储程序指令;
处理器,用于调用所述存储器中存储的程序指令,按照获得的程序执行第一方面或第一方面的任意可能的实现方式中的方法。
第四方面,本发明实施例提供了一种计算机可读存储介质,所述计算机可读存储介质用于储存为上述计算机设备所用的计算机程序指令,其包含用于执行上述资源分配方法的程序。
第五方面,本发明实施例提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行第一方面或第一方面的任意可能的实现方式中的方法。
本发明实施例表明,获取待处理交易并确定所述待处理交易对应的目标机构;然后根据所述目标机构在设定时间段内的交易数据确定所述目标机构当前的资源使用情况;确定所述目标机构当前的资源使用情况是否超过所述目标机构的预设资源使用情况,所述预设资源使用情况为根据预先分配给所述目标机构的资源与预先分配给所有机构的第一类资源确定的;若超过,则从第二类资源中为所述待处理交易分配资源,所述第二类资源为总资源中除所述第一类资源之外的资源。本发明实施例中,将总资源分为第一类资源和 第二类资源,第一类资源用于预先分配给所有机构,第二类资源为复用资源,当目标机构当前的资源使用情况超过目标机构的预设资源使用情况时,利用第二类资源为目标机构的待处理交易分配资源,故目标机构的待处理交易不会因为预先分配给目标机构的资源不足导致业务无法进行,既提高了交易的稳定性,又实现了资源的复用。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本发明实施例提供的一种资源分配方法的流程示意图;
图2为本发明实施例提供的一种观察窗口的示意图;
图3为本发明实施例提供的另一种资源分配方法的流程示意图;
图4为本发明实施例提供的一种资源分配装置的结构示意图;
图5为本发明实施例提供的一种计算机设备的结构示意图。
具体实施方式
为了使本发明的目的、技术方案及有益效果更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
图1示例性示出了本发明实施例提供的一种资源分配方法的流程,该流程可以由资源分配装置执行。
如图1所示,该流程的具体步骤包括:
步骤S101,获取待处理交易并确定待处理交易对应的目标机构。
步骤S102,根据目标机构在设定时间段内的交易数据确定目标机构当前的资源使用情况。
步骤S103,确定目标机构当前的资源使用情况是否超过目标机构的预设资源使用情况。
步骤S104,若超过,则从第二类资源中为待处理交易分配资源。
具体地,在步骤S101中,待处理交易可以是转账、消费等,机构可以是银行、第三方支付机构、手机厂商、运营商、商户等,各个机构的交易通过特定的标识进行区分,在获取待处理交易后,根据待处理交易的标识即可确定待处理交易所属的目标机构。
在步骤S102中,设定时间段为获取待处理交易之前的一个时间段,时长可以根据具体情况确定,比如10秒、20秒等。可以将设定时间段作为一个观察窗口,用于观察并统计设定时间段内各个机构的交易数据,交易数据包括交易量、平均交易时间,交易开始时间、交易结束时间等。观察窗口可隔一段时间移动一次,以每隔1秒移动一次为例进行说明,如图2所示,比如当前的观察窗口为0到20秒,则统计0到20秒中各个机构的交易数据,1秒后,观察窗口移动,下一个观察窗口为1到21秒,则统计1到21秒中各个机构的交易数据,当前的资源使用情况可以是当前的资源占比,即目标机构当前占用的资源与第一类资源的比值;当前的资源使用情况也可以是目标机构当前占用的资源。
在步骤S103中,预设资源使用情况为根据预先分配给目标机构的资源与预先分配给所有机构的第一类资源确定的。具体实施中,预设资源使用情况可以是预设资源占比,即预先分配给目标机构的资源与第一类资源的比值。预设资源使用情况也可以是预先分配给目标机构的资源,本发明实施例不对预设资源使用情况做具体限定。第一类资源为预先分配给所有机构的资源总和,也指设定时间段内允许的交易总时长。第一类资源可按照权重预先分配给各个机构,其中权重是根据各个机构的历史交易数据确定的,第一类资源也可以直接均分给各个机构,第一类资源具体符合公式(1):
A=M*S………………………………………(1)
其中,A为第一类资源,M为预先分配给所有机构的总线程数,S为设 定时间段的时长。
在步骤S104中,当目标机构当前的资源使用情况没有超过目标机构的预设资源使用情况时,说明预先分配给目标机构的资源还有剩余,可以利用剩余的资源完成待处理交易。当目标机构当前的资源使用情况超过目标机构的预设资源使用情况时,说明预先分配给目标机构的资源已经用完,不能再为待处理交易提供资源,此时就需要利用第二类资源完成待处理交易。第二类资源为总资源中除第一类资源之外的资源。
本发明实施例中,将总资源分为第一类资源和第二类资源,第一类资源用于预先分配给所有机构,第二类资源为复用资源,当目标机构当前的资源使用情况超过目标机构的预设资源使用情况时,利用第二类资源为目标机构的待处理交易分配资源,故目标机构的待处理交易不会因为预先分配给目标机构的资源不足导致业务无法进行,既提高了交易的稳定性,又实现了资源的复用。
下面介绍确定目标机构当前的资源使用情况的过程,
以目标机构当前占用的资源作为目标机构当前的资源使用情况时,根据目标机构在设定时间段内的的交易数据确定目标机构当前占用的资源,具体包括以下两种方法,分别为:
方法一、通过观察窗口统计目标机构在设定时间段的交易量和平均交易时间,通过计算设定时间段内目标机构的交易量和平均交易时间的乘积确定目标机构当前占用的资源,比如设定时间段为获取待处理交易之前的20秒,通过统计得到该20秒内目标机构的交易量为1000次,平均交易时间为10毫秒,则目标机构当前占用的资源为10000线程秒。
方法二、通过观察窗口统计设定时间段内目标机构所有交易的开始时间和结束时间,然后根据每次交易的开始时间和结束时间确定每次交易的时长,最后将所有交易的时长相加得到目标机构当前占用的资源。
以目标机构当前的资源占比作为目标机构当前的资源使用情况时,根据上述方法确定目标机构当前占用的资源之后,需进一步通过计算目标机构当 前占用的资源与第一类资源的比值确定目标机构当前的资源占比。本发明实施例中,通过统计设定时间段内目标机构的交易总时长确定目标机构当前占用的资源,并根据当前占用的资源与第一类资源确定当前的资源占比,而不是根据目标机构占用的线程个数确定目标机构当前占用的资源以及目标机构当前的资源占比,确定当前的资源占比的粒度更细,进而提高了确定目标机构当前的资源使用情况的精度。
当目标机构当前的资源使用情况超过目标机构的预设资源使用情况时,从第二类资源中为待处理交易分配资源,具体包括以下四种情况:
情况一、确定第二类资源的使用率不大于第一阈值时,说明第二类资源充足,则从第二类资源中为待处理交易分配资源。
情况二、确定第二类资源的使用率大于第一阈值时,且,目标机构的平均交易时间小于第二阈值,说明第二类资源紧张且目标机构的交易处理速度正常,则从第二类资源中为待处理交易分配资源。其中,目标机构的平均交易时间是根据目标机构在设定时间段内的交易数据确定的,第二阈值根据具体情况确定。
情况三、确定第二类资源的使用率大于第一阈值,且,目标机构的平均交易时间不小于第二阈值,说明第二类资源紧张且目标机构的交易处理速度异常,则停止为待处理交易分配资源。
情况四、确定第二类资源的使用率大于第一阈值,目标机构的平均交易时间不小于第二阈值,目标机构当前占用的资源不小于第三阈值时,说明第二类资源紧张,目标机构的交易处理速度异常且占用大量的资源,则停止为待处理交易分配资源,其中目标机构当前占用的资源是根据目标机构在设定时间段内的交易数据确定的。
本发明实施例中,通过实时监测第二类资源的使用率,当第二类资源充足时,直接将第二类资源分配给待处理交易,当第二类资源不足时,对目标机构的状态进行判断,并根据目标机构的状态为待处理交易分配资源,从而一方面将使第二类资源得到充分利用,另一方面避免了异常机构大量地占用 资源导致***拥堵。
进一步地,当第二类资源的使用率大于第一阈值时,除上述实施例中介绍的根据目标机构的状态分配资源之外,还需对应调整第一类资源的分配情况以缓解第二资源的使用压力,具体包括以下五种情况:
情况一、若第二类资源的使用率大于第一阈值,且,目标机构的平均交易时间小于第二阈值,则从第二类资源中为待处理交易分配资源之后,根据目标机构在设定时间段内的交易数据确定目标机构当前占用的资源,在确定目标机构当前占用的资源大于第三阈值时,说明目标机构正处于营销状态,需要大量的资源进行交易,则增加目标机构的预设资源,其中预设资源为第一类资源中预先分配给目标机构的资源,可通过调整权重的方法调整目标机构的预设资源,也可以通过调整第一类资源的总资源来调整目标机构的预设资源。
情况二、若第二类资源的使用率大于第一阈值,且,目标机构的平均交易时间小于第二阈值,则从第二类资源中为待处理交易分配资源之后,根据目标机构在设定时间段内的交易数据确定目标机构当前占用的资源,在确定目标机构当前占用的资源不大于第三阈值时,则不调整目标机构的预设资源。
情况三、若第二类资源的使用率大于第一阈值,且,目标机构的平均交易时间不小于第二阈值,说明第二类资源紧张,而此时目标机构处于异常状态,则减少目标机构的预设资源。
情况四、若第二类资源的使用率大于第一阈值,目标机构的平均交易时间不小于第二阈值,目标机构当前占用的资源不小于第三阈值时,说明第二类资源紧张,而此时目标机构处于异常状态,且占用了大量的资源,则减少目标机构的预设资源。
情况五、从第二类资源中为待处理交易分配资源之后,统计目标机构利用第二类资源进行交易的交易量,在确定交易量大于第四阈值时,说明第一类资源中预先分配给目标机构的资源已经不能满足目标机构的交易需求,则增加目标机构的预设资源。
本发明实施例中,实时监测第二类资源的使用率以及目标机构当前占用的资源,同时统计目标机构利用第二类资源进行交易的次数,然后根据第二类资源的使用率、目标机构当前占用的资源以及利用第二类资源进行交易的次数实时调整目标机构的预设资源,有利于目标机构的交易顺利进行,同时也可减小第二类资源的使用压力。
为了更好的解释本发明实施例,下面通过具体的实施场景描述本发明实施例提供的一种资源分配方法的流程,如图3所示:
步骤S301,获取目标机构的待处理交易。
步骤S302,确定目标机构当前占用的资源。
步骤S303,确定目标机构当前的资源占比。
步骤S304,判断目标机构当前的资源占比是否小于目标机构的预设资源占比,若是则执行步骤S305,否则执行步骤S306。
步骤S305,将预先分配给目标机构的资源分配给待处理交易。
步骤S306,判断第二类资源的使用率是否大于第一阈值,若是则执行步骤S307,否则执行步骤S312。
步骤S307,判断目标机构的平均交易时间是否小于第二阈值,若是则执行步骤S308,否则执行步骤S311。
步骤S308,判断目标机构当前占用的资源是否大于第三阈值,若是则执行步骤S309,否则执行步骤S310。
步骤S309,将第二类资源分配给待处理交易并提高目标机构的预设资源占比。
步骤S310,将第二类资源分配给待处理交易。
步骤S311,停止向待处理交易分配资源并降低目标机构的预设资源占比。
步骤S312,将第二类资源分配给待处理交易。
除上述实施例中介绍的资源分配方法之外,本发明还提供了另一种资源分配方法的实施例,即将目标机构的平均交易时间和目标机构当前占用的资源结合判断目标机构的状态,根据目标机构的状态进行资源分配。下面以具 体的例子进行介绍,设定线程池中的总线程数为150,设定时间段时长为20秒,其中100×20=2000线程秒为第一类资源、50×20=1000线程秒为第二类资源,设定第一阈值为80%,假设共有5个机构,机构号分别为A1、A2、A3、A4、A5,这5个机构预先分配资源的情况如表1所示:
表1
机构号 预先分配资源的权重 预设资源占比
A1 3 0.3
A2 2 0.2
A3 1 0.1
A4 1 0.1
A5 3 0.3
如表1所示,按照这5个机构的历史交易数据确定预先分配给各个机构的资源的权重,进一步计算对应得到各个机构的预设资源占比。
然后确定各机构当前的资源占比,设定机构A1在设定时间段内共有10000次交易,平均交易时间为10毫秒,那么机构A1当前占用的资源为10000×10/1000=100线程秒,机构A1当前的资源占比为100/(20×100)=0.05。
设定机构A2在设定时间段内共有20000次交易,平均交易时间为30毫秒,那么机构A2当前占用的资源为20000×30/1000=600线程秒,机构A2当前的资源占比为600/(20×100)=0.3。
设定机构A3在设定时间段内共有20000次交易,平均交易时间为15毫秒,那么机构A3当前占用的资源为20000×15/1000=300线程秒,机构A3当前的资源占比为300/(20×100)=0.15。
设定机构A4在设定时间段内共有80000次交易,平均交易时间为10毫秒,那么机构A4当前占用的资源为80000×10/1000=800线程秒,机构A4当前的资源占比为800/(20×100)=0.4。
设定机构A5在设定时间段内共有20000次交易,平均交易时间为10毫 秒,那么机构A5当前占用的资源为20000×10/1000=200线程秒,机构A4当前的资源占比为200/(20×100)=0.1。根据机构当前的资源占比和机构的预设资源比确定资源分配方式,具体如表2所示:
表2
机构号 当前的资源占比 预设资源占比 资源分配方式
A1 0.05 0.3 第一类资源
A2 0.3 0.2 第二类资源
A3 0.15 0.1 第二类资源
A4 0.4 0.1 第二类资源
A5 0.1 0.3 第一类资源
由表2可知,机构A1、A5当前的交易可直接使用预先分配的资源,即第一类资源,机构A2、A3和A4当前的交易均需要利用第二类资源,下面具体介绍第二类资源的分配规则,若机构A2、A3和A4在利用第二类资源进行交易时,第二类资源的使用率均小于80%,则机构A2、A3和A4直接利用第二类资源处理交易。若机构A2、A3和A4在利用第二类资源进行处理交易时,第二类资源的使用率均大于80%,则需根据机构A2、A3和A4的在设定时间段内的交易数据确定资源分配规则,具体为:
设定第二阈值为20毫秒,第三阈值为500线程秒,机构A2在设定时间段的平均交易时间为30毫秒,故机构A2在设定时间段的平均交易时间大于第二阈值,机构A2当前占用的资源为600线程秒,故机构A2当前占用的资源大于第三阈值,从而判断机构A2处于异常状态,则停止向机构A2的交易分配第二类资源,同时降低机构A2的预设资源占比。基于同样的方法对机构A3和A4进行判断,判断结果为:机构A3当前占用的资源小于第三阈值,则向机构A2的交易分配第二类资源。机构A4在设定时间段的平均交易时间小于第二阈值,机构A4当前占用的资源大于第三阈值,从而判断机构A4处于营销状态,则向机构A4的交易分配第二类资源,同时提高机构A4的预设 资源占比。
本发明实施例表明,获取待处理交易并确定所述待处理交易对应的目标机构;根据所述目标机构在设定时间段内的交易数据确定所述目标机构当前的资源使用情况;确定所述目标机构当前的资源使用情况是否超过所述目标机构的预设资源使用情况,所述预设资源使用情况为根据预先分配给所述目标机构的资源与预先分配给所有机构的第一类资源确定的;若超过,则从第二类资源中为所述待处理交易分配资源,所述第二类资源为总资源中除所述第一类资源之外的资源。本发明实施例中,将总资源分为第一类资源和第二类资源,第一类资源用于预先分配给所有机构,第二类资源为复用资源,当目标机构当前的资源使用情况超过目标机构的预设资源使用情况时,利用第二类资源为目标机构的待处理交易分配资源,故目标机构的待处理交易不会因为预先分配给目标机构的资源不足导致业务无法进行,既提高了交易的稳定性,又实现了资源的复用。
基于相同构思,图4示例性的示出了本发明实施例提供的一种资源分配装置的结构,该装置可以执行资源分配方法的流程。
如图4所示,该装置包括:
获取模块401,用于获取待处理交易并确定所述待处理交易对应的目标机构;
处理模块402,用于根据所述目标机构在设定时间段内的交易数据确定所述目标机构当前的资源使用情况;确定所述目标机构当前的资源使用情况是否超过所述目标机构的预设资源使用情况,所述预设资源使用情况为根据预先分配给所述目标机构的资源与预先分配给所有机构的第一类资源确定的;若超过,则从第二类资源中为所述待处理交易分配资源,所述第二类资源为总资源中除所述第一类资源之外的资源。
可选地,所述处理模块402具体用于:
确定所述第二类资源的使用率是否大于第一阈值;
若所述第二类资源的使用率不大于所述第一阈值,则从所述第二类资源 中为所述待处理交易分配资源;或,
若所述第二类资源的使用率大于所述第一阈值,且,所述目标机构的平均交易时间小于第二阈值,则从所述第二类资源中为所述待处理交易分配资源;所述目标机构的平均交易时间是根据所述目标机构在设定时间段内的交易数据确定的。
可选地,所述处理模块402还用于:
若所述第二类资源的使用率大于所述第一阈值,且,所述目标机构的平均交易时间小于第二阈值,则从所述第二类资源中为所述待处理交易分配资源之后,还包括:
根据所述目标机构在设定时间段内的交易数据确定所述目标机构当前占用的资源;
在确定所述目标机构当前占用的资源大于第三阈值时,增加所述目标机构的预设资源。
可选地,所述处理模块402还用于:
若所述第二类资源的使用率大于所述第一阈值,且,所述目标机构的平均交易时间不小于所述第二阈值,停止为所述待处理交易分配资源,同时减少所述目标机构的预设资源。
可选地,所述处理模块402还用于:
从第二类资源中为所述待处理交易分配资源之后,统计所述目标机构利用所述第二类资源进行交易的交易量;
在确定所述交易量大于第四阈值时,增加所述目标机构的预设资源。
基于相同构思,本发明实施例提供了一种计算机设备,可用于执行上述资源分配方法流程。图5为本发明实施例提供的一种计算机设备的结构示意图。该计算机设备包括收发器501、处理器502、存储器503和通信接口504;其中,收发器501、处理器502、存储器503和通信接口504通过总线505相互连接。
其中,存储器503用于存储程序。具体地,程序可以包括程序代码,程 序代码包括计算机操作指令。存储器503可以为易失性存储器(volatile memory),例如随机存取存储器(random-access memory,简称RAM);也可以为非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),硬盘(hard disk drive,简称HDD)或固态硬盘(solid-state drive,简称SSD);还可以为上述任一种或任多种易失性存储器和非易失性存储器的组合。
存储器503存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:
操作指令:包括各种操作指令,用于实现各种操作。
操作***:包括各种***程序,用于实现各种基础业务以及处理基于硬件的任务。
总线505可以是外设部件互连标准(peripheral component interconnect,简称PCI)总线或扩展工业标准结构(extended industry standard architecture,简称EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图5中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
通信接口504可以为有线通信接入口,无线通信接口或其组合,其中,有线通信接口例如可以为以太网接口。以太网接口可以是光接口,电接口或其组合。无线通信接口可以为WLAN接口。
处理器502可以是中央处理器(central processing unit,简称CPU),网络处理器(network processor,简称NP)或者CPU和NP的组合。还可以是硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,简称ASIC),可编程逻辑器件(programmable logic device,简称PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,简称CPLD),现场可编程逻辑门阵列(field-programmable gate array, 简称FPGA),通用阵列逻辑(generic array logic,简称GAL)或其任意组合。
收发器501,用于获取待处理交易并确定所述待处理交易对应的目标机构;
存储器503,用于存储程序指令;
处理器502,用于根据所述目标机构在设定时间段内的交易数据确定所述目标机构当前的资源使用情况;确定所述目标机构当前的资源使用情况是否超过所述目标机构的预设资源使用情况,所述预设资源使用情况为根据预先分配给所述目标机构的资源与预先分配给所有机构的第一类资源确定的;若超过,则从第二类资源中为所述待处理交易分配资源,所述第二类资源为总资源中除所述第一类资源之外的资源。
可选地,所述处理器502,具体用于:确定所述第二类资源的使用率是否大于第一阈值;若所述第二类资源的使用率不大于所述第一阈值,则从所述第二类资源中为所述待处理交易分配资源;或,若所述第二类资源的使用率大于所述第一阈值,且,所述目标机构的平均交易时间小于第二阈值,则从所述第二类资源中为所述待处理交易分配资源;所述目标机构的平均交易时间是根据所述目标机构在设定时间段内的交易数据确定的。
可选地,所述处理器502,还用于:若所述第二类资源的使用率大于所述第一阈值,且,所述目标机构的平均交易时间小于第二阈值,则从所述第二类资源中为所述待处理交易分配资源之后,还包括:根据所述目标机构在设定时间段内的交易数据确定所述目标机构当前占用的资源;在确定所述目标机构当前占用的资源大于第三阈值时,增加所述目标机构的预设资源。
可选地,所述处理器502,还用于:若所述第二类资源的使用率大于所述第一阈值,且,所述目标机构的平均交易时间不小于所述第二阈值,停止为所述待处理交易分配资源,同时减少所述目标机构的预设资源。
可选地,所述处理器502,还用于:从第二类资源中为所述待处理交易分配资源之后,统计所述目标机构利用所述第二类资源进行交易的交易量;
在确定所述交易量大于第四阈值时,增加所述目标机构的预设资源。
基于相同的发明构思,本发明实施例提供了一种计算机可读存储介质,用于储存为上述计算机设备所用的计算机程序指令,其包含用于执行上述资源分配方法的程序。
所述计算机存储介质可以是计算机能够存取的任何可用介质或数据存储设备,包括但不限于磁性存储器(例如,软盘、硬盘、磁带、磁光盘(MO)等)、光学存储器(例如CD、DVD、BD、HVD等)、以及半导体存储器(例如ROM、EPROM、EEPROM、非易失性存储器(NAND FLASH)、固态硬盘(SSD))等。
基于相同的发明构思,本发明实施例提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行第上述资源分配方法。
由上述内容可以看出:
本发明实施例表明,获取待处理交易并确定所述待处理交易对应的目标机构;然后根据所述目标机构在设定时间段内的交易数据确定所述目标机构当前的资源使用情况;确定所述目标机构当前的资源使用情况是否超过所述目标机构的预设资源使用情况,所述预设资源使用情况为根据预先分配给所述目标机构的资源与预先分配给所有机构的第一类资源确定的;若超过,则从第二类资源中为所述待处理交易分配资源,所述第二类资源为总资源中除所述第一类资源之外的资源。本发明实施例中,将总资源分为第一类资源和第二类资源,第一类资源用于预先分配给所有机构,第二类资源为复用资源,当目标机构当前的资源使用情况超过目标机构的预设资源使用情况时,利用第二类资源为目标机构的待处理交易分配资源,故目标机构的待处理交易不会因为预先分配给目标机构的资源不足导致业务无法进行,既提高了交易的稳定性,又实现了资源的复用。
本领域内的技术人员应明白,本发明的实施例可提供为方法、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合 软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(***)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。

Claims (13)

  1. 一种资源分配方法,其特征在于,包括:
    获取待处理交易并确定所述待处理交易对应的目标机构;
    根据所述目标机构在设定时间段内的交易数据确定所述目标机构当前的资源使用情况;
    确定所述目标机构当前的资源使用情况是否超过所述目标机构的预设资源使用情况,所述预设资源使用情况为根据预先分配给所述目标机构的资源与预先分配给所有机构的第一类资源确定的;
    若超过,则从第二类资源中为所述待处理交易分配资源,所述第二类资源为总资源中除所述第一类资源之外的资源。
  2. 如权利要求1所述的方法,其特征在于,所述从第二类资源中为所述待处理交易分配资源,包括:
    确定所述第二类资源的使用率是否大于第一阈值;
    若所述第二类资源的使用率不大于所述第一阈值,则从所述第二类资源中为所述待处理交易分配资源;或,
    若所述第二类资源的使用率大于所述第一阈值,且,所述目标机构的平均交易时间小于第二阈值,则从所述第二类资源中为所述待处理交易分配资源;所述目标机构的平均交易时间是根据所述目标机构在设定时间段内的交易数据确定的。
  3. 如权利要求2所述的方法,其特征在于,还包括:
    若所述第二类资源的使用率大于所述第一阈值,且,所述目标机构的平均交易时间小于第二阈值,则从所述第二类资源中为所述待处理交易分配资源之后,还包括:
    根据所述目标机构在设定时间段内的交易数据确定所述目标机构当前占用的资源;
    在确定所述目标机构当前占用的资源大于第三阈值时,增加所述目标机 构的预设资源。
  4. 如权利要求2所述的方法,其特征在于,还包括:
    若所述第二类资源的使用率大于所述第一阈值,且,所述目标机构的平均交易时间不小于所述第二阈值,停止为所述待处理交易分配资源,同时减少所述目标机构的预设资源。
  5. 如权利要求1至4任一项所述的方法,其特征在于,所述从第二类资源中为所述待处理交易分配资源之后,还包括:
    统计所述目标机构利用所述第二类资源进行交易的交易量;
    在确定所述交易量大于第四阈值时,增加所述目标机构的预设资源。
  6. 一种资源分配装置,其特征在于,包括:
    获取模块,用于获取待处理交易并确定所述待处理交易对应的目标机构;
    处理模块,用于根据所述目标机构在设定时间段内的交易数据确定所述目标机构当前的资源使用情况;确定所述目标机构当前的资源使用情况是否超过所述目标机构的预设资源使用情况,所述预设资源使用情况为根据预先分配给所述目标机构的资源与预先分配给所有机构的第一类资源确定的;若超过,则从第二类资源中为所述待处理交易分配资源,所述第二类资源为总资源中除所述第一类资源之外的资源。
  7. 如权利要求6所述的装置,其特征在于,所述处理模块具体用于:
    确定所述第二类资源的使用率是否大于第一阈值;
    若所述第二类资源的使用率不大于所述第一阈值,则从所述第二类资源中为所述待处理交易分配资源;或,
    若所述第二类资源的使用率大于所述第一阈值,且,所述目标机构的平均交易时间小于第二阈值,则从所述第二类资源中为所述待处理交易分配资源;所述目标机构的平均交易时间是根据所述目标机构在设定时间段内的交易数据确定的。
  8. 如权利要求7所述的装置,其特征在于,所述处理模块还用于:
    若所述第二类资源的使用率大于所述第一阈值,且,所述目标机构的平 均交易时间小于第二阈值,则从所述第二类资源中为所述待处理交易分配资源之后,还包括:
    根据所述目标机构在设定时间段内的交易数据确定所述目标机构当前占用的资源;
    在确定所述目标机构当前占用的资源大于第三阈值时,增加所述目标机构的预设资源。
  9. 如权利要求7所述的装置,其特征在于,所述处理模块还用于:
    若所述第二类资源的使用率大于所述第一阈值,且,所述目标机构的平均交易时间不小于所述第二阈值,停止为所述待处理交易分配资源,同时减少所述目标机构的预设资源。
  10. 如权利要求6至9任一项所述的装置,其特征在于,所述处理模块还用于:
    从第二类资源中为所述待处理交易分配资源之后,统计所述目标机构利用所述第二类资源进行交易的交易量;
    在确定所述交易量大于第四阈值时,增加所述目标机构的预设资源。
  11. 一种计算机设备,其特征在于,所述计算机设备包括:
    收发器,用于获取待处理交易并确定所述待处理交易对应的目标机构;
    存储器,用于存储程序指令;
    处理器,用于调用所述存储器中存储的程序指令,按照获得的程序执行权利要求1至5中任一项所述的方法。
  12. 一种计算机存储介质,其特征在于,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使所述计算机执行权利要求1至5中任一项所述的方法。
  13. 一种计算机程序产品,其特征在于,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行权利要求1~5任一项所述方法。
PCT/CN2018/089864 2017-07-24 2018-06-05 一种资源分配方法和装置 WO2019019807A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710606745.6A CN107292741B (zh) 2017-07-24 2017-07-24 一种资源分配方法和装置
CN201710606745.6 2017-07-24

Publications (1)

Publication Number Publication Date
WO2019019807A1 true WO2019019807A1 (zh) 2019-01-31

Family

ID=60102965

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/089864 WO2019019807A1 (zh) 2017-07-24 2018-06-05 一种资源分配方法和装置

Country Status (3)

Country Link
CN (1) CN107292741B (zh)
TW (1) TWI688905B (zh)
WO (1) WO2019019807A1 (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111736981A (zh) * 2019-08-01 2020-10-02 北京京东尚科信息技术有限公司 容器资源配置方法、装置、设备和存储介质
CN112181649A (zh) * 2020-09-22 2021-01-05 广州品唯软件有限公司 一种容器资源调整方法、装置、计算机设备及存储介质
CN112783907A (zh) * 2020-12-31 2021-05-11 深圳云天励飞技术股份有限公司 数据更新方法、应用端数据更新方法及相关产品
CN114722278A (zh) * 2022-03-31 2022-07-08 北京金堤科技有限公司 推送信息的方法、装置、存储介质和电子设备
CN114844834A (zh) * 2022-04-29 2022-08-02 中国建设银行股份有限公司 流控阈值的调整方法、装置、电子设备、介质及产品
CN114980333A (zh) * 2022-05-20 2022-08-30 中国联合网络通信集团有限公司 资源分配结果的验证方法、装置、电子设备及存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107292741B (zh) * 2017-07-24 2023-09-01 ***股份有限公司 一种资源分配方法和装置
CN112130997B (zh) * 2020-09-22 2022-09-20 新华三大数据技术有限公司 一种资源分配方法及装置
CN112529435A (zh) * 2020-12-17 2021-03-19 中国农业银行股份有限公司 一种资源分配方法及装置
CN112596503B (zh) * 2020-12-18 2022-04-22 浙江中控技术股份有限公司 一种控制***扫描周期的配置方法和相关设备
CN117236903B (zh) * 2023-11-09 2024-05-10 浙江浙商互联信息科技有限公司 一种高速服务区智慧管理方法和***

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130031327A1 (en) * 2011-07-28 2013-01-31 Yung Chang System and method for allocating cache memory
CN103559093A (zh) * 2013-11-15 2014-02-05 北京中指实证数据信息技术有限公司 一种服务器资源的配置方法及装置
CN105678620A (zh) * 2016-01-07 2016-06-15 深圳市金证科技股份有限公司 一种交易***资源调度方法与***
CN107292741A (zh) * 2017-07-24 2017-10-24 ***股份有限公司 一种资源分配方法和装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6546402B1 (en) * 2000-06-05 2003-04-08 International Business Machines Corporation System and method for asynchronous view maintenance
CN102811154B (zh) * 2011-05-31 2015-01-07 阿里巴巴集团控股有限公司 资源获取方法与网络服务器***
CN103426040A (zh) * 2012-05-14 2013-12-04 ***股份有限公司 研发管理***
TW201435609A (zh) * 2013-03-11 2014-09-16 Chunghwa Telecom Co Ltd 多設備間資料異動非同步監控的方法
KR101491572B1 (ko) * 2013-12-09 2015-02-10 삼성증권주식회사 동적 리소스 관리를 수행하는 트레이딩 시스템 및 그 제공방법
US20160027112A1 (en) * 2014-07-24 2016-01-28 Rivada Networks, Llc Broadband Orthogonal Resource Grouping
CN105988858A (zh) * 2015-05-15 2016-10-05 ***股份有限公司 一种虚拟机资源调度方法、装置及***

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130031327A1 (en) * 2011-07-28 2013-01-31 Yung Chang System and method for allocating cache memory
CN103559093A (zh) * 2013-11-15 2014-02-05 北京中指实证数据信息技术有限公司 一种服务器资源的配置方法及装置
CN105678620A (zh) * 2016-01-07 2016-06-15 深圳市金证科技股份有限公司 一种交易***资源调度方法与***
CN107292741A (zh) * 2017-07-24 2017-10-24 ***股份有限公司 一种资源分配方法和装置

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111736981A (zh) * 2019-08-01 2020-10-02 北京京东尚科信息技术有限公司 容器资源配置方法、装置、设备和存储介质
CN112181649A (zh) * 2020-09-22 2021-01-05 广州品唯软件有限公司 一种容器资源调整方法、装置、计算机设备及存储介质
CN112783907A (zh) * 2020-12-31 2021-05-11 深圳云天励飞技术股份有限公司 数据更新方法、应用端数据更新方法及相关产品
CN112783907B (zh) * 2020-12-31 2024-06-07 深圳云天励飞技术股份有限公司 数据更新方法、应用端数据更新方法及相关产品
CN114722278A (zh) * 2022-03-31 2022-07-08 北京金堤科技有限公司 推送信息的方法、装置、存储介质和电子设备
CN114722278B (zh) * 2022-03-31 2024-03-08 北京金堤科技有限公司 推送信息的方法、装置、存储介质和电子设备
CN114844834A (zh) * 2022-04-29 2022-08-02 中国建设银行股份有限公司 流控阈值的调整方法、装置、电子设备、介质及产品
CN114844834B (zh) * 2022-04-29 2024-04-26 中国建设银行股份有限公司 流控阈值的调整方法、装置、电子设备、介质及产品
CN114980333A (zh) * 2022-05-20 2022-08-30 中国联合网络通信集团有限公司 资源分配结果的验证方法、装置、电子设备及存储介质
CN114980333B (zh) * 2022-05-20 2024-05-14 中国联合网络通信集团有限公司 资源分配结果的验证方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN107292741B (zh) 2023-09-01
CN107292741A (zh) 2017-10-24
TWI688905B (zh) 2020-03-21
TW201909048A (zh) 2019-03-01

Similar Documents

Publication Publication Date Title
WO2019019807A1 (zh) 一种资源分配方法和装置
US9928245B2 (en) Method and apparatus for managing memory space
CN100377113C (zh) 根据优先级来处理高速缓存分配请求的方法和装置
KR102589155B1 (ko) 메모리 관리 방법 및 장치
CN107124472A (zh) 负载均衡方法及装置、计算机可读存储介质
TW201441833A (zh) 虛擬磁碟的io口調度方法及其調度裝置
WO2015101091A1 (zh) 一种分布式资源调度方法及装置
CN110599315A (zh) 多层级账户的资源分配方法、装置及设备
WO2019062068A1 (zh) 一种坐席任务的分配方法、存储介质和服务器
WO2020224531A1 (zh) 存储***中令牌的分配方法和装置
CN109788325B (zh) 视频任务分配方法及服务器
WO2016041446A1 (zh) 一种资源分配方法、装置及设备
WO2017000645A1 (zh) 一种分配宿主机资源的方法和装置
CN111190739A (zh) 一种资源分配方法、装置、电子设备及存储介质
CN106326145A (zh) 一种存储器的控制方法和装置
US10127083B2 (en) System and method for managing workload performance on billed computer systems
CN109670932B (zh) 信贷数据核算方法、装置、***和计算机存储介质
CN106933512A (zh) 一种数据读写的方法及其设备
CN113191546A (zh) 一种资源分配的预测方法、资源管理设备和存储介质
US9213575B2 (en) Methods and systems for energy management in a virtualized data center
CN107194712B (zh) 共享账户变动信息记录方法及装置、内部账户补账方法及***
CN109117976B (zh) 一种贷款损失预测方法、装置、服务器及存储介质
WO2020024207A1 (zh) 处理业务请求的方法、装置与存储***
CN110288478A (zh) 针对支付机构的交易数据处理方法及其设备
TW201935341A (zh) 針對風控指令的處理方法、裝置及設備

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18838418

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18838418

Country of ref document: EP

Kind code of ref document: A1