CN112929429B - Request processing method, device and equipment - Google Patents

Request processing method, device and equipment Download PDF

Info

Publication number
CN112929429B
CN112929429B CN202110113551.9A CN202110113551A CN112929429B CN 112929429 B CN112929429 B CN 112929429B CN 202110113551 A CN202110113551 A CN 202110113551A CN 112929429 B CN112929429 B CN 112929429B
Authority
CN
China
Prior art keywords
machine room
address
proxy server
access request
domain name
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
CN202110113551.9A
Other languages
Chinese (zh)
Other versions
CN112929429A (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.)
Changsha Youheng Network Technology Co Ltd
Original Assignee
Changsha Youheng Network 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 Changsha Youheng Network Technology Co Ltd filed Critical Changsha Youheng Network Technology Co Ltd
Priority to CN202110113551.9A priority Critical patent/CN112929429B/en
Publication of CN112929429A publication Critical patent/CN112929429A/en
Application granted granted Critical
Publication of CN112929429B publication Critical patent/CN112929429B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Abstract

The embodiment of the invention provides a request processing method, a request processing device and request processing equipment. The method comprises the following steps: receiving a first switching instruction, and switching the record value of the forwarding address from a first machine room address to a second machine room address, wherein the first switching instruction is triggered when the first machine room is switched to the second machine room; and receiving the access request, and searching the record value of the forwarding address as a second machine room address. The technical scheme of the embodiment of the invention ensures the normal access of the service.

Description

Request processing method, device and equipment
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a request processing method, apparatus, and device.
Background
For the convenience of Internet access, the current Internet access mode is mainly realized by depending on a Domain Name, a mapping relationship between a Domain Name and an Internet Protocol (IP) address is recorded in a Domain Name server (DNS for short), and when access is performed, a client searches a mapped IP address from the DNS based on the Domain Name provided by a user, and then initiates an access request based on the mapped IP address. At present, a proxy server is mostly adopted to realize the connection between a client and a machine room actually accessed, and an IP address mapped by a domain name in a DNS is an address of the proxy server corresponding to the machine room.
In practical application, any machine room cannot be guaranteed to be available all the time, and when an old machine room cannot bear the existing traffic, the machine room needs to be replaced. In order to ensure normal operation of the service, the domain name needs to be mapped to the address of the proxy server corresponding to the new machine room in the DNS.
However, due to the caching problem of the DNS in various places, the mapping relationship between the domain name and the IP address in the DNS is not updated in time, which results in an access error.
Disclosure of Invention
The embodiment of the invention provides a request processing method, a request processing device, equipment and a storage medium, which can realize normal access of services after machine room switching.
In a first aspect, an embodiment of the present invention provides a request processing method, where the method includes:
receiving a first switching instruction, and switching a record value of a forwarding address from a first machine room address to a second machine room address, wherein the first switching instruction is triggered when the first machine room is switched to the second machine room;
receiving an access request triggered by a target domain name, and searching a record value of the forwarding address as the second machine room address;
forwarding the access request to a second room based on the second room address.
In a second aspect, an embodiment of the present invention provides a request processing method, where the method includes:
receiving a first switching instruction, and switching a record value of a forwarding address from a first machine room address to an address of a second proxy server, wherein the first switching instruction is triggered when the first machine room is switched to a second machine room, and the second proxy server corresponds to the second machine room;
receiving an access request triggered by a target domain name, and searching a record value of the forwarding address as an address of the second proxy server;
forwarding the access request to the second proxy server based on the address of the second proxy server, such that the second proxy server forwards the access request to the second room based on the second room address.
In a third aspect, an embodiment of the present invention provides a request processing apparatus, which is disposed in a first proxy server corresponding to a first machine room, and includes:
the first receiving unit is used for receiving a first switching instruction and switching the record value of the forwarding address from the first machine room address to a second machine room address, wherein the first switching instruction is triggered when the first machine room is switched back to the second machine room; receiving an access request triggered by a target domain name, and searching a record value of the forwarding address as the second machine room address;
and the first forwarding unit is used for forwarding the access request to the second computer room based on the second computer room address.
In a fourth aspect, an embodiment of the present invention provides a request processing apparatus, which is installed in a first proxy server corresponding to a first machine room, and includes:
a second receiving unit, configured to receive a first switching instruction, switch a record value of a forwarding address from a first machine room address to an address of a second proxy server, where the first switching instruction is triggered when the first machine room is switched to a second machine room, and the second proxy server corresponds to the second machine room; receiving an access request triggered by a target domain name, and searching a record value of the forwarding address as an address of the second proxy server;
a second forwarding unit, configured to forward the access request to the second proxy server based on the address of the second proxy server, so that the second proxy server forwards the access request to the second computer room based on the address of the second computer room.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including: a memory, a processor; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to implement at least the request handling method of the first aspect.
In a sixth aspect, an embodiment of the present invention provides a non-transitory machine-readable storage medium having stored thereon executable code, which when executed by a processor of an electronic device, causes the processor to implement at least the request processing method according to the first aspect.
In the embodiment of the present invention, after receiving a first switching instruction, where the first switching instruction is triggered when a first machine room is switched to a second machine room, a first proxy server corresponding to the first machine room switches a record value of a forwarding address from a first machine room address to a second machine room address, where the forwarding address is a destination address for forwarding an access request after the first proxy server receives the access request.
Further, after receiving the access request, the first proxy server searches the record value of the forwarding address, and since the record value is already switched to the address of the second computer room, the first proxy server forwards the access request to the second computer room. Therefore, the access requests forwarded to the first proxy server are all forwarded to the second machine room, and normal access of services is guaranteed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on the drawings without creative efforts.
Fig. 1 is a schematic view of a scenario of a request processing method according to an embodiment of the present invention;
fig. 2 is a flowchart of a request processing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of another request processing method according to an embodiment of the present invention;
FIG. 4 is a flowchart of another request processing method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a request processing apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a request processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device corresponding to the request processing apparatus provided in the embodiment shown in fig. 5;
fig. 8 is a schematic structural diagram of an electronic device corresponding to the request processing apparatus provided in the embodiment shown in fig. 6.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present 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 terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the description of the invention and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well.
The words "if", as used herein may be interpreted as "at \8230; \8230whenor" when 8230; \8230when or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
In addition, the sequence of steps in each method embodiment described below is only an example and is not strictly limited.
Before introducing the request processing method provided by the embodiment of the present invention, some problems of the request processing corresponding to the target domain name after the machine room corresponding to the target domain name is switched are introduced: generally, when some merchants provide some services, corresponding proxy servers are set for a machine room providing the services, and addresses of the proxy servers are provided to the outside, that is, when any DNS resolves a domain name corresponding to the machine room, mapping addresses obtained by the DNS are addresses of the proxy servers corresponding to the machine room. Therefore, when a user accesses the domain name corresponding to the machine room, the DNS can analyze the address of the proxy server corresponding to the machine room and forward the access request to the proxy server, the proxy server forwards the access request to the corresponding machine room, and the machine room returns corresponding data based on the access request to complete access processing.
Fig. 1 is a schematic view of a scenario of a request processing method according to an embodiment of the present invention. As shown in fig. 1, after the first proxy address corresponding to the first machine room mapped by the target domain name is switched to the second proxy address corresponding to the second machine room in the DNS. When a client accesses a target domain name, due to the cache problem of the DNS, that is, an address corresponding to the target domain name in the DNS is still an address of the first proxy server within a period of time, and the DNS still resolves the address of the first proxy server based on the target domain name within the period of time, the DNS forwards an access request to the first proxy server, so that the first proxy server forwards the access request to the first machine room, and the first machine room may have a situation that corresponding data cannot be returned, and therefore, the access request cannot be processed, and a service cannot be normally performed.
In order to solve the above problems, the present invention provides a request processing method, which switches the forwarding address of the first proxy server to the address of the second machine room, thereby ensuring that all access requests are forwarded to the second machine room, and ensuring normal operation of services.
Fig. 2 is a flowchart of a request processing method according to an embodiment of the present invention, and as shown in fig. 2, the request processing method is applied to a first proxy server corresponding to a first machine room, and includes the following steps:
201. and the first proxy server receives the first switching instruction and switches the record value of the forwarding address from the first machine room address to the second machine room address.
The first switching instruction is triggered when the first machine room is switched to the second machine room.
Alternatively, the first proxy server is any server such as an Ngnix server that can implement reverse proxy.
The first proxy server realizes the forwarding of the access request through a forwarding address, and the initial record value of the forwarding address is the first machine room address.
Generally, a configuration module having a forwarding function is disposed in the first proxy server, and the function of the configuration module may be implemented by code. Optionally, the response process of the first switching instruction may be: and in the forwarding configuration module, the record value of the forwarding address is switched from the first machine room address to the second machine room address. Wherein the record value of the forwarding address represents a destination address of the first proxy server for forwarding the access request after receiving the access request.
202. And the first proxy server receives an access request triggered by the target domain name and searches the record value of the forwarding address as a second machine room address.
203. The first proxy server forwards the access request to the second room based on the second room address.
As can be seen from the above, when the user accesses the target domain name, the DNS can resolve the address of the proxy server of the machine room corresponding to the target domain name, that is, the address of the first proxy server corresponding to the first machine room.
Optionally, the process of receiving an access request may be implemented as:
and receiving an access request sent by the DNS based on the address of the first proxy server, wherein the address of the first proxy server is obtained based on the target domain name mapping.
When a user accesses a target domain name, an access request including the target domain name is sent to a DNS (domain name server), the DNS maps an address of a first proxy server according to the target domain name, and the access request is sent to the first proxy server according to the address of the first proxy server.
Further, after receiving the access request, the first proxy server searches for a recorded value in the forwarding configuration module, and since the first proxy server executes a response process for completing the first switching instruction, the recorded value is the second machine room address. The first proxy server thus forwards the access request to the second room.
In the embodiment of the present invention, after receiving a first switching instruction, where the first switching instruction is triggered when a first machine room is switched to a second machine room, a first proxy server corresponding to the first machine room switches a record value of a forwarding address from a first machine room address to a second machine room address, where the forwarding address is a destination address for forwarding an access request after the first proxy server receives the access request.
Further, after receiving the access request, the first proxy server searches for a record value of the forwarding address, since the record value is already switched to the second room address. Therefore, under the condition that the first machine room is replaced by the second machine room, the DNS does not need to pay attention to the cache of the DNS when analyzing the received access request, and the access requests can be all forwarded to the switched second machine room, so that the normal access of the service is ensured.
It should be noted that, after the access request is sent to the second machine room, a problem may occur in the request processing capability of the second machine room, and therefore, the request processing capability of the second machine room needs to be tested, and after the test is completed, the machine room address corresponding to the target domain name is switched to the second machine room address on the domain name management system. Fig. 3 is a flowchart of another request processing method according to an embodiment of the present invention, and as shown in fig. 3, the method may include the following steps:
301. and the first proxy server receives the first switching instruction and switches the record value of the forwarding address from the first machine room address to the second machine room address.
302. And the first proxy server receives the access request and searches the record value of the forwarding address as a second machine room address.
303. The first proxy server forwards the access request to the second room based on the second room address.
The execution manners of steps 301 to 303 are consistent with those of steps 201 to 203, and are not described herein again.
304. And if the second switching instruction is received in the first time period, switching the recorded value from the second machine room address to the first machine room address so as to send the access request to the first machine room based on the first machine room address.
And the second switching instruction is triggered when the second machine room is switched back to be the first machine room.
It should be noted that, actually, in the process of switching the first machine room to the second machine room, the request processing capability of the second machine room needs to be tested, and therefore, the first machine room and the second machine room need to exist in parallel for a period of time, so that when the request processing capability of the second machine room is in a problem, the record value of the forwarding address of the first proxy server is timely switched to the address of the first machine room, and normal processing of the service is ensured.
The first time period is any preset time period, and merchants can set the time period according to different conditions, which is not described herein again.
305. And if the second switching instruction is not received within the first time period, outputting first prompt information, wherein the first prompt information is used for prompting related personnel to switch the first machine room address corresponding to the target domain name into the second machine room address so that the second machine room receives the access request.
Further, if a second switching instruction is not received in a first time period, which indicates that the request processing capability of the second machine room is not a problem, first prompt information is output, the first prompt information is used for prompting related personnel to switch the first machine room address corresponding to the target domain name into the second machine room address, so that the domain name system server can analyze the address of the second proxy server based on the target domain name, and the access request is sent to the second proxy server.
The first prompt message may be output in a preset position, or a preset prompt tone may be output, or the first prompt message may be sent to a communication account of a related person, and the first prompt message may be output in various ways, which is not described herein again.
It should be noted that, even after the machine room address corresponding to the target domain name is switched from the first machine room address to the second machine room address, when the user accesses the target domain name, due to the aforementioned cache problem of the DNS, the DNS may still resolve the address of the first proxy server.
Specifically, if the DNS resolves the address of the first proxy server based on the target domain name, the access request is forwarded to the first proxy server based on the address, and since the record value of the forwarding address of the first proxy server is the address of the second machine room at this time, the first proxy server sends the access request to the second machine room; if the DNS resolves the address of the second proxy server based on the target domain name, the access request is forwarded to the second proxy server based on the address, and since the record value of the forwarding address of the second proxy server initially defaults to the second machine room address and no address switching operation is performed, the record value of the forwarding address of the second proxy server initially defaults to the second machine room address at the moment, and the second proxy server sends the access request to the second machine room. Therefore, even if the DNS resolves the address of the first proxy server based on the target domain name, the second room receives the access request.
Further, if the first proxy server does not receive the access request within a second time period, outputting second prompt information, where the second prompt information is used to prompt the relevant person to delete the first machine room, and the second time period is a certain time period after the first time period.
It should be noted that the second time period may be the same as or different from the first time period, and the second time period may be flexibly set according to the actual situation, which is not described herein again.
Specifically, if the first proxy server does not receive the access request in the second time period, that is, the addresses resolved by the DNS based on the target domain name are addresses of the second proxy server, it is indicated that the addresses corresponding to the target domain name in any DNS are addresses of the second proxy server, at this time, the first machine room and the first proxy server may be completely replaced by the second machine room and the second proxy server, and in this case, the first machine room and the first proxy server may be deleted, that is, the first machine room and the first proxy server are stopped from operating.
In the embodiment of the present invention, after receiving a first switching instruction, where the first switching instruction is triggered when a first machine room is switched to a second machine room, a first proxy server corresponding to the first machine room switches a record value of a forwarding address from a first machine room address to a second machine room address, where the forwarding address is a destination address for forwarding an access request after the first proxy server receives the access request.
Further, after receiving the access request, the first proxy server searches for a record value of the forwarding address, and since the record value is already switched to the second machine room address, the record value of the forwarding address is the second machine room address at this time, and therefore, the first proxy server forwards the access request to the second machine room, so as to test the request processing capability of the second machine room. Therefore, under the condition that the request processing capacity of the second machine room is not in a problem, the first machine room and the first proxy server are stopped to run, and therefore the load of a merchant server is reduced under the condition that service access is guaranteed.
Besides switching the record value of the forwarding address of the first proxy server to the second machine room address, the record value can also be switched to the address of the second proxy server to realize the processing of the access request. Fig. 4 is a flowchart of another request processing method according to an embodiment of the present invention, and as shown in fig. 4, the request processing method is applied to a first proxy server corresponding to a first machine room, and the method may include the following steps:
401. and the first proxy server receives the first switching instruction and switches the record value of the forwarding address from the address of the first computer room to the address of the second proxy server.
The first switching instruction is triggered when the first machine room is switched to the second machine room, and the second proxy server corresponds to the second machine room.
402. And the first proxy server searches the record value of the forwarding address as the address of the second proxy server aiming at the access request triggered by the target domain name.
Step 401 and step 402 are similar to the execution process of step 201 and step 202, and are not described herein again.
403. The first proxy server forwards the access request to the second proxy server based on the address of the second proxy server, such that the second proxy server forwards the access request to the second room based on the address of the second room.
Optionally, after receiving the access request, the first proxy server searches for a record value in the forwarding configuration module, and since the first proxy server executes a response process for completing the first switching instruction, the record value is an address of the second proxy server. Therefore, the first proxy server forwards the access request to the second proxy server, and the second proxy server forwards the access request to the second computer room because the record value of the forwarding address of the second proxy server is initially defaulted to the second computer room address without any change.
Optionally, if a second switching instruction is received within the first time period, the address of the second proxy server is switched to the first machine room address for the recorded value.
And the second switching instruction is triggered when the second machine room is switched back to be the first machine room. That is, if the second switching instruction is received within the first time period, it indicates that the access request needs to be switched back to the first machine room, so that it is ensured that the access request can be processed by means of the original request processing capability of the first machine room when the second machine room cannot process the access request.
Fig. 5 is a schematic structural diagram of a request processing apparatus according to an embodiment of the present invention, as shown in fig. 4, the apparatus includes: a first receiving unit 11, a first forwarding unit 12.
A first receiving unit 11, configured to receive a first switching instruction, and switch a record value of a forwarding address from a first machine room address to a second machine room address, where the first switching instruction is triggered when the first machine room is switched back to the second machine room; and receiving an access request triggered by a target domain name, and searching the record value of the forwarding address as the second machine room address.
A first forwarding unit 12, configured to forward the access request to the second room based on the second room address.
Optionally, the first receiving unit 11 is further configured to switch the record value from the second machine room address to the first machine room address if a second switching instruction is received within the first time period, where the second switching instruction is triggered when the second machine room is switched back to the first machine room.
Optionally, the request processing apparatus further includes: the first output unit is configured to output first prompt information if a second switching instruction is not received within a first time period, where the first prompt information is used to prompt related personnel to switch the first machine room address corresponding to the target domain name to a second machine room address, so that the second machine room receives the access request.
Optionally, the first receiving unit 11 is specifically configured to receive the access request sent by the domain name system server based on an address of the first proxy server, where the address of the first proxy server is obtained based on the target domain name mapping.
Optionally, the first receiving unit 11 is specifically configured to, in the forwarding configuration module, switch a record value of a forwarding address from the first machine room address to the second machine room address.
Optionally, the first output unit is further configured to output a second prompt message if the second switching instruction is not received within a second time period, where the second prompt message is used to prompt the relevant person to delete the first machine room, and the second time period is a certain time period after the first time period.
The apparatus shown in fig. 5 may perform the request processing method provided in the foregoing embodiments shown in fig. 1 to fig. 4, and the detailed execution process and technical effect refer to the description in the foregoing embodiments, which are not described herein again.
Fig. 6 is a schematic structural diagram of a request processing apparatus according to an embodiment of the present invention, as shown in fig. 5, the apparatus includes: a second receiving unit 21 and a second forwarding unit 22.
A second receiving unit 21, configured to receive a first switching instruction, and switch a record value of a forwarding address from a first machine room address to an address of a second proxy server, where the first switching instruction is triggered when the first machine room is switched to a second machine room, and the second proxy server corresponds to the second machine room; and receiving an access request triggered by a target domain name, and searching the record value of the forwarding address as the address of the second proxy server.
A second forwarding unit 22, configured to forward the access request to the second proxy server based on the address of the second proxy server, so that the second proxy server forwards the access request to the second computer room based on the address of the second computer room.
Optionally, the second receiving unit 21 is further configured to switch the recorded value from the address of the second proxy server to the address of the first machine room if the second switching instruction is received within the first time period, where the second switching instruction is triggered when the second proxy server is switched back to the first machine room.
The apparatus shown in fig. 6 may perform the request processing method provided in the foregoing embodiments shown in fig. 1 to fig. 4, and the detailed execution process and technical effect refer to the description in the foregoing embodiments, which are not described herein again.
In one possible design, the structure of the request processing apparatus shown in fig. 5 may be implemented as an electronic device. As shown in fig. 7, the electronic device may include: a processor 31, a memory 32. Wherein the memory 32 has stored thereon executable code which, when executed by the processor 31, makes the processor 31 at least implement the request processing method as provided in the aforementioned embodiments shown in fig. 1 to 4.
In another possible design, the structure of the request processing device shown in fig. 6 may be implemented as an electronic device. As shown in fig. 8, the electronic device may include: a processor 41, and a memory 42. Wherein the memory 42 has stored thereon executable code which, when executed by the processor 41, makes the processor 41 at least implement the request processing method as provided in the embodiments of fig. 1 to 4 described above.
In addition, an embodiment of the present invention provides a non-transitory machine-readable storage medium having stored thereon executable code, which, when executed by a processor of an electronic device, causes the processor to implement at least the request processing method provided in the foregoing embodiments shown in fig. 1 to 4.
The above-described apparatus embodiments are merely illustrative, wherein the units described as separate components may or may not be physically separate. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this 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 adding a necessary general hardware platform, and of course, can also be implemented by a combination of hardware and software. With this understanding in mind, the above-described solutions and/or portions thereof that are prior art may be embodied in the form of a computer program product, which may be embodied on one or more computer-usable storage media having computer-usable program code embodied therein (including but not limited to disk storage, CD-ROM, optical storage, etc.).
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 (5)

