CN117608944A - Method and device for calculating weight migration volume ratio, electronic equipment and storage medium - Google Patents

Method and device for calculating weight migration volume ratio, electronic equipment and storage medium Download PDF

Info

Publication number
CN117608944A
CN117608944A CN202311649715.5A CN202311649715A CN117608944A CN 117608944 A CN117608944 A CN 117608944A CN 202311649715 A CN202311649715 A CN 202311649715A CN 117608944 A CN117608944 A CN 117608944A
Authority
CN
China
Prior art keywords
migration
information
rights
weight
task
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311649715.5A
Other languages
Chinese (zh)
Inventor
冯娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
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 Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202311649715.5A priority Critical patent/CN117608944A/en
Publication of CN117608944A publication Critical patent/CN117608944A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/263Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method, a device, electronic equipment and a storage medium for calculating weight migration volume proportion, and relates to the technical field of data distribution, wherein the method comprises the following steps: when the current time is the data acquisition time, determining the attribute migration information of the migration task, and updating the data acquisition time based on a preset time updating mode; the rights migration information comprises rights migration codes, rights migration quantity and rights migration types, wherein the rights migration quantity is the number of total rights migration tasks completed in preset time, and the rights migration tasks are in one-to-one correspondence with the rights migration codes and the rights migration types; constructing a performance test scene according to the right migration information and the server; and when the target weight migration task is received, calculating the weight migration volume ratio according to the performance test scene and the target weight migration task. According to the invention, the weight migration proportion is quickly adjusted through the migration task, the flexible setting of the weight migration code and the weight migration quantity corresponding to the weight migration code is realized, and the test efficiency is improved.

Description

Method and device for calculating weight migration volume ratio, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data distribution technologies, and in particular, to a method and apparatus for calculating a weight migration volume ratio, an electronic device, and a storage medium.
Background
In recent years, with the rapid development of information technology, in order to improve portability of a rights migration process, the rights migration process may be performed by a remote processing method. The remote processing mode is that the user provides the rights migration information, and the teller remotely processes the rights migration information, such as authorizing a transaction.
At present, in the prior art, when transaction information submitted by a user is received, assignment of the rights migration information is generally carried out manually according to experience, and the rights migration proportion is determined.
Disclosure of Invention
The invention provides a calculation method, a calculation device, electronic equipment and a storage medium for weight migration volume ratio, which are used for realizing flexible setting of weight migration volume corresponding to a weight migration code and the weight migration code by quickly adjusting the weight migration ratio through migration tasks, realizing high concurrency performance test and improving test efficiency.
According to one aspect of the invention, the invention provides a method for calculating weight migration volume ratio, which comprises the following steps: when the current time is the data acquisition time, determining the attribute migration information of the attribute migration task, and updating the data acquisition time based on a preset time updating mode; the rights migration information comprises rights migration codes, rights migration quantity and rights migration types, wherein the rights migration quantity is the number of total rights migration tasks completed in preset time, and the rights migration tasks are in one-to-one correspondence with the rights migration codes and the rights migration types;
constructing a performance test scene according to the right migration information and the server;
and when the target weight migration task is received, calculating the weight migration volume ratio according to the performance test scene and the target weight migration task.
Optionally, updating the data acquisition time based on the preset time update mode includes: determining a first candidate data acquisition time and an updating frequency of the data acquisition time, wherein the first candidate data acquisition time is the ending time of the current stage of the migration task; determining a second candidate data acquisition time based on the current time and the update frequency; updating the data acquisition time based on the current time, the first candidate data acquisition time, and the second candidate data acquisition time.
Optionally, constructing a performance test scene according to the rights migration information and the server, including: setting test scene basic information based on a server; setting thread group information according to the test scene basic information and the ownership migration information; setting transmission interface information of a test scene according to the thread group information; wherein, the sending interface information includes: service protocol, server address, port and request path; and constructing a performance test scene according to the test scene basic information, the thread group information and the sending interface information.
Optionally, before setting the test scene basic information based on the server, the method further includes: acquiring server request interface information of a server; wherein the request interface information includes a request name, a service protocol, a server address, and a request address.
Optionally, the test scene basic information includes path information, file information and thread information; setting test scene basic information based on a server, including: setting path information based on a server; the path information is used for storing variable information; setting file information according to the path information; the file information comprises a sequence number column, a rights migration code column, a rights migration name column, a Japanese rights migration volume column and a rights migration volume duty ratio column; thread information is set according to the file information.
Optionally, before setting the sending interface information of the test scene according to the thread group information, the method further includes: setting the cycle number in the thread group information; wherein the number of cycles is used to read the right migration volume.
Optionally, calculating the weight migration volume ratio according to the performance test scene and the target weight migration task includes: determining the number of task data lines according to the performance test scene and the target weight migration task; determining the concurrency number according to the task data line number; and calculating the weight migration volume ratio according to the concurrency number.
According to another aspect of the present invention, there is also provided a device for calculating a weight migration volume ratio, for implementing the method for calculating a weight migration volume ratio according to any embodiment, the device including:
the information determining module is used for determining the ownership migration information of the ownership migration task when the current moment is the data acquisition moment and updating the data acquisition moment based on a preset moment updating mode; the rights migration information comprises rights migration codes, rights migration quantity and rights migration types, wherein the rights migration quantity is the number of total rights migration tasks completed in preset time, and the rights migration tasks are in one-to-one correspondence with the rights migration codes and the rights migration types;
the scene construction module is used for constructing a performance test scene according to the ownership migration information and the server;
and the matching calculation module is used for calculating the weight migration quantity matching according to the performance test scene and the target weight migration task when the target weight migration task is received.
According to another aspect of the present invention, there is also provided an electronic apparatus including: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor can execute the method for calculating the weight migration volume proportioning according to any embodiment of the present invention.
According to another aspect of the present invention, there is further provided a computer readable storage medium storing computer instructions for causing a processor to execute the method for calculating the weight migration volume proportioning according to any of the embodiments of the present invention.
According to the technical scheme, when the current moment is the data acquisition moment, the attribute migration information of the attribute migration task is determined, and the data acquisition moment is updated based on a preset moment updating mode; the rights migration information comprises rights migration codes, rights migration quantity and rights migration types, wherein the rights migration quantity is the number of total rights migration tasks completed in preset time, and the rights migration tasks are in one-to-one correspondence with the rights migration codes and the rights migration types; constructing a performance test scene according to the right migration information and the server; and when the target weight migration task is received, calculating the weight migration volume ratio according to the performance test scene and the target weight migration task. According to the method, the rights migration proportion is quickly adjusted through the rights migration task, the rights migration code and the rights migration quantity corresponding to the rights migration code are flexibly set, and the testing efficiency is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for calculating a weight migration volume ratio provided in embodiment one;
FIG. 2 is a flowchart of a method for calculating a weight migration volume ratio provided in embodiment two;
FIG. 3 is a schematic structural diagram of a computing device for weight migration volume proportioning provided in the third embodiment;
fig. 4 is a schematic structural diagram of an electronic device provided in the fourth embodiment.
Detailed Description
In order that those skilled in the art will better understand the present invention, a more complete description of the same will be rendered by reference to the appended drawings, wherein it is to be understood that the illustrated embodiments are merely exemplary of some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a method for calculating a weight migration volume ratio according to the first embodiment, where the method may be implemented by a weight migration volume ratio calculating device, and the weight migration volume ratio calculating device may be implemented in hardware and/or software, and in a specific embodiment, the weight migration volume ratio calculating device may be configured in an electronic device. As shown in fig. 1, the method of this embodiment specifically includes the following steps:
and S101, when the current time is the data acquisition time, determining the ownership migration information of the ownership migration task, and updating the data acquisition time based on a preset time updating mode.
The current time is the current time for acquiring the migration task, the data acquisition time is the time for acquiring the attribute migration information of the migration task, and the migration task is a banking service provided for a user or an enterprise. The preset time is the preset time for updating and acquiring the rights migration information. The rights migration information comprises rights migration codes, rights migration quantity and rights migration types, wherein the rights migration quantity is the number of total rights migration tasks completed within preset time, and the rights migration tasks are in one-to-one correspondence with the rights migration codes and the rights migration types. The rights migration code is an identifier of the migration task, the rights migration type is a specific attribute of the rights migration task, for example, the rights migration type is a query type, a financial type, a non-financial type, and the like, which is not limited by the implementation.
Specifically, when the current time is the data acquisition time, the ownership migration code, the ownership migration quantity and the ownership migration type of the migration task are acquired at the current time, and the data acquisition time is updated based on a preset time updating mode, so that the acquired ownership migration information of the migration task is acquired in real time.
The method has the advantages that the right migration information of the migration task is obtained in real time, the accuracy of the calculation process is improved, and flexible configuration is realized.
S102, constructing a performance test scene according to the rights migration information and the server.
Among them, the server is one of computers, and it runs faster, is more loaded and is more expensive than a normal computer. The server provides computing or application services to other clients in the network. The server has high-speed CPU operation capability, long-time reliable operation, strong computer interface external data throughput capability and better expansibility. A performance test scenario is one for a migration task.
Specifically, setting test scene basic information based on a server, wherein the test scene basic information comprises path information; thread information is set according to the file information. Setting file information according to path information on the basis of server connection interaction, wherein the path information is used for storing variable information, and the variable information can be the name of the file information; the file information comprises a sequence number column, a property migration code column, a property migration name column, a Japanese property migration volume column and a property migration volume duty ratio column, and is used for reading csv (a simple and practical file format used for storing and representing various types of data including text, numerical values and the like) file data. Thread information is then set according to the file information. The thread information specifically comprises a starting thread, wherein the starting thread is used for reading the number of csv file data lines, the ownership migration number is determined according to the read number of csv file data lines, the ownership migration number corresponds to the number of threads one by one, and the acquired ownership migration number is used for setting global variables, so that the use of subsequent thread group information is facilitated. Further, thread group information is set according to the test scene basic information and the ownership migration information, each thread group in the thread group information corresponds to each ownership migration one by one, and the number of threads in the thread group information is the number of csv file data lines read by the starting thread. And setting the sending interface information of the test scene according to the thread group information after setting the thread group information. And finally, constructing a performance test scene according to the test scene basic information, the thread group information and the transmission interface information.
And S103, when receiving the target weight migration task, calculating the weight migration volume ratio according to the performance test scene and the target weight migration task.
The target ownership migration task is the obtained total task amount of the ownership migration task.
Specifically, after the task data line number of the target ownership migration task is determined, determining the circulation number in the thread group information according to the task data line number, determining the concurrency number of threads in the thread group information according to the circulation number, and carrying out real-time adjustment configuration on the ownership migration code and the ownership migration volume according to the determined concurrency number through a high concurrency performance test of a performance test scene to finally determine the ownership migration volume ratio of the target ownership migration task.
According to the technical scheme of the embodiment, when the current moment is the data acquisition moment, the rights migration information of the rights migration task is determined, and the data acquisition moment is updated based on a preset moment updating mode; the rights migration information comprises rights migration codes, rights migration quantity and rights migration types, wherein the rights migration quantity is the number of total rights migration tasks completed in preset time, and the rights migration tasks are in one-to-one correspondence with the rights migration codes and the rights migration types; constructing a performance test scene according to the right migration information and the server; and when the target weight migration task is received, calculating the weight migration volume ratio according to the performance test scene and the target weight migration task. On the basis of the embodiment, the method and the device realize flexible setting of the rights migration code and the rights migration quantity corresponding to the rights migration code by rapidly adjusting the rights migration proportion through the rights migration task, and improve the test efficiency.
Example two
Fig. 2 is a flowchart of a method for calculating a weight migration volume ratio provided in the second embodiment, where the present embodiment is applicable to a flexible setting situation of the weight migration volume ratio, the method may be performed by a weight migration volume ratio calculating device, and the weight migration volume ratio calculating device may be implemented in a hardware and/or software form, and in a specific embodiment, the weight migration volume ratio calculating device may be configured in an electronic device. On the basis of the above embodiment, the method optimizes the data acquisition time based on the preset time update mode and constructs the performance test scene according to the ownership migration information and the server, as shown in fig. 2, and specifically includes the following steps:
s201, determining a first candidate data acquisition time and an update frequency of the data acquisition time.
The first candidate data acquisition time is the ending time of the current stage of the migration task. The data obtaining time is the time of obtaining the rights migration information of the migration task.
Specifically, a first candidate data acquisition time and an update frequency of the data acquisition time are determined.
S202, determining a second candidate data acquisition time based on the current time and the update frequency.
The current time is the current time of acquiring the migration task, and the update frequency is the number of times of periodically acquiring the ownership migration information of the ownership migration task in unit time. The second candidate data acquisition time is the data acquisition time after updating the current time through the updating frequency.
Specifically, after the update frequency of the data acquisition time is determined, the current time of the data acquisition time is updated according to the update frequency of the data acquisition time, and the updated time is determined to be the second candidate data acquisition time.
S203, updating the data acquisition time based on the current time, the first candidate data acquisition time and the second candidate data acquisition time.
Specifically, at the moment of determining the current moment, the first candidate data acquisition moment and the second candidate data acquisition moment, the moment of acquiring the ownership migration information of the ownership migration task is updated in real time according to the current moment, the first candidate data acquisition moment and the second candidate data acquisition moment, so that the acquired ownership migration information of the ownership migration task is dynamic real-time information.
S204, setting test scene basic information based on the server.
Among them, the server is one of computers, and it runs faster, is more loaded and is more expensive than a normal computer. The server provides computing or application services to other clients in the network. The server has high-speed CPU operation capability, long-time reliable operation, strong computer interface external data throughput capability and better expansibility. A performance test scenario is one for a migration task.
In a specific embodiment, optionally, before setting the test scenario basic information based on the server, the method further includes: and acquiring server request interface information of the server.
Wherein the request interface information includes a request name, a service protocol, a server address, and a request address. The request name is the name of the server that handles the ownership migration task. The service protocol is used for communicating the right migration task to be processed with the server to realize interaction. The server address refers to the internet protocol (Internet Protocol, IP) that is in fact weapons, and may be such that the server is found over IP. The request address refers to the method and path that is needed to transfer the request when the request needs to be sent to the server.
Specifically, the request name, the service protocol, the server address and the request address of the server are obtained, so that the right migration task and the server are communicated, and interaction is realized.
The advantage of this arrangement is that the arrangement requests default relevant information, facilitating information management.
In a specific embodiment, optionally, setting test scene basic information based on the server includes: setting path information based on a server; thread information is set according to the file information.
The test scene basic information comprises path information, file information and thread information; the path information is used for storing variable information; setting file information according to the path information; the file information includes a sequence number column, a rights migration code column, a rights migration name column, a daily-average rights migration volume column, and a rights migration volume duty ratio column, which is not limited in this embodiment.
Specifically, on the basis of server connection interaction, file information is set according to path information, wherein the path information is used for storing variable information, and the variable information can be the name of the file information; the file information comprises a sequence number column, a property migration code column, a property migration name column, a Japanese property migration volume column and a property migration volume duty ratio column, and is used for reading csv (a simple and practical file format used for storing and representing various types of data including text, numerical values and the like) file data. Thread information is then set according to the file information. The thread information specifically comprises a starting thread, wherein the starting thread is used for reading the number of csv file data lines, the ownership migration number is determined according to the read number of csv file data lines, the ownership migration number corresponds to the number of threads one by one, and the acquired ownership migration number is used for setting global variables, so that the use of subsequent thread group information is facilitated.
S205, setting thread group information according to the test scene basic information and the ownership migration information.
Specifically, thread group information is set according to the test scene basic information and the ownership migration information, each thread group in the thread group information corresponds to each ownership migration one by one, and the number of threads in the thread group information is the number of csv file data lines read by the starting thread.
S206, setting the sending interface information of the test scene according to the thread group information.
Wherein, the sending interface information includes: service protocol, server address, port and request path. The service protocol is used for communicating the right migration task to be processed with the server to realize interaction. The server address refers to the IP that is the actual weapon and can be made to find the server over IP. The port refers to a window where the server can provide services, and when the port is opened, the outside world can access the server through the port. The request path is the address corresponding to the port specifically required to be accessed.
Specifically, after the thread group information is set, the sending interface information of the test scene is set according to the thread group information.
In a specific embodiment, optionally, before setting the sending interface information of the test scenario according to the thread group information, the method further includes: the number of cycles is set in the thread group information.
Wherein the number of cycles is used to read the right migration volume.
Specifically, before setting the sending interface information of the test scene according to the thread group information, setting a cycle number in the thread group information, wherein the cycle number is used for setting the concurrency number of threads in the thread group information, and reading the weight migration quantity of each weight migration corresponding to each day from the csv file according to the set concurrency number.
S207, constructing a performance test scene according to the test scene basic information, the thread group information and the transmission interface information.
Specifically, after setting the test scene basic information, the thread group information and the transmission interface information, the construction of the performance test scene is completed based on the test scene basic information, the thread group information and the transmission interface information.
S208, determining the number of task data lines according to the performance test scene and the target weight migration task.
The target ownership migration task is the obtained total task amount of the ownership migration task.
Specifically, based on a performance test scene, performance test is performed on the target ownership migration task, and the number of task data lines is determined.
S209, determining the concurrency number according to the task data line number.
Specifically, after the task data line number of the target ownership migration task is determined, determining the cycle number in the thread group information according to the task data line number, and determining the concurrency number of threads in the thread group information according to the cycle number.
And S210, calculating the weight migration volume ratio according to the concurrency number.
Specifically, according to the determined concurrency number, real-time adjustment configuration is carried out on the ownership migration code and the ownership migration volume through high concurrency performance test of the performance test scene, and finally the ownership migration volume proportion of the target ownership migration task is determined.
The method has the advantages that the property migration code and the property migration quantity are adjusted and configured in real time through the high concurrency performance test of the performance test scene, the property migration quantity proportion of the target property migration task is finally determined, and the flexibility of the property migration quantity proportion is improved.
According to the technical scheme of the embodiment, the first candidate data acquisition time and the updating frequency of the data acquisition time are determined; determining a second candidate data acquisition time based on the current time and the update frequency; updating the data acquisition time based on the current time, the first candidate data acquisition time and the second candidate data acquisition time; setting test scene basic information based on a server; setting thread group information according to the test scene basic information and the ownership migration information; setting transmission interface information of a test scene according to the thread group information; constructing a performance test scene according to the test scene basic information, the thread group information and the transmission interface information; determining the number of task data lines according to the performance test scene and the target weight migration task; determining the concurrency number according to the task data line number; and calculating the weight migration volume ratio according to the concurrency number. On the basis of the embodiment, the calculated ownership migration volume ratio is adjusted in real time for the target ownership migration task based on the constructed and testable scene by constructing the testable scene, so that the calculated ownership migration ratio is close to the ownership migration task, high concurrency performance test is realized, and test efficiency and accuracy of test results are improved.
Example III
Fig. 3 is a schematic structural diagram of a calculation device of a weight migration volume ratio provided in the third embodiment, where the device is configured to implement the calculation method of the weight migration volume ratio in any embodiment, and the device includes: an information determination module 301, a scene construction module 302 and a proportioning calculation module 303. Wherein,
the information determining module 301 is configured to determine, when the current time is a data acquisition time, attribute migration information of an attribute migration task, and update the data acquisition time based on a preset time update manner; the rights migration information comprises rights migration codes, rights migration quantity and rights migration types, wherein the rights migration quantity is the number of total rights migration tasks completed in preset time, and the rights migration tasks are in one-to-one correspondence with the rights migration codes and the rights migration types.
The scene construction module 302 is configured to construct a performance test scene according to the rights migration information and the server.
The matching calculation module 303 is configured to calculate the weight migration volume matching according to the performance test scenario and the target weight migration task when the target weight migration task is received.
Optionally, the information determining module 301 updates the data acquisition time based on a preset time update mode, which is specifically configured to: determining a first candidate data acquisition time and an updating frequency of the data acquisition time, wherein the first candidate data acquisition time is the ending time of the current stage of the migration task; determining a second candidate data acquisition time based on the current time and the update frequency; updating the data acquisition time based on the current time, the first candidate data acquisition time, and the second candidate data acquisition time.
Optionally, the scene construction module 302 is specifically configured to: setting test scene basic information based on a server; setting thread group information according to the test scene basic information and the ownership migration information; setting transmission interface information of a test scene according to the thread group information; wherein, the sending interface information includes: service protocol, server address, port and request path; and constructing a performance test scene according to the test scene basic information, the thread group information and the sending interface information.
Optionally, the apparatus further comprises: the interface information acquisition module is used for acquiring server request interface information of the server before setting test scene basic information based on the server; wherein the request interface information includes a request name, a service protocol, a server address, and a request address.
Optionally, the test scene basic information includes path information, file information and thread information.
Optionally, the scene construction module 302 is configured to set test scene basic information based on a server, and is specifically configured to: setting path information based on a server; the path information is used for storing variable information; setting file information according to the path information; the file information comprises a sequence number column, a rights migration code column, a rights migration name column, a Japanese rights migration volume column and a rights migration volume duty ratio column; thread information is set according to the file information.
Optionally, the apparatus further comprises: the cycle number setting module is used for setting the cycle number in the thread group information before setting the sending interface information of the test scene according to the thread group information; wherein the number of cycles is used to read the right migration volume.
Optionally, the proportioning calculation module 303 is specifically configured to: calculating the weight migration volume ratio according to the performance test scene and the target weight migration task, comprising: determining the number of task data lines according to the performance test scene and the target weight migration task; determining the concurrency number according to the task data line number; and calculating the weight migration volume ratio according to the concurrency number.
The computing device for the weight migration volume ratio provided by the embodiment can execute the computing method for the weight migration volume ratio provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the executing method.
Example IV
Fig. 4 is a schematic diagram of the structure of an electronic device provided in the fourth embodiment, which is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a Memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a random access Memory (also referred to as "random access Memory", random Access Memory, RAM) 13, etc., in which the Memory stores a computer program executable by the at least one processor, and the processor 11 may perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the respective methods and processes described above, for example, the weight migration volume proportioning calculation method.
In some embodiments, the method of computing the weight migration volume ratio may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the above-described method of calculating the weight migration volume proportioning may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the method of computing the weight migration volume proportioning by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above can be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. The method for calculating the weight migration volume ratio is characterized by comprising the following steps:
when the current time is the data acquisition time, determining the attribute migration information of the attribute migration task, and updating the data acquisition time based on a preset time updating mode; the rights migration information comprises rights migration codes, rights migration quantity and rights migration types, wherein the rights migration quantity is the number of total rights migration tasks completed in preset time, and the rights migration tasks are in one-to-one correspondence with the rights migration codes and the rights migration types;
constructing a performance test scene according to the rights migration information and the server;
and when receiving the target ownership migration task, calculating the ownership migration volume ratio according to the performance test scene and the target ownership migration task.
2. The method for calculating the weight migration volume ratio according to claim 1, wherein updating the data acquisition time based on a preset time update manner includes:
determining a first candidate data acquisition time and an updating frequency of the data acquisition time, wherein the first candidate data acquisition time is the ending time of the current stage of the migration task;
determining a second candidate data acquisition time based on the current time and the update frequency;
updating the data acquisition time based on the current time, the first candidate data acquisition time and the second candidate data acquisition time.
3. The method for calculating the weight migration volume ratio according to claim 1, wherein the constructing a performance test scene according to the weight migration information and the server includes:
setting test scene basic information based on the server;
setting thread group information according to the test scene basic information and the ownership migration information;
setting transmission interface information of a test scene according to the thread group information; wherein the transmitting interface information includes: service protocol, server address, port and request path;
and constructing the performance test scene according to the test scene basic information, the thread group information and the sending interface information.
4. The method for calculating the weight migration volume proportioning according to claim 3, further comprising, before setting the test scene basic information based on the server:
acquiring server request interface information of the server; wherein the request interface information includes a request name, a service protocol, a server address, and a request address.
5. The method for calculating the weight migration volume proportioning according to claim 3, wherein the test scene basic information comprises path information, file information and thread information; the setting of the test scene basic information based on the server comprises the following steps:
setting the path information based on the server; the path information is used for storing variable information;
setting the file information according to the path information; the file information comprises a sequence number column, a rights migration code column, a rights migration name column, a daily average rights migration volume column and a rights migration volume duty ratio column;
and setting the thread information according to the file information.
6. The method for calculating a weight migration volume ratio according to claim 3, further comprising, before setting transmission interface information of a test scenario according to the thread group information:
setting the cycle number in the thread group information; wherein the cycle number is used to read the weight migration volume.
7. The method for calculating a weight migration volume ratio according to claim 3, wherein the calculating a weight migration volume ratio according to the performance test scenario and the target weight migration task includes:
determining the number of task data lines according to the performance test scene and the target ownership migration task;
determining the concurrency number according to the task data line number;
and calculating the weight migration volume ratio according to the concurrency number.
8. A computing device for calculating a weight migration volume ratio, the computing device being configured to implement the method for calculating a weight migration volume ratio according to any one of claims 1 to 7, the device comprising:
the information determining module is used for determining the ownership migration information of the ownership migration task when the current moment is the data acquisition moment and updating the data acquisition moment based on a preset moment updating mode; the rights migration information comprises rights migration codes, rights migration quantity and rights migration types, wherein the rights migration quantity is the number of total rights migration tasks completed in preset time, and the rights migration tasks are in one-to-one correspondence with the rights migration codes and the rights migration types;
the scene construction module is used for constructing a performance test scene according to the ownership migration information and the server;
and the matching calculation module is used for calculating the assignment migration quantity matching according to the performance test scene and the target assignment migration task when receiving the target assignment migration task.
9. An electronic device, the electronic device comprising:
at least one processor; and a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of computing the weight migration volume proportioning of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to implement the method for calculating the weight migration volume proportioning of any one of claims 1 to 7 when executed.
CN202311649715.5A 2023-12-04 2023-12-04 Method and device for calculating weight migration volume ratio, electronic equipment and storage medium Pending CN117608944A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311649715.5A CN117608944A (en) 2023-12-04 2023-12-04 Method and device for calculating weight migration volume ratio, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311649715.5A CN117608944A (en) 2023-12-04 2023-12-04 Method and device for calculating weight migration volume ratio, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117608944A true CN117608944A (en) 2024-02-27

