WO2021042919A1 - 高并发下的数据分配测试方法、装置、终端及存储介质 - Google Patents

高并发下的数据分配测试方法、装置、终端及存储介质 Download PDF

Info

Publication number
WO2021042919A1
WO2021042919A1 PCT/CN2020/105939 CN2020105939W WO2021042919A1 WO 2021042919 A1 WO2021042919 A1 WO 2021042919A1 CN 2020105939 W CN2020105939 W CN 2020105939W WO 2021042919 A1 WO2021042919 A1 WO 2021042919A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource acquisition
time
preset
allocation
acquisition requests
Prior art date
Application number
PCT/CN2020/105939
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 WO2021042919A1 publication Critical patent/WO2021042919A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Definitions

  • This application relates to the technical field of financial technology, and in particular to a data distribution test method under high concurrency, a data distribution test device under high concurrency, a terminal, and a computer-readable storage medium.
  • the background system can automatically allocate the resource acquisition request to the processor in a regular manner.
  • the inventor realizes that when a very large number of resource acquisition requests are automatically allocated to processors in the server in a timed allocation within a short unit time, it is necessary to propose a search for the optimal allocation time, and each processing Fang’s test plan for optimally processing the number of resource acquisition requests improves the system’s allocation efficiency of resource acquisition requests and provides a reference for the allocation of resources in the actual production environment.
  • the first aspect of the present application provides a data distribution test method under high concurrency, and the method includes:
  • the first time period is preset to obtain a time point every interval, and a time point set is obtained;
  • the optimal resource acquisition request allocation amount is allocated according to a preset allocation rule.
  • a second aspect of the present application provides a terminal, the terminal includes a processor and a memory, and the processor is configured to execute computer-readable instructions stored in the memory to implement the following steps:
  • the first time period is preset to obtain a time point every interval, and a time point set is obtained;
  • the optimal resource acquisition request allocation amount is allocated according to a preset allocation rule.
  • a third aspect of the present application provides a computer-readable storage medium having at least one computer-readable instruction stored thereon, and the at least one computer-readable instruction is executed by a processor to implement the following steps:
  • the first time period is preset to obtain a time point every interval, and a time point set is obtained;
  • the optimal resource acquisition request allocation amount is allocated according to a preset allocation rule.
  • a fourth aspect of the present application provides a data distribution test device under high concurrency, the device including:
  • the time point set obtaining module is used to obtain a time point once in the first time period preset in each interval to obtain a time point set;
  • the resource acquisition request quantity calculation module is configured to calculate the resource acquisition request quantity corresponding to each time point in the time point set according to the functional relationship between the preset time and the resource acquisition request quantity;
  • An allocation test module configured to perform an allocation test on the number of resource acquisition requests corresponding to each time point in a preset second time period according to a preset allocation rule
  • a test result determination module configured to obtain the allocation test result of the resource acquisition request quantity corresponding to each time point
  • the adjacent time point resource acquisition request acquisition module is used to acquire the resource acquisition request quantity corresponding to two adjacent target time points according to the distribution test result, wherein the test result of the resource acquisition request quantity corresponding to the last target time point As the allocation has been completed, the test result of the number of resource acquisition requests corresponding to the next target time point is the uncompleted allocation;
  • An optimal resource acquisition request quantity determining module configured to determine the optimal resource acquisition request allocation amount within the preset second time period according to the resource acquisition request quantity corresponding to the two adjacent target time points;
  • the resource acquisition request quantity allocation module is configured to allocate the optimal resource acquisition request allocation quantity in the preset second time period according to a preset allocation rule.
  • the allocation test is performed on the number of resource acquisition requests according to preset allocation rules, and the test results of the number of requests for each resource acquisition are analyzed to obtain the optimal allocation time and each processing The best way to handle the number of resource acquisition requests, improve the system’s allocation efficiency of resource acquisition requests, and provide a reference for resource allocation in the actual production environment.
  • FIG. 1 is a flowchart of a data distribution test method under high concurrency provided by the first embodiment of the present application.
  • FIG. 2 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • Fig. 3 is an exemplary functional block diagram of the terminal shown in Fig. 2.
  • FIG. 1 is a flowchart of a data distribution test method under high concurrency in the first embodiment of the present application.
  • the data distribution test method under high concurrency can be applied to a terminal 1, which may be, for example, a smart phone or a laptop. , Desktop/tablet computers, smart watches, and personal digital assistants (PDAs) and other smart devices.
  • the data distribution test method under high concurrency may include the following steps:
  • the first time period is preset to obtain a time point every interval, and a time point set is obtained.
  • a user When a user acquires a resource, it needs to make a resource acquisition request. After receiving the instruction information of the resource acquisition request initiated by the user, a resource acquisition request page is generated, and the resource acquisition request page is pushed to the user. The user fills in the relevant information of the resource acquisition request as prompted on the resource acquisition request page, and the review agency receives the relevant information of the resource acquisition request in real time and verifies whether the relevant information of the resource acquisition request meets the requirements. Only after the review is passed, the resources will be processed Follow-up procedures to obtain.
  • the embodiment of the present application also provides an interactive interface
  • the preset area on the interactive interface may be provided with an icon of "resource acquisition”
  • the instruction information may include: the preset area on the interactive interface A click operation for the "resource acquisition” icon; or, a preset operation at a preset distance (for example, the preset distance is 5 cm) from the interactive interface (for example, the preset operation is one-handed Circle operation); or, at a preset distance from the interactive interface (for example, the preset distance is 5 cm), output preset voice information (for example, the preset voice information is "acquisition resource”) .
  • the instruction information There is no restriction on the instruction information here.
  • the resource acquisition request may be automatically allocated to the relevant processing party in a manner of regular allocation of the resource acquisition request.
  • the first time period is preset to obtain a time point every interval to obtain a time point set.
  • the preset first time period may be preset by the terminal user, for example, the preset first time period is 1 minute. Get the time point every 1 minute, and the time point set obtained is ⁇ 1min, 2min, 3min, 4min,..., 20min,... ⁇ .
  • S2 Calculate the number of resource acquisition requests corresponding to each time point in the time point set according to the functional relationship between the preset time and the number of resource acquisition requests.
  • An incremental function model can be selected to construct the functional relationship between the preset time and the number of resource acquisition requests.
  • the incremental function model can include a linear function, a quadratic function, an exponential function, and a logarithmic function. It is understandable that for the first-order function, the number of resource acquisition requests increases in a certain proportion to the preset time, which is not in line with the actual situation; for the quadratic function and exponential function, the number of resource acquisition requests increases with time, and the amount of requests increases. The rate is getting faster and faster, which is not in line with the actual situation; for the logarithmic function, the number of resource acquisition requests increases with time, and the increase in the number of applications is flat, which is in line with the actual situation.
  • y represents the number of resource acquisition requests
  • x represents the time point
  • a is greater than The normal number of 1.
  • S3 Perform an allocation test on the number of resource acquisition requests corresponding to each time point in a preset second time period according to a preset allocation rule.
  • an allocation test is performed on the number of resource acquisition requests corresponding to each time point in a preset second time period according to a preset allocation rule, and the preset allocation rule needs to consider factors It may include: the city corresponding to the resource acquisition request, the processing party information corresponding to the city, the preset weight value, and the allocated situation corresponding to the processing party.
  • the step of performing an allocation test on the number of resource acquisition requests corresponding to each time point within a preset second time period according to a preset allocation rule includes: acquiring the resource acquisition allocated by the processor Request amount; according to the preset weight value and the allocated resource acquisition request quantity, the resource acquisition request is allocated regularly.
  • the preset second time period is preset by the terminal user according to the actual resource acquisition request allocation situation, for example, the preset second time period is 15 minutes.
  • the processor information includes information such as the processor level, the number of processors, and the number of processors under the corresponding processor level.
  • the situation of the allocated resource acquisition requests in the processing party information includes the number of resource acquisition requests waiting for each processing party to process before the timing allocation is started this time.
  • the preset weight value may be preset by the terminal user according to actual conditions (for example, the level of the processing party, the number of the processing party, etc.).
  • the step of performing an allocation test on the number of resource acquisition requests corresponding to each time point in a preset second time period according to a preset allocation rule includes: acquiring historical resources Obtain log data related to the timed allocation task in the request allocation process; obtain the start allocation time and the completion time recorded in the log data; calculate the allocation rate based on the start allocation time and the completed allocation time ; According to the allocation rate within the preset second time period, the resource acquisition request is regularly allocated to the processing party.
  • the allocation rate is the time required to allocate and complete a resource acquisition request.
  • the allocation amount of the current system can be calculated by the code performance matching the system. For example, the allocation rate that can be obtained according to the code performance matching the system is that the system can allocate one resource acquisition request every 10 seconds or so, and it is expected that 6 resource acquisition requests can be allocated in 1 minute.
  • the allocation test result of the number of resource acquisition requests corresponding to each time point is acquired, and the allocation test result includes: each resource acquisition request can be allocated; or, there is The resource acquisition request that has not been allocated has been completed.
  • the step of obtaining the number of resource obtaining requests corresponding to two adjacent target time points according to the allocation test result includes: obtaining an end point in the preset second time period A preset number of time points before and/or after; determine the allocation test result corresponding to the preset number of time points; select the allocation test result of the resource acquisition request quantity corresponding to the last time point as the allocation completed, And the allocation test result of the number of resource acquisition requests corresponding to the next time point is that the two adjacent time points that have not been allocated are the two adjacent target time points; according to the function between the preset time and the number of resource acquisition requests Relationship, calculate the number of resource acquisition requests corresponding to two adjacent target time points.
  • the preset number is preset by the terminal user.
  • each resource acquisition request quantity can be allocated within the preset second time period, obtain two adjacent target time points after the end point of the preset second time period, where , The test result of the number of resource acquisition requests corresponding to the previous target time point is the allocation completed, and the test result of the number of resource acquisition requests corresponding to the target time point next time is the uncompleted allocation.
  • the end point of the preset second time period is a point where the time points are concentrated (for example, the above time point set is ⁇ 1min, 2min, 3min, 4min,..., 20min,... ⁇ ,
  • the preset second time period is 10min
  • the preset end point of the second time period is 10min, 20min, etc., the end point is the point concentrated in the time point
  • the resource corresponding to the end point is obtained
  • the test results corresponding to the preset number of time points are determined, and the one corresponding to the last time point is selected
  • the test result of the number of resource acquisition requests is that the allocation has been completed, and the test result of the number of resource acquisition requests corresponding to the next time point is that the allocation is not completed.
  • the two adjacent time points are the target time points; according to the preset time and resource acquisition
  • the functional relationship between the number of requests, the number of resource acquisition requests corresponding to two adjacent target time points is calculated.
  • the end point of the preset second time period is not a point where the time points are concentrated, acquire the next time point adjacent to the end point of the preset second time period, and determine the next time point
  • the test result of the corresponding resource acquisition request quantity is that the allocation has been completed. If the judgment result is that the resource acquisition request allocation has been completed, get the next time point corresponding to the next time point, and continue to determine whether the corresponding test result is The allocation is completed until a point in time is found, and the corresponding allocation test result is unallocated.
  • the acquired two adjacent target time points are respectively the last time point corresponding to the end point of the preset second time period and the preset first time point.
  • the point at the end of the second time period corresponds to the next time point.
  • the end point of the preset second time period is a point where the time points are concentrated, and the test result of the resource acquisition request corresponding to the end point is that the allocation is not completed, the end point is acquired
  • determine the test result corresponding to the preset number of time points select the test result of the resource acquisition request quantity corresponding to the last time point as the allocation is completed, and the next time point corresponds
  • the test result of the number of resource acquisition requests is that the two adjacent time points that have not been allocated are the target time points; according to the functional relationship between the preset time and the number of resource acquisition requests, the corresponding two adjacent time points are calculated The number of resource acquisition requests.
  • the end point of the preset second time period is not a point where the time points are concentrated, obtain the previous time point adjacent to the end point of the preset second time period, and determine the previous time point Whether the test result of the corresponding resource acquisition request quantity is that the allocation has been completed, if the judgment result is that the allocation has been completed, the two adjacent target time points acquired are respectively the end points of the preset second time period
  • the corresponding previous time point corresponds to the next time point corresponding to the end point of the preset second time period. If the judgment result is that the allocation is not completed, get the previous time point corresponding to the previous time point, and continue to judge whether the corresponding test result is allocated. Until a time point is found, the corresponding allocation test result is allocated carry out.
  • S6 Determine the optimal resource acquisition request allocation amount in the preset second time period according to the number of resource acquisition requests corresponding to the two adjacent target time points.
  • the optimal resource acquisition request allocation amount in the preset second time period is determined according to the number of resource acquisition requests corresponding to the two adjacent target time points, and the optimal resource acquisition request allocation The amount also refers to: in the preset second time period, when the number of resource acquisition requests can be fully allocated, and a new resource acquisition request is added based on the current resource acquisition request number, a new resource acquisition The request cannot be allocated, and the number of resource acquisition requests at this time is the optimal resource acquisition request number.
  • the step of determining the optimal resource acquisition request allocation amount in the preset second time period according to the number of resource acquisition requests corresponding to the two adjacent target time points includes: acquiring the adjacent two targets The first time midpoint of the time point; calculate the number of resource acquisition requests corresponding to the first time midpoint according to the function between the preset time and the number of resource acquisition requests; according to the preset allocation rule in the The allocation test is performed on the number of resource acquisition requests corresponding to the first time midpoint within the preset second time period; if the allocation test result is that the number of resource acquisition requests corresponding to the first time midpoint has been allocated, then The number of resource acquisition requests corresponding to the midpoint of the first time is determined as the optimal resource acquisition request allocation amount within the preset second time period.
  • the method further includes: acquiring the second time between the last time point and the first time midpoint Point; according to the function between the preset time and the number of resource acquisition requests, calculate the number of resource acquisition requests corresponding to the second time midpoint; within the preset second time period according to the preset allocation rule Perform an allocation test on the number of resource acquisition requests corresponding to the second time midpoint; if the allocation test result is that the number of resource acquisition requests corresponding to the second time midpoint has been allocated, then the second time midpoint is allocated The number of resource acquisition requests corresponding to a point is determined as the optimal resource acquisition request allocation amount within the preset second time period; if the allocation test result is that the number of resource acquisition requests corresponding to the second time midpoint has not been allocated , The process is repeated until the nth time midpoint is obtained, where the resource acquisition request quantity corresponding to the nth time midpoint has been allocated within the preset second time period, and the The number of
  • the method further includes: obtaining the number of resource acquisition requests corresponding to the two adjacent time points assigned to different processing parties; and determining according to the number of resource acquisition requests corresponding to the two adjacent time points The level of the processor.
  • the determining the level of the processing party according to the number of resource acquisition requests corresponding to the two adjacent time points includes: increasing and/or decreasing the number of resource acquisition requests obtained at two adjacent time points, respectively Arrange in sequence, and rank the number of resource acquisition requests arranged to obtain the resource acquisition request quantity grade; the resource acquisition request quantity level is corresponding to the processing party, and the processing party's grade is determined.
  • the preset number of levels of the processing party is three, namely level 3, level 2, and level 1.
  • the number of resource acquisition requests obtained at two adjacent time points are arranged in increasing and/or decreasing order, assuming that the two adjacent time points are time point a, time point b, and time point a.
  • the numbers are 6, 4, and 3, respectively, and the number of resource acquisition requests obtained at time point b is 6, 5, and 4, respectively.
  • the number of arranged resource acquisition requests is graded to obtain the number of resource acquisition requests. It is understandable that for the number of resource acquisition requests acquired at each time point, a first preset value, a second preset value, and a third preset value are set, and the first/second/third preset values Used to rank the number of resource acquisition requests arranged. For example, for time point a, the first preset value is 5, the second preset value is 3, and the third preset value is 2, and the corresponding number of resource acquisition requests greater than the first preset value of 5 is set.
  • the level of is A
  • the corresponding level is set to B for the number of resource acquisition requests greater than the second preset value 3
  • the corresponding level is set to C for the number of resource acquisition requests greater than the third preset value 2.
  • the resource acquisition request quantity level A corresponds to the processor level 3
  • the resource acquisition request quantity level B corresponds to the processor level 2
  • the resource acquisition request quantity level C corresponds to the processor level 1.
  • the number of resource acquisition requests corresponding to different levels is different, and the higher the level, the higher the number of resource acquisition requests; the level of the number of resource acquisition requests corresponds to different processors to determine the level of the processor, The higher the level of the processor, the higher the level of the number of corresponding resource acquisition requests, and the higher the number of allocated resource acquisition requests.
  • the above-mentioned preset distribution rules can be deployed on multiple servers and run continuously for a preset number of days while obtaining the stability test results. Specifically, within a preset number of days, it is determined whether the current resource acquisition request can be correctly allocated without error.
  • the correct allocation without error means that the optimal resource acquisition request allocation amount is applicable to the current system. In the preset second time period, the allocation of the optimal resource acquisition request allocation amount can be completed.
  • a large number of resource acquisition requests can be set on the test script to check whether a large number of resource acquisition requests can be allocated correctly without errors.
  • the prompt content may include which resource acquisition request has not been allocated. The other is to continue to perform the resource acquisition request allocation operation when the resource acquisition request has not completed the allocation, until the preset number of days test ends, and output an error prompt.
  • the prompt content includes the number of errors that occurred within the preset number of days. The number of errors occurring within a preset number of days can be used to obtain the probability of error occurrence, so as to find the root cause of the error and solve the problem.
  • the method further includes: automatic/manual detection of the processor mode Whether it has changed; if it is detected that the mode of the processing party has changed, the test needs to be retested to obtain the optimal resource acquisition request allocation amount within the preset second time period.
  • the processor levels are A, B, and C, and the number of processors in each level is two.
  • test the preset number of the system found The setting of the allocation amount of the optimal resource acquisition request in the second time period may not need to be changed.
  • a change in the processor mode is detected, for example, one processor is added or reduced, the test needs to be re-tested manually or automatically to obtain the best resource within the preset second time period Get the requested allocation amount.
  • the embodiment of the application provides a data distribution test method under high concurrency.
  • the time point is acquired once every preset first time period to obtain the time point set; according to the functional relationship between the preset time and the number of resource acquisition requests, calculate The number of resource acquisition requests corresponding to each time point in the set of time points; an allocation test is performed on the number of resource acquisition requests corresponding to each time point in a preset second time period according to a preset allocation rule; acquisition;
  • the allocation test result of the resource acquisition request quantity corresponding to each time point; the resource acquisition request quantity corresponding to two adjacent target time points is acquired according to the allocation test result, where the last target time point corresponds to
  • the test result of the number of resource acquisition requests is that the allocation has been completed, and the test result of the number of resource acquisition requests corresponding to the next target time point is the uncompleted allocation; the number of resource acquisition requests corresponding to the two adjacent target time points is determined.
  • a test method for finding the optimal allocation time and the optimal processing application amount for each processing party is proposed, which improves the system’s allocation efficiency of resource acquisition requests, and provides resources for the allocation of resources in the actual production environment. reference.
  • the embodiment of the present application also provides a terminal 1, including a memory 10, a processor 30, and a computer program stored in the memory 10 and capable of running on the processor 30.
  • the processor 30 implements any of the foregoing when the program is executed. The steps of the data distribution test method under high concurrency described in the implementation mode.
  • FIG. 2 is a schematic structural diagram of a terminal 1 according to an embodiment of the present application.
  • the terminal 1 includes a memory 10 in which a data distribution test device 100 under high concurrency is stored.
  • the terminal 1 may be a terminal 1 with an application display function, such as a mobile phone, a tablet computer, a personal digital assistant, or the like.
  • the data distribution test device 100 under high concurrency may obtain a time point every preset first time period to obtain a time point set; calculate the time point according to the functional relationship between the preset time and the number of resource acquisition requests The number of resource acquisition requests corresponding to each time point in the concentration; the allocation test is performed on the number of resource acquisition requests corresponding to each time point in a preset second time period according to a preset allocation rule; The allocation test result of the number of resource acquisition requests corresponding to the time point; the number of resource acquisition requests corresponding to two adjacent target time points is obtained according to the allocation test result, where the number of resource acquisition requests corresponding to the last target time point The test result is that the allocation has been completed, and the test result of the number of resource acquisition requests corresponding to the next target time point is that the allocation is not completed; the preset number of resource acquisition requests is determined according to the number of resource acquisition requests corresponding to the two adjacent target time points The optimal resource acquisition request allocation amount in the second time period; in the preset second time period, the optimal resource acquisition request allocation amount is allocated
  • the terminal 1 may further include a display screen 20 and a processor 30.
  • the memory 10 and the display screen 20 may be electrically connected to the processor 30 respectively.
  • the memory 10 may be different types of storage devices for storing various types of data.
  • it can be the memory or internal memory of the terminal 1, or a memory card that can be externally connected to the terminal 1, such as flash memory, SM card (Smart Media Card), SD card (Secure Digital Card, secure digital card) Wait.
  • the memory 10 may include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a Secure Digital (SD) card, a flash memory card (Flash Card), At least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device.
  • the memory 10 is used to store various types of data, for example, various types of applications (Applications) installed in the terminal 1, and data set and obtained by applying the above-mentioned high-concurrency data distribution test method.
  • the display screen 20 is installed in the terminal 1 for displaying information.
  • the processor 30 is configured to execute the data distribution test method under high concurrency and various software installed in the terminal 1, such as an operating system and application display software.
  • the processor 30 includes, but is not limited to, a processor (Central Processing Unit, CPU), a Micro Controller Unit (Micro Controller Unit, MCU), and other devices for interpreting a computer and processing data in computer software.
  • the data distribution test device 100 under high concurrency may include one or more modules, and the one or more modules are stored in the memory 10 of the terminal 1 and configured to be composed of one or more processors (this The implementation manner is executed by a processor 30) to complete the embodiments of the present application.
  • the data allocation test device 100 under high concurrency may include a time point set acquisition module 101, a resource acquisition request quantity calculation module 103, an allocation test module 105, a test result determination module 107, and adjacent time Point resource acquisition request acquisition module 109, optimal resource acquisition request quantity determination module 111, and resource acquisition request quantity allocation module 113.
  • the module referred to in the embodiments of the present application may be a program segment that completes a specific function, and is more suitable than a program to describe the execution process of software in a processor.
  • the terminal 1 may include some or all of the functional modules shown in FIG. 3, and the functions of each module will be described in detail below. It should be noted that the same noun related nouns and specific explanations in the various implementations of the data distribution test method under high concurrency can also be applied to the following functional introduction of each module. In order to save space and avoid repetition, I won't repeat them here.
  • the time point set obtaining module 101 may be used to obtain a time point once every preset first time period to obtain a time point set.
  • the resource acquisition request quantity calculation module 103 may be configured to calculate the resource acquisition request quantity corresponding to each time point in the time point set according to the functional relationship between the preset time and the resource acquisition request quantity.
  • the allocation test module 105 may be configured to perform an allocation test on the number of resource acquisition requests corresponding to each time point in a preset second time period according to a preset allocation rule.
  • the test result determining module 107 may be configured to obtain the allocation test result of the resource acquisition request quantity corresponding to each time point.
  • the adjacent time point resource acquisition request acquisition module 109 may be used to acquire the number of resource acquisition requests corresponding to two adjacent target time points according to the allocation test result, where the test of the number of resource acquisition requests corresponding to the last target time point The result is that the allocation has been completed, and the test result of the number of resource acquisition requests corresponding to the next target time point is that the allocation has not been completed.
  • the optimal resource acquisition request quantity determining module 111 may be configured to determine the optimal resource acquisition request allocation amount in the preset second time period according to the resource acquisition request quantity corresponding to the two adjacent target time points.
  • the resource acquisition request quantity allocation module 113 may be configured to allocate the optimal resource acquisition request allocation quantity in the preset second time period according to a preset allocation rule.
  • the embodiments of the present application also provide a computer-readable storage medium on which computer-readable instructions are stored, and when the computer-readable instructions are executed by a processor, the data distribution test method under high concurrency in any of the above embodiments is implemented A step of.
  • the data distribution test device 100/terminal1/computer equipment integrated module/unit under high concurrency is realized in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium
  • the computer-readable storage medium may be a non-volatile storage medium or a volatile storage medium.
  • the computer program includes computer-readable instruction code
  • the computer-readable instruction code may be in the form of source code, object code, executable file, or some intermediate form.
  • the computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) ), random access memory (RAM, Random Access Memory), etc.
  • the so-called processor 30 may be a central processing unit (Central Processing Unit, CPU), other general processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
  • the processor 30 is the control center of the data distribution test device 100/terminal 1 under high concurrency, and uses various interfaces Connect the entire high-concurrency data distribution test device 100/each part of the terminal 1 to the line.
  • the memory 10 is used to store the computer program and/or module, and the processor 30 executes or executes the computer program and/or module stored in the memory and calls the data stored in the memory 10 to implement Various functions of the data distribution test device 100/terminal 1 under the high concurrency.
  • the memory 10 may mainly include a storage program area and a storage data area.
  • the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; the storage data area may Data and the like created according to the use of the terminal 1 are stored.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Debugging And Monitoring (AREA)

Abstract

一种高并发下的数据分配测试方法、装置、终端及计算机可读存储介质,涉及金融科技技术领域,可应用于智慧财政领域,从而推动智慧城市的建设。该方法包括:每间隔预设第一时间段获取一次时间点得到时间点集;计算每一次时间点对应资源获取请求数量;在预设第二时间段内对每一次时间点对应资源获取请求数量进行分配测试;获取每一时间点分配测试结果;根据相邻两次目标时间点对应资源获取请求数量确定预设第二时间段内的最佳资源获取请求分配量;在预设第二时间段内,根据预设分配规则对最佳资源获取请求分配量进行分配。得到最优的分配时间及每个处理方的最佳资源获取请求处理量,为实际生产环境中资源的分配提供参考。

Description

高并发下的数据分配测试方法、装置、终端及存储介质
本申请要求于2019年09月06日提交中国专利局,申请号为201910844250.6发明名称为“高并发下的数据分配测试方法、装置、终端及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及金融科技技术领域,具体涉及一种高并发下的数据分配测试方法、高并发下的数据分配测试装置、终端以及计算机可读存储介质。
背景技术
在现有技术中,在同意资源获取请求之前需要对提出资源请求的用户的资产情况进行风险评估审核,审核通过后才可以发放相关资源。用户在将资源获取请求提交成功后,后台***可以将资源获取请求通过定时方式自动分配给处理方。发明人意识到,在将极多个资源获取请求在较短单位时间内按照定时分配的方式自动分配给服务器中的处理方时,有必要提出一种寻找最优的分配时间,及每个处理方的最佳处理资源获取请求数量的测试方案,提高***对资源获取请求的分配效率,为实际生产环境中资源的分配提供参考。
发明内容
鉴于以上内容,有必要提供一种高并发下的数据分配测试方法、高并发下的数据分配测试装置、终端以及计算机可读存储介质,能够得到最优的分配时间,及每个处理方的最佳资源获取请求处理量,提高***对资源获取请求的分配效率,为实际生产环境中资源的分配提供参考。
本申请的第一方面提供一种高并发下的数据分配测试方法,所述方法包括:
每间隔预设第一时间段获取一次时间点,得到时间点集;
根据预设时间与资源获取请求数量之间的函数关系,计算所述时间点集中的每一次时间点对应的资源获取请求数量;
根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试;
获取所述每一个时间点对应的所述资源获取请求数量的分配测试结果;
根据所述分配测试结果获取相邻的两次目标时间点对应的资源获取请求数量,其中,上一次目标时间点对应的资源获取请求数量的测试结果为已完成分配,下一次目标时间点对应的资源获取请求数量的测试结果为未完成分配;
根据所述相邻的两次目标时间点对应的资源获取请求数量确定所述预设第二时间段内的最佳资源获取请求分配量;
在所述预设第二时间段内,根据预设分配规则对所述最佳资源获取请求分配量进行分配。
本申请的第二方面提供一种终端,所述终端包括处理器和存储器,所述处理器用于执行所述存储器中存储的计算机可读指令以实现以下步骤:
每间隔预设第一时间段获取一次时间点,得到时间点集;
根据预设时间与资源获取请求数量之间的函数关系,计算所述时间点集中的每一次时间点对应的资源获取请求数量;
根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试;
获取所述每一个时间点对应的所述资源获取请求数量的分配测试结果;
根据所述分配测试结果获取相邻的两次目标时间点对应的资源获取请求数量,其中,上一次目标时间点对应的资源获取请求数量的测试结果为已完成分配,下一次目标时间点对应的资源获取请求数量的测试结果为未完成分配;
根据所述相邻的两次目标时间点对应的资源获取请求数量确定所述预设第二时间段内的最佳资源获取请求分配量;
在所述预设第二时间段内,根据预设分配规则对所述最佳资源获取请求分配量进行分配。
本申请的第三方面提供一种计算机可读存储介质,所述计算机可读存储介质上存储有至少一个计算机可读指令,所述至少一个计算机可读指令被处理器执行以实现以下步骤:
每间隔预设第一时间段获取一次时间点,得到时间点集;
根据预设时间与资源获取请求数量之间的函数关系,计算所述时间点集中的每一次时间点对应的资源获取请求数量;
根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试;
获取所述每一个时间点对应的所述资源获取请求数量的分配测试结果;
根据所述分配测试结果获取相邻的两次目标时间点对应的资源获取请求数量,其中,上一次目标时间点对应的资源获取请求数量的测试结果为已完成分配,下一次目标时间点对应的资源获取请求数量的测试结果为未完成分配;
根据所述相邻的两次目标时间点对应的资源获取请求数量确定所述预设第二时间段内的最佳资源获取请求分配量;
在所述预设第二时间段内,根据预设分配规则对所述最佳资源获取请求分配量进行分配。
本申请的第四方面提供一种高并发下的数据分配测试装置,所述装置包括:
时间点集获取模块,用于在每间隔预设第一时间段获取一次时间点,得到时间点集;
资源获取请求数量计算模块,用于根据预设时间与资源获取请求数量之间的函数关系,计算所述时间点集中的每一次时间点对应的资源获取请求数量;
分配测试模块,用于根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试;
测试结果确定模块,用于获取所述每一个时间点对应的所述资源获取请求数量的分配测试结果;
相邻时间点资源获取请求获取模块,用于根据所述分配测试结果获取相邻的两次目标时间点对应的资源获取请求数量,其中,上一次目标时间点对应的资源获取请求数量的测试结果为已完成分配,下一次目标时间点对应的资源获取请求数量的测试结果为未完成分配;
最佳资源获取请求数量确定模块,用于根据所述相邻的两次目标时间点对应的资源获取请求数量确定所述预设第二时间段内的最佳资源获取请求分配量;
资源获取请求数量分配模块,用于在所述预设第二时间段内,根据预设分配规则对所述最佳资源获取请求分配量进行分配。
由以上技术方案,本申请中,根据预设分配规则对所述资源获取请求数量进行分配测试,并通过对每个资源获取请求数量的测试结果进行分析,得到最优的分配时间以及 每个处理方的最佳处理资源获取请求数量,提高***对资源获取请求的分配效率,为实际生产环境中资源的分配提供参考。
附图说明
图1是本申请第一实施方式提供的高并发下的数据分配测试方法的流程图。
图2是本申请一实施方式的终端的结构示意图。
图3是图2所示的终端的示例性的功能模块图。
具体实施方式
图1是本申请第一实施方式的高并发下的数据分配测试方法的流程图,所述高并发下的数据分配测试方法可以应用于终端1,所述终端1可以是例如智能手机、笔记本电脑、台式/平板电脑、智能手表以及个人数字助理(Personal Digital Assistant,PDA)等智能设备。如图1所示,所述高并发下的数据分配测试方法可以包括如下步骤:
S1:每间隔预设第一时间段获取一次时间点,得到时间点集。
当用户获取资源时,需要提出资源获取请求。当接收到用户发起的资源获取请求的指令信息之后会生成一个资源获取请求页面,并将所述资源获取请求页面推送给用户。由用户在资源获取请求页面上按照提示要求填写资源获取请求相关信息,由审核机构实时接收资源获取请求相关信息并且审核所述资源获取请求相关信息是否符合要求,只有审核通过后才会安排办理资源获取的后续手续。可以理解的是,本申请实施例还提供一交互界面,所述交互界面上的预设区域可以设置有“资源获取”的图标,所述指令信息可以包括:所述交互界面上的预设区域处针对“资源获取”图标的点击操作;或者,在距离所述交互界面预设距离(例如,所述预设距离为5厘米)处的预设操作(例如,所述预设操作为单手打圈的操作);或者,在距离所述交互界面预设距离(例如,所述预设距离为5厘米)处,输出预设语音信息(例如,所述预设语音信息为“获取资源”)。此处并不对指令信息做出限制。
在本申请的至少一个实施例中,可以通过资源获取请求定时分配的方式,将所述资源获取请求自动分配给相关处理方。在将所述资源获取请求自动分配给相关处理方之前,有必要提出一种寻找最优的分配时间以及每个处理方的最佳处理申请量的测试方法,为实际生产环境中资源的分配提供参考。具体的,每间隔预设第一时间段获取一次时间点,得到时间点集。所述预设第一时间段可以是终端用户预先设置的,例如,所述预设第一时间段为1分钟。每隔1分钟获取一次时间点,得到的时间点集就为{1min、2min、3min、4min、…、20min、…}。
S2:根据预设时间与资源获取请求数量之间的函数关系,计算所述时间点集中的每一次时间点对应的资源获取请求数量。
随着时间的增长,资源获取请求数量也会随着增长。可以选取递增的函数模型来构建预设时间与资源获取请求数量之间的函数关系。一般来说,递增的函数模型可以包括一次函数、二次函数、指数函数以及对数函数。可以理解的是,对于一次函数,资源获取请求数量与预设时间呈一定比例增长,不符合实际情况;对于二次函数以及指数函数,资源获取请求数量随着时间的增长,其请求量的增长速率越来越快,不符合实际情况;对于对数函数来说,资源获取请求数量随着时间的增长,其申请量的增长平缓,符合实际情况。
在本申请的至少一实施例中,资源获取请求数量与预设时间之间的函数关系可以表示为函数y=log ax,其中,y表示资源获取请求数量,x表示时间点,a为大于1的正常数。根据预设时间与资源获取请求数量之间的函数关系,将所述时间点集中的每个时间点代入上述函数表达式中,可以得到所述时间点集中的每一次时间点对应的资源获取请求数量。
S3:根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试。
在本申请的至少一个实施例中,根据预设分配规则在预设第二时间段内对所述每一次时间点对应的资源获取请求数量进行分配测试,所述预设分配规则需要考虑的因子可以包括:资源获取请求对应的城市、该城市对应的处理方信息、预设权重值以及处理方对应的已分配的情况。具体的,所述根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试的步骤包括:获取所述处理方已分配的资源获取请求量;根据预设权重值以及所述已分配的资源获取请求数量对所述资源获取请求进行定时分配。
其中,所述预设第二时间段为终端用户根据实际资源获取请求分配情况预先设置的,例如,所述预设第二时间段为15分钟。所述处理方信息包括处理方等级、处理方数量以及对应处理方等级下的处理方数量等信息。所述处理方信息中已分配的资源获取请求的情况包括在本次开始定时分配之前,等待每个所述处理方处理的资源获取请求的数量。所述预设权重值可以是终端用户根据实际情况(例如,所述处理方的等级情况、所述处理方的数量情况等)预先设置的。
在本申请的至少一个实施例中,所述根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试的步骤包括:获取历史资源获取请求分配过程中与定时分配任务相关的日志数据;获取所述日志数据中记录的开始分配的时间与完成分配的时间;根据所述开始分配的时间与所述完成分配的时间计算出分配速率;根据所述分配速率在所述预设第二时间段内将所述资源获取请求定时分配给所述处理方。其中,所述分配速率为分配完成一个资源获取请求所需的时间。当前***的分配数量可以通过与***匹配的代码性能来进行计算。例如,根据与***匹配的代码性能可以得到的分配速率为***每隔10秒左右可以进行一个资源获取请求的分配,那么预期就是1分钟可以分配完成6个资源获取请求。
S4:获取所述每一个时间点对应的所述资源获取请求数量的分配测试结果。
在本申请的至少一个实施例中,获取所述每一个时间点对应的所述资源获取请求数量的分配测试结果,所述分配测试结果包括:每个资源获取请求均能完成分配;或者,存在未完成分配的资源获取请求。
S5:根据所述分配测试结果获取相邻的两次目标时间点对应的资源获取请求数量,其中,上一次目标时间点对应的资源获取请求数量的测试结果为已完成分配,下一次目标时间点对应的资源获取请求数量的测试结果为未完成分配。
在本申请的至少一个实施例中,所述根据所述分配测试结果获取相邻的两次目标时间点对应的资源获取请求数量的步骤包括:获取在所述预设第二时间段的结束点之前和/或之后的预设个数的时间点;确定所述预设个数的时间点对应的分配测试结果;选取上一次时间点对应的资源获取请求数量的分配测试结果为已完成分配,且下一次时间点对应的资源获取请求数量的分配测试结果为未完成分配的相邻的两次时间点为相邻的两次目标时间点;根据预设时间与资源获取请求数量之间的函数关系,计算相邻的两次目标时间点对应的资源获取请求数量。其中,所述预设个数为终端用户预先设置的。
对于在所述预设第二时间段内,每个资源获取请求数量均能够完成分配的情况,获取在所述预设第二时间段的结束点之后的相邻的两次目标时间点,其中,上一次目标时间点对应的资源获取请求数量的测试结果为已完成分配,下一次目标时间点对应的资源获取请求数量的测试结果为未完成分配。可以理解的是,当所述预设第二时间段的结束点为所述时间点集中的点时(例如,上述时间点集为{1min、2min、3min、4min、…、20min、…},预设第二时间段为10min,那么预设第二时间段的结束的点即为10min、20min等,所述结束的点为所述时间点集中的点),所述结束点对应的资源获取请求数量的测试结果为已完成分配,则获取所述结束点对应的之后的预设个数的时间点,确定所述预设个数的时间点对应的测试结果,选取上一次时间点对应的资源获取请求数量的测试结果为已完成分配,且下一次时间点对应 的资源获取请求数量的测试结果为未完成分配的相邻的两次时间点为目标时间点;根据预设时间与资源获取请求数量之间的函数关系,计算相邻的两次目标时间点对应的资源获取请求数量。当所述预设第二时间段的结束点不为所述时间点集中的点时,获取与所述预设第二时间段的结束点相邻的下一时间点,并判断下一时间点对应的资源获取请求数量的测试结果是否为已分配已完成,若判断结果为资源获取请求分配已完成,则获取下一次时间点对应的再下次一个时间点,继续判断其对应的测试结果是否为已分配完成,直到找到一个时间点,其对应的分配测试结果为未分配完成。若判断结果为资源获取请求分配未完成,则获取的所述相邻的两次目标时间点分别为所述预设第二时间段的结束的点对应的上一次时间点与所述预设第二时间段的结束的点对应的下一次时间点。
对于在所述预设第二时间段内,存在未完成分配的资源获取请求数量的情况,获取相邻的两次时间点,其中,上一次时间点对应的资源获取请求数量的测试结果为已完成分配,下一次时间点对应的资源获取请求数量的测试结果为没有完成分配。可以理解的是,当所述预设第二时间段的结束点为所述时间点集中的点时,所述结束点对应的资源获取请求的测试结果为未完成分配,则获取所述结束点之前的预设个数的时间点,确定所述预设个数的时间点对应的测试结果;选取上一次时间点对应的资源获取请求数量的测试结果为已完成分配,且下一次时间点对应的资源获取请求数量的测试结果为未完成分配的相邻的两次时间点为目标时间点;根据预设时间与资源获取请求数量之间的函数关系,计算相邻的两次时间点对应的资源获取请求数量。当所述预设第二时间段的结束点不为所述时间点集中的点时,获取与所述预设第二时间段的结束点相邻的前一时间点,并判断前一时间点对应的资源获取请求数量的测试结果是否为已完成分配,若判断结果为已完成分配,则获取的所述相邻的两次目标时间点分别为所述预设第二时间段的结束的点对应的前一时间点与所述预设第二时间段的结束的点对应的下一时间点。若判断结果为未完成分配,则获取前一时间点对应的再前一时间点,继续判断其对应的测试结果是否为已分配完成,直到找到一个时间点,其对应的分配测试结果为已分配完成。
S6:根据所述相邻的两次目标时间点对应的资源获取请求数量确定所述预设第二时间段内的最佳资源获取请求分配量。
在本实施方式中,根据所述相邻的两次目标时间点对应的资源获取请求数量确定所述预设第二时间段内的最佳资源获取请求分配量,所述最佳资源获取请求分配量也即指:在所述预设第二时间段内,资源获取请求数量能够完全分配完成,且在当前资源获取请求数量的基础上再新增一个资源获取请求时,新增的一个资源获取请求将无法完成分配,此时的资源获取请求数量为所述最佳资源获取请求数量。
所述根据所述相邻的两次目标时间点对应的资源获取请求数量确定所述预设第二时间段内的最佳资源获取请求分配量的步骤包括:获取所述相邻的两次目标时间点的第一时间中点;根据所述预设时间与资源获取请求数量之间的函数,计算所述第一时间中点对应的资源获取请求数量;根据所述预设分配规则在所述预设第二时间段内对所述第一时间中点对应的资源获取请求数量进行分配测试;如果所述分配测试结果为所述第一时间中点对应的资源获取请求数量已完成分配,则将所述第一时间中点对应的资源获取请求数量确定为所述预设第二时间段内的最佳资源获取请求分配量。
如果分配测试结果为所述第一时间中点对应的资源获取请求数量未完成分配,所述方法还包括:获取所述上一次时间点与所述第一时间中点之间的第二时间中点;根据所述预设时间与资源获取请求数量之间的函数,计算所述第二时间中点对应的资源获取请求数量;根据所述预设分配规则在所述预设第二时间段内对所述第二时间中点对应的资源获取请求数量进行分配测试;如果所述分配测试结果为所述第二时间中点对应的资源获取请求数量已完成分配,则将所述第二时间中点对应的资源获取请求数量确定为所述预设第二时间段内的最佳资 源获取请求分配量;如果所述分配测试结果为所述第二时间中点对应的资源获取请求数量未完成分配,则重复所述过程,直至获取到第n个时间中点,其中,所述第n个时间中点对应的资源获取请求数量在所述预设第二时间段内已完成分配,将所述第n个时间中点对应的资源获取请求数量确定为所述预设第二时间段内的最佳资源获取请求分配量。
进一步的,所述方法还包括:获取分配给不同处理方对应的所述相邻的两次时间点对应的资源获取请求数量;根据所述相邻的两次时间点对应的资源获取请求数量确定处理方的等级。
优选的,所述根据所述相邻的两次时间点对应的资源获取请求数量确定处理方的等级包括:对相邻的两次时间点获取的资源获取请求数量分别按照递增和/或递减的顺序进行排列,并对排列的资源获取请求数量进行等级划分,得到资源获取请求数量等级;将所述资源获取请求数量级别与处理方相对应,确定所述处理方的等级。举例来说,预先设定的所述处理方的等级数量为三个,分别为等级3、等级2与等级1。对相邻的两次时间点获取的资源获取请求数量分别按照递增和/或递减的顺序进行排列,假设相邻两次时间点为时间点a,时间点b,时间点a获取的资源获取请求数量分别为6、4、3,时间点b获取的资源获取请求数量分别为6、5、4,对排列的资源获取请求数量进行等级划分,得到资源获取请求数量等级。可以理解的是,对于每一次时间点获取的资源获取请求数量,设定第一预设值、第二预设值以及第三预设值,所述第一/第二/第三预设值用于对排列的资源获取请求数量进行等级划分。例如,对于时间点a来说,第一预设值为5,第二预设值为3,第三预设值为2,对于大于第一预设值5的资源获取请求数量设定其对应的等级为A,对于大于第二预设值3的资源获取请求数量设定其对应的等级为B,对于大于第三预设值2的资源获取请求数量设定其对应的等级为C。将所述资源获取请求数量级别与处理方相对应,确定所述处理方的等级。因而,资源获取请求数量等级A对应处理方等级3,资源获取请求数量等级B对应处理方等级2,资源获取请求数量等级C对应处理方等级1。
可以理解的是,不同级别对应的资源获取请求数量不同,级别越高对应的资源获取请求数量越高;将资源获取请求数量的级别与不同的处理方相对应,确定所述处理方的等级,处理方等级越高,其对应的资源获取请求数量级别越高,分配的资源获取请求数量也越高。
在本实施方式中,还需要对***分配规则进行稳定性测试,可以将上述预设分配规则部署在多个服务器上,持续运行预设天数,同时获取稳定性测试结果。具体的,在预设天数内,判断当前的资源获取请求是否能够正确分配并且不发生错误,所述正确分配并且不发生错误是指所述最佳资源获取请求分配量适用于当前***,在所述预设第二时间段内,所述最佳资源获取请求分配量能够分配完成。当稳定性测试结果为所有资源获取请求能够正确分配并且不发生错误时,可以在测试脚本上设置大量的资源获取请求,查看大量的资源获取请求是否能够正确分配并且不发生错误。当大量的资源获取请求能够正确分配并且不发生错误时,说明当前***分配规则较稳定。当稳定性测试结果为所述资源获取请求中存在分配错误时,可以采取两种措施。一种是在资源获取请求产生未完成分配的情况时,立即停止继续分配,并输出错误提示,提示内容可以包括哪一资源获取请求未进行分配。另一种是在资源获取请求产生未完成分配的情况时,继续执行资源获取请求分配操作,一直到预设天数测试结束之后,输出错误提示,提示内容包括预设天数内发生错误的次数,根据预设天数内发生错误的次数可以得到错误发生的概率,从而找出错误产生的根源,进而解决问题。
S7:在所述预设第二时间段内,根据预设分配规则对所述最佳资源获取请求分配量进行分配。
在本实施方式中,在所述预设第二时间段内,根据预设分配规则对所述最佳资源获取请求分配量进行分配之前,所述方法还包括:以自动/手动检测处理方模式是否发生改变;若检测到处理方模式发生改变,则需重新测试,获取所述预设第二时间段内的最佳资源获取请求 分配量。对于固定的处理方模式,比如说处理方等级为A、B及C,每一个等级的处理方的数量为2个,对于这样一个固定的处理方模式,测试找到的***的所述预设第二时间段内的最佳资源获取请求分配量的设置可以不需要改变。当检测到所述处理方模式发生改变时,例如,增加或减少了一个处理方之类的,则需要手动或者自动的方式重新进行测试,获取所述预设第二时间段内的最佳资源获取请求分配量。
本申请实施例提供一种高并发下的数据分配测试方法,每间隔预设第一时间段获取一次时间点,得到时间点集;根据预设时间与资源获取请求数量之间的函数关系,计算所述时间点集中的每一次时间点对应的资源获取请求数量;根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试;获取所述每一个时间点对应的所述资源获取请求数量的分配测试结果;根据所述分配测试结果获取相邻的两次目标时间点对应的资源获取请求数量,其中,上一次目标时间点对应的资源获取请求数量的测试结果为已完成分配,下一次目标时间点对应的资源获取请求数量的测试结果为未完成分配;根据所述相邻的两次目标时间点对应的资源获取请求数量确定所述预设第二时间段内的最佳资源获取请求分配量;在所述预设第二时间段内,根据预设分配规则对所述最佳资源获取请求分配量进行分配。利用本申请实施例,提出了一种寻找最优的分配时间以及每个处理方的最佳处理申请量的测试方法,提高***对资源获取请求的分配效率,为实际生产环境中资源的分配提供参考。
以上是对本申请实施例所提供的方法进行的详细描述。根据不同的需求,所示流程图中方块的执行顺序可以改变,某些方块可以省略。下面对本申请实施例所提供的终端1进行描述。
本申请实施例还提供一种终端1,包括存储器10、处理器30及存储在存储器10上并可在处理器30上运行的计算机程序,所述处理器30执行所述程序时实现上述任一实施方式中所述的高并发下的数据分配测试方法的步骤。
图2是本申请一实施方式的终端1的结构示意图,如图2所示,终端1包括存储器10,存储器10中存储有高并发下的数据分配测试装置100。所述的终端1可以是手机、平板电脑、个人数字助理等具有应用显示功能的终端1。所述高并发下的数据分配测试装置100可以每间隔预设第一时间段获取一次时间点,得到时间点集;根据预设时间与资源获取请求数量之间的函数关系,计算所述时间点集中的每一次时间点对应的资源获取请求数量;根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试;获取所述每一个时间点对应的所述资源获取请求数量的分配测试结果;根据所述分配测试结果获取相邻的两次目标时间点对应的资源获取请求数量,其中,上一次目标时间点对应的资源获取请求数量的测试结果为已完成分配,下一次目标时间点对应的资源获取请求数量的测试结果为未完成分配;根据所述相邻的两次目标时间点对应的资源获取请求数量确定所述预设第二时间段内的最佳资源获取请求分配量;在所述预设第二时间段内,根据预设分配规则对所述最佳资源获取请求分配量进行分配。利用本申请实施例,提出了一种寻找最优的分配时间以及每个处理方的最佳处理申请量的测试方法,提高***对资源获取请求的分配效率,为实际生产环境中资源的分配提供参考。
本实施方式中,终端1还可以包括显示屏20及处理器30。存储器10、显示屏20可以分别与处理器30电连接。
所述的存储器10可以是不同类型存储设备,用于存储各类数据。例如,可以是终端1的存储器、内存,还可以是可外接于该终端1的存储卡,如闪存、SM卡(Smart Media Card,智能媒体卡)、SD卡(Secure Digital Card,安全数字卡)等。此外,存储器10可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪 存器件、或其他非易失性固态存储器件。存储器10用于存储各类数据,例如,所述终端1中安装的各类应用程序(Applications)、应用上述高并发下的数据分配测试方法而设置、获取的数据等信息。
显示屏20安装于终端1,用于显示信息。
处理器30用于执行所述高并发下的数据分配测试方法以及所述终端1内安装的各类软件,例如操作***及应用显示软件等。处理器30包含但不限于处理器(Central Processing Unit,CPU)、微控制单元(Micro Controller Unit,MCU)等用于解释计算机以及处理计算机软件中的数据的装置。
所述的高并发下的数据分配测试装置100可以包括一个或多个的模块,所述一个或多个模块被存储在终端1的存储器10中并被配置成由一个或多个处理器(本实施方式为一个处理器30)执行,以完成本申请实施例。例如,参阅图3所示,所述高并发下的数据分配测试装置100可以包括时间点集获取模块101、资源获取请求数量计算模块103、分配测试模块105、测试结果确定模块107、相邻时间点资源获取请求获取模块109、最佳资源获取请求数量确定模块111以及资源获取请求数量分配模块113。本申请实施例所称的模块可以是完成一特定功能的程序段,比程序更适合于描述软件在处理器中的执行过程。
可以理解的是,对应上述高并发下的数据分配测试方法中的各实施方式,终端1可以包括图3中所示的各功能模块中的一部分或全部,各模块的功能将在以下具体介绍。需要说明的是,以上高并发下的数据分配测试方法的各实施方式中相同的名词相关名词及其具体的解释说明也可以适用于以下对各模块的功能介绍。为节省篇幅及避免重复起见,在此就不再赘述。
时间点集获取模块101可以用于在每间隔预设第一时间段获取一次时间点,得到时间点集。
资源获取请求数量计算模块103可以用于根据预设时间与资源获取请求数量之间的函数关系,计算所述时间点集中的每一次时间点对应的资源获取请求数量。
分配测试模块105可以用于根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试。
测试结果确定模块107可以用于获取所述每一个时间点对应的所述资源获取请求数量的分配测试结果。
相邻时间点资源获取请求获取模块109可以用于根据所述分配测试结果获取相邻的两次目标时间点对应的资源获取请求数量,其中,上一次目标时间点对应的资源获取请求数量的测试结果为已完成分配,下一次目标时间点对应的资源获取请求数量的测试结果为未完成分配。
最佳资源获取请求数量确定模块111可以用于根据所述相邻的两次目标时间点对应的资源获取请求数量确定所述预设第二时间段内的最佳资源获取请求分配量。
资源获取请求数量分配模块113可以用于在所述预设第二时间段内,根据预设分配规则对所述最佳资源获取请求分配量进行分配。
本申请实施例还提供一种计算机可读存储介质,其上存储有计算机可读指令,所述计算机可读指令被处理器执行时实现上述任一实施方式中的高并发下的数据分配测试方法的步骤。
所述高并发下的数据分配测试装置100/终端1/计算机设备集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中,所述计算机可读存储介质可以是非易失性的存储介质,也可以是易失性的存储介质。基于这样的理解,本申请实现上述实施方式方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算 机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机可读指令代码,所述计算机可读指令代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读存储介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存储器(RAM,Random Access Memory)等。
所称处理器30可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器30是所述高并发下的数据分配测试装置100/终端1的控制中心,利用各种接口和线路连接整个高并发下的数据分配测试装置100/终端1的各个部分。
所述存储器10用于存储所述计算机程序和/或模块,所述处理器30通过运行或执行存储在所述存储器内的计算机程序和/或模块,以及调用存储在存储器10内的数据,实现所述高并发下的数据分配测试装置100/终端1的各种功能。所述存储器10可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作***、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据终端1的使用所创建的数据等。
在本申请所提供的几个具体实施方式中,应该理解到,所揭露的终端和方法,可以通过其它的方式实现。例如,以上所描述的***实施方式仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
对于本领域技术人员而言,显然本申请实施例不限于上述示范性实施例的细节,而且在不背离本申请实施例的精神或基本特征的情况下,能够以其他的具体形式实现本申请实施例。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请实施例的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请实施例内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。权利要求中陈述的多个单元、模块或装置也可以由同一个单元、模块或装置通过软件或者硬件来实现。
以上实施方式仅用以说明本申请实施例的技术方案而非限制,尽管参照以上较佳实施方式对本申请实施例进行了详细说明,本领域的普通技术人员应当理解,可以对本申请实施例的技术方案进行修改或等同替换都不应脱离本申请实施例的技术方案的精神和范围。

