CN117041350A - Access request processing method, device, computer equipment and storage medium - Google Patents
Access request processing method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN117041350A CN117041350A CN202310953396.0A CN202310953396A CN117041350A CN 117041350 A CN117041350 A CN 117041350A CN 202310953396 A CN202310953396 A CN 202310953396A CN 117041350 A CN117041350 A CN 117041350A
- Authority
- CN
- China
- Prior art keywords
- client
- target resource
- resource server
- access
- server
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title description 13
- 238000000034 method Methods 0.000 claims abstract description 50
- 230000004044 response Effects 0.000 claims abstract description 43
- 238000011056 performance test Methods 0.000 claims abstract description 39
- 230000008569 process Effects 0.000 claims abstract description 23
- 238000012545 processing Methods 0.000 claims abstract description 17
- 238000004590 computer program Methods 0.000 claims description 30
- 238000012360 testing method Methods 0.000 claims description 14
- 238000010586 diagram Methods 0.000 description 6
- 238000011084 recovery Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 238000013507 mapping Methods 0.000 description 2
- 230000008520 organization Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- OKTJSMMVPCPJKN-UHFFFAOYSA-N Carbon Chemical compound [C] OKTJSMMVPCPJKN-UHFFFAOYSA-N 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 229910021389 graphene Inorganic materials 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
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/50—Network services
- H04L67/60—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
-
- 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/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1008—Server selection for load balancing based on parameters of servers, e.g. available memory or workload
-
- 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/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1034—Reaction to server failures by a load balancer
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Computer And Data Communications (AREA)
Abstract
The present application relates to the field of software technologies, and in particular, to a method, an apparatus, a computer device, and a storage medium for processing an access request. The method comprises the following steps: responding to an access request of the client, and feeding back an access address of the target resource server to the client so that the client accesses the target resource server based on the access address; in the process of accessing the target resource server by the client, if the condition that the response delay exists in the access of the target resource server to the client is detected, performing performance test on the target resource server; and under the condition that the performance test is not passed, determining a backup resource server corresponding to the target resource server from the backup resource pool so that the backup server provides access service for the client. The application can accurately analyze the fault condition of the resource pool.
Description
Technical Field
The present application relates to the field of software technology and artificial intelligence technology, and in particular, to a method, an apparatus, a computer device, and a storage medium for processing an access request.
Background
Customer service is one of the main ways for enterprises to get user feedback comments and solve user problems.
After the client submits the access request to the customer service system, the domain name resolution service provided by the customer service system resolves the access request, and a main resource pool capable of responding to the access request is determined, wherein the main resource pool is used for providing the access service corresponding to the access request. In order to still be able to provide access services to clients in case of a disaster (failure) in the primary resource pool, customer service systems have deployed disaster relief schemes. In the conventional technology, disaster recovery is usually carried out in the same resource pool master or same city cross-resource pool hot standby mode, or fault scheduling is realized by arranging a scheduling server in a customer service system.
However, the disaster recovery scheme in the traditional technology still has reliability problem, and the failure condition of the resource pool cannot be accurately analyzed.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an access request processing method, apparatus, computer device, and storage medium that can accurately analyze the failure condition of a resource pool.
In a first aspect, the present application provides an access request processing method, including:
responding to an access request of the client, and feeding back an access address of the target resource server to the client so that the client accesses the target resource server based on the access address;
in the process of accessing the target resource server by the client, if the condition that the response delay exists in the access of the target resource server to the client is detected, performing performance test on the target resource server;
and under the condition that the performance test is not passed, determining a backup resource server corresponding to the target resource server from the backup resource pool so that the backup server provides access service for the client.
In one embodiment, responding to the access request of the client, feeding back the access address of the target resource server to the client includes:
distributing the access request of the client to a Domain Name System (DNS) server in a DNS cluster according to a load balancing strategy;
and according to the allocation situation, the domain name system DNS server is instructed to inquire the access address of the target resource server corresponding to the access request of the client, and the access address of the target resource server is fed back to the client.
In one embodiment, after indicating each domain name system DNS server according to the allocation situation and querying the access address of the target resource server corresponding to the access request of each client, the method further includes:
and updating the configuration information of each Domain Name System (DNS) server according to the allocation condition.
In one embodiment, performing performance testing on a target resource server includes:
and continuously sending an access request to the target resource server by adopting a single byte request mode.
In one embodiment, after determining that the performance test fails, the method further comprises:
generating a fault event corresponding to the target resource server;
and feeding back the fault event to the DNS cluster and the corresponding client of the target resource server.
In one embodiment, responding to the access request of the client, feeding back the access address of the target resource server to the client includes:
and under the condition that the domain name system DNS server does not inquire the access address of the target resource server corresponding to the access request of the client, inquiring the access address of the target resource server corresponding to the access request of the client according to the cache record of the DNS cluster, and feeding back the access address of the target resource server to the client.
In a second aspect, the present application also provides an access request processing apparatus, including:
the response module is used for responding to the access request of the client and feeding back the access address of the target resource server to the client so that the client can access the target resource server based on the access address;
the testing module is used for testing the performance of the target resource server if detecting that the target resource server has response delay to the access of the client in the process of accessing the target resource server by the client;
and the backup module is used for determining the backup resource server corresponding to the target resource server from the backup resource pool under the condition that the performance test is not passed, so that the backup server provides access service for the client.
In a third aspect, the present application also provides a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
responding to an access request of the client, and feeding back an access address of the target resource server to the client so that the client accesses the target resource server based on the access address;
in the process of accessing the target resource server by the client, if the condition that the response delay exists in the access of the target resource server to the client is detected, performing performance test on the target resource server;
and under the condition that the performance test is not passed, determining a backup resource server corresponding to the target resource server from the backup resource pool so that the backup server provides access service for the client.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
responding to an access request of the client, and feeding back an access address of the target resource server to the client so that the client accesses the target resource server based on the access address;
in the process of accessing the target resource server by the client, if the condition that the response delay exists in the access of the target resource server to the client is detected, performing performance test on the target resource server;
and under the condition that the performance test is not passed, determining a backup resource server corresponding to the target resource server from the backup resource pool so that the backup server provides access service for the client.
In a fifth aspect, the application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of:
responding to an access request of the client, and feeding back an access address of the target resource server to the client so that the client accesses the target resource server based on the access address;
in the process of accessing the target resource server by the client, if the condition that the response delay exists in the access of the target resource server to the client is detected, performing performance test on the target resource server;
and under the condition that the performance test is not passed, determining a backup resource server corresponding to the target resource server from the backup resource pool so that the backup server provides access service for the client.
In the access request processing method, the access request processing device, the computer equipment and the storage medium, if the condition that the response of the access of the target resource server to the client is delayed is detected in the process that the client accesses the target resource server, the target resource server is determined to possibly have faults, and at the moment, performance test is carried out on the target resource server to realize accurate analysis on the fault condition of the target resource server; further, under the condition that the performance test is not passed, a backup resource server corresponding to the target resource server is determined from the backup resource pool, so that access service is provided for the client through the backup server under the condition that the target resource server has faults, and the deployment requirement of the disaster recovery scheme is met.
Drawings
FIG. 1 is an application environment diagram of a method of processing an access request in one embodiment;
FIG. 2 is a flow diagram of a method of processing an access request in one embodiment;
FIG. 3 is a flow diagram of updating DNS server configuration data in one embodiment;
FIG. 4 is a block diagram of an access request processing apparatus in one embodiment;
fig. 5 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The access request processing method provided by the embodiment of the application can be applied to an application environment shown in fig. 1, wherein the application environment can be a customer service system, the customer service system comprises a user side 10, a domain name system DNS (Domain Name System, DNS) cluster 20, a backup resource pool and a control server, the backup resource pool comprises a plurality of resource servers 301, and the control server comprises an a record loop response component 401, a data synchronization component 402, a DNS failover component 403, a broadcasting component 404, a DNS cache component 405 and a HOST file generation component 406.
In one embodiment, as shown in fig. 2, an access request processing method is provided, which is described by taking an example that the method is applied to the control server in fig. 1, and the access request processing method includes the following steps:
s201, responding to the access request of the client, and feeding back the access address of the target resource server to the client so that the client accesses the target resource server based on the access address.
It will be appreciated that a domain name is the name of a computer or group of computers on the internet, which is made up of a series of letters separated by dots, typically containing the name of the organization, and which includes a two to three letter suffix to indicate the type of organization or country or region in which the domain is located. Domain name system is one of the key basic services in the internet, which provides fundamental support for numerous network applications.
The DNS cluster in this embodiment maps domain names and IP addresses to each other, so that people can conveniently access the internet without memorizing complex IP addresses. For example, domain name www.baidu.com, IP address 115.239.210.26, dns provides a mapping between the two. The client can find the entrance of the required site or resource through the domain name resolution service provided by the domain name server, and then access the site or resource; the target resource server is used for providing access service for the client.
Domain name resolution service refers to the process of converting a domain name into an IP address. In general, the specific process of domain name resolution is: when a client sends a domain name resolution request to a domain name server and a domain name to be converted needs to be mapped into an IP address, the domain name to be converted is placed in the domain name resolution request and is sent to the local domain name server in a user datagram protocol (User Datagram Protocol, UDP) message mode. After the local domain name server finds the IP address corresponding to the domain name in the local cache, the corresponding IP address is put in a response message and returned to the client.
Further, the a record loop response component, the data synchronization component, the DNS failover component, and the broadcast component in this embodiment are all deployed in the DNS cluster.
The system comprises an A record circulating response component, a plurality of A records circulating response component and a client, wherein the A record circulating response component is used for indicating each DNS server in a DNS cluster to respond to an access request of a client, and the A records circulating response is carried out on the plurality of A records according to a configuration rule; it is understood that the a record, also called a host record, is the most widely used DNS record, and the basic role of the a record is to describe what IP corresponds to a domain name, which is a correspondence between the domain name and an IP address, and the expression www.contoso.com192.168.1.1 is taken as a record.
The data synchronization component is configured to synchronize configuration data among multiple DNS servers in the DNS cluster, where the configuration data of each DNS server is configuration data required by the DNS server to perform domain name resolution, for example: view1192.168.0.1www.a.com 1.1.1.1, the meaning of this configuration data is: the domain name resolution address when the device with the IP address of 192.168.0.1 accesses the domain name is resolved to 1.1.1.1. Thus, when a device with an IP address of 192.168.0.1 accesses the domain name www.a.com, the device will access a device with an IP address of 1.1.1.1.
The DNS failover component identifies whether the target resource server is faulty based on the a-record routing response and determines whether the fault is resolved.
And the broadcasting component is used for broadcasting the fault of the resource pool, informing the DNS cluster and the resource server with the fault of the client, bypassing the fault resource server when the DNS executes the domain name resolution service, and pushing the resolution record to the client and the target resource server.
S202, in the process that the client accesses the target resource server, if the condition that the response delay exists in the access of the target resource server to the client is detected, performance test is conducted on the target resource server.
Specifically, the DNS failover component is configured to detect that, in a process that a client accesses a target resource server, a response delay exists in an access of the target resource server to the client, that is, to check whether a failure exists in the target resource server.
Further, the DNS failover component is further configured to perform performance testing on the target resource server, so as to monitor a failure state of the target resource server.
Alternatively, the performance test may be a test of the response status of the target resource server.
And S203, determining a backup resource server corresponding to the target resource server from the backup resource pool under the condition that the performance test is not passed, so that the backup server provides access service for the client.
The backup resource pool includes a plurality of available resource servers (i.e., the resource servers 301), and different available resource servers can be used to provide the same access service.
Specifically, in the case that the performance test fails, an available server which is in an idle state and can provide an access service corresponding to the access request is determined from the backup resource pool, and the available server is used as a backup resource server corresponding to the target resource server.
In the access request processing method, if the condition that the access of the target resource server to the client is delayed is detected in the process that the client accesses the target resource server, the target resource server is determined to possibly have faults, and at the moment, performance test is performed on the target resource server, so that the fault condition of the target resource server is accurately analyzed; further, under the condition that the performance test is not passed, a backup resource server corresponding to the target resource server is determined from the backup resource pool, so that access service is provided for the client through the backup server under the condition that the target resource server has faults, and the requirement of disaster recovery deployment is met.
As shown in fig. 3, this embodiment provides an alternative way to feed back the access address of the target resource server to the client in response to the access request of the client, that is, provides a way to refine S201. The specific implementation process can comprise the following steps:
s301, distributing the access request of the client to a Domain Name System (DNS) server in a Domain Name System (DNS) cluster according to a load balancing strategy.
Wherein the DNS cluster includes a plurality of domain name system DNS servers, configuration data for each domain name system DNS server being modifiable. The DNS cluster in this embodiment corresponds to a plurality of a records, where the plurality of a records are used to characterize whether the DNS cluster can answer to an access request of a client. For example, if the a record of the DNS cluster does not have an a record corresponding to the domain name in the access request, the access request cannot be answered.
Specifically, if the number of access requests of the clients received at the same time is multiple, the access requests of the multiple clients need to be distributed to DNS servers of each domain name system in an equalizing manner, and a record loop response component stores a load equalizing policy.
For example, if the DNS cluster includes 5 DNS servers, the load balancing policy is executed as follows: ordering the access requests, assigning the 1 st access request to the 1 st domain name system DNS server, assigning the 2 nd access request to the 2 nd domain name system DNS server, assigning the 3 rd access request to the 3 rd domain name system DNS server, assigning the 4 th access request to the 4 th domain name system DNS server, assigning the 5 th access request to the 5 th domain name system DNS server, assigning the 6 th access request to the 1 st domain name system DNS server … …, and so on.
S302, according to the allocation situation, the domain name system DNS server is instructed to inquire the access address of the target resource server corresponding to the access request of the client, and the access address of the target resource server is fed back to the client.
Further, according to the allocation situation, the configuration information of each domain name system DNS server is updated.
It can be understood that determining that the allocation situation includes that each DNS server of the domain name system executes different domain name resolution services respectively, where in order for each DNS server to execute a corresponding domain name resolution service, configuration data of each DNS server of the domain name system needs to be resolved according to the allocation situation.
Further, the method further comprises: and under the condition that the domain name system DNS server does not inquire the access address of the target resource server corresponding to the access request of the client, inquiring the access address of the target resource server corresponding to the access request of the client according to the cache record of the DNS cluster, and feeding back the access address of the target resource server to the client.
The DNS cache component is deployed in each resource server in the backup resource pool, and is configured to record, in real time, a DNS resolution record of the resource server in a latest preset time period, where the preset time period may be 30 minutes.
When a request between a client and a DNS cluster or between a resource server and the DNS cluster in the customer service system is overtime or abnormal, the HOST file generating component in this embodiment may generate a temporary HOST file according to the DNS resolution record. The HOST file refers to a file containing a correspondence between a website domain name and an IP address.
In this embodiment, the HOST file is used to ensure a mapping relationship between a user end and a resource server in a customer service system, and can still provide a domain name resolution service when a single point failure exists in a DNS cluster (a single DNS server fails).
In one embodiment, the present embodiment provides an alternative way to perform performance testing on a target resource server, and the specific implementation process may include: and continuously sending an access request to the target resource server by adopting a single byte request mode.
The single byte request mode refers to that only one byte of data is transmitted in each access request, and the access request is removed and the bus is released after one byte is transmitted.
In this embodiment, the DNS failover component is configured to continuously send an access request to the target resource server, and determine, according to a feedback result of the request, a performance test result of the target resource server, where the performance test result of the target resource server includes a failure state or an available state.
Further, after determining that the performance test fails, the method further comprises: generating a fault event corresponding to the target resource server; and feeding back the fault event to the DNS cluster and the corresponding client of the target resource server.
Specifically, the DNS failover component forwards the performance test result to the broadcast component, which notifies each DNS server in the DNS cluster, and the client of the failure message of the target resource server.
In the embodiment, the performance of the target resource server can be continuously tested by adopting a single byte request mode, so that granularity of analyzing faults of the target resource server is thinned, and accuracy of fault analysis is improved.
On the basis of the above embodiment, the present embodiment provides an optional example of an access request processing method, and the specific implementation process includes:
the A record circulating response component is used for responding to the access request of the client and distributing the access request of the client to a Domain Name System (DNS) server in a Domain Name System (DNS) cluster according to a load balancing strategy; the A record circulation response component is used for indicating a Domain Name System (DNS) server to inquire an access address of a target resource server corresponding to an access request of a client according to the allocation condition and feeding back the access address of the target resource server to the client;
the DNS fault transfer component is used for continuously sending an access request to the target resource server by adopting a single byte request mode if detecting that the access of the target resource server to the client has a response delay in the process of accessing the target resource server by the client, and performing performance test on the target resource server; the DNS fault transfer component is further used for determining a backup resource server corresponding to the target resource server from the backup resource pool under the condition that the performance test fails, so that the backup server provides access service for the client; the DNS fault transfer component is also used for generating a fault event corresponding to the target resource server;
and the broadcasting component is used for feeding back the fault event to the DNS cluster and the corresponding client of the target resource server.
The specific process can be referred to the description of the above method embodiment, and its implementation principle and technical effect are similar, and will not be repeated here.
It should be understood that, although the steps in the flowcharts related to the above embodiments are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides an access request processing device for implementing the above related access request processing method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in the embodiments of the access request processing device or devices provided below may refer to the limitation of the access request processing method in the above description, which is not repeated here.
In one embodiment, as shown in fig. 4, there is provided an access request processing apparatus 1 including: a response module 11, a test module 12 and a backup module 13, wherein:
a response module 11, configured to respond to an access request of the client, and feed back an access address of the target resource server to the client, so that the client accesses the target resource server based on the access address;
the testing module 12 is configured to perform performance testing on the target resource server if it is detected that the target resource server has a response delay in accessing the client during the process of accessing the target resource server by the client;
and the backup module 13 is configured to determine, from the backup resource pool, a backup resource server corresponding to the target resource server, so that the backup server provides an access service to the client if the performance test fails.
In one embodiment, the response module 11 includes:
the load balancing sub-module is used for distributing the access request of the client to a Domain Name System (DNS) server in a Domain Name System (DNS) cluster according to a load balancing strategy;
and the feedback sub-module is used for indicating the domain name system DNS server to inquire the access address of the target resource server corresponding to the access request of the client according to the allocation condition and feeding back the access address of the target resource server to the client.
In one embodiment, the access request device further includes an update module for: and updating the configuration information of each Domain Name System (DNS) server according to the allocation condition.
In one embodiment, the test module 12 is further configured to: and continuously sending an access request to the target resource server by adopting a single byte request mode.
In one embodiment, the access request processing apparatus further includes a fault recording module for: generating a fault event corresponding to the target resource server;
and feeding back the fault event to the DNS cluster and the corresponding client of the target resource server.
In one embodiment, the response module 11 is further configured to: and under the condition that the domain name system DNS server does not inquire the access address of the target resource server corresponding to the access request of the client, inquiring the access address of the target resource server corresponding to the access request of the client according to the cache record of the DNS cluster, and feeding back the access address of the target resource server to the client.
The respective modules in the above-described access request processing apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used for storing data of the access request processing method. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of processing an access request.
It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
responding to an access request of the client, and feeding back an access address of the target resource server to the client so that the client accesses the target resource server based on the access address;
in the process of accessing the target resource server by the client, if the condition that the response delay exists in the access of the target resource server to the client is detected, performing performance test on the target resource server;
and under the condition that the performance test is not passed, determining a backup resource server corresponding to the target resource server from the backup resource pool so that the backup server provides access service for the client.
In one embodiment, when the processor executes logic for feeding back an access address of a target resource server to a client in response to an access request of the client, the following steps are specifically implemented: distributing the access request of the client to a Domain Name System (DNS) server in a DNS cluster according to a load balancing strategy; and according to the allocation situation, the domain name system DNS server is instructed to inquire the access address of the target resource server corresponding to the access request of the client, and the access address of the target resource server is fed back to the client.
In one embodiment, the processor when executing the computer program further performs the steps of: and updating the configuration information of each Domain Name System (DNS) server according to the allocation condition.
In one embodiment, when the processor executes the logic of the computer program for performing performance test on the target resource server, the following steps are specifically implemented: and continuously sending an access request to the target resource server by adopting a single byte request mode.
In one embodiment, the processor when executing the computer program further performs the steps of: generating a fault event corresponding to the target resource server; and feeding back the fault event to the DNS cluster and the corresponding client of the target resource server.
In one embodiment, when the processor executes logic for feeding back an access address of a target resource server to a client in response to an access request of the client, the following steps are specifically implemented: and under the condition that the domain name system DNS server does not inquire the access address of the target resource server corresponding to the access request of the client, inquiring the access address of the target resource server corresponding to the access request of the client according to the cache record of the DNS cluster, and feeding back the access address of the target resource server to the client.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
responding to an access request of the client, and feeding back an access address of the target resource server to the client so that the client accesses the target resource server based on the access address;
in the process of accessing the target resource server by the client, if the condition that the response delay exists in the access of the target resource server to the client is detected, performing performance test on the target resource server;
and under the condition that the performance test is not passed, determining a backup resource server corresponding to the target resource server from the backup resource pool so that the backup server provides access service for the client.
In one embodiment, the logic for feeding back the access address of the target resource server to the client in response to the access request of the client is executed by the processor, and specifically implements the steps of: distributing the access request of the client to a Domain Name System (DNS) server in a DNS cluster according to a load balancing strategy; and according to the allocation situation, the domain name system DNS server is instructed to inquire the access address of the target resource server corresponding to the access request of the client, and the access address of the target resource server is fed back to the client.
In one embodiment, the computer program when executed by the processor further performs the steps of: and updating the configuration information of each Domain Name System (DNS) server according to the allocation condition.
In one embodiment, the logic of the computer program for performing performance testing on the target resource server is executed by the processor, and specifically implements the following steps: and continuously sending an access request to the target resource server by adopting a single byte request mode.
In one embodiment, the computer program when executed by the processor further performs the steps of: generating a fault event corresponding to the target resource server; and feeding back the fault event to the DNS cluster and the corresponding client of the target resource server.
In one embodiment, the logic for feeding back the access address of the target resource server to the client in response to the access request of the client is executed by the processor, and specifically implements the steps of: and under the condition that the domain name system DNS server does not inquire the access address of the target resource server corresponding to the access request of the client, inquiring the access address of the target resource server corresponding to the access request of the client according to the cache record of the DNS cluster, and feeding back the access address of the target resource server to the client.
In one embodiment, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
responding to an access request of the client, and feeding back an access address of the target resource server to the client so that the client accesses the target resource server based on the access address;
in the process of accessing the target resource server by the client, if the condition that the response delay exists in the access of the target resource server to the client is detected, performing performance test on the target resource server;
and under the condition that the performance test is not passed, determining a backup resource server corresponding to the target resource server from the backup resource pool so that the backup server provides access service for the client.
In one embodiment, the logic for feeding back the access address of the target resource server to the client in response to the access request of the client is executed by the processor, and specifically implements the steps of: distributing the access request of the client to a Domain Name System (DNS) server in a DNS cluster according to a load balancing strategy; and according to the allocation situation, the domain name system DNS server is instructed to inquire the access address of the target resource server corresponding to the access request of the client, and the access address of the target resource server is fed back to the client.
In one embodiment, the computer program when executed by the processor further performs the steps of: and updating the configuration information of each Domain Name System (DNS) server according to the allocation condition.
In one embodiment, the logic of the computer program for performing performance testing on the target resource server is executed by the processor, and specifically implements the following steps: and continuously sending an access request to the target resource server by adopting a single byte request mode.
In one embodiment, the computer program when executed by the processor further performs the steps of: generating a fault event corresponding to the target resource server; and feeding back the fault event to the DNS cluster and the corresponding client of the target resource server.
In one embodiment, the logic for feeding back the access address of the target resource server to the client in response to the access request of the client is executed by the processor, and specifically implements the steps of: and under the condition that the domain name system DNS server does not inquire the access address of the target resource server corresponding to the access request of the client, inquiring the access address of the target resource server corresponding to the access request of the client according to the cache record of the DNS cluster, and feeding back the access address of the target resource server to the client.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.
Claims (10)
1. A method of processing an access request, the method comprising:
responding to an access request of a client, and feeding back an access address of a target resource server to the client so that the client accesses the target resource server based on the access address;
in the process that the client accesses the target resource server, if the condition that the response delay exists in the access of the target resource server to the client is detected, performing performance test on the target resource server;
and under the condition that the performance test is not passed, determining a backup resource server corresponding to the target resource server from a backup resource pool so that the backup server provides access service for the client.
2. The method according to claim 1, wherein said feeding back an access address of a target resource server to a client in response to an access request of the client comprises:
distributing the access request of the client to a Domain Name System (DNS) server in a DNS cluster according to a load balancing strategy;
and according to the allocation situation, the DNS server is instructed to inquire the access address of the target resource server corresponding to the access request of the client, and the access address of the target resource server is fed back to the client.
3. The method according to claim 1, wherein after said indicating each domain name system DNS server according to the allocation, querying access addresses of the target resource servers to which the access requests of the clients respectively correspond, the method further comprises:
and updating the configuration information of the DNS servers of each domain name system according to the allocation condition.
4. The method of claim 1, wherein said performing a performance test on said target resource server comprises:
and continuously sending the access request to the target resource server by adopting a single byte request mode.
5. The method of claim 2, wherein after determining that the performance test fails, the method further comprises:
generating a fault event corresponding to the target resource server;
and feeding the fault event back to the DNS cluster and the corresponding client of the target resource server.
6. The method according to claim 2, wherein the feeding back the access address of the target resource server to the client in response to the access request of the client comprises:
and under the condition that the domain name system DNS server does not inquire the access address of the target resource server corresponding to the access request of the client, inquiring the access address of the target resource server corresponding to the access request of the client according to the cache record of the DNS cluster, and feeding back the access address of the target resource server to the client.
7. An access request processing apparatus, the apparatus comprising:
the response module is used for responding to the access request of the client and feeding back the access address of the target resource server to the client so that the client can access the target resource server based on the access address;
the testing module is used for testing the performance of the target resource server if detecting that the target resource server has response delay to the access of the client in the process of accessing the target resource server by the client;
and the backup module is used for determining the backup resource server corresponding to the target resource server from the backup resource pool under the condition that the performance test is not passed, so that the backup server provides access service for the client.
8. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 6 when the computer program is executed.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
10. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310953396.0A CN117041350A (en) | 2023-07-31 | 2023-07-31 | Access request processing method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310953396.0A CN117041350A (en) | 2023-07-31 | 2023-07-31 | Access request processing method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117041350A true CN117041350A (en) | 2023-11-10 |
Family
ID=88636478
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310953396.0A Pending CN117041350A (en) | 2023-07-31 | 2023-07-31 | Access request processing method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117041350A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115622921A (en) * | 2022-09-26 | 2023-01-17 | 北京永辉科技有限公司 | Test traffic introduction method in cloud migration, target cloud test method and system |
CN118779159A (en) * | 2024-09-06 | 2024-10-15 | 阿里云计算有限公司 | Disaster recovery system, disaster recovery processing method, equipment, storage medium and program product |
-
2023
- 2023-07-31 CN CN202310953396.0A patent/CN117041350A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115622921A (en) * | 2022-09-26 | 2023-01-17 | 北京永辉科技有限公司 | Test traffic introduction method in cloud migration, target cloud test method and system |
CN118779159A (en) * | 2024-09-06 | 2024-10-15 | 阿里云计算有限公司 | Disaster recovery system, disaster recovery processing method, equipment, storage medium and program product |
CN118779159B (en) * | 2024-09-06 | 2025-02-18 | 阿里云计算有限公司 | Disaster recovery system, disaster recovery processing method, equipment, storage medium and program product |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11269718B1 (en) | Root cause detection and corrective action diagnosis system | |
US10506033B2 (en) | Distributed global load-balancing system for software-defined data centers | |
US10445197B1 (en) | Detecting failover events at secondary nodes | |
US9515869B2 (en) | Systems and methods for server cluster application virtualization | |
CN117041350A (en) | Access request processing method, device, computer equipment and storage medium | |
CN106982236B (en) | An information processing method, device and system | |
US9483482B2 (en) | Partitioning file system namespace | |
US20140059315A1 (en) | Computer system, data management method and data management program | |
US8943082B2 (en) | Self-assignment of node identifier in a cluster system | |
WO2021213171A1 (en) | Server switching method and apparatus, management node and storage medium | |
CN112380072A (en) | Multi-data center access method and system | |
CN112866408B (en) | Service switching method, device, equipment and storage medium in cluster | |
CN106452836B (en) | main node setting method and device | |
US20200125452A1 (en) | Systems and methods for cross-regional back up of distributed databases on a cloud service | |
US8996607B1 (en) | Identity-based casting of network addresses | |
US8977595B1 (en) | Message-recovery file log locating and monitoring | |
WO2024077930A9 (en) | Service access method and apparatus, and storage medium and electronic device | |
CN112492011A (en) | Distributed storage system fault switching method, system, terminal and storage medium | |
US8447833B2 (en) | Reading and writing during cluster growth phase | |
CN119544575A (en) | Method, device and computer equipment for detecting upper link of content distribution node | |
US9172584B1 (en) | Method and system for high-availability cluster data protection | |
US12126516B2 (en) | Techniques for DNS ecosystem health checks | |
US11824947B2 (en) | Connecting application instances to client devices | |
CN117319501A (en) | Data access method, system, medium and equipment based on cloud computing and K8s cluster deployment | |
CN113596195B (en) | Public IP address management method, device, main node and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |