CN110543381B - Method and device for recovering service of machine translation engine - Google Patents

Method and device for recovering service of machine translation engine Download PDF

Info

Publication number
CN110543381B
CN110543381B CN201910774370.3A CN201910774370A CN110543381B CN 110543381 B CN110543381 B CN 110543381B CN 201910774370 A CN201910774370 A CN 201910774370A CN 110543381 B CN110543381 B CN 110543381B
Authority
CN
China
Prior art keywords
machine translation
translation engine
engine service
time
service
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
CN201910774370.3A
Other languages
Chinese (zh)
Other versions
CN110543381A (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.)
Iol Wuhan Information Technology Co ltd
Original Assignee
Iol Wuhan 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 Iol Wuhan Information Technology Co ltd filed Critical Iol Wuhan Information Technology Co ltd
Priority to CN201910774370.3A priority Critical patent/CN110543381B/en
Publication of CN110543381A publication Critical patent/CN110543381A/en
Application granted granted Critical
Publication of CN110543381B publication Critical patent/CN110543381B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1479Generic software techniques for error detection or fault masking

Abstract

The invention provides a method and a device for recovering machine translation engine service, wherein the method comprises the following steps: if the machine translation engine service is monitored to be abnormal, calculating the suspension time of the machine translation engine service at this time according to the last suspension time of the machine translation engine service, the times of the machine translation engine service abnormal in the latest preset time window and the time of each abnormal time; suspending the machine translation engine service according to the suspension duration of the machine translation engine service; and if the suspension duration of the machine translation engine service reaches the suspension duration of the time, restoring the machine translation engine service and monitoring the machine translation engine service. The invention realizes the automatic suspension and recovery of the machine translation engine service, and has short recovery time and small monitoring load.

Description

Method and device for recovering service of machine translation engine
Technical Field
The invention belongs to the technical field of machine translation, and particularly relates to a method and a device for recovering service of a machine translation engine.
Background
Machine translation, also known as automatic translation, is the process of converting one natural language, the source language, to another natural language, the target language, using a computer. The machine translation engine is the main program that performs machine translation.
In the process of calling the machine translation engine according to the machine translation matrix, problems of network timeout, server abnormity and the like occur, and the recovery time of the problems is unpredictable. And stopping calling a certain machine translation engine when a problem occurs in calling the machine translation engine. The time to stop the call is typically in a continuously increasing or exponentially increasing manner. And if the calling is still problematic, the calling is continued for 3 seconds, and so on until the calling is successful. The calling stop time is sequentially 2, 4 and 8 in an exponential increasing mode until the calling is successful.
When a problem occurs in the calling of a machine translation engine, the conventional method for recovering the service of the machine translation engine continuously increases the calling time, so that the service recovery time of the machine translation engine is too long; the number of times of calling the machine translation engine is large, and resources are wasted.
Disclosure of Invention
In order to overcome the problems of long recovery time and resource waste of the existing method for recovering the service of the machine translation engine or at least partially solve the problems, embodiments of the present invention provide a method and an apparatus for recovering the service of the machine translation engine.
According to a first aspect of an embodiment of the present invention, a method for recovering service of a machine translation engine is provided, including:
if the machine translation engine service is monitored to be abnormal, calculating the suspension time of the machine translation engine service at this time according to the last suspension time of the machine translation engine service, the times of the machine translation engine service abnormal in the latest preset time window and the time of each abnormal time;
suspending the machine translation engine service according to the suspension duration of the machine translation engine service;
and if the suspension duration of the machine translation engine service reaches the suspension duration of the time, restoring the machine translation engine service and monitoring the machine translation engine service.
According to a second aspect of the embodiments of the present invention, there is provided a device for recovering service of a machine translation engine, including:
the system comprises a calculation module, a processing module and a display module, wherein the calculation module is used for calculating the suspension duration of the machine translation engine service at this time according to the last suspension duration of the machine translation engine service, the abnormal times of the machine translation engine service in a latest preset time window and the abnormal duration of each time when the machine translation engine service is monitored to be abnormal;
the suspension module is used for suspending the machine translation engine service according to the suspension duration of the machine translation engine service at this time;
and the recovery module is used for recovering the machine translation engine service and monitoring the machine translation engine service if the suspension duration of the machine translation engine service reaches the suspension duration of the time.
According to a third aspect of the embodiments of the present invention, there is also provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor calls the program instruction to be able to execute the method for recovering a machine translation engine service provided in any one of the various possible implementations of the first aspect.
According to a fourth aspect of embodiments of the present invention, there is also provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method for machine translation engine service restoration provided in any one of the various possible implementations of the first aspect.
The embodiment of the invention provides a method and a device for recovering machine translation engine service, wherein when the machine translation engine service is monitored to be abnormal, the method calculates the suspension time of the machine translation engine service at this time according to the last suspension time of the machine translation engine service, the times of the machine translation engine service abnormality in a latest preset time window and the time of each abnormality, recovers the machine translation engine service when the suspension time of the machine translation engine service reaches the suspension time at this time, and continuously monitors whether the machine translation engine service is abnormal, so that on one hand, the automatic suspension and recovery of the machine translation engine service are realized; on the other hand, the machine translation engine service is suspended and recovered according to the previous suspension time and the current suspension time calculated according to historical abnormal data under the time window, so that the machine translation engine service is ensured to be recovered as soon as possible through a small monitoring load in a reasonable time range.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic overall flow chart of a method for recovering a service of a machine translation engine according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for recovering services of a machine translation engine according to another embodiment of the present invention;
fig. 3 is a schematic diagram of an overall structure of a service recovery apparatus for a machine translation engine according to an embodiment of the present invention;
fig. 4 is a schematic view of an overall structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a schematic overall flow diagram of a method for recovering service of a machine translation engine according to an embodiment of the present invention, where the method includes: s101, if the machine translation engine service is monitored to be abnormal, calculating the current suspension time of the machine translation engine service according to the last suspension time of the machine translation engine service, the times of the machine translation engine service abnormal in the latest preset time window and the time of each abnormal time;
the abnormal service of the machine translation engine refers to the condition that the machine translation engine is called according to the machine translation matrix and fails, and various reasons for the failure of calling the machine translation engine exist, such as network timeout, server abnormity and the like. The machine translation matrix comprises translation evaluation results of a plurality of machine translation engines. The translation evaluation comprises evaluation on translation quality, translation cost, translation stability, translation efficiency and user feedback, and the translation evaluation result of each machine translation engine can be divided according to industry and translation types. And selecting the optimal machine translation engine from the plurality of machine translation engines according to the machine translation matrix to call, thereby achieving a better translation effect.
And when the machine translation engine service is abnormal, suspending the machine translation engine service, thereby stopping calling the machine translation engine. The method for calculating the suspension duration of the machine translation engine service at this time includes calculating the suspension duration of the machine translation engine service at this time according to the previous suspension duration of the machine translation engine service, the number of times of occurrence of the abnormality of the machine translation engine service in a specified time window and the duration of each occurrence of the abnormality. The hang time of this time is related to the last hang time and historical abnormal data of the machine translation engine service under the time window.
The duration of the preset time window is preset, for example, three days, but the latest preset time window is dynamically changed along with the time lapse, for example, the latest three days, so that the historical abnormal data in the latest preset time window is updated, and the obtained suspension time is more accurate.
S102, suspending the machine translation engine service according to the suspension duration of the machine translation engine service at this time;
and suspending the machine translation engine service according to the calculated suspension time length, thereby realizing the fusing operation of the machine translation engine service.
S103, if the suspension duration of the machine translation engine service reaches the suspension duration of the time, the machine translation engine service is recovered, and the machine translation engine service is monitored.
And when the suspension time length of the machine translation engine service reaches the calculated suspension time length, restoring the machine translation engine service, thereby ensuring that the machine translation engine service is automatically restored as soon as possible through smaller monitoring load within a reasonable time range. Particularly, when the machine translation engine is used in a large scale, the load of the service of the machine translation engine can be reduced, and the average recovery time of the machine translation engine can be reduced.
And when the recovery is successful, continuously monitoring the machine translation engine service, judging that the machine translation engine service is abnormal, and iteratively executing the steps of monitoring and controlling the machine translation engine service until the machine translation engine service is normal.
When the machine translation engine service is monitored to be abnormal, the current suspension time of the machine translation engine service is calculated according to the previous suspension time of the machine translation engine service, the times of the machine translation engine service abnormality in a latest preset time window and the time of each abnormality, the machine translation engine service is recovered when the suspension time of the machine translation engine service reaches the current suspension time, and whether the machine translation engine service is abnormal or not is continuously monitored, so that on one hand, the automatic suspension and recovery of the machine translation engine service are realized; on the other hand, the machine translation engine service is suspended and recovered according to the previous suspension time and the current suspension time calculated according to historical abnormal data under the time window, so that the machine translation engine service is ensured to be recovered as soon as possible through a small monitoring load in a reasonable time range.
On the basis of the foregoing embodiment, in this embodiment, the step of calculating the suspension duration of the machine translation engine service this time according to the last suspension duration of the machine translation engine service, the number of times that the machine translation engine service is abnormal in the latest preset time window, and the duration of each abnormal occurrence specifically includes: calculating the average value of the time length of all times of abnormal service of the machine translation engine in the latest preset time window; determining a verification parameter according to the number of times of abnormity of the machine translation engine service in the latest preset time window and the average time length value; and calculating the suspension time of the machine translation engine service at this time according to the previous suspension time of the machine translation engine service, the check parameter and a preset adjustment coefficient.
The verification parameter lambda depends on the number of times of abnormal service occurrence of the machine translation engine in the latest preset time window and the average value of the time length of all abnormal service occurrences. The check parameter is in direct proportion to the number of times of abnormity of the machine translation engine service in the latest preset time window and the average value of the time length of all the times of abnormity, namely, the larger the number of times of abnormity, the larger the average value of the time length of all the times of abnormity, and the larger the check parameter. The preset adjustment coefficient alpha is set according to actual requirements.
And constructing an Exponential Decay Model (EDM) according to the last hang time of the machine translation engine service, the check parameters and the preset adjustment coefficient, and calculating the hang time of the machine translation engine service at this time by using the EDM.
On the basis of the foregoing embodiment, in this embodiment, the suspend duration of the machine translation engine service at this time is calculated according to the suspend duration of the machine translation engine service at the last time, the check parameter, and a preset adjustment coefficient by using the following formula:
y=λ*ln(α)*(α^x);
wherein y is the suspension duration of the machine translation engine service at this time, λ is the check parameter, α is the preset adjustment coefficient, the value range is between 0 and 1, and x is the suspension duration of the machine translation engine service at the last time.
The larger the number of times of abnormity of the machine translation engine service in the latest preset time window is, the larger the average value of the time length of all the times of abnormity is, the larger the verification parameter is, and the longer the suspension time length at this time is. Because the value range of alpha is between 0 and 1, the last suspension time length of the machine translation engine service and the current suspension time length are in inverse proportion, so that the suspension time length of the machine translation engine service cannot be increased or reduced all the time.
On the basis of the foregoing embodiments, in this embodiment, the step of recovering the service of the machine translation engine further includes: if the machine translation engine service is failed to recover, calculating the suspension duration of the machine translation engine service at this time according to the last suspension duration of the machine translation engine service, the times of abnormity of the machine translation engine service in a latest preset time window and the duration of each abnormity; and suspending the machine translation engine service according to the suspension duration of the machine translation engine service.
Specifically, under the condition that the server cannot be recovered, the same method as that for the condition that the machine translation engine service is abnormal is adopted to calculate the suspension time length of the time, and the machine translation engine service is suspended and recovered according to the suspension time length of the time.
On the basis of the foregoing embodiments, the step of monitoring the machine translation engine service in this embodiment specifically includes: constructing a machine translation matrix, and calling the machine translation engine service according to the machine translation matrix; if the calling fails, acquiring that the service of the machine translation engine is abnormal; otherwise, the machine translation engine is informed to be normal in service.
As shown in fig. 2, a machine translation engine is called according to a machine translation matrix, whether the service of the machine translation engine is abnormal is determined according to the calling result, and if the service of the machine translation engine is abnormal, the abnormality is placed in a service abnormal pool of the machine translation engine. And calculating the suspension time based on the EDM model, and suspending the service of the machine translation engine until the suspension time reaches the suspension duration. The machine translation engine service is then restored and the machine translation engine heartbeat is monitored, i.e., if the machine translation engine is restored. If the machine translation matrix is recovered, continuing to call the machine translation engine according to the machine translation matrix, and judging whether the service of the machine translation engine is abnormal or not according to a call result; if not, continuing to calculate the suspension time based on the EDM model, and suspending and recovering the machine translation engine service according to the suspension time.
In another embodiment of the present invention, a machine translation engine service recovery apparatus is provided, which is used to implement the methods in the foregoing embodiments. Therefore, the descriptions and definitions in the embodiments of the foregoing machine translation engine service recovery method can be used for understanding the respective execution modules in the embodiments of the present invention. Fig. 3 is a schematic diagram of an overall structure of a device for recovering a machine translation engine service according to an embodiment of the present invention, where the device includes a computing module 301, a suspending module 302, and a recovering module 303, where:
the calculation module 301 is configured to, when it is monitored that a machine translation engine service is abnormal, calculate a suspension time of the machine translation engine service this time according to a last suspension time of the machine translation engine service, a number of times that the machine translation engine service is abnormal within a latest preset time window and a time that the machine translation engine service is abnormal each time;
the abnormal service of the machine translation engine refers to the condition that the calling of the machine translation engine according to the machine translation matrix fails. And when the machine translation engine service is abnormal, suspending the machine translation engine service, thereby stopping calling the machine translation engine. The calculating module 301 calculates the suspension duration of the machine translation engine service this time according to the last suspension duration of the machine translation engine service, the number of times that the machine translation engine service is abnormal in the specified time window and the duration of each time that the machine translation engine service is abnormal, which is not limited to the calculating method in this embodiment. The hang time of this time is related to the last hang time and historical abnormal data of the machine translation engine service under the time window.
The suspending module 302 is configured to suspend the machine translation engine service according to a suspension duration of the machine translation engine service this time;
the suspension module 302 suspends the machine translation engine service according to the calculated suspension duration of this time, thereby implementing the fusing operation of the machine translation engine service.
The recovery module 303 is configured to recover the machine translation engine service and monitor the machine translation engine service if the suspension duration of the machine translation engine service reaches the current suspension duration.
The recovery module 303 recovers the machine translation engine service when the suspension duration of the machine translation engine service reaches the calculated suspension duration of this time, thereby implementing automatic recovery of the machine translation engine service as soon as possible within a reasonable time range through a small monitoring load. Particularly, when the machine translation engine is used in a large scale, the load of the service of the machine translation engine can be reduced, and the average recovery time of the machine translation engine can be reduced.
When the recovery is successful, the recovery module 303 continues to monitor the machine translation engine service, determines that the machine translation engine service is abnormal, and iteratively executes the monitoring and control steps of the machine translation engine service until the machine translation engine service is normal.
When the machine translation engine service is monitored to be abnormal, the current suspension time of the machine translation engine service is calculated according to the previous suspension time of the machine translation engine service, the times of the machine translation engine service abnormality in a latest preset time window and the time of each abnormality, the machine translation engine service is recovered when the suspension time of the machine translation engine service reaches the current suspension time, and whether the machine translation engine service is abnormal or not is continuously monitored, so that on one hand, the automatic suspension and recovery of the machine translation engine service are realized; on the other hand, the machine translation engine service is suspended and recovered according to the previous suspension time and the current suspension time calculated according to historical abnormal data under the time window, so that the machine translation engine service is ensured to be recovered as soon as possible through a small monitoring load in a reasonable time range.
On the basis of the foregoing embodiment, the calculating module in this embodiment is specifically configured to: calculating the average value of the time length of all times of abnormal service of the machine translation engine in the latest preset time window; determining a verification parameter according to the number of times of abnormity of the machine translation engine service in the latest preset time window and the average time length value; and calculating the suspension time of the machine translation engine service at this time according to the previous suspension time of the machine translation engine service, the check parameter and a preset adjustment coefficient.
On the basis of the foregoing embodiment, in this embodiment, the calculation module specifically calculates the suspension duration of the machine translation engine service this time according to the suspension duration of the machine translation engine service last time, the check parameter, and a preset adjustment coefficient by using the following formula:
y=λ*ln(α)*(α^x);
wherein y is the suspension duration of the machine translation engine service at this time, λ is the check parameter, α is the preset adjustment coefficient, the value range is between 0 and 1, and x is the suspension duration of the machine translation engine service at the last time.
On the basis of the above embodiments, in this embodiment, the check parameter is proportional to the number of times and the average value of the durations.
On the basis of the foregoing embodiments, the recovery module in this embodiment is further configured to: if the machine translation engine service is failed to recover, calculating the suspension duration of the machine translation engine service at this time according to the last suspension duration of the machine translation engine service, the times of abnormity of the machine translation engine service in a latest preset time window and the duration of each abnormity; and suspending the machine translation engine service according to the suspension duration of the machine translation engine service.
On the basis of the foregoing embodiment, the recovery module in this embodiment is specifically configured to: constructing a machine translation matrix, and calling the machine translation engine service according to the machine translation matrix; if the calling fails, acquiring that the service of the machine translation engine is abnormal; otherwise, the machine translation engine is informed to be normal in service.
The embodiment provides an electronic device, and fig. 4 is a schematic view of an overall structure of the electronic device according to the embodiment of the present invention, where the electronic device includes: at least one processor 401, at least one memory 402, and a bus 403; wherein the content of the first and second substances,
the processor 401 and the memory 402 communicate with each other via a bus 403;
the memory 402 stores program instructions executable by the processor 401, and the processor calls the program instructions to perform the methods provided by the above method embodiments, for example, the methods include: if the machine translation engine service is monitored to be abnormal, calculating the suspension time of the machine translation engine service at this time according to the last suspension time of the machine translation engine service, the times of the machine translation engine service abnormal in the latest preset time window and the time of each abnormal time; suspending the machine translation engine service according to the suspension duration of the machine translation engine service; and if the suspension duration of the machine translation engine service reaches the suspension duration of the time, restoring the machine translation engine service and monitoring the machine translation engine service.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the methods provided by the above method embodiments, for example, including: if the machine translation engine service is monitored to be abnormal, calculating the suspension time of the machine translation engine service at this time according to the last suspension time of the machine translation engine service, the times of the machine translation engine service abnormal in the latest preset time window and the time of each abnormal time; suspending the machine translation engine service according to the suspension duration of the machine translation engine service; and if the suspension duration of the machine translation engine service reaches the suspension duration of the time, restoring the machine translation engine service and monitoring the machine translation engine service.
Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the apparatus are merely illustrative, and the 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (7)

1. A method for recovering service of a machine translation engine is characterized by comprising the following steps:
if the machine translation engine service is monitored to be abnormal, calculating the suspension time of the machine translation engine service at this time according to the last suspension time of the machine translation engine service, the times of the machine translation engine service abnormal in the latest preset time window and the time of each abnormal time;
suspending the machine translation engine service according to the suspension duration of the machine translation engine service;
if the suspension duration of the machine translation engine service reaches the suspension duration of the time, recovering the machine translation engine service and monitoring the machine translation engine service;
the step of calculating the suspension duration of the machine translation engine service at this time according to the last suspension duration of the machine translation engine service, the number of times of occurrence of the abnormality of the machine translation engine service in the latest preset time window and the duration of each occurrence of the abnormality specifically includes:
calculating the average value of the time length of all times of abnormal service of the machine translation engine in the latest preset time window;
determining a verification parameter according to the number of times of abnormity of the machine translation engine service in the latest preset time window and the average time length value;
calculating the suspension duration of the machine translation engine service at this time according to the previous suspension duration of the machine translation engine service, the check parameter and a preset adjustment coefficient;
calculating the suspension duration of the machine translation engine service at this time according to the suspension duration of the machine translation engine service at the last time, the check parameter and a preset adjustment coefficient by the following formula:
y=λ*ln(α)*(α^x);
wherein y is the suspension duration of the machine translation engine service at this time, λ is the check parameter, α is the preset adjustment coefficient, the value range is between 0 and 1, and x is the suspension duration of the machine translation engine service at the last time.
2. The machine translation engine service recovery method of claim 1, wherein the verification parameter is proportional to the number of times and the average duration.
3. The method for machine translation engine service recovery according to any of claims 1 or 2, wherein the step of recovering the machine translation engine service further comprises:
if the machine translation engine service is failed to recover, calculating the suspension duration of the machine translation engine service at this time according to the last suspension duration of the machine translation engine service, the times of abnormity of the machine translation engine service in a latest preset time window and the duration of each abnormity;
and suspending the machine translation engine service according to the suspension duration of the machine translation engine service.
4. The method for recovering machine translation engine service according to claim 3, wherein the step of monitoring the machine translation engine service specifically comprises:
constructing a machine translation matrix, and calling the machine translation engine service according to the machine translation matrix;
if the calling fails, acquiring that the service of the machine translation engine is abnormal; otherwise, the machine translation engine is informed to be normal in service.
5. A machine translation engine service recovery apparatus, comprising:
the system comprises a calculation module, a processing module and a display module, wherein the calculation module is used for calculating the suspension duration of the machine translation engine service at this time according to the last suspension duration of the machine translation engine service, the abnormal times of the machine translation engine service in a latest preset time window and the abnormal duration of each time when the machine translation engine service is monitored to be abnormal;
the suspension module is used for suspending the machine translation engine service according to the suspension duration of the machine translation engine service at this time;
the recovery module is used for recovering the machine translation engine service and monitoring the machine translation engine service if the suspension duration of the machine translation engine service reaches the suspension duration of the time;
the calculation module is specifically configured to:
calculating the average value of the time length of all times of abnormal service of the machine translation engine in the latest preset time window;
determining a verification parameter according to the number of times of abnormity of the machine translation engine service in the latest preset time window and the average time length value;
calculating the suspension duration of the machine translation engine service at this time according to the previous suspension duration of the machine translation engine service, the check parameter and a preset adjustment coefficient;
calculating the suspension duration of the machine translation engine service at this time according to the suspension duration of the machine translation engine service at the last time, the check parameter and a preset adjustment coefficient by the following formula:
y=λ*ln(α)*(α^x);
wherein y is the suspension duration of the machine translation engine service at this time, λ is the check parameter, α is the preset adjustment coefficient, the value range is between 0 and 1, and x is the suspension duration of the machine translation engine service at the last time.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program implements the steps of the machine translation engine service recovery method according to any of claims 1 to 4.
7. A non-transitory computer readable storage medium having stored thereon a computer program, which when executed by a processor, performs the steps of the machine translation engine service restoration method according to any of claims 1 to 4.
CN201910774370.3A 2019-08-21 2019-08-21 Method and device for recovering service of machine translation engine Active CN110543381B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910774370.3A CN110543381B (en) 2019-08-21 2019-08-21 Method and device for recovering service of machine translation engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910774370.3A CN110543381B (en) 2019-08-21 2019-08-21 Method and device for recovering service of machine translation engine

Publications (2)

Publication Number Publication Date
CN110543381A CN110543381A (en) 2019-12-06
CN110543381B true CN110543381B (en) 2022-02-22

Family

ID=68711731

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910774370.3A Active CN110543381B (en) 2019-08-21 2019-08-21 Method and device for recovering service of machine translation engine

Country Status (1)

Country Link
CN (1) CN110543381B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855067A (en) * 2005-04-28 2006-11-01 华为技术有限公司 Task hung-state monitoring method in realtime operation system
CN104426696A (en) * 2013-08-29 2015-03-18 深圳市腾讯计算机系统有限公司 Fault processing method and device
CN107040563A (en) * 2016-02-04 2017-08-11 阿里巴巴集团控股有限公司 Asynchronous service processing method and server
CN108710553A (en) * 2018-05-08 2018-10-26 国家计算机网络与信息安全管理中心 A kind of detecting system and method for application server reliability
CN109240765A (en) * 2018-08-28 2019-01-18 中国联合网络通信集团有限公司 Blowout method, device, equipment and the computer readable storage medium of Service Source
CN109784659A (en) * 2018-12-18 2019-05-21 东软集团股份有限公司 Processing method, device, storage medium and the electronic equipment of service request

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10565104B2 (en) * 2017-08-01 2020-02-18 International Business Machines Corporation System and method to manage and share managed runtime memory for JAVA virtual machine

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855067A (en) * 2005-04-28 2006-11-01 华为技术有限公司 Task hung-state monitoring method in realtime operation system
CN104426696A (en) * 2013-08-29 2015-03-18 深圳市腾讯计算机系统有限公司 Fault processing method and device
CN107040563A (en) * 2016-02-04 2017-08-11 阿里巴巴集团控股有限公司 Asynchronous service processing method and server
CN108710553A (en) * 2018-05-08 2018-10-26 国家计算机网络与信息安全管理中心 A kind of detecting system and method for application server reliability
CN109240765A (en) * 2018-08-28 2019-01-18 中国联合网络通信集团有限公司 Blowout method, device, equipment and the computer readable storage medium of Service Source
CN109784659A (en) * 2018-12-18 2019-05-21 东软集团股份有限公司 Processing method, device, storage medium and the electronic equipment of service request

Also Published As

Publication number Publication date
CN110543381A (en) 2019-12-06

Similar Documents

Publication Publication Date Title
KR101888029B1 (en) Method and system for monitoring virtual machine cluster
CN110109741B (en) Method and device for managing circular tasks, electronic equipment and storage medium
WO2017107656A1 (en) Virtualized network element failure self-healing method and device
KR20200078328A (en) Systems and methods of monitoring software application processes
CN111126631A (en) Network health judgment method and device
US20230029198A1 (en) Scheduling complex jobs in a distributed network
CN110543381B (en) Method and device for recovering service of machine translation engine
CN109639490B (en) Downtime notification method and device
CN112860504A (en) Monitoring method and device, computer storage medium and electronic equipment
JP6539974B2 (en) Failure notification device, failure notification method and failure notification program
CN113590287B (en) Task processing method, device, equipment, storage medium and scheduling system
JP5613570B2 (en) Batch job delay warning automatic alert system, automatic alert method, and program therefor
CN109165027A (en) VME operating system installation method, device, equipment and readable storage medium storing program for executing
CN112269693B (en) Node self-coordination method, device and computer readable storage medium
CN110493071B (en) Message system resource balancing device, method and equipment
CN112804104A (en) Early warning method, device, equipment and medium
CN112000720A (en) Management method and management system for database connection and database connection pool
CN111552545A (en) Task execution processing method and device, electronic equipment and storage medium
CN112929296A (en) High-concurrency service opening method and device based on distributed queue
CN111694705A (en) Monitoring method, device, equipment and computer readable storage medium
CN110716972A (en) Method and device for processing error of high-frequency calling external interface
CN113655964B (en) Data volume processing method, device, electronic equipment, medium and program product
US20210397478A1 (en) Resource-usage notification framework in a distributed computing environment
WO2021234912A1 (en) Control device, control method, and control program
CN117255004A (en) Intelligent operation and maintenance method based on Zabbix and aspect

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
GR01 Patent grant
GR01 Patent grant