1. A request processing method is applied to a first proxy server corresponding to a first machine room, and the method comprises the following steps:
the method comprises the steps that a first proxy server receives a first switching instruction, and switches a record value of a forwarding address from a first machine room address to a second machine room address, wherein the first switching instruction is triggered when the first machine room is switched to the second machine room; the first proxy server realizes the forwarding of the access request through a forwarding address, and the initial record value of the forwarding address is a first machine room address;
the first proxy server receives an access request triggered by a target domain name, and searches the record value of the forwarding address as the second machine room address;
the first proxy server forwards the access request to a second machine room based on the second machine room address, wherein the access request is obtained based on the access of a client to a target domain name, and the machine room address corresponding to the target domain name is the first machine room address;
the first machine room and the second machine room exist in parallel for a period of time, and the request processing capacity of the second machine room is tested; if a second switching instruction is received within a first time period, switching the recorded value from the second machine room address to the first machine room address, wherein the second switching instruction is triggered when the second machine room is switched back to the first machine room; and if the second switching instruction is not received within a first time period, outputting first prompt information, wherein the first prompt information is used for prompting related personnel to update the mapping relation of the target domain name in a domain name management system.
2. The method of claim 1, wherein receiving the access request triggered for the target domain name comprises:
receiving the access request sent based on the address of the first proxy server, wherein the address of the first proxy server is mapped from a domain name system based on the target domain name.
3. The method of claim 1, further comprising:
and if the access request is not received in a second time period, outputting second prompt information, wherein the second prompt information is used for prompting the relevant personnel to delete the first machine room.
4. A request processing method is applied to a first proxy server corresponding to a first machine room, and the method comprises the following steps:
receiving a first switching instruction, and switching a record value of a forwarding address from a first machine room address to an address of a second proxy server, wherein the first switching instruction is triggered when the first machine room is switched to a second machine room, and the second proxy server corresponds to the second machine room; the first proxy server forwards the access request through a forwarding address, and the initial record value of the forwarding address is the first machine room address
Receiving an access request triggered by a target domain name, and searching a record value of the forwarding address as an address of the second proxy server;
forwarding the access request to the second proxy server based on the address of the second proxy server, so that the second proxy server forwards the access request to the second machine room based on the address of the second machine room, wherein the access request is obtained based on the access of a client to a target domain name, and the machine room address corresponding to the target domain name is the first machine room address;
the first machine room and the second machine room exist in parallel for a period of time, and the request processing capacity of the second machine room is tested; if a second switching instruction is received within a first time period, switching the recorded value from the address of the second proxy server to the address of the first machine room, wherein the second switching instruction is triggered when the second machine room is switched back to the first machine room; and if the second switching instruction is not received within a first time period, outputting first prompt information, wherein the first prompt information is used for prompting related personnel to update the mapping relation of the target domain name in a domain name management system, and the second switching instruction is triggered when the second machine room is switched back to be the first machine room.
5. An electronic device, comprising: a memory and a processor; wherein the memory has stored thereon executable code which, when executed by the processor, causes the processor to perform the request processing method of any of claims 1 to 4.
CN202110113551.9A 2021-01-27 2021-01-27 Request processing method, device and equipment Active CN112929429B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110113551.9A CN112929429B (en) 2021-01-27 2021-01-27 Request processing method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110113551.9A CN112929429B (en) 2021-01-27 2021-01-27 Request processing method, device and equipment

Publications (2)

Publication Number Publication Date
CN112929429A CN112929429A (en) 2021-06-08
CN112929429B true CN112929429B (en) 2023-03-24

Family

ID=76167223

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110113551.9A Active CN112929429B (en) 2021-01-27 2021-01-27 Request processing method, device and equipment

Country Status (1)

Country Link
CN (1) CN112929429B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104780068A (en) * 2015-04-15 2015-07-15 中国工商银行股份有限公司 Network switching method, device and system for machine room migration
CN107491024A (en) * 2017-09-25 2017-12-19 国网黑龙江省电力有限公司信息通信公司 Multiple Computer Classroom Management and method

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754173B (en) * 2008-12-16 2013-03-13 中国移动通信集团公司 Home address allocation, method and system for transmitting message by using same
CN107015972B (en) * 2016-01-27 2020-02-18 五八同城信息技术有限公司 Method, device and system for migrating machine room services
CN107172176B (en) * 2017-06-02 2019-08-02 美味不用等(上海)信息科技股份有限公司 APP method for connecting network, equipment and configuration server based on configuration management
CN108616599B (en) * 2018-05-11 2021-10-29 北京辰森世纪科技股份有限公司 Method and device for registering and updating application service
CN110730196B (en) * 2018-07-16 2022-05-27 阿里巴巴集团控股有限公司 Network resource access method, computer equipment and storage medium
CN112217843B (en) * 2019-07-09 2023-08-22 阿里巴巴集团控股有限公司 Service unit switching method, system and equipment
CN111984289A (en) * 2020-07-31 2020-11-24 广州市百果园信息技术有限公司 Service updating method, device, equipment and storage medium
CN111953808B (en) * 2020-07-31 2023-08-15 上海燕汐软件信息科技有限公司 Data transmission switching method of dual-machine dual-activity architecture and architecture construction system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104780068A (en) * 2015-04-15 2015-07-15 中国工商银行股份有限公司 Network switching method, device and system for machine room migration
CN107491024A (en) * 2017-09-25 2017-12-19 国网黑龙江省电力有限公司信息通信公司 Multiple Computer Classroom Management and method

Also Published As

Publication number Publication date
CN112929429A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN109302498B (en) Network resource access method and device
US9300623B1 (en) Domain name system cache integrity check
CN106982236B (en) Information processing method, device and system
WO2021120969A1 (en) Domain name resolution method, domain name resolution server, and terminal device
CN111885098B (en) Proxy access method, system and computer equipment for object storage cluster
US10560543B2 (en) Rule based cache processing in application delivery controller for load balancing
US20150288711A1 (en) Network analysis apparatus and method
JP2012509623A (en) Updating routing information using request routing and client location information
CN102571972B (en) The distributed file system access of site-aware is carried out from outside enterprise network
CN110727589A (en) Test method, device and equipment
CN111064804B (en) Network access method and device
CN113765988A (en) Information processing method, information processing device, electronic equipment and storage medium
CN112235408A (en) Network system, reverse proxy method and reverse proxy server
US9344363B2 (en) Information processing system, relay device, information processing device, and information processing method
CN114745356B (en) Domain name resolution method, device, equipment and readable storage medium
CN113315848A (en) Access control method, device and equipment
CN113992382B (en) Service data processing method and device, electronic equipment and storage medium
CN109286684B (en) Communication connection processing method and device, proxy server and storage medium
US20050005027A1 (en) Method and system for obtaining data through an IP transmission network by using an optimized domain name server
CN113923008A (en) Malicious website interception method, device, equipment and storage medium
CN112929429B (en) Request processing method, device and equipment
CN109743367B (en) Service processing method and device, electronic equipment and readable storage medium
CN112995354A (en) Domain name resolution record reconstruction method and domain name resolution method
CN114301872B (en) Domain name based access method and device, electronic equipment and storage medium
JP6014068B2 (en) Relay device, relay method, and computer program

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