Claims (20)

  1. 一种高并发下的数据分配测试方法,其中,所述高并发下的数据分配测试方法包括:
    每间隔预设第一时间段获取一次时间点,得到时间点集;
    根据预设时间与资源获取请求数量之间的函数关系,计算所述时间点集中的每一次时间点对应的资源获取请求数量;
    根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试;
    获取所述每一个时间点对应的所述资源获取请求数量的分配测试结果;
    根据所述分配测试结果获取相邻的两次目标时间点对应的资源获取请求数量,其中,上一次目标时间点对应的资源获取请求数量的测试结果为已完成分配,下一次目标时间点对应的资源获取请求数量的测试结果为未完成分配;
    根据所述相邻的两次目标时间点对应的资源获取请求数量确定所述预设第二时间段内的最佳资源获取请求分配量;
    在所述预设第二时间段内,根据预设分配规则对所述最佳资源获取请求分配量进行分配。
  2. 根据权利要求1所述的高并发下的数据分配测试方法,其中,所述根据所述相邻的两次目标时间点对应的资源获取请求数量确定所述预设第二时间段内的最佳资源获取请求分配量的步骤包括:
    获取所述相邻的两次目标时间点的第一时间中点;
    根据所述预设时间与资源获取请求数量之间的函数,计算所述第一时间中点对应的资源获取请求数量;
    根据所述预设分配规则在所述预设第二时间段内对所述第一时间中点对应的资源获取请求数量进行分配测试;
    如果所述分配测试结果为所述第一时间中点对应的资源获取请求数量已完成分配,则将所述第一时间中点对应的资源获取请求数量确定为所述预设第二时间段内的最佳资源获取请求分配量。
  3. 根据权利要求2所述的高并发下的数据分配测试方法,其中,如果分配测试结果为所述第一时间中点对应的资源获取请求数量未完成分配,所述高并发下的数据分配测试方法还包括:
    获取所述上一次时间点与所述第一时间中点之间的第二时间中点;
    根据所述预设时间与资源获取请求数量之间的函数,计算所述第二时间中点对应的资源获取请求数量;
    根据所述预设分配规则在所述预设第二时间段内对所述第二时间中点对应的资源获取请求数量进行分配测试;
    如果所述分配测试结果为所述第二时间中点对应的资源获取请求数量已完成分配,则将所述第二时间中点对应的资源获取请求数量确定为所述预设第二时间段内的最佳资源获取请求分配量;
    如果所述分配测试结果为所述第二时间中点对应的资源获取请求数量未完成分配,则重复所述过程,直至获取到第n个时间中点,其中,所述第n个时间中点对应的资源获取请求数量在所述预设第二时间段内已完成分配,将所述第n个时间中点对应的资源获取请求数量确定为所述预设第二时间段内的最佳资源获取请求分配量。
  4. 根据权利要求1所述的高并发下的数据分配测试方法,其中,所述根据预设分配规则 在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试的步骤包括:
    获取处理方已分配的资源获取请求的数量;
    根据预设权重值以及所述已分配的资源获取请求的数量在所述预设第二时间段内将所述资源获取请求定时分配给所述处理方。
  5. 根据权利要求1所述的高并发下的数据分配测试方法,其中,所述根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试的步骤包括:
    获取历史资源获取请求分配过程中与定时分配任务相关的日志数据;
    获取所述日志数据中记录的开始分配的时间与完成分配的时间;
    根据所述开始分配的时间与所述完成分配的时间计算出分配速率;
    根据所述分配速率在所述预设第二时间段内将所述资源获取请求定时分配给所述处理方。
  6. 根据权利要求4所述的高并发下的数据分配测试方法,其中,所述高并发下的数据分配测试方法还包括:
    获取分配给不同所述处理方对应的所述相邻的两次时间点对应的资源获取请求数量;
    根据所述相邻的两次时间点对应的资源获取请求数量确定所述处理方的等级。
  7. 根据权利要求6所述的高并发下的数据分配测试方法,其中,所述根据所述相邻的两次时间点对应的资源获取请求数量确定所述处理方等级的步骤包括:
    对相邻的两次时间点内获取的资源获取请求数量分别按照递增和/或递减的顺序进行排列,并对排列的资源获取请求数量进行等级划分,得到资源获取请求数量等级;
    将所述资源获取请求数量等级与所述处理方相对应,确定所述处理方的等级。
  8. 一种终端,其中,所述终端包括处理器和存储器,所述处理器用于执行存储器中存储的至少一个计算机可读指令以实现以下步骤:
    每间隔预设第一时间段获取一次时间点,得到时间点集;
    根据预设时间与资源获取请求数量之间的函数关系,计算所述时间点集中的每一次时间点对应的资源获取请求数量;
    根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试;
    获取所述每一个时间点对应的所述资源获取请求数量的分配测试结果;
    根据所述分配测试结果获取相邻的两次目标时间点对应的资源获取请求数量,其中,上一次目标时间点对应的资源获取请求数量的测试结果为已完成分配,下一次目标时间点对应的资源获取请求数量的测试结果为未完成分配;
    根据所述相邻的两次目标时间点对应的资源获取请求数量确定所述预设第二时间段内的最佳资源获取请求分配量;
    在所述预设第二时间段内,根据预设分配规则对所述最佳资源获取请求分配量进行分配。
  9. 根据权利要求8所述的终端,其中,在所述根据所述相邻的两次目标时间点对应的资源获取请求数量确定所述预设第二时间段内的最佳资源获取请求分配量时,所述处理器执行所述至少一个计算机可读指令以实现以下步骤:
    获取所述相邻的两次目标时间点的第一时间中点;
    根据所述预设时间与资源获取请求数量之间的函数,计算所述第一时间中点对应的资源获取请求数量;
    根据所述预设分配规则在所述预设第二时间段内对所述第一时间中点对应的资源获取请求数量进行分配测试;
    如果所述分配测试结果为所述第一时间中点对应的资源获取请求数量已完成分配,则将所述第一时间中点对应的资源获取请求数量确定为所述预设第二时间段内的最佳资源获取请求分配量。
  10. 根据权利要求9所述的终端,其中,如果分配测试结果为所述第一时间中点对应的资源获取请求数量未完成分配,所述处理器执行所述至少一个计算机可读指令还用以实现以下步骤:
    获取所述上一次时间点与所述第一时间中点之间的第二时间中点;
    根据所述预设时间与资源获取请求数量之间的函数,计算所述第二时间中点对应的资源获取请求数量;
    根据所述预设分配规则在所述预设第二时间段内对所述第二时间中点对应的资源获取请求数量进行分配测试;
    如果所述分配测试结果为所述第二时间中点对应的资源获取请求数量已完成分配,则将所述第二时间中点对应的资源获取请求数量确定为所述预设第二时间段内的最佳资源获取请求分配量;
    如果所述分配测试结果为所述第二时间中点对应的资源获取请求数量未完成分配,则重复所述过程,直至获取到第n个时间中点,其中,所述第n个时间中点对应的资源获取请求数量在所述预设第二时间段内已完成分配,将所述第n个时间中点对应的资源获取请求数量确定为所述预设第二时间段内的最佳资源获取请求分配量。
  11. 根据权利要求8所述的终端,其中,在所述根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试时,所述处理器执行所述至少一个计算机可读指令以实现以下步骤:
    获取处理方已分配的资源获取请求的数量;
    根据预设权重值以及所述已分配的资源获取请求的数量在所述预设第二时间段内将所述资源获取请求定时分配给所述处理方。
  12. 根据权利要求8所述的终端,其中,在所述根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试时,所述处理器执行所述至少一个计算机可读指令以实现以下步骤:
    获取历史资源获取请求分配过程中与定时分配任务相关的日志数据;
    获取所述日志数据中记录的开始分配的时间与完成分配的时间;
    根据所述开始分配的时间与所述完成分配的时间计算出分配速率;
    根据所述分配速率在所述预设第二时间段内将所述资源获取请求定时分配给所述处理方。
  13. 根据权利要求11所述的终端,其中,所述处理器执行所述至少一个计算机可读指令还用以实现以下步骤:
    获取分配给不同所述处理方对应的所述相邻的两次时间点对应的资源获取请求数量;
    根据所述相邻的两次时间点对应的资源获取请求数量确定所述处理方的等级。
  14. 一种计算机可读存储介质,其中,所述计算机可读存储介质存储有至少一个计算机可读指令,所述至少一个计算机可读指令被处理器执行时实现以下步骤:
    每间隔预设第一时间段获取一次时间点,得到时间点集;
    根据预设时间与资源获取请求数量之间的函数关系,计算所述时间点集中的每一次时间点对应的资源获取请求数量;
    根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试;
    获取所述每一个时间点对应的所述资源获取请求数量的分配测试结果;
    根据所述分配测试结果获取相邻的两次目标时间点对应的资源获取请求数量,其中,上一次目标时间点对应的资源获取请求数量的测试结果为已完成分配,下一次目标时间点对应的资源获取请求数量的测试结果为未完成分配;
    根据所述相邻的两次目标时间点对应的资源获取请求数量确定所述预设第二时间段内的最佳资源获取请求分配量;
    在所述预设第二时间段内,根据预设分配规则对所述最佳资源获取请求分配量进行分配。
  15. 根据权利要求14所述的存储介质,其中,在所述根据所述相邻的两次目标时间点对应的资源获取请求数量确定所述预设第二时间段内的最佳资源获取请求分配量时,所述至少一个计算机可读指令被处理器执行以实现以下步骤:
    获取所述相邻的两次目标时间点的第一时间中点;
    根据所述预设时间与资源获取请求数量之间的函数,计算所述第一时间中点对应的资源获取请求数量;
    根据所述预设分配规则在所述预设第二时间段内对所述第一时间中点对应的资源获取请求数量进行分配测试;
    如果所述分配测试结果为所述第一时间中点对应的资源获取请求数量已完成分配,则将所述第一时间中点对应的资源获取请求数量确定为所述预设第二时间段内的最佳资源获取请求分配量。
  16. 根据权利要求15所述的存储介质,其中,如果分配测试结果为所述第一时间中点对应的资源获取请求数量未完成分配,所述至少一个计算机可读指令被处理器执行还用以实现以下步骤:
    获取所述上一次时间点与所述第一时间中点之间的第二时间中点;
    根据所述预设时间与资源获取请求数量之间的函数,计算所述第二时间中点对应的资源获取请求数量;
    根据所述预设分配规则在所述预设第二时间段内对所述第二时间中点对应的资源获取请求数量进行分配测试;
    如果所述分配测试结果为所述第二时间中点对应的资源获取请求数量已完成分配,则将所述第二时间中点对应的资源获取请求数量确定为所述预设第二时间段内的最佳资源获取请求分配量;
    如果所述分配测试结果为所述第二时间中点对应的资源获取请求数量未完成分配,则重复所述过程,直至获取到第n个时间中点,其中,所述第n个时间中点对应的资源获取请求数量在所述预设第二时间段内已完成分配,将所述第n个时间中点对应的资源获取请求数量确定为所述预设第二时间段内的最佳资源获取请求分配量。
  17. 根据权利要求14所述的存储介质,其中,在所述根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试时,所述至少一个计算机可读指令被处理器执行以实现以下步骤:
    获取处理方已分配的资源获取请求的数量;
    根据预设权重值以及所述已分配的资源获取请求的数量在所述预设第二时间段内将所述资源获取请求定时分配给所述处理方。
  18. 根据权利要求14所述的存储介质,其中,在所述根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试时,所述至少一个计算机可读指令被处理器执行以实现以下步骤:
    获取历史资源获取请求分配过程中与定时分配任务相关的日志数据;
    获取所述日志数据中记录的开始分配的时间与完成分配的时间;
    根据所述开始分配的时间与所述完成分配的时间计算出分配速率;
    根据所述分配速率在所述预设第二时间段内将所述资源获取请求定时分配给所述处理方。
  19. 根据权利要求17所述的存储介质,其中,所述至少一个计算机可读指令被处理器执行时还用以实现以下步骤:
    获取分配给不同所述处理方对应的所述相邻的两次时间点对应的资源获取请求数量;
    根据所述相邻的两次时间点对应的资源获取请求数量确定所述处理方的等级。
  20. 一种高并发下的数据分配测试装置,其中,所述高并发下的数据分配测试装置包括:
    时间点集获取模块,用于在每间隔预设第一时间段获取一次时间点,得到时间点集;
    资源获取请求数量计算模块,用于根据预设时间与资源获取请求数量之间的函数关系,计算所述时间点集中的每一次时间点对应的资源获取请求数量;
    分配测试模块,用于根据预设分配规则在预设第二时间段内对所述每一次时间点对应的所述资源获取请求数量进行分配测试;
    测试结果确定模块,用于获取所述每一个时间点对应的所述资源获取请求数量的分配测试结果;
    相邻时间点资源获取请求获取模块,用于根据所述分配测试结果获取相邻的两次目标时间点对应的资源获取请求数量,其中,上一次目标时间点对应的资源获取请求数量的测试结果为已完成分配,下一次目标时间点对应的资源获取请求数量的测试结果为未完成分配;
    最佳资源获取请求数量确定模块,用于根据所述相邻的两次目标时间点对应的资源获取请求数量确定所述预设第二时间段内的最佳资源获取请求分配量;
    资源获取请求数量分配模块,用于在所述预设第二时间段内,根据预设分配规则对所述最佳资源获取请求分配量进行分配。
PCT/CN2020/105939 2019-09-06 2020-07-30 高并发下的数据分配测试方法、装置、终端及存储介质 WO2021042919A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910844250.6A CN110764900A (zh) 2019-09-06 2019-09-06 高并发下的数据分配测试方法、装置、终端及存储介质
CN201910844250.6 2019-09-06

Publications (1)

Publication Number Publication Date
WO2021042919A1 true WO2021042919A1 (zh) 2021-03-11

Family

ID=69330569

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/105939 WO2021042919A1 (zh) 2019-09-06 2020-07-30 高并发下的数据分配测试方法、装置、终端及存储介质

Country Status (2)

Country Link
CN (1) CN110764900A (zh)
WO (1) WO2021042919A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110764900A (zh) * 2019-09-06 2020-02-07 深圳壹账通智能科技有限公司 高并发下的数据分配测试方法、装置、终端及存储介质
CN112181498B (zh) * 2020-10-09 2024-01-30 中国工商银行股份有限公司 并发控制方法、装置和设备

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593134A (zh) * 2009-06-29 2009-12-02 北京航空航天大学 虚拟机cpu资源分配方法和装置
US20110119675A1 (en) * 2008-07-29 2011-05-19 Alibaba Group Holding Limited Concurrent Data Processing and Electronic Bookkeeping
US9015188B2 (en) * 2011-09-28 2015-04-21 Bmc Software, Inc. Methods and apparatus for monitoring execution of a database query program
WO2017162028A1 (zh) * 2016-03-21 2017-09-28 阿里巴巴集团控股有限公司 一种模拟线上压力测试的方法和装置
CN108629611A (zh) * 2017-03-24 2018-10-09 北京京东尚科信息技术有限公司 用于分配资源的方法和装置
CN110764900A (zh) * 2019-09-06 2020-02-07 深圳壹账通智能科技有限公司 高并发下的数据分配测试方法、装置、终端及存储介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9213574B2 (en) * 2010-01-30 2015-12-15 International Business Machines Corporation Resources management in distributed computing environment
CN106293931B (zh) * 2015-06-23 2019-11-08 北京神州泰岳软件股份有限公司 一种分配服务器资源的方法和装置
CN106875027B (zh) * 2016-06-06 2020-11-06 创新先进技术有限公司 资源请求值的预测方法及装置、交易量的预测方法
CN109597685B (zh) * 2018-09-30 2023-06-09 创新先进技术有限公司 任务分配方法、装置和服务器

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110119675A1 (en) * 2008-07-29 2011-05-19 Alibaba Group Holding Limited Concurrent Data Processing and Electronic Bookkeeping
CN101593134A (zh) * 2009-06-29 2009-12-02 北京航空航天大学 虚拟机cpu资源分配方法和装置
US9015188B2 (en) * 2011-09-28 2015-04-21 Bmc Software, Inc. Methods and apparatus for monitoring execution of a database query program
WO2017162028A1 (zh) * 2016-03-21 2017-09-28 阿里巴巴集团控股有限公司 一种模拟线上压力测试的方法和装置
CN108629611A (zh) * 2017-03-24 2018-10-09 北京京东尚科信息技术有限公司 用于分配资源的方法和装置
CN110764900A (zh) * 2019-09-06 2020-02-07 深圳壹账通智能科技有限公司 高并发下的数据分配测试方法、装置、终端及存储介质

Also Published As

Publication number Publication date
CN110764900A (zh) 2020-02-07

Similar Documents

Publication Publication Date Title
US10459828B2 (en) Method and system for software application testing recommendations
US10936465B2 (en) Method for optimized canary deployments for improved customer experience
US8661412B2 (en) Managing automated and manual application testing
US10140336B1 (en) Accuracy testing of query optimizers
US20140325480A1 (en) Software Regression Testing That Considers Historical Pass/Fail Events
WO2019052234A1 (zh) 产品算法自动化测试方法及应用服务器
EP3381158B1 (en) Machine learning based identification of broken network connections
WO2021042919A1 (zh) 高并发下的数据分配测试方法、装置、终端及存储介质
US20150378879A1 (en) Methods, software, and systems for software testing
US11599726B1 (en) System and method for detecting portability of sentiment analysis system based on changes in a sentiment confidence score distribution
US20180314516A1 (en) Efficient software testing
CN109634989B (zh) 一种hive任务执行引擎选择方法和***
CN111127223B (zh) 保险产品测试方法、装置和存储介质
US20230401086A1 (en) Quality control system for quantum-as-a-service brokers
CN115328891A (zh) 数据迁移方法、装置、存储介质及电子设备
CN112905435B (zh) 基于大数据的工作量评估方法、装置、设备及存储介质
US10380339B1 (en) Reactively identifying software products exhibiting anomalous behavior
CN111859403B (zh) 依赖关系漏洞的确定方法、装置、电子设备及存储介质
US20220019522A1 (en) Automated sequencing of software tests using dependency information
JP7214173B1 (ja) ソフトウェア開発を評価するためのシステム及び方法
US9785660B2 (en) Detection and quantifying of data redundancy in column-oriented in-memory databases
JP6875579B2 (ja) 破損ネットワーク接続の機械学習に基づく識別
CN114579450A (zh) 交易性能测试方法及装置、存储介质及电子设备
CN112700075A (zh) 分值评估方法、***、存储介质及服务端
CN116720685A (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: 20859872

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 20.07.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20859872

Country of ref document: EP

Kind code of ref document: A1