CN110782211A - Data processing method and device, electronic equipment and storage medium - Google Patents

Data processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110782211A
CN110782211A CN201911028001.6A CN201911028001A CN110782211A CN 110782211 A CN110782211 A CN 110782211A CN 201911028001 A CN201911028001 A CN 201911028001A CN 110782211 A CN110782211 A CN 110782211A
Authority
CN
China
Prior art keywords
host
type
request
request message
production system
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
CN201911028001.6A
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.)
Shanghai Yanxi Software Information Technology Co Ltd
Original Assignee
Shanghai Yanxi Software Information Technology Co Ltd
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 Shanghai Yanxi Software Information Technology Co Ltd filed Critical Shanghai Yanxi Software Information Technology Co Ltd
Priority to CN201911028001.6A priority Critical patent/CN110782211A/en
Publication of CN110782211A publication Critical patent/CN110782211A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/083Shipping
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]

Abstract

The application provides a data processing method, a data processing device, electronic equipment and a storage medium. The method is applied to a processing device of a production system, wherein the production system comprises at least one first-class host and at least one second-class host, and the method comprises the following steps: receiving a request message, wherein the request message comprises a request type; distributing the request message to a corresponding target host according to the request type so that the target host processes the request message; wherein the target host is one of the first type host or the second type host. When the production system needs to be subjected to pressure testing and the service also needs to run normally, the embodiment of the application divides the hosts in the production system into two types, and the two types of hosts respectively process different types of request messages without constructing a test system which is completely the same as the production system, so that the test cost and the test time can be saved.

Description

Data processing method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data processing method and apparatus, an electronic device, and a storage medium.
Background
In the case where online shopping is part of people's daily lives, logistics companies also play an indispensable role in mailing goods purchased by customers from merchants to customers. When the merchant is doing sales promotion, the logistics order can be greatly increased, and at the moment, the pressure is brought to the logistics production system.
In order to determine the bottleneck or maximum usage limit of the production system, the production system may be subjected to a stress test, by which the performance of the system under extreme conditions, such as an overloaded transaction amount and a number of concurrent users, can be examined. For the pressure test, it is necessary to ensure that the normal service performance cannot be greatly interfered during the pressure test, so the prior art constructs a test system exactly the same as the production system and tests on the test system, which ensures the normal processing of the service but is expensive.
Disclosure of Invention
An embodiment of the present application provides a data processing method, an apparatus, an electronic device, and a storage medium, so as to solve the problem that the existing pressure testing method is expensive.
In a first aspect, an embodiment of the present application provides a data processing method applied to a processing device of a production system, where the production system includes at least one first-type host and at least one second-type host, and the method includes: receiving a request message, wherein the request message comprises a request type; distributing the request message to a corresponding target host according to the request type so that the target host processes the request message; wherein the target host is one of the first type host or the second type host.
When the production system needs to be subjected to pressure testing and the service also needs to run normally, the embodiment of the application divides the hosts in the production system into two types, and the two types of hosts respectively process different types of request messages without constructing a test system which is completely the same as the production system, so that the test cost and the test time can be saved.
Optionally, the requesting type is a test request, and the allocating the request message to a corresponding target host according to the requesting type includes: and distributing the request message to the first type host according to the request type.
In the embodiment of the application, when the test request is received, the request is distributed to the first type of host to realize the pressure test of the first type of host, and because the capability of each host in the production system is similar, the pressure resistance of the whole production system can be obtained through the pressure test of a part of hosts in the production system, so that the cost can be saved, and the time can be saved.
Optionally, the requesting type is a service request, and the allocating the request message to a corresponding target host according to the requesting type includes: and distributing the request message to the second type of host according to the request type.
In the embodiment of the application, when the service request is received, the service request is distributed to the second type host, so that the service is not influenced when the production system is subjected to pressure test.
Optionally, before receiving the request message, the method further comprises: acquiring host information of a plurality of hosts in the production system, wherein the host information comprises IP addresses and port numbers; and dividing each host according to the IP address and the port number of each host to obtain the first type host and the second type host.
According to the method and the device, the hosts are classified by using the IP addresses and the port numbers, and the IP addresses and the port numbers of the hosts are unique and cannot be changed randomly, so that the processing device can accurately distribute the request message to the target host.
Optionally, dividing each host according to the IP address and the port number of each host includes: and acquiring current service flow, and dividing each host according to the IP address and the port number of each host based on the current service flow.
According to the embodiment of the application, the host machine is divided according to the current service flow, so that the service is preferentially ensured not to be influenced.
Optionally, the method further comprises: and if the pressure measurement completion information is received, switching the first-type host machine into a second-type host machine.
After the pressure test is finished, all hosts used for testing are switched to hosts for processing the service, so that resources are saved during the pressure test on one hand, and the processing efficiency of the service is ensured on the other hand.
Optionally, the processing device stores a first identifier corresponding to the first type of host and a second identifier corresponding to the second type of host; the switching the first type of host to the second type of host includes: and changing the first identifier corresponding to the first class of host into the second identifier.
In a second aspect, an embodiment of the present application provides a data processing apparatus, which is applied to a production system, where the production system includes at least one first-type host and at least one second-type host, and the apparatus includes:
a message receiving module, configured to receive a request message, where the request message includes a request type;
the message processing module is used for distributing the request message to a corresponding target host according to the request type so as to enable the target host to process the request message; wherein the target host is one of the first type host or the second type host.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a memory, and a bus, wherein,
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor being capable of performing the method steps of the first aspect when invoked by the program instructions.
In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium, including:
the non-transitory computer readable storage medium stores computer instructions that cause the computer to perform the method steps of the first aspect.
Additional features and advantages of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
FIG. 1 is a schematic diagram of a production system architecture provided in an embodiment of the present application;
fig. 2 is a schematic flow chart of a data processing method according to an embodiment of the present application;
fig. 3 is a schematic flow chart of another data processing method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
The production system is used for processing business data, and for a logistics company, the system for receiving and processing the express orders is the production system; for the online shopping platform, a system for receiving and processing a shopping order at the back end is a production system.
Pressure testing of production systems is necessary, and methods for pressure testing are numerous, for example: the production system can be suspended from receiving new service data, and the production system is subjected to pressure test through the test data, so that the limit of data flow which can be borne by the production system is obtained. The other method is to construct a test system which is the same as the production system, and to perform pressure test on the test system through test data to obtain the limit of the data flow borne by the test system.
In the above pressure test methods, the first method affects normal processing of services, and the second method requires as many hosts as production systems when building a test system, and also requires time for building a system, which is costly in terms of capital and time. Therefore, the embodiment of the application provides a data processing method, which can perform a pressure test on a production system under the condition that service processing is not affected, and has less resource consumption.
The data processing method provided by the embodiment of the application is applied to a processing device of a production system. Fig. 1 is a schematic diagram of a production system architecture provided in an embodiment of the present application, and as shown in fig. 1, when the production system needs to perform a pressure test, hosts in the production system are divided into a first type host 101 and a second type host 102, where each of the first type host 101 and the second type host 102 includes at least one host, and each host corresponds to a respective database, and corresponding data may be stored in the database. For example: the database corresponding to the first type of host computer may store pressure measurement data, and the database corresponding to the second type of host computer may store service data. It should be noted that the host can be a physical host and a virtual host, and the physical host, i.e. the main body part of the computer except the input and output device, is also a control box for placing the motherboard and other main components. A vm refers to a server running on the internet divided into multiple "virtual" servers, each with a separate domain name and full internet server (supporting world wide web, file transfer protocol FTP, email, etc.). Different virtual hosts on one server are independent and managed by users.
In the context of the production system provided in fig. 1, an embodiment of the present application provides a data processing method, as shown in fig. 2, the method includes:
step 201: receiving a request message, wherein the request message comprises a request type;
step 202: distributing the request message to a corresponding target host according to the request type so that the target host processes the request message; wherein the target host is one of the first type host or the second type host.
In a specific implementation process, a user may access the production system through a terminal and submit a request message to the production system, where the request message may be a logistics order, and in addition, a tester may also submit a request message to the production system, where the request message may be test data. The production system, upon receiving the request message, sends the request message to a processing device, which may be a processor of an entity operating in the production system. After receiving the request message, the processing device obtains a request type from the request message, where the request type may be used to characterize whether the request message is a service request or a test request, and the request type may be agreed in advance, for example: a request type of 0 indicates a test request and a request type of 1 indicates a service request. The processing device may distribute the request message to the corresponding target host according to the request type. The target host is a first type of host or a second type of host, and the allocation of which request type request message by the processing device to which type of host may be preconfigured, for example: if the request type is a test request, the request message is distributed to the first type of host; and if the request type is a service request, distributing the request to the second type of host. And after receiving the request message, the target host processes the request message.
Fig. 1 also shows a processing procedure of a request message, a dashed arrow indicates processing of a test request, a solid arrow indicates processing of a service request, when a service request arrives, the service request is distributed to the first type host 101, when a test request arrives, the test request is distributed to the second type host 102, as can be seen from fig. 1, because the production system needs to implement more functions and stores more data, each type of host has a corresponding database, when a service request arrives, the processing apparatus distributes a service request to one first type host, but when a service request arrives, the data needed to be used is in another first type host, so that other hosts in the first type host need to be called to implement the service request. Similarly, when a test request comes, other hosts in the second type of host may also need to be called to implement the test request. Topic in fig. 1 generally refers to the kind of business to which a message belongs, and for example, an order and a load are two different types of Topic. The key refers to a query condition for storing data in the cache, for example, the waybill number is used as the key, and the content of the key can be searched in the cache.
It should be noted that the production system may further include a plurality of sub-processing devices, taking two sub-processing devices as an example: the first sub-processing device is used for managing the distribution of the test requests among the first type of host computers, and the second sub-processing device is used for managing the distribution of the service requests among the second type of host computers. When a processing device in the production system receives a request message with a request type of a test request, the request message is sent to a first sub-processing device, and the first sub-processing device selects one of the first type hosts as a target host according to the load condition of each first type host and sends the request message to the target host for processing. Similarly, when the processing device in the production system receives a request message with a request type of a service request, the request message is sent to the second sub-processing devices, and the second sub-processing devices select one of the second type hosts as a target host according to the load condition of each second type host and send the request message to the target host for processing.
According to the embodiment of the application, the hosts in the production system are divided into two types, and the two types of hosts respectively process different types of request messages without constructing a test system which is completely the same as the production system, so that the test cost and the test time can be saved.
On the basis of the above embodiment, before receiving the request message, the method further includes:
acquiring host information of a plurality of hosts in the production system, wherein the host information comprises IP addresses and port numbers;
and dividing each host according to the IP address and the port number of each host to obtain the first type host and the second type host.
In a specific implementation, when the stress test is not required, the hosts in the production system may not have a classification, which is the host used for processing the service request, but when the stress test is required, the production system may classify all the hosts. Since each host in the production system has corresponding unique host information, the host information includes an IP address and a port number, and for two virtual hosts in one entity host, the IP addresses are the same, but the port numbers are different, so the IP addresses and the port numbers can be used as a basis for dividing the host types.
According to the method and the device, the hosts are classified by using the IP addresses and the port numbers, and the IP addresses and the port numbers of the hosts are unique and cannot be changed randomly, so that the processing device can accurately distribute the request message to the target host.
In addition, after the hosts are divided according to the IP addresses and the port numbers, a host information table may be maintained inside the processing apparatus, where the host information table includes the IP addresses and the port numbers of the hosts and the identities of the hosts, that is, if the hosts are divided into the first class, the identities are 0, and if the hosts are divided into the second class, the identities are 1. In addition, the host information table may further include the current load condition of each host. In the embodiment of the application, the processing device can quickly acquire the target host and send the request message to the target host by maintaining the host information table.
In the embodiment of the application, when the test request is received, the request is distributed to the first type of host to realize the pressure test of the first type of host, and because the capability of each host in the production system is similar, the pressure resistance of the whole production system can be obtained through the pressure test of a part of hosts in the production system, so that the cost can be saved, and the time can be saved. When a service request is received, the service request is distributed to the second type host, so that the service of the production system is not influenced when the production system is subjected to stress test.
On the basis of the above embodiment, dividing each host according to the IP address and the port number of each host includes:
and acquiring current service flow, and dividing each host according to the IP address and the port number of each host based on the current service flow.
In a specific implementation process, when classifying the types of the hosts, the current service flow can be obtained in consideration of the need to ensure that the service request is not affected, and if the current service flow is larger, the number of the hosts required is more, so that the hosts are classified according to the current service flow. The corresponding relationship between the service flow and the number of the required hosts can be preset, for example: if the current service flow is 0kb/s-10kb/s, the current service flow needs to be processed by at least 1 host, and if the current service flow is 100kb/s-200kb/s, the current service flow needs to be processed by at least 10 hosts. If 10 hosts are in the production system, and the number of the hosts required according to the current service flow is 6, 4 hosts can be used as the first type hosts and the remaining 6 hosts can be used as the second type hosts according to the IP addresses and the port numbers.
According to the embodiment of the application, the host machine is divided according to the current service flow, so that the service is preferentially ensured not to be influenced.
On the basis of the above embodiment, the method further includes:
and if the pressure measurement completion information is received, switching the first-type host machine into a second-type host machine.
In a specific implementation, when the pressure test is completed, a piece of pressure test completion information may be sent to the processing device. And after receiving the pressure test completion information, the processing device switches the first type host to the second type host, so that the first type host used for processing the test data can process the service request again.
Further, a first identifier corresponding to the first type of host and a second identifier corresponding to the second type of host, that is, the above-mentioned host information table, may be stored in advance in the processing device, and if the first identifier is 0, the second identifier is 1, and after the processing device receives the pressure test completion information, the first identifier of the first type of host used for processing the test data is changed from 0 to 1, so that all hosts in the production system can process the service request.
After the pressure test is finished, all hosts used for testing are switched to hosts for processing the service, so that resources are saved during the pressure test on one hand, and the processing efficiency of the service is ensured on the other hand.
Fig. 3 is a schematic flow chart of another data processing method according to an embodiment of the present disclosure, and as shown in fig. 3, the method may be divided into configuration before pressure testing, test data receiving, and test data processing.
The configuration before the pressure measurement is carried out comprises the following steps:
step 301: dividing hardware resources of a production environment;
step 302: dividing a production environment into a pressure measurement area and a service area;
before the pressure measurement is carried out, the method comprises the following steps:
step 303: when the test data is to be received, the first class host computer is offline, the service request being processed is processed, and a new service request is not received any more;
for test data reception, the following steps are included:
step 304: receiving a request message, wherein the request message can be a service request or a test request;
for test data processing, the method comprises the following steps:
step 305: judging the type of the request message, if the request message is a service request, executing step 306, and if the request message is a test request, executing step 307;
step 306: distributing the request message to a second type of host for processing;
step 307: distributing the request message to a first type of host for processing;
step 308: counting the pressure measurement flow and the response time; the pressure measurement flow and the response time are reference indexes in the pressure test, and it can be understood that other reference indexes, such as throughput, the number of concurrent users and the query rate per second, can also be counted. The pressure measurement flow rate refers to the data amount corresponding to the pressure measurement data. Response time refers to the time the system responds to the request. Throughput refers to the number of requests a system processes in a unit of time. The number of concurrent users refers to the number of users who normally use the system functions and can be simultaneously borne by the system. Query rate per second is a measure of how much traffic a particular query server is handling within a specified time.
Step 309: after the pressure measurement is finished, switching the first type host machine into a second type host machine; and after receiving the pressure test completion information, the processing device switches the first-class host to the second-class host so that the original first-class host can process the service request when the pressure test is not needed.
When the production system needs to be subjected to pressure testing and the service also needs to run normally, the embodiment of the application divides the hosts in the production system into two types, and the two types of hosts respectively process different types of request messages without constructing a test system which is completely the same as the production system, so that the test cost and the test time can be saved.
Fig. 4 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application, where the apparatus may be a module, a program segment, or code on an electronic device. It should be understood that the apparatus corresponds to the above-mentioned embodiment of the method of fig. 2, and can perform various steps related to the embodiment of the method of fig. 2, and the specific functions of the apparatus can be referred to the description above, and the detailed description is appropriately omitted here to avoid redundancy. As shown in fig. 4, includes: a message receiving module 401 and a message processing module 402, wherein:
the message receiving module 401 is configured to receive a request message, where the request message includes a request type;
the message processing module 402 is configured to allocate the request message to a corresponding target host according to the request type, so that the target host processes the request message; wherein the target host is one of the first type host or the second type host.
On the basis of the foregoing embodiment, the request type is a test request, and the message processing module 402 is specifically configured to:
and distributing the request message to the first type host according to the request type.
On the basis of the foregoing embodiment, the request type is a service request, and the message processing module 402 is specifically configured to:
and distributing the request message to the second type of host according to the request type.
On the basis of the above embodiment, the apparatus further includes:
the system comprises a host information acquisition module, a processing module and a processing module, wherein the host information acquisition module is used for acquiring host information of a plurality of hosts in the production system, and the host information comprises IP addresses and port numbers;
and the host machine dividing module is used for dividing each host machine according to the IP address and the port number of each host machine to obtain the first type host machine and the second type host machine.
On the basis of the above embodiment, the host partitioning module is specifically configured to:
and acquiring current service flow, and dividing each host according to the IP address and the port number of each host based on the current service flow.
On the basis of the foregoing embodiment, the processing apparatus further includes a switching module configured to:
and if the pressure measurement completion information is received, switching the first-type host machine into a second-type host machine.
On the basis of the above embodiment, the processing device stores a first identifier corresponding to the first type of host and a second identifier corresponding to the second type of host; the switching module is specifically configured to:
and changing the first identifier corresponding to the first class of host into the second identifier.
In summary, when a pressure test needs to be performed on a production system and a service also needs to run normally, the embodiment of the present application divides hosts in the production system into two types, and the two types of hosts respectively process different types of request messages, without building a test system that is completely the same as the production system, so that the test cost and the test time can be saved.
Fig. 5 is a schematic structural diagram of an entity of an electronic device provided in an embodiment of the present application, and as shown in fig. 5, the electronic device includes: a processor (processor)501, a memory (memory)502, and a bus 503; wherein the content of the first and second substances,
the processor 501 and the memory 502 are communicated with each other through the bus 503;
the processor 501 is configured to call program instructions in the memory 502 to perform the methods provided by the above-mentioned method embodiments, for example, including: receiving a request message, wherein the request message comprises a request type; distributing the request message to a corresponding target host according to the request type so that the target host processes the request message; wherein the target host is one of the first type host or the second type host.
The processor 501 may be an integrated circuit chip having signal processing capabilities. The processor 501 may be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. Which may implement or perform the various methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The Memory 502 may include, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read Only Memory (PROM), Erasable Read Only Memory (EPROM), electrically Erasable Read Only Memory (EEPROM), and the like.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: receiving a request message, wherein the request message comprises a request type; distributing the request message to a corresponding target host according to the request type so that the target host processes the request message; wherein the target host is one of the first type host or the second type host.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, including: receiving a request message, wherein the request message comprises a request type; distributing the request message to a corresponding target host according to the request type so that the target host processes the request message; wherein the target host is one of the first type host or the second type host.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A data processing method applied to a processing apparatus of a production system including at least one first-type host and at least one second-type host, the method comprising:
receiving a request message, wherein the request message comprises a request type;
distributing the request message to a corresponding target host according to the request type so that the target host processes the request message; wherein the target host is one of the first type host or the second type host.
2. The method of claim 1, wherein the request type is a test request, and wherein the allocating the request message to the corresponding target host according to the request type comprises:
and distributing the request message to the first type host according to the request type.
3. The method of claim 1, wherein the request type is a service request, and the allocating the request message to the corresponding target host according to the request type comprises:
and distributing the request message to the second type of host according to the request type.
4. The method of claim 1, wherein prior to receiving the request message, the method further comprises:
acquiring host information of a plurality of hosts in the production system, wherein the host information comprises IP addresses and port numbers;
and dividing each host according to the IP address and the port number of each host to obtain the first type host and the second type host.
5. The method of claim 4, wherein the partitioning each host according to the IP address and the port number of each host comprises:
and acquiring current service flow, and dividing each host according to the IP address and the port number of each host based on the current service flow.
6. The method of claim 1, further comprising:
and if the pressure measurement completion information is received, switching the first-type host machine into a second-type host machine.
7. The method according to claim 6, wherein the processing device stores a first identifier corresponding to the first type of host and a second identifier corresponding to the second type of host; the switching the first type of host to the second type of host includes:
and changing the first identifier corresponding to the first class of host into the second identifier.
8. A data processing apparatus, applied to a production system including at least one first type host and at least one second type host, the apparatus comprising:
a message receiving module, configured to receive a request message, where the request message includes a request type;
the message processing module is used for distributing the request message to a corresponding target host according to the request type so as to enable the target host to process the request message; wherein the target host is one of the first type host or the second type host.
9. An electronic device, comprising: a processor, a memory, and a bus, wherein,
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any one of claims 1-7.
10. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1-7.
CN201911028001.6A 2019-10-25 2019-10-25 Data processing method and device, electronic equipment and storage medium Pending CN110782211A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911028001.6A CN110782211A (en) 2019-10-25 2019-10-25 Data processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911028001.6A CN110782211A (en) 2019-10-25 2019-10-25 Data processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110782211A true CN110782211A (en) 2020-02-11

