CN110196723B - Method, apparatus and computer readable storage medium for copying traffic data - Google Patents

Method, apparatus and computer readable storage medium for copying traffic data Download PDF

Info

Publication number
CN110196723B
CN110196723B CN201810164775.0A CN201810164775A CN110196723B CN 110196723 B CN110196723 B CN 110196723B CN 201810164775 A CN201810164775 A CN 201810164775A CN 110196723 B CN110196723 B CN 110196723B
Authority
CN
China
Prior art keywords
instance
copy
name server
module
copying
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.)
Active
Application number
CN201810164775.0A
Other languages
Chinese (zh)
Other versions
CN110196723A (en
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.)
Alibaba China Co Ltd
Original Assignee
Alibaba China 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 Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN201810164775.0A priority Critical patent/CN110196723B/en
Publication of CN110196723A publication Critical patent/CN110196723A/en
Application granted granted Critical
Publication of CN110196723B publication Critical patent/CN110196723B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Hardware Redundancy (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a method, a device and a computer readable storage medium for copying flow data. The method comprises the following steps: receiving an upgrade instruction, and acquiring information of a first instance before upgrade and information of a second instance after upgrade from a scheduling system according to the upgrade instruction; obtaining a copy instance from the copy module according to the upgrade instruction, and deploying the copy instance in the name server; the control copy instance copies the flow data sent by the upstream server to the name server to the second instance; and monitoring whether the second instance in the scheduling system is migrated, and if so, deleting the copy instance deployed in the name server. According to the method and the device for copying the flow data, whether the second instance is migrated or not is monitored, if so, the copy instance used for copying the flow to the second instance is deleted, the effect of automatically deleting the copy instance can be achieved, and the tcpcopy is not required to be manually adjusted, so that the process of copying the flow data is simpler.

Description

Method, apparatus and computer readable storage medium for copying traffic data
Technical Field
The invention relates to a flow copying technology, in particular to a flow data copying method, a flow data copying device and a computer readable storage medium, and belongs to the field of computers.
Background
Currently, as the internet service is increasingly widely involved, a large number of servers are deployed by many internet enterprises, and instances for implementing service functions are deployed in the servers. With upgrading and iteration of internet service, deployment examples need to be upgraded.
And the updated instance may have undiscovered bug, which results in the influence of business and the normal use of the user. In order to ensure that the service is not affected in the upgrading process, the scheme adopted in the prior art is to store the upgraded instance in a test server, then start an open source tool tcpcopy (a tool for requesting copying) arranged in an online server, copy tcp flow data in the online server into the test server through the tcpcopy, enable the instance in the test server to test according to the tcp flow data, stop the copying step of the online server after the test is passed, and deploy the updated instance into the online server.
However, the applicant has found that in order to enable the individual instances in the server to access each other, many internet enterprises are provided with a scheduling system which enables the individual instances to access each other by their addresses. However, a major characteristic of the scheduling system is that the physical host in which the instance is located is not fixed, and the instance may be migrated to other physical hosts due to various reasons such as downtime, priority, etc., so when the updated instance is migrated to other test servers, tcpcopy in the online server needs to be restarted, and frequent restarting of tcpcopy may cause complicated steps in the upgrading process, increase workload of staff, and further make the upgrading process inefficient.
Disclosure of Invention
The invention provides a method, a device and a computer readable storage medium for copying flow data, which can achieve the effect of automatically deleting the copy instance by monitoring whether the second instance is migrated or not and deleting the copy instance for copying the flow to the second instance if the second instance is migrated, and does not need to manually adjust tcpcopy, thereby simplifying the process of copying the flow data.
A first aspect of the present invention provides a method of traffic data copying, comprising:
receiving an upgrade instruction, and acquiring information of a first instance before upgrade and information of a second instance after upgrade from a dispatching system according to the upgrade instruction;
obtaining a copy instance from a copy module according to the upgrading instruction, and deploying the copy instance in a name server;
controlling the copying instance to copy the flow data sent by the upstream server to the name server to the second instance;
and monitoring whether the second instance in the scheduling system is migrated, and if so, deleting the copy instance deployed in the name server.
Another aspect of the present invention provides an apparatus for copying traffic data, comprising:
the receiving module is used for receiving the upgrade instruction;
the acquisition module is used for acquiring the information of the first instance before upgrading and the information of the second instance after upgrading from the scheduling system according to the upgrading instruction;
the acquisition module is also used for acquiring a copy instance from the copy module according to the upgrading instruction;
the deployment module is used for deploying the copy instance in the name server;
the control module is used for controlling the copying instance to copy the flow data sent by the upstream server to the name server to the second instance;
and the monitoring module is used for monitoring whether the second instance in the scheduling system is migrated, and if so, deleting the copy instance deployed in the name server.
Yet another aspect of the present invention provides a computer-readable storage medium comprising: on which a computer program is stored,
the computer program is executed by a processor to implement any of the methods described above.
The flow data copying method, the flow data copying device and the computer readable storage medium have the technical effects that:
the method, the device and the computer readable storage medium for copying the flow data provided by the embodiment comprise the steps of receiving an upgrade instruction, and acquiring information of a first instance before upgrade and information of a second instance after upgrade from a dispatching system according to the upgrade instruction; obtaining a copy instance from the copy module according to the upgrade instruction, and arranging the copy instance in the name server, and controlling the copy instance to copy flow data sent to the name server by the upstream server to the second instance; and monitoring whether the second instance in the scheduling system is migrated, and if so, deleting the copy instance deployed in the name server. In the scheme of the embodiment, if the second instance is migrated, the copy instance can be automatically deleted without manually starting tcpcopy, so that the process of copying the flow data is simpler. Meanwhile, the scheme provided by the embodiment does not need to install tcpcopy in an upstream server and install interrupt in an auxiliary server matched with the upstream server, so that the scheme provided by the embodiment is higher in efficiency in the implementation process, and the upgrading efficiency of the whole instance can be improved.
Drawings
FIG. 1 is a flow chart illustrating a method of traffic data copying according to an exemplary embodiment of the present invention;
FIG. 2 is a flow chart illustrating a method of traffic data copying according to another exemplary embodiment of the present invention;
FIG. 3 is a block diagram of an apparatus for traffic data copying, according to an exemplary embodiment of the present invention;
fig. 4 is a block diagram of an apparatus for traffic data copying according to another exemplary embodiment of the present invention.
Detailed Description
FIG. 1 is a flow chart illustrating a method of traffic data copying according to an exemplary embodiment of the present invention.
As shown in fig. 1, the method for copying traffic data provided in this embodiment includes:
step 101, receiving an upgrade instruction, and acquiring information of a first instance before upgrade and information of a second instance after upgrade from a dispatching system according to the upgrade instruction.
The method provided in this embodiment may be stored in a device having a computing function, and the processor in the device may be caused to execute the method provided in this embodiment, so that the device may execute the method provided in this embodiment. An upgrade instruction may be sent to the device by the user, where the upgrade instruction may include a module name that needs to be upgraded, a version number before upgrade, a version number after upgrade, and so on. Multiple instances may be included in a module. The name of the instance that needs to be upgraded may be determined from the name of the module.
Specifically, the user may send the upgrade instruction by operating the device storing the method provided in this embodiment, where the module name is input to obtain the instance name and the version numbers before and after the upgrade. The device can also scan and detect, when detecting the modules or instances with the same names and higher version numbers, the device automatically generates an upgrade instruction, so that the user can realize the effect of automatic flow data copying after uploading the upgraded second instance to the dispatching system.
Further, after receiving the upgrade instruction, analyzing the module or instance information to be upgraded, and obtaining the information of the first instance before upgrade and the information of the second instance after upgrade from the scheduling system according to the analyzed result. The scheduling system can realize the function of rapidly and correctly deploying examples or modules in a plurality of computers, for example, examples A are deployed in a main computer and a standby computer at the same time, and when the main computer is down, the scheduling system can automatically start the examples A in the standby computers, so that the whole system can normally operate.
In practical application, the first instance information and the second instance information may include: instance name, IP address where the instance is located (Internet Protocol, protocol for interconnection between networks), etc. In general, the plurality of instances may be updated, and at this time, information of the plurality of first instances and the plurality of second instances may be acquired.
Step 102, obtaining the copy instance from the copy module according to the upgrade instruction, and deploying the copy instance in the name server.
Wherein, the copy module can provide a high-performance copy scheme, and only needs to be started independently. The copy module can generate a copy instance according to the instruction, and can send a request for generating the copy instance to the copy module according to the upgrade instruction, and the copy module obtains the corresponding copy instance after generating the copy instance. If multiple instances are updated, multiple copy instances need to be acquired. For example, if N first instances need to be upgraded to second instances, N copy instances need to be acquired, and each copy instance is used for copying traffic data corresponding to each upgrade instance, so that confusion in copying traffic data to multiple second instances is avoided.
Specifically, the copy instance is deployed in a name server. For example, the name and address of the copy instance may be stored in a name server. In addition, the deployment of the copy instance at the name server may also be direct storage of the copy instance itself at the name server.
Step 103, the control copy instance copies the traffic data sent from the upstream server to the name server to the second instance.
If the information such as the name and address of the copy instance is stored in the server, when the upstream server sends the flow data to the name server, the name server sends the flow data to the copy instance itself through the address of the copy instance, and the copy instance is controlled to send the flow data to the second instance after receiving the flow data. If the copy instance is installed directly in the name server, the copy instance may directly replicate the traffic data in the name server and send it to the second instance.
Further, if multiple copy instances are included, it may also be determined which traffic data the copy instances copy according to the destination address included in the traffic data. For example, if the first copy instance corresponds to the second instance a of the first instance a, the first copy instance copy destination address is the traffic data of the first instance a.
And 104, monitoring whether the second instance in the scheduling system is migrated, and if so, deleting the copy instance deployed in the name server.
In actual application, whether the second instance in the scheduling system is migrated or not is monitored in real time, namely whether the physical host address where the second instance is located is changed or not is monitored in real time, if yes, the copy instance corresponding to the second instance deployed in the name server is deleted.
If the second instance migrates, the copy instance sends traffic data to the copy instance according to the address of the current second instance, and errors occur. Thus, the copy instance in the name server can be deleted, thereby avoiding system errors.
Specifically, if multiple copy instances are included, a copy instance corresponding to the second instance where migration occurs may also be determined, and the copy instance may be deleted in the name server. If the name and address of the copy instance are stored in the name server, the correspondence may be deleted; if the copy instance is stored directly in the name server, the copy instance is deleted directly.
Further, the method provided in this embodiment may further include the following steps:
and detecting whether the second instance is migrated, if so, re-deploying the copied instance in the name server. If the second instance has migrated, the copy instance may be controlled to continue sending traffic data to the second instance, as described in step 103.
In practical application, after the copy instance is obtained, the copy instance may be stored locally, so that the step of obtaining needs to be re-performed when the second instance completes migration and re-deploys the copy instance.
The second instance is an updated instance, actual flow data generated by the upstream server is sent to the second instance, whether the response result is wrong or not is checked, whether the second instance has a bug or not can be detected, and therefore a version to be updated can be tested by a real environment, and the method is more accurate.
The flow data copying method provided by the embodiment comprises the steps of receiving an upgrade instruction, and acquiring information of a first instance before upgrade and information of a second instance after upgrade from a scheduling system according to the upgrade instruction; obtaining a copy instance from the copy module according to the upgrade instruction, and arranging the copy instance in the name server, and controlling the copy instance to copy flow data sent to the name server by the upstream server to the second instance; and monitoring whether the second instance in the scheduling system is migrated, and if so, deleting the copy instance deployed in the name server. In the scheme of the embodiment, if the second instance is migrated, the copy instance can be automatically deleted without manually starting tcpcopy, so that the process of copying the flow data is simpler. Meanwhile, the scheme provided by the embodiment does not need to install tcpcopy in an upstream server and install interrupt in an auxiliary server matched with the upstream server, so that the scheme provided by the embodiment is higher in efficiency in the implementation process, and the upgrading efficiency of the whole instance can be improved.
Fig. 2 is a flow chart illustrating a method of traffic data copying according to another exemplary embodiment of the present invention.
As shown in fig. 2, the method for copying traffic data provided in this embodiment includes:
step 201, receiving an upgrade instruction, and obtaining information of a first instance before upgrade and information of a second instance after upgrade from a scheduling system according to the upgrade instruction.
Step 201 is similar to the specific principles and implementation of step 101 and will not be described in detail herein.
Step 202, determining the number N of the first instance or the second instance according to the upgrade instruction.
The number N of the first instance or the second instance may be directly determined according to the upgrade instruction, or may be determined according to the result of step 201.
Specifically, when the data information included in the upgrade instruction is the instance information, the number of instances to be upgraded may be directly determined, and if the upgrade instruction includes only the module information and does not include the instance information, the number of instances to be upgraded may be determined according to step 201. Wherein the module includes a plurality of instances.
In step 203, N copy instances are obtained from the copy module, where the copy instances are in one-to-one correspondence with the first instance or the second instance.
Further, a request may be sent to the copy module, where the request includes a number N, so that the copy module generates N copy instances according to the request, and obtains the N copy instances from the copy module. The copy module may also actively send the copy instance to the device executing the method provided in this embodiment after generating the copy instance according to the request.
After the copy instances are obtained, each copy instance may be made to correspond to a pair of pre-upgrade and post-upgrade instances.
In step 204, the copy instance is deployed in the name server, deleting the first instance deployed in the name server.
The copy instance may be deployed and deleted synchronously, or the copy instance may be deployed first and then deleted, or the copy instance may be deleted first and then deleted, which is not limited in this embodiment.
Specifically, the copy instance is deployed in a name server. For example, the name and address of the copy instance may be stored in a name server, and when the upstream server sends traffic data to the name server, the name server may send the traffic data to the copy instance itself via the address of the copy instance, which may send the traffic data to the second instance after it has received it. In addition, the copy instance is deployed on the name server, and the copy instance itself can also be directly stored in the name server, so that the copy instance can directly copy the traffic data in the name server and send the traffic data to the second instance.
Further, the first instance deployed in the name server is deleted. In general, in a scheduling system, each instance is stored in a server of the system, and then the instance and its address are stored in a name server, so that when data traffic data is sent to an upstream server, the traffic data can be sent to the instance by the name server according to the name and address of the instance. Therefore, the first instance deployed in the name server may be deleted, so that the first instance cannot receive the traffic data sent by the upstream server, and then the copy instance deployed in the name server receives the traffic data, specifically, the name server sends the traffic data to the copy instance according to the name and address of the copy instance.
Step 205, the control copy instance copies the flow data sent from the upstream server to the name server to the second instance; the control copy instance copies the traffic data to the first instance.
In practical application, the order of controlling the copy instance to send the traffic data to the first instance and the second instance is not limited, and the traffic data may be sent to the first instance first, or the traffic data may be sent to the second instance first, or both.
Wherein the copy instance may be controlled to receive traffic data sent by the upstream server to the name server. If multiple copy instances are included, which of the traffic data is received by the copy instances may be controlled based on the destination address of the traffic data. And determining a first address where the first instance is located and a second address where the second instance is located according to the information of the first instance and the information of the second instance, so that the copy instance can accurately send the received flow data to the corresponding first instance and second instance.
Specifically, the copy instance is further configured to receive response data returned by the first instance and the second instance according to the traffic data. The first instance is an instance version before upgrade, which may be considered a stable version, while the second instance is an instance version after upgrade, which may be considered a test version. Thus, when the copy instance receives the response data sent by the first instance, the response data can be sent to the upstream server, and the response data is sent to the upstream server. When the copy instance receives the response data sent by the second instance, the data can be directly discarded. Only the response data sent by the first instance is fed back to the upstream server, so that the problem that the bug exists in the second instance and the error data is fed back to the upstream server can be avoided.
Step 206, monitoring whether the first instance and/or the second instance migrate, if so, deleting the copy instance deployed in the name server, and redeploying the first instance in the name server.
Whether the first instance and/or the second instance are migrated or not can be monitored in real time through the scheduling system, if so, traffic data cannot be sent to the first instance according to the current address of the first instance, so that at the moment, a copy instance deployed in the name server is deleted, the name server is controlled, and the first instance is redeployed in the name server so as not to influence an upstream server.
Wherein, the new address of the first instance can be determined according to the scheduling system, and the first instance can be redeployed in the name server according to the determination result.
Specifically, after the first instance is deployed in the name server again, the traffic data sent to the first instance will be sent to the first instance by the name server according to the address of the first instance.
Step 207, detecting whether the first instance and/or the second instance are migrated, if yes, executing step 204.
Further, if the first instance is migrated, detecting whether the first instance is migrated; if the second instance is migrated, whether the second instance is migrated is detected, and if the second instance is migrated, whether the second instance is migrated is detected.
In practice, if the first instance and/or the second instance migrate, then the step of deleting the copy instance and redeploying the first instance is performed in step 206, and therefore, if the first instance and/or the second instance migrate, then step 204 is performed again, the copy instance is redeployed in the name server and the deployed first instance is deleted.
The method provided by the embodiment can further comprise the following steps:
invoking a preset checking scheme, wherein the preset checking scheme is used for checking whether the second instance is normal or not;
if so, deploying the second instance into the name server, and deleting the copy instance in the name server;
if not, deleting the copy instance in the name server, and redeploying the first instance in the name server, and feeding back a message of upgrade failure to a developer.
After a period of time of traffic data copying, the above checking scheme may be executed, if normal, the second instance after the upgrade is deployed, and the copy instance is deleted, so that the traffic copy of this round is ended. If not, the copy instance can be deleted from the name server, and the first instance can be deployed in a overwriting manner so as not to influence the normal operation of the upstream server, and a message of upgrade failure is sent to a developer.
The method for copying the flow data further comprises deleting the first instance before upgrading deployed in the name server, and the flow data is respectively sent to the first instance and the second instance through the copied instance, so that system resources in the name server can be saved. The flow data copying method provided by the embodiment can conveniently execute the flow data copying test under the condition of not affecting the existing service, does not need to log in a large number of physical hosts to execute operation, greatly saves manpower and improves the system robustness during service iteration and upgrading.
Fig. 3 is a block diagram of an apparatus for traffic data copying according to an exemplary embodiment of the present invention.
As shown in fig. 3, the apparatus for copying traffic data provided in this embodiment includes:
a receiving module 31, configured to receive an upgrade instruction;
an obtaining module 32, configured to obtain, from the scheduling system, information of a first instance before upgrading and information of a second instance after upgrading according to the upgrading instruction;
the obtaining module 32 is further configured to obtain a copy instance from a copy module according to the upgrade instruction;
a deployment module 33 for deploying the copy instance in a name server;
a control module 34, configured to control the copy instance to copy traffic data sent from an upstream server to the name server to the second instance;
and a monitoring module 35, configured to monitor whether the second instance in the scheduling system migrates, and if so, the deployment module 33 deletes the copy instance deployed in the name server.
The receiving module 31, the acquiring module 32, the deployment module 33, and the control module 34 are sequentially connected, and the monitoring module 35 is connected with the deployment module 33.
The device for copying the flow data provided by the embodiment comprises the steps of receiving an upgrade instruction, and acquiring information of a first instance before upgrade and information of a second instance after upgrade from a scheduling system according to the upgrade instruction; obtaining a copy instance from the copy module according to the upgrade instruction, and arranging the copy instance in the name server, and controlling the copy instance to copy flow data sent to the name server by the upstream server to the second instance; and monitoring whether the second instance in the scheduling system is migrated, and if so, deleting the copy instance deployed in the name server. In the scheme of the embodiment, if the second instance is migrated, the copy instance can be automatically deleted without manually starting tcpcopy, so that the process of copying the flow data is simpler. Meanwhile, the scheme provided by the embodiment does not need to install tcpcopy in an upstream server and install interrupt in an auxiliary server matched with the upstream server, so that the scheme provided by the embodiment is higher in efficiency in the implementation process, and the upgrading efficiency of the whole instance can be improved.
The specific principle and implementation of the apparatus for copying flow data provided in this embodiment are similar to those of the embodiment shown in fig. 1, and will not be described herein again.
Fig. 4 is a block diagram of an apparatus for traffic data copying according to another exemplary embodiment of the present invention.
As shown in fig. 4, in the apparatus provided in this embodiment, the deployment module 33 is further configured to delete the first instance deployed in the name server;
the control module 34 is further configured to control the copying instance to copy the traffic data to the first instance.
Optionally, the monitoring module 35 is further configured to monitor whether the first instance and/or the second instance migrate, and if so, the deployment module 33 is further configured to delete the copy instance deployed in the name server and redeploy the first instance in the name server.
Optionally, the monitoring module 35 is further configured to:
detecting whether the first instance and/or the second instance has been migrated, if so, the deployment module 33 re-executes the steps of deploying the copy instance in a name server and deleting the first instance deployed in the name server.
Optionally, the obtaining module 32 further includes:
a determining unit 321, configured to determine, according to the upgrade instruction, a number N of the first instance or the second instance;
and an obtaining unit 322, configured to obtain N copy instances from the copy module, where the copy instances are in one-to-one correspondence with the first instance or the second instance.
The device for copying the flow data further comprises a step of deleting the first instance before upgrading, which is deployed in the name server, wherein the flow data is respectively sent to the first instance and the second instance through the copied instance, so that system resources in the name server can be saved. The flow data copying device provided by the embodiment can conveniently execute the flow data copying test under the condition of not affecting the existing service, does not need to log in a large number of physical hosts to execute operation, greatly saves manpower and improves the system robustness during service iteration and upgrading.
The specific principle and implementation of the apparatus for copying flow data provided in this embodiment are similar to those of the embodiment shown in fig. 2, and will not be described herein again.
The present embodiment also provides a computer readable storage medium having stored thereon a computer program for execution by a processor to perform any of the methods of the embodiments shown in fig. 1 or fig. 2.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a computer readable storage medium. The program, when executed, performs steps including the method embodiments described above; and the aforementioned storage medium includes: various media that can store program code, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the invention.

Claims (11)

1. A method for traffic data copying, comprising:
receiving an upgrade instruction, and acquiring information of a first instance before upgrade and information of a second instance after upgrade from a dispatching system according to the upgrade instruction;
obtaining a copy instance from a copy module according to the upgrading instruction, and deploying the copy instance in a name server, wherein the copy instance corresponds to the first instance or the second instance one by one;
controlling the copying instance to copy the flow data sent by the upstream server to the name server to the second instance;
and monitoring whether the second instance in the scheduling system is migrated, and if so, deleting the copy instance deployed in the name server.
2. The method of claim 1, further comprising, after the obtaining the copy instance from the copy module according to the upgrade instruction:
deleting the first instance deployed in the name server;
and controlling the copying instance to copy the flow data to the first instance.
3. The method as recited in claim 2, further comprising:
and monitoring whether the first instance and/or the second instance are migrated, if so, deleting the copy instance deployed in the name server, and redeploying the first instance in the name server.
4. A method according to claim 3, further comprising:
and detecting whether the first instance and/or the second instance are migrated, if yes, re-executing the steps of deploying the copy instance in a name server and deleting the first instance deployed in the name server.
5. The method of any of claims 1-4, wherein obtaining a copy instance from a copy module in accordance with the upgrade instruction comprises:
determining the number N of the first instance or the second instance according to the upgrading instruction;
and obtaining N copy instances from the copy module.
6. An apparatus for traffic data copying, comprising:
the receiving module is used for receiving the upgrade instruction;
the acquisition module is used for acquiring the information of the first instance before upgrading and the information of the second instance after upgrading from the scheduling system according to the upgrading instruction;
the acquisition module is further used for acquiring a copy instance from the copy module according to the upgrading instruction, wherein the copy instance corresponds to the first instance or the second instance one by one;
the deployment module is used for deploying the copy instance in the name server;
the control module is used for controlling the copying instance to copy the flow data sent by the upstream server to the name server to the second instance;
and the monitoring module is used for monitoring whether the second instance in the scheduling system is migrated, and if so, the deployment module deletes the copy instance deployed in the name server.
7. The apparatus of claim 6, wherein the device comprises a plurality of sensors,
the deployment module is further configured to delete the first instance deployed in the name server;
the control module is further configured to control the copying instance to copy the traffic data to the first instance.
8. The apparatus of claim 7, wherein the device comprises a plurality of sensors,
the monitoring module is further configured to monitor whether migration occurs to the first instance and/or the second instance, and if so, the deployment module is further configured to delete the copy instance deployed in the name server and redeploy the first instance in the name server.
9. The apparatus of claim 7, wherein the monitoring module is further to:
and detecting whether the first instance and/or the second instance are migrated, if yes, re-executing the steps of deploying the copy instance in a name server and deleting the first instance deployed in the name server by the deployment module.
10. The apparatus according to any one of claims 6-9, characterized in that the acquisition module further comprises:
a determining unit, configured to determine the number N of the first instances or the second instances according to the upgrade instruction;
and the acquisition unit is used for acquiring N copy instances from the copy module.
11. A computer-readable storage medium, having a computer program stored thereon,
the computer program being executed by a processor to implement any of the methods of claims 1-5.
CN201810164775.0A 2018-02-27 2018-02-27 Method, apparatus and computer readable storage medium for copying traffic data Active CN110196723B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810164775.0A CN110196723B (en) 2018-02-27 2018-02-27 Method, apparatus and computer readable storage medium for copying traffic data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810164775.0A CN110196723B (en) 2018-02-27 2018-02-27 Method, apparatus and computer readable storage medium for copying traffic data

Publications (2)

Publication Number Publication Date
CN110196723A CN110196723A (en) 2019-09-03
CN110196723B true CN110196723B (en) 2023-06-27

Family

ID=67750975

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810164775.0A Active CN110196723B (en) 2018-02-27 2018-02-27 Method, apparatus and computer readable storage medium for copying traffic data

Country Status (1)

Country Link
CN (1) CN110196723B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012142710A (en) * 2010-12-28 2012-07-26 Hitachi Systems Ltd System and method of lan i/f switchover control, and program
CN103838593A (en) * 2012-11-22 2014-06-04 华为技术有限公司 Method and system for restoring virtual machine, controller, server and hosting host
CN104410542A (en) * 2014-11-18 2015-03-11 小米科技有限责任公司 Method and device for simulation test
CN105024970A (en) * 2014-04-18 2015-11-04 中国电信股份有限公司 Method and system for controlling mobile application data copying, client, and server

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6944790B2 (en) * 2001-04-05 2005-09-13 International Business Machines Corporation System and method for collecting and restoring user environment data using removable storage
US20050262494A1 (en) * 2004-05-18 2005-11-24 Bea Systems, Inc. Production redeployment through application versioning
US8122292B2 (en) * 2009-08-19 2012-02-21 Oracle International Corporation Debugging of business flows deployed in production servers
US9916147B2 (en) * 2010-08-17 2018-03-13 International Business Machines Corporation Deployment of a tool for testing migrated applications
CN104935616A (en) * 2014-03-18 2015-09-23 华为技术有限公司 Data processing method, device and ESB system
CN105302731A (en) * 2015-12-10 2016-02-03 北京京东尚科信息技术有限公司 Testing system and method for upgrading website configuration
US10671376B2 (en) * 2016-03-15 2020-06-02 Shenzhen Skyworth-Rgb Electronic Co., Ltd. Server program hot upgrading method and device
US10868883B2 (en) * 2016-06-29 2020-12-15 Nicira, Inc. Upgrading a proxy that decouples network connections from an application during application's downtime

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012142710A (en) * 2010-12-28 2012-07-26 Hitachi Systems Ltd System and method of lan i/f switchover control, and program
CN103838593A (en) * 2012-11-22 2014-06-04 华为技术有限公司 Method and system for restoring virtual machine, controller, server and hosting host
CN105024970A (en) * 2014-04-18 2015-11-04 中国电信股份有限公司 Method and system for controlling mobile application data copying, client, and server
CN104410542A (en) * 2014-11-18 2015-03-11 小米科技有限责任公司 Method and device for simulation test

Also Published As

Publication number Publication date
CN110196723A (en) 2019-09-03

Similar Documents

Publication Publication Date Title
US7694181B2 (en) Automated software testing framework
US8453118B2 (en) Automated multi-operating system testing with virtualization
CN106951345B (en) Consistency test method and device for disk data of virtual machine
US10303458B2 (en) Multi-platform installer
JP6788178B2 (en) Setting support program, setting support method and setting support device
US8086900B2 (en) System, method and computer program product for testing a boot image
CN102035892A (en) System and method for automatically releasing operating system version and automatically updating software package
US10048978B2 (en) Apparatus and method for identifying a virtual machine having changeable settings
WO2017012219A1 (en) Software test method, apparatus and system
CN110727575B (en) Information processing method, system, device and storage medium
US20230161614A1 (en) Detecting vulnerabilities in configuration code of a cloud environment utilizing infrastructure as code
CN109460268B (en) Application parameter configuration method, device and system
CN106897223A (en) A kind of software kit delivery method and device based on continuous integrating
CN106708727B (en) Distributed virus characteristic sample verification method and system
JP2006338225A (en) Automatic installation method of computer
CN111694684A (en) Abnormal construction method and device of storage equipment, electronic equipment and storage medium
CN110196723B (en) Method, apparatus and computer readable storage medium for copying traffic data
CN116594874A (en) Method, device, computer equipment and storage medium for testing availability of running environment
US20240168916A1 (en) Dynamic File Selection Process to Transfer Required Data File Between Different Servers in Near Real-Time
US11720345B2 (en) Pull based inner-loop code deployment
US9239870B1 (en) Multiple instance database auto-configuration for high availability
US11467786B2 (en) Using artificial intelligence to respond to printer error
TW201729021A (en) System structure and deployment method for installing operating systems of a plurality of devices under test
CN114827257A (en) Method, device, equipment and medium for pushing application program of enterprise client
JP5024357B2 (en) Terminal

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200417

Address after: 310052 room 508, floor 5, building 4, No. 699, Wangshang Road, Changhe street, Binjiang District, Hangzhou City, Zhejiang Province

Applicant after: Alibaba (China) Co.,Ltd.

Address before: 510627 Guangdong city of Guangzhou province Whampoa Tianhe District Road No. 163 Xiping Yun Lu Yun Ping square B radio tower 13 layer self unit 01

Applicant before: Guangdong Shenma Search Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant