CN109413164B - Access service recovery method, device, equipment and readable storage medium - Google Patents
Access service recovery method, device, equipment and readable storage medium Download PDFInfo
- Publication number
- CN109413164B CN109413164B CN201811172483.8A CN201811172483A CN109413164B CN 109413164 B CN109413164 B CN 109413164B CN 201811172483 A CN201811172483 A CN 201811172483A CN 109413164 B CN109413164 B CN 109413164B
- Authority
- CN
- China
- Prior art keywords
- file
- tcp connection
- access service
- software
- information
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000011084 recovery Methods 0.000 title claims abstract description 42
- 238000012544 monitoring process Methods 0.000 claims abstract description 24
- 238000004891 communication Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 9
- 230000000694 effects Effects 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000007726 management method Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 2
- 230000003213 activating effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000004886 process control Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/16—Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L69/163—In-band adaptation of TCP data exchange; In-band control procedures
Abstract
The invention discloses an access service recovery method, which comprises the following steps: monitoring the stored software; after the storage software is monitored to be restarted, reading TCP connection information corresponding to a target access service stored in a nonvolatile memory and file state information corresponding to the TCP connection information; and determining a file to be adjusted by using the file state information, and performing state adjustment on the file to be adjusted so that the storage software recovers the target access service by using the TCP connection information. After the software is restarted, the access service before the software is restarted can be quickly recovered, so that the user connection is not interrupted, the service is continuously provided for the user, and the user experience is improved. The invention also discloses an access service recovery device, equipment and a readable storage medium, and has corresponding technical effects.
Description
Technical Field
The present invention relates to the field of storage technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for recovering an access service.
Background
At present, in the process of upgrading the storage software of the storage system, software needs to be restarted after the software is upgraded. The software restart may cause the original TCP connection to be closed, so that the client may continue to provide the service only after the TCP connection needs to be reestablished.
Meanwhile, the restart of the storage software can cause various states in the storage software to be changed, so that the time for establishing a new TCP connection with the client is longer, and particularly for a part of protocols which do not support reconnection, the service can be continued only by carrying out manual operation again. Software restarts cause service interruptions that affect user experience.
In summary, how to effectively solve the problem of service interruption caused by software restart is a technical problem that needs to be solved urgently by those skilled in the art.
Disclosure of Invention
The invention aims to provide an access service recovery method, device and equipment and a readable storage medium, which can quickly recover TCP connection after software is restarted and continue to provide service for a user, so that the service is not influenced by software restart and the user experience is improved.
In order to solve the technical problems, the invention provides the following technical scheme:
an access service recovery method, comprising:
monitoring the stored software;
after the storage software is monitored to be restarted, reading TCP connection information corresponding to a target access service stored in a nonvolatile memory and file state information corresponding to the TCP connection information;
and determining a file to be adjusted by using the file state information, and performing state adjustment on the file to be adjusted so that the storage software recovers the target access service by using the TCP connection information.
Preferably, monitoring the stored software comprises:
acquiring the current running state of the storage software, and judging whether the storage software is restarted or not;
and acquiring the TCP connection information and the file state information, and storing the TCP connection information and the file state information into the nonvolatile memory.
Preferably, before acquiring the TCP connection information and the file status information, the method further includes:
establishing a TCP connection of the target access service by using a DPDK; wherein the TCP connection is a connection between the storage software and a client.
Preferably, the acquiring the TCP connection information and the file status information includes:
monitoring TCP data transmitted on the TCP connection, and recording TCP connection information; the TCP connection information comprises a TCP communication sequence number and a communication port;
and monitoring the file opening operation of the storage software to obtain file state information.
Preferably, after the TCP connection information and the file status information are stored in the non-volatile memory, the method further includes:
and receiving a closing request of the TCP connection, and updating the TCP connection information and the file state information in the nonvolatile memory.
Preferably, determining a file to be adjusted by using the file state information, and performing state adjustment on the file to be adjusted includes:
acquiring the current state of a file corresponding to the file state information in the storage software, and determining a file to be adjusted, which is not matched with the file state information;
and performing state adjustment on the file to be adjusted so as to enable the current file state to be matched with the file state information.
Preferably, the stored software restarts, including:
upgrading the storage software and restarting;
or after the server is powered off, the stored software is restarted.
An access service recovery apparatus comprising:
the software monitoring module is used for monitoring the stored software;
the information reading module is used for reading TCP connection information corresponding to a target access service stored in a nonvolatile memory and file state information corresponding to the TCP connection information after the storage software is monitored to be restarted;
and the access service recovery module is used for determining a file to be adjusted by using the file state information and performing state adjustment on the file to be adjusted so that the storage software recovers the target access service by using the TCP connection information.
An access service recovery apparatus comprising:
a memory for storing a computer program;
a processor for implementing the steps of the above-mentioned access service recovery method when executing the computer program.
A readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the above-mentioned access service recovery method.
The method provided by the embodiment of the invention is applied to monitor the stored software; after the storage software is monitored to be restarted, reading TCP connection information corresponding to a target access service stored in a nonvolatile memory and file state information corresponding to the TCP connection information; and determining a file to be adjusted by using the file state information, and performing state adjustment on the file to be adjusted so that the storage software recovers the target access service by using the TCP connection information.
And monitoring the storage software, and when detecting that the storage software is restarted, changing various states in the storage software. That is, the connection information of the TCP connection for externally providing the target access service and the file state information, which are stored in the kernel by the storage software before the restart, are lost. And the storage software can not provide the TCP connection established before any more to provide access service to the outside without TCP connection information and corresponding file state information. Since the nonvolatile memory has a characteristic that stored data does not disappear after the current is turned off. Therefore, even after the storage software is restarted, the storage data in the nonvolatile memory still exist. At this time, the TCP connection information corresponding to the target access stored in the non-volatile memory and the file state information corresponding to the TCP connection information may be read. The file state information is used for adjusting the state of the file in the storage software, so that the file state of the storage software can be adjusted to the state before the storage software is restarted. Based on the TCP connection information, the storage software can continue to use the TCP connection established before, and recover the target access service by using the file after the state adjustment, namely, the user access can be responded quickly. That is to say, before the software is restarted, the TCP connection information and the file state information corresponding to the target access service are stored in the nonvolatile memory, and after the software is restarted, the access service before the software is restarted can be quickly restored, so that the user connection is not interrupted, the service is continuously provided for the user, and the user experience is improved.
Accordingly, embodiments of the present invention further provide an access service recovery apparatus, a device, and a readable storage medium corresponding to the access service recovery method, which have the above technical effects and are not described herein again.
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, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an implementation of a method for recovering access service according to an embodiment of the present invention;
FIG. 2 is a block diagram of an access service recovery system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an access service recovery apparatus according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an access service recovery apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an access service recovery apparatus according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
referring to fig. 1, fig. 1 is a flowchart of an access service recovery method according to an embodiment of the present invention, where the method includes the following steps:
and S101, monitoring the stored software.
The monitoring of the storage software can be performed by accessing the storage software or recording input and output data of the storage software. The monitoring content comprises the following steps: storing the running state of the software and storing the service provided by the software. The running state comprises an opening state and a closing state of the storage software. For example, if the storage software cannot be accessed, it is determined that the storage software is in the closed state, and if the storage software can be accessed, it is determined that the storage software is in the open state. Of course, other common software monitoring methods can be used to monitor the operating state of the stored software.
In the embodiment of the present invention, before the storage software is restarted, the TCP connection information corresponding to the target access service and the file state information corresponding to the TCP connection information may be stored in the nonvolatile memory. That is, monitoring the stored software may specifically include:
step one, acquiring the current running state of the storage software, and judging whether the storage software is restarted or not;
and step two, acquiring the TCP connection information and the file state information, and storing the TCP connection information and the file state information into a nonvolatile memory.
For convenience of description, the first step and the second step will be described in combination.
The step one and the step two are not required to be executed sequentially, that is, the step one may be executed first, the step two may be executed first, or the steps may be executed simultaneously. Preferably, an acquisition frequency may be set, and step one is performed continuously, so that the restart of the stored software is detected in time. That is, the execution of the step one can be repeated for a plurality of times, and the current operation state of the storage software can not be acquired after the storage software is determined to be restarted. And for the second step, the TCP connection state and the file state information corresponding to the target access service are obtained only after the second step is executed. The non-volatile memory is a non-volatile memory (NVM), which refers to a computer memory where stored data does not disappear after the current is turned off, and the NVM is classified into two major products, namely ROM and Flash memory, depending on whether the data in the NVM can be rewritten at any time when the computer is used. In the embodiment of the invention, both the ROM and the Flash memory can be used for storing TCP connection information and file state information.
Of course, in order to make the TCP connection information and the file status information in the non-volatile memory in the latest state, the step two may be continuously executed until the software is restarted and the TCP connection information and the file status information of the target access service cannot be obtained. Certainly, in the non-volatile memory, TCP connection information and state information in a file corresponding to a plurality of different periods of the target access service may also be stored, so that when the target access service is recovered, the state of the target access service meeting the current requirement may be selected to be recovered. For example, if a malicious attack or no operation occurs before the storage software is restarted, which causes an exception to the target access service, at this time, in order to enable the recovered target access service to be in a normal state, TCP connection information and file state information corresponding to a plurality of different periods of the target access service may be stored.
In order to obtain TCP connection information, the TCP connections described in the embodiment of the present invention may be all TCP connections established by using a DPDK (intel data plane Development Kit). Before acquiring TCP connection information and file state information, establishing a TCP connection of a target access service by using a DPDK; the TCP connection is a connection between the storage software and the client. The application program of the DPDK runs on a user space, and transmits and receives data packets by using a data plane library provided by the application program, so that the processing process of the data packets by a Linux kernel protocol stack is bypassed. The Linux kernel regards the DPDK application program as a common user mode process, and the compiling, connecting and loading modes of the DPDK application program are not different from those of the common program. TCP connection is established through DPDK, a Linux kernel can be bypassed, and TCP connection information can be obtained directly in a user space.
When the second step is executed, acquiring TCP connection information and file state information, specifically monitoring TCP data transmitted on a TCP connection, and recording TCP connection information; the TCP connection information comprises a TCP communication sequence number and a communication port; and monitoring the file opening operation of the storage software to obtain the file state information. That is, the TCP communication sequence number and the communication port can be obtained by monitoring the TCP data transmitted over the TCP connection, and how to obtain the TCP communication sequence number and the communication port from the TCP data may refer to the TCP communication protocol, which is not described herein again. And monitoring the file opening operation of the storage software to obtain the file state information.
Preferably, in order to reserve enough storage space to store the TCP connection information and the file state information of the access service to be recovered, after the TCP connection information and the file state information are stored in the non-volatile memory, a closing request of the TCP connection may be received, and the TCP connection information and the file state information in the non-volatile memory may be updated. The updating described herein may specifically be to organize a plurality of TCP connection information and file status information of the TCP connection, and only retain the TCP connection status and file status information before closing the TCP connection, so as to recover the access service corresponding to the TCP connection when the TCP close request is an error operation.
S102, after the storage software is monitored to be restarted, reading TCP connection information corresponding to the target access service stored in the nonvolatile memory and file state information corresponding to the TCP connection information.
After the storage software is monitored to be restarted, the TCP connection information corresponding to the target access service and the file state information corresponding to the TCP connection information can be read from the nonvolatile memory. The TCP connection information is information that is necessary to transmit data through a TCP connection, such as a TCP communication sequence number and a communication port. The target access service can be an access service provided by the storage software to any client, and the access service can be a common data storage service, data query, modification and other services. The file state information includes information of files that need to be opened to provide the target access service.
It should be noted that, in the embodiment of the present invention, the reason for restarting the storage software is not limited, that is, the storage software may be upgraded and restarted; or after the server is powered off, the storage software is restarted.
After the TCP connection information and the file state information are read, the operation of step S103 may be performed.
S103, determining a file to be adjusted by using the file state information, and performing state adjustment on the file to be adjusted so that the storage software recovers the target access service by using the TCP connection information.
After the file state information is read, the file state information can be utilized to determine the file to be adjusted, and then the state of the file to be adjusted is adjusted. The file state information includes files to be opened for providing the target access service. And performing state adjustment on the file to be adjusted, namely opening the file to be adjusted. Of course, in practical applications, it may also involve closing a file to provide a target access service. Determining a file to be adjusted and adjusting the file to be adjusted, specifically, acquiring the current state of a file corresponding to file state information in storage software, and determining the file to be adjusted which is not matched with the file state information; and performing state adjustment on the file to be adjusted so as to match the current file state with the file state information.
Preferably, if none of the files in the initial state is in the closed state after the storage software is restarted, the file corresponding to the open state in the file state information may be directly determined as the file to be adjusted, that is, the current state of the file does not need to be acquired.
After the adjustment of the file state is completed, the current file state can be matched with the file state information, namely, the state of the file is restored to the state before the storage software is restarted or the state corresponding to the target access service. At this point, the storage software can recover the target access service using the TCP connection information. Specifically, data interaction can be performed by connecting the TCP established before the restart to the client. Thus, the target access service can be quickly restored after the software is restarted.
The method provided by the embodiment of the invention is applied to monitor the stored software; after the storage software is monitored to be restarted, reading TCP connection information corresponding to a target access service stored in a nonvolatile memory and file state information corresponding to the TCP connection information; and determining a file to be adjusted by using the file state information, and performing state adjustment on the file to be adjusted so that the storage software recovers the target access service by using the TCP connection information.
And monitoring the storage software, and when detecting that the storage software is restarted, changing various states in the storage software. That is, the connection information of the TCP connection for externally providing the target access service and the file state information, which are stored in the kernel by the storage software before the restart, are lost. And the storage software can not provide the TCP connection established before any more to provide access service to the outside without TCP connection information and corresponding file state information. Since the nonvolatile memory has a characteristic that stored data does not disappear after the current is turned off. Therefore, even after the storage software is restarted, the storage data in the nonvolatile memory still exist. At this time, the TCP connection information corresponding to the target access stored in the non-volatile memory and the file state information corresponding to the TCP connection information may be read. The file state information is used for adjusting the state of the file in the storage software, so that the file state of the storage software can be adjusted to the state before the storage software is restarted. Based on the TCP connection information, the storage software can continue to use the TCP connection established before, and recover the target access service by using the file after the state adjustment, namely, the user access can be responded quickly. That is to say, before the software is restarted, the TCP connection information and the file state information corresponding to the target access service are stored in the nonvolatile memory, and after the software is restarted, the access service before the software is restarted can be quickly restored, so that the user connection is not interrupted, the service is continuously provided for the user, and the user experience is improved.
Example two:
in order to better understand the technical solution provided by the embodiment of the present invention, a specific application scenario of recovering the access service after upgrading the stored software will be taken as an example, and the technical solution provided by the embodiment of the present invention will be described in detail below.
Referring to fig. 2, fig. 2 is a schematic diagram of an access service recovery system framework according to an embodiment of the present invention. In concrete implementation, an automatic recovery component, a TCP connection management component, an upgrade control component and a file real-time information management component can be arranged, and the four components mainly have the following functions:
an automatic recovery component: and starting and activating the cache array after the system is upgraded.
A TCP connection management component: and writing the TCP connection information into a nonvolatile memory in real time, in particular to a real-time connection serial number in the TCP data receiving and transmitting process. The purpose is to directly recover TCP connection when the next startup and ensure that data transmission and reception are continued according to the last state.
Upgrading the control assembly: and the process control is carried out on the system upgrading, so that the consistency of the upgrading state is ensured.
The file real-time information management component: the file opening and operation states are written into the nonvolatile memory in real time, so that the file opening state can be recovered in real time when software is started next time after being upgraded, the file states are consistent, and the system response is timely.
Before software upgrading, when operations such as TCP connection access, file operation tasks, TCP receiving and sending and the like exist, the real-time state is updated to the nonvolatile memory, and the real-time performance and consistency of data updating are guaranteed.
And after the software is upgraded and restarted, recovering the state from the nonvolatile memory, particularly recovering the TCP connection state, the serial number and the file opening state. After the TCP and the file are respectively recovered, the service can be continuously provided for the client, and the service of the client is ensured not to be interrupted.
Specifically, the TCP connection can be realized by using the DPDK in the storage software, and the connection information of the network communication is stored in the nonvolatile memory, and the state of the file is stored in the nonvolatile memory in the file operation process; after the upgrade of the storage software is completed, the TCP connection state and the file state need to be recovered from the nonvolatile memory.
The method adopts a nonvolatile memory to store the TCP connection state and the file state, and the implementation process comprises the following steps:
the method comprises the following steps: receiving TCP connection, and storing connection information to a nonvolatile memory;
step two: receiving TCP data, and storing a TCP communication sequence number to a nonvolatile memory;
step three: receiving file opening operation, storing file information to a nonvolatile memory, and continuously receiving TCP data;
step four: and receiving a TCP closing request, and updating the TCP state information in the nonvolatile memory.
After the software is upgraded successfully, recovering the TCP connection state and the file state from the nonvolatile memory, wherein the implementation process comprises the following steps:
the method comprises the following steps: reading TCP information from the nonvolatile memory and reconstructing TCP connection information;
step two: and reading the file opening information in the nonvolatile memory, and rebuilding the file opening information.
After the TCP connection and the file state are recovered, the client can wait for the service access of the client and provide the access service.
Example three:
corresponding to the above method embodiment, the embodiment of the present invention further provides an access service recovery apparatus, and the access service recovery apparatus described below and the access service recovery method described above may be referred to in correspondence.
Referring to fig. 3, the apparatus includes the following modules:
the software monitoring module 101 is used for monitoring the stored software;
the information reading module 102 is configured to read, after it is monitored that the storage software is restarted, TCP connection information corresponding to the target access service stored in the nonvolatile memory and file state information corresponding to the TCP connection information;
and the access service recovery module 103 is configured to determine a file to be adjusted by using the file state information, and perform state adjustment on the file to be adjusted, so that the storage software recovers the target access service by using the TCP connection information.
The device provided by the embodiment of the invention is applied to monitor the stored software; after the storage software is monitored to be restarted, reading TCP connection information corresponding to a target access service stored in a nonvolatile memory and file state information corresponding to the TCP connection information; and determining a file to be adjusted by using the file state information, and performing state adjustment on the file to be adjusted so that the storage software recovers the target access service by using the TCP connection information.
And monitoring the storage software, and when detecting that the storage software is restarted, changing various states in the storage software. That is, the connection information of the TCP connection for externally providing the target access service and the file state information, which are stored in the kernel by the storage software before the restart, are lost. And the storage software can not provide the TCP connection established before any more to provide access service to the outside without TCP connection information and corresponding file state information. Since the nonvolatile memory has a characteristic that stored data does not disappear after the current is turned off. Therefore, even after the storage software is restarted, the storage data in the nonvolatile memory still exist. At this time, the TCP connection information corresponding to the target access stored in the non-volatile memory and the file state information corresponding to the TCP connection information may be read. The file state information is used for adjusting the state of the file in the storage software, so that the file state of the storage software can be adjusted to the state before the storage software is restarted. Based on the TCP connection information, the storage software can continue to use the TCP connection established before, and recover the target access service by using the file after the state adjustment, namely, the user access can be responded quickly. That is to say, before the software is restarted, the TCP connection information and the file state information corresponding to the target access service are stored in the nonvolatile memory, and after the software is restarted, the access service before the software is restarted can be quickly restored, so that the user connection is not interrupted, the service is continuously provided for the user, and the user experience is improved.
In one embodiment of the present invention, the software monitoring module 101 includes:
the restarting judgment unit is used for acquiring the current running state of the storage software and judging whether the storage software is restarted or not;
and the information storage unit is used for acquiring the TCP connection information and the file state information and storing the TCP connection information and the file state information into the nonvolatile memory.
In one embodiment of the present invention, the method further comprises:
the TCP connection establishing module is used for establishing the TCP connection of the target access service by utilizing the DPDK before the TCP connection information and the file state information are acquired; the TCP connection is a connection between the storage software and the client.
In a specific embodiment of the present invention, the information storage unit is specifically configured to monitor TCP data transmitted over a TCP connection and record TCP connection information; the TCP connection information comprises a TCP communication sequence number and a communication port; and monitoring the file opening operation of the storage software to obtain the file state information.
In one embodiment of the present invention, the method further comprises:
and the information updating module is used for receiving a closing request of the TCP connection after the TCP connection information and the file state information are stored in the nonvolatile memory, and updating the TCP connection information and the file state information in the nonvolatile memory.
In a specific embodiment of the present invention, the access service recovery module 103 is specifically configured to obtain a current state of a file corresponding to file state information in the storage software, and determine a file to be adjusted that is not matched with the file state information; and performing state adjustment on the file to be adjusted so as to match the current file state with the file state information.
In one embodiment of the present invention, the storage software is restarted, including upgrading the storage software and restarting it; or after the server is powered off, the storage software is restarted.
Example four:
corresponding to the above method embodiment, an embodiment of the present invention further provides an access service recovery device, and the access service recovery device described below and the access service recovery method described above may be referred to in a corresponding manner.
Referring to fig. 4, the access service resuming apparatus includes:
a memory D1 for storing computer programs;
a processor D2 for implementing the steps of the access service recovery method of the above-described method embodiments when executing the computer program.
Specifically, referring to fig. 5, fig. 5 is a schematic diagram of a specific structure of an access service recovery device provided in this embodiment, which may generate a relatively large difference due to different configurations or performances, and may include one or more processors (CPUs) 322 (e.g., one or more processors) and a memory 332, and one or more storage media 330 (e.g., one or more mass storage devices) storing an application 342 or data 344. Memory 332 and storage media 330 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 330 may include one or more modules (not shown), each of which may include a series of instructions operating on a data processing device. Still further, central processor 322 may be configured to communicate with storage medium 330 to perform a series of instructional operations on access service restoration device 301 within storage medium 330.
Access service restoration device 301 may also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input-output interfaces 358, and/or one or more operating systems 341. Such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
The steps in the access service resuming method described above may be implemented by the structure of the access service resuming device.
Example five:
corresponding to the above method embodiment, an embodiment of the present invention further provides a readable storage medium, and a readable storage medium described below and an access service recovery method described above may be referred to in correspondence with each other.
A readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the access service recovery method of the above-mentioned method embodiment.
The readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other readable storage media capable of storing program codes.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
Claims (8)
1. An access service recovery method, comprising:
monitoring the stored software;
after the storage software is monitored to be restarted, reading TCP connection information corresponding to a target access service stored in a nonvolatile memory and file state information corresponding to the TCP connection information;
determining a file to be adjusted by using the file state information, and performing state adjustment on the file to be adjusted so that the storage software recovers the target access service by using the TCP connection information;
determining a file to be adjusted by using the file state information, and performing state adjustment on the file to be adjusted, wherein the method comprises the following steps:
acquiring the current state of a file corresponding to the file state information in the storage software, and determining a file to be adjusted, which is not matched with the file state information;
performing state adjustment on the file to be adjusted to enable the current file state to be matched with the file state information;
monitoring the stored software, including:
acquiring the current running state of the storage software, and judging whether the storage software is restarted or not;
and acquiring the TCP connection information and the file state information, and storing the TCP connection information and the file state information into the nonvolatile memory.
2. The access service recovery method according to claim 1, further comprising, before acquiring the TCP connection information and the file state information:
establishing a TCP connection of the target access service by using a DPDK; wherein the TCP connection is a connection between the storage software and a client.
3. The method according to claim 2, wherein said obtaining the TCP connection information and the file state information comprises:
monitoring TCP data transmitted on the TCP connection, and recording TCP connection information; the TCP connection information comprises a TCP communication sequence number and a communication port;
and monitoring the file opening operation of the storage software to obtain file state information.
4. The method for recovering access service according to claim 2, after storing the TCP connection information and the file state information in the nonvolatile memory, further comprising:
and receiving a closing request of the TCP connection, and updating the TCP connection information and the file state information in the nonvolatile memory.
5. The access service recovery method according to any one of claims 1 to 4, wherein the storage software restart includes:
upgrading the storage software and restarting;
or after the server is powered off, the stored software is restarted.
6. An access service recovery apparatus, comprising:
the software monitoring module is used for monitoring the stored software;
the information reading module is used for reading TCP connection information corresponding to a target access service stored in a nonvolatile memory and file state information corresponding to the TCP connection information after the storage software is monitored to be restarted;
the access service recovery module is used for determining a file to be adjusted by using the file state information and performing state adjustment on the file to be adjusted so that the storage software recovers the target access service by using the TCP connection information;
the access service recovery module is specifically configured to acquire a current state of a file corresponding to the file state information in the storage software, and determine a file to be adjusted, which is not matched with the file state information; performing state adjustment on the file to be adjusted to enable the current file state to be matched with the file state information;
the software monitoring module comprises:
the restarting judgment unit is used for acquiring the current running state of the storage software and judging whether the storage software is restarted or not;
and the information storage unit is used for acquiring the TCP connection information and the file state information and storing the TCP connection information and the file state information into the nonvolatile memory.
7. An access service recovery apparatus, comprising:
a memory for storing a computer program;
processor for implementing the steps of the access service recovery method according to any one of claims 1 to 5 when executing said computer program.
8. A readable storage medium, characterized in that the readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the steps of the access service recovery method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811172483.8A CN109413164B (en) | 2018-10-09 | 2018-10-09 | Access service recovery method, device, equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811172483.8A CN109413164B (en) | 2018-10-09 | 2018-10-09 | Access service recovery method, device, equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109413164A CN109413164A (en) | 2019-03-01 |
CN109413164B true CN109413164B (en) | 2022-04-22 |
Family
ID=65466846
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811172483.8A Active CN109413164B (en) | 2018-10-09 | 2018-10-09 | Access service recovery method, device, equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109413164B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112579385A (en) * | 2019-09-29 | 2021-03-30 | 中国石油天然气集团有限公司 | Server file monitoring method and device |
CN110798520B (en) * | 2019-10-25 | 2021-12-03 | 苏州浪潮智能科技有限公司 | Service processing method, system, device and readable storage medium |
CN113595959B (en) * | 2020-04-30 | 2023-04-18 | 海信集团有限公司 | Network traffic data processing method and server |
CN111679981B (en) * | 2020-06-05 | 2023-08-29 | 广州探途网络技术有限公司 | Application software release method and system and electronic equipment |
CN112559248A (en) * | 2020-12-23 | 2021-03-26 | 深圳市彬讯科技有限公司 | Preprocessing service recovery method, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101035121A (en) * | 2006-10-11 | 2007-09-12 | 深圳市中联创新自控系统有限公司 | Multi-IP communication method and system |
CN102113297A (en) * | 2008-07-31 | 2011-06-29 | 诺基亚西门子通信公司 | Configuration of a communication device |
CN102547938A (en) * | 2011-12-29 | 2012-07-04 | 上海顶竹通讯技术有限公司 | Router, wireless sensor network and method for monitoring terminal nodes |
CN104378806A (en) * | 2014-11-17 | 2015-02-25 | 联想(北京)有限公司 | Information processing method and terminal device |
CN105591892A (en) * | 2015-09-16 | 2016-05-18 | 杭州华三通信技术有限公司 | Graceful Restart (GR) process starting method and device |
CN105933253A (en) * | 2016-04-13 | 2016-09-07 | 浪潮集团有限公司 | Switch configuration recovery method in SDN (Software Defined Networking) |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140282478A1 (en) * | 2013-03-15 | 2014-09-18 | Silicon Graphics International Corp. | Tcp server bootloader |
-
2018
- 2018-10-09 CN CN201811172483.8A patent/CN109413164B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101035121A (en) * | 2006-10-11 | 2007-09-12 | 深圳市中联创新自控系统有限公司 | Multi-IP communication method and system |
CN102113297A (en) * | 2008-07-31 | 2011-06-29 | 诺基亚西门子通信公司 | Configuration of a communication device |
CN102547938A (en) * | 2011-12-29 | 2012-07-04 | 上海顶竹通讯技术有限公司 | Router, wireless sensor network and method for monitoring terminal nodes |
CN104378806A (en) * | 2014-11-17 | 2015-02-25 | 联想(北京)有限公司 | Information processing method and terminal device |
CN105591892A (en) * | 2015-09-16 | 2016-05-18 | 杭州华三通信技术有限公司 | Graceful Restart (GR) process starting method and device |
CN105933253A (en) * | 2016-04-13 | 2016-09-07 | 浪潮集团有限公司 | Switch configuration recovery method in SDN (Software Defined Networking) |
Also Published As
Publication number | Publication date |
---|---|
CN109413164A (en) | 2019-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109413164B (en) | Access service recovery method, device, equipment and readable storage medium | |
US20090144720A1 (en) | Cluster software upgrades | |
US7246200B1 (en) | Provisioning and snapshotting using copy on read/write and transient virtual machine technology | |
US10002054B2 (en) | Method and system for performing automatic system recovery | |
US20170046152A1 (en) | Firmware update | |
US9857998B2 (en) | Backup storage of vital debug information | |
EP2312438A1 (en) | Method and apparatus for remote modification of system configuration | |
US9983791B2 (en) | System management controller and method of configuration file backup and recovery | |
US20060224723A1 (en) | Data updating system and method | |
CN111104147A (en) | BMC upgrading method, device, terminal and storage medium | |
CN111552489B (en) | User mode file system hot upgrading method, device, server and medium | |
CN112882734B (en) | Upgrading method and device, computer equipment and medium | |
JP2013530441A (en) | Dismount storage volume | |
US10305971B2 (en) | Self-recoverable multitenant distributed clustered systems | |
TW201305772A (en) | System and method for process network data continuously | |
US10102008B2 (en) | Managed boot process system | |
CN111949449A (en) | Firmware recovery method, device, system, computer equipment and storage medium | |
US20230012867A1 (en) | Computing device reboot | |
CN108270832B (en) | Fault replaying method and device | |
CN109347937B (en) | Intelligent remote upgrading method applied to video monitoring equipment | |
CN109684134B (en) | Method and server for rapidly deploying firmware settings among multiple devices | |
CN112416641A (en) | Controlled end node restart detection method in master-slave architecture and master control end node | |
KR100456978B1 (en) | Method for File Downloading in Agent | |
US10095589B2 (en) | System and method for optimization of operating system restore | |
US10210004B2 (en) | Method of providing at least one data carrier for a computer system and computer system including service processor independently operable from a main processor of the computer system |
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 |