Family

ID=69386941

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911028001.6A Pending CN110782211A (en) 2019-10-25 2019-10-25 Data processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110782211A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127356A (en) * 2021-04-22 2021-07-16 挂号网(杭州)科技有限公司 Pressure measurement method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8984341B1 (en) * 2012-05-08 2015-03-17 Amazon Technologies, Inc. Scalable testing in a production system with autoscaling
CN107592343A (en) * 2017-08-25 2018-01-16 泰康保险集团股份有限公司 Data processing method, device, computer-readable recording medium and electronic equipment
CN108923998A (en) * 2018-05-31 2018-11-30 阿里巴巴集团控股有限公司 Method for testing pressure, water conservancy diversion server and pressure testing system
CN109165168A (en) * 2018-09-14 2019-01-08 杭州云创共享网络科技有限公司 A kind of method for testing pressure, device, equipment and medium
CN109660421A (en) * 2018-10-26 2019-04-19 平安科技(深圳)有限公司 Method, apparatus, server and the storage medium of flexible scheduling resource
CN110321226A (en) * 2019-07-09 2019-10-11 西安点告网络科技有限公司 Automatic scalable appearance method, apparatus, host and the storage medium of host

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8984341B1 (en) * 2012-05-08 2015-03-17 Amazon Technologies, Inc. Scalable testing in a production system with autoscaling
CN107592343A (en) * 2017-08-25 2018-01-16 泰康保险集团股份有限公司 Data processing method, device, computer-readable recording medium and electronic equipment
CN108923998A (en) * 2018-05-31 2018-11-30 阿里巴巴集团控股有限公司 Method for testing pressure, water conservancy diversion server and pressure testing system
CN109165168A (en) * 2018-09-14 2019-01-08 杭州云创共享网络科技有限公司 A kind of method for testing pressure, device, equipment and medium
CN109660421A (en) * 2018-10-26 2019-04-19 平安科技(深圳)有限公司 Method, apparatus, server and the storage medium of flexible scheduling resource
CN110321226A (en) * 2019-07-09 2019-10-11 西安点告网络科技有限公司 Automatic scalable appearance method, apparatus, host and the storage medium of host

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113127356A (en) * 2021-04-22 2021-07-16 挂号网(杭州)科技有限公司 Pressure measurement method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109949111B (en) Electronic bill identification distribution method, electronic bill generation method, device and system
Chaczko et al. Availability and load balancing in cloud computing
CN110601922B (en) Method and device for realizing comparison experiment, electronic equipment and storage medium
CN109871224A (en) A kind of gray scale dissemination method, system, medium and equipment based on user identifier
US8413159B2 (en) Classifying workload for a service
US8660996B2 (en) Monitoring files in cloud-based networks
AU2018365063A1 (en) Capacity management in provider networks using dynamic host device instance model reconfigurations
US20170279654A1 (en) Data Processing System and Data Processing Method
CN108900434A (en) Data collection distribution method and device
CN113127168A (en) Service distribution method, system, device, server and medium
CN115277566B (en) Load balancing method and device for data access, computer equipment and medium
CN114095567A (en) Data access request processing method and device, computer equipment and medium
CN109245915B (en) Method and system for realizing server set balanced allocation
CN110782211A (en) Data processing method and device, electronic equipment and storage medium
CN113315825A (en) Distributed request processing method, device, equipment and storage medium
CN107045452B (en) Virtual machine scheduling method and device
CN107046581A (en) A kind of monitoring method, device and the server of service operation state
CN114598680B (en) Domain name management method, device and storage medium
CN116703071A (en) Resource sharing method, device and equipment and storage medium
CN110928679B (en) Resource allocation method and device
CN107277088B (en) High-concurrency service request processing system and method
CN114004527A (en) Processing method, device and equipment for product distribution and storage medium
CN110247802B (en) Resource configuration method and device for cloud service single-machine environment
CN114070847A (en) Current limiting method, device, equipment and storage medium of server
CN109905446B (en) Service processing method, server and computer storage medium

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200211