Family

ID=89951428

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311649715.5A Pending CN117608944A (en) 2023-12-04 2023-12-04 Method and device for calculating weight migration volume ratio, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117608944A (en)

Similar Documents

Publication Publication Date Title
CN114500339B (en) Node bandwidth monitoring method and device, electronic equipment and storage medium
CN114816393B (en) Information generation method, device, equipment and storage medium
CN113641677A (en) Data processing method and device, electronic equipment and storage medium
CN114428907A (en) Information searching method and device, electronic equipment and storage medium
CN116545905A (en) Service health detection method and device, electronic equipment and storage medium
CN112883041B (en) Data updating method and device, electronic equipment and storage medium
CN114051057B (en) Cloud equipment queuing time determination method and device, electronic equipment and medium
CN113656689B (en) Model generation method and network information pushing method
CN113556394B (en) Cloud product network usage processing method, device, equipment, storage medium and product
CN117608944A (en) Method and device for calculating weight migration volume ratio, electronic equipment and storage medium
CN114707651A (en) Topology selection method, device, equipment and medium for protocol operation
CN113961797A (en) Resource recommendation method and device, electronic equipment and readable storage medium
CN115511047B (en) Quantification method, device, equipment and medium of Softmax model
CN114398558B (en) Information recommendation method, device, electronic equipment and storage medium
CN112835007B (en) Point cloud data conversion method and device, electronic equipment and storage medium
CN117278648A (en) Protocol dynamic adaptation method, device, electronic equipment and storage medium
CN118051670A (en) Service recommendation method, device, equipment and medium
CN115983222A (en) EasyExcel-based file data reading method, device, equipment and medium
CN117406964A (en) Data architecture model design method, device, electronic equipment and storage medium
CN116244006A (en) Data processing method, device, storage medium, electronic equipment and product
CN116319716A (en) Information processing method, no-service system, electronic device, and storage medium
CN117827425A (en) Resource elimination method, device, electronic equipment and readable storage medium
CN116342275A (en) Wind control strategy determination method and device, electronic equipment and storage medium
CN114896322A (en) JSON (Java Server object notation) -based configuration data conversion method, device, equipment and medium
CN116167464A (en) Method, device, equipment and medium for predicting operation time of federal learning task

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination