CN111885145A - Switching method, device, equipment and computer storage medium - Google Patents

Switching method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN111885145A
CN111885145A CN202010701941.3A CN202010701941A CN111885145A CN 111885145 A CN111885145 A CN 111885145A CN 202010701941 A CN202010701941 A CN 202010701941A CN 111885145 A CN111885145 A CN 111885145A
Authority
CN
China
Prior art keywords
address
destination
domain name
destination address
switching
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
Application number
CN202010701941.3A
Other languages
Chinese (zh)
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010701941.3A priority Critical patent/CN111885145A/en
Publication of CN111885145A publication Critical patent/CN111885145A/en
Pending legal-status Critical Current

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/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0668Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • 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 application discloses a switching method, a switching device, switching equipment and a computer storage medium, and relates to the field of computers, in particular to the field of networks and the field of cloud computing. The specific implementation scheme is as follows: acquiring a destination domain name to be monitored; acquiring a destination address which is corresponding to the destination domain name and needs to be monitored, wherein the destination address is an address for accessing the destination domain name at present; judging whether the destination address is abnormal or not according to the access condition of the destination address; and under the condition that the destination address is judged to be abnormal, switching the access address of the destination domain name from the destination address to another one of all addresses corresponding to the destination domain name according to a preset switching strategy. According to the embodiment of the application, the domain name can be automatically switched under the condition that the domain name is abnormal, so that the smooth proceeding of the access process of a user is ensured.

Description

Switching method, device, equipment and computer storage medium
Technical Field
The application relates to the technical field of computers, in particular to the technical field of networks and the field of cloud computing.
Background
Distributed storage is divided into file storage, object storage and block storage. In a distributed object storage system, user access portal availability plays a key role. When a user access entry is abnormal, the back-end storage system cannot receive an access request of the user and cannot sense the abnormality of the user access entry, so that access flow is lost and the influence on the user is great. The user access entry is generally provided for the client by a domain name binding back end VIP (Virtual IP Address), the probability of domain name abnormality is low, and the VIP abnormality probability is high due to the existence of a computer room abnormality or a VIP yellow-related blocked scene. When the VIP is abnormal, the domain name may not be accessible.
Disclosure of Invention
In order to solve at least one problem in the prior art, embodiments of the present application provide a handover method, apparatus, device, and computer storage medium.
Based on one aspect of the present disclosure, there is provided a handover method, including:
acquiring a destination domain name to be monitored;
acquiring a destination address which is corresponding to a destination domain name and needs to be monitored, wherein the destination address is an address of a current access destination domain name;
judging whether the destination address is abnormal or not according to the access condition of the destination address;
and under the condition that the destination address is judged to be abnormal, switching the access address of the destination domain name from the destination address to another address in all addresses corresponding to the destination domain name according to a preset switching strategy.
Based on another aspect of the present disclosure, there is provided a switching apparatus including:
the domain name acquisition module is used for acquiring a target domain name to be monitored;
the system comprises an address acquisition module, a monitoring module and a monitoring module, wherein the address acquisition module is used for acquiring a destination address which is corresponding to a destination domain name and needs to be monitored, and the destination address is the address of the current access destination domain name;
the abnormity judgment module is used for judging whether the destination address is abnormal or not according to the access condition of the destination address;
and the switching execution module is used for switching the access address of the destination domain name from the destination address to another address in all addresses corresponding to the destination domain name according to a preset switching strategy under the condition that the destination address is judged to be abnormal.
Based on another aspect of the present disclosure, there is provided an electronic device including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform a method provided by any one of the embodiments of the present application.
In accordance with another aspect of the present disclosure, there is provided a non-transitory computer readable storage medium storing computer instructions, wherein the computer instructions are configured to cause a computer to perform the method provided by any one of the embodiments of the present application.
According to the method and the device, the destination address is monitored according to the set strategy, and the address is switched according to the set switching strategy when the destination address is abnormal, so that the technical problem that a user enters the abnormal user is solved, and the technical effect that the user can access the domain name when the address is abnormal is achieved.
By the aid of the method and the device, automatic switching of the access addresses can be completed quickly, usability of the distributed storage system is improved, and meanwhile, labor input is reduced in a fault stopping process.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a schematic flow chart diagram of a handover method according to an embodiment of the present application;
FIG. 2 is a first schematic diagram of a switching device according to an embodiment of the present application;
FIG. 3 is a second schematic diagram of a switching device according to another embodiment of the present application;
FIG. 4 is a third schematic diagram of a switching device according to yet another embodiment of the present application;
FIG. 5 is a fourth schematic view of a switching apparatus according to yet another embodiment of the present application;
FIG. 6 is a fifth schematic view of a switching apparatus according to yet another embodiment of the present application;
fig. 7 is a sixth schematic view of an operation scenario of a switching device according to another embodiment of the present application;
fig. 8 is a block diagram of an electronic device for implementing a method of handover according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
According to the switching method, when the situation that the destination address corresponding to the destination domain name and in use is abnormal is monitored, the access address is switched according to a preset switching strategy.
An embodiment of the present application first provides a handover method, as shown in fig. 1, including:
step 101: acquiring a destination domain name to be monitored;
step 102: acquiring a destination address which is corresponding to a destination domain name and needs to be monitored, wherein the destination address is an address of a current access destination domain name;
step 103: judging whether the destination address is abnormal or not according to the access condition of the destination address;
step 104: and under the condition that the destination address is judged to be abnormal, switching the access address of the destination domain name from the destination address to another address in all addresses corresponding to the destination domain name according to a preset switching strategy.
In this embodiment, the destination domain name to be monitored may be one domain name or multiple domain names. These domain names may be customized to allow address switching.
The destination address to be monitored corresponding to the destination domain name may be an address entered by the user when accessing the destination domain name. May be one of a plurality of addresses corresponding to the destination domain name.
The access status of the destination address may refer to a normal or abnormal status of all users accessing the destination address. For example, the number of consecutive unsuccessful visits to the destination domain reaches a set value.
The preset switching policy may be a selection policy for another address of a destination domain name for switching with a destination. In the distributed object storage, the problems of large user access flow and high cost of flow accounting for the total cost exist, and the domain name entry provided by the service binds the addresses of a plurality of machine rooms and operators in order to improve the service availability. Different switch granularities are provided for different users. From historical experience, when the destination address fails, the probability of address failure of the same machine room is high, and secondary failure may occur when the destination address is switched to the local machine room. Therefore, when the user is a core user, if the destination address fails, another address of the different-place machine room under the same domain name is preferentially selected to execute the switching operation, so that the switching times can be reduced, and the availability of the switched address is improved. When the user is a common user, if the destination address fails, another address under the same domain name of the local machine room is selected to execute switching, so that the flow cost can be reduced.
The destination address can be a main address preset by a destination domain name; the other of all the addresses corresponding to the destination domain name may be a preset backup address of the destination domain name. After the access address of the destination domain name is switched from the destination address to another address of all addresses corresponding to the destination domain name, the access address corresponding to the destination domain name may be switched from the destination address a to another address B, and then when the user accesses the destination domain name, the user accesses through another address B corresponding to the destination domain name.
In the embodiment of the application, under the condition that the abnormality of the destination address of the destination domain name is monitored, the access address of the destination domain name is switched to another one of the addresses corresponding to the destination domain name from the destination address according to a preset switching strategy, so that a countermeasure can be quickly taken against the condition that a user entry in a system is abnormal, the condition that the user entry cannot be accessed due to the abnormal address is avoided, the flow of the user is lost, and the success rate of the user access and the user experience are improved.
The destination address may be a VIP corresponding to the destination domain name.
In another embodiment, the determining whether the destination address is abnormal according to the access status of the destination address includes:
and when the abnormal rate of the target client accessing the target address is a first set value, judging that the target address is abnormal.
In this embodiment, the target client accessing the destination address may be all clients accessing the destination address, or may be a selected part of all clients accessing the destination address. The exception rate of the target client accessing the destination address may be a ratio of the number of exceptions to the total number of accesses during the process of accessing the destination address by the target client.
Under a loose monitoring strategy, whether the destination address is abnormal can be judged only according to the abnormal rate of the destination address accessed by the target client, and the number of times of failed access of the user can be reduced to a greater extent.
In another embodiment, the determining whether the destination address is abnormal according to the access status of the destination address includes:
and when the abnormal rate of the target client accessing the destination address is a first set value and the ping instruction of the times of continuously executing a second set value on the destination address fails, judging that the destination address is abnormal.
In this embodiment, under a strict monitoring policy, in the case that the destination address is abnormal, a ping instruction is executed for the destination address, and if the number of times of continuous ping failures reaches a set value, it is determined that the destination address is abnormal, and the number of addresses in the destination domain name can be saved by adopting the strict monitoring policy.
In another embodiment, switching the access address of the destination domain name from the destination address to another address of all addresses corresponding to the destination domain name according to a preset switching policy includes:
under the condition that the preset switching strategy is a switching strategy for reducing switching time, switching the destination address into an address corresponding to the destination domain name in a different-place machine room;
and under the condition that the preset switching strategy is a switching strategy for reducing the flow cost, switching the destination address into an address corresponding to the destination domain name in the local machine room.
Because the requirements for address switching are different under different scenarios. For example, for an important core user, it is necessary to provide better product use experience for the core user as much as possible, and therefore, when performing address switching, it is necessary to shorten the address switching time as much as possible. When one destination address is abnormal, the probability that other addresses distributed in the machine room and the destination address are also abnormal is higher, so that the machine room is switched to a different-place machine room, the trial and error times of address access can be reduced, and the switching time is saved. Because the selection of the address of the different-place machine room for switching has larger flow consumption, the address of the same machine room can be preferentially selected for switching for the non-core user.
In this embodiment, different switching strategies can be formulated according to different user requirements, so as to meet the service requirements of different users.
In another embodiment, when it is determined that the destination address is abnormal, switching the access address of the destination domain name from the destination address to another address of all addresses corresponding to the destination domain name according to a preset switching policy, further includes:
and when the number of destination addresses which need to be switched simultaneously currently exceeds a set threshold value, refusing to execute the step of switching the access address of the destination domain name from the destination address to the other address in all addresses corresponding to the destination domain name.
In large-scale distributed object storage, user access flow is large, a plurality of addresses of a plurality of domain names which are hung with machine rooms and operators exist, when a single machine room with large outlet flow fails, if the plurality of domain names execute switching at the same time, the plurality of domain names can be switched to another machine room with small outlet flow at the same time, and further flow avalanche is caused, and other services of the machine room with small outlet flow are influenced. In this embodiment, a threshold is set, and when the number of destination addresses that need to be switched exceeds the set threshold, the execution of the switching is rejected. Meanwhile, when the machine rooms in different places are built in the previous period, the machine rooms with large outlet flow can be selected for the clusters with large user flow, so that switching tasks of more destination addresses can be received at the same time.
In this embodiment, when the traffic generated during switching is too large, the switching operation is not performed, so that a new problem caused by that the switching traffic is too large and exceeds the traffic that can be borne by the machine room in which another address of all addresses corresponding to the destination domain name is located is avoided. The destination address can be a VIP corresponding to the destination domain name, the health state of the VIP is monitored through the monitoring system, when the monitored VIP reaches an abnormal threshold value, a VIP abnormal alarm can be triggered, the VIP switching platform is manually logged in, and a proper VIP is selected to switch and stop damage.
In the embodiment of the application, an automatic switching Dry Run (trial Run) mode can be set, so that the operation and maintenance performance and the safety are improved. The Dry Run mode is used for simulating switching when the VIP automatic switching strategy is changed or just on line, when the main VIP fault is detected in the mode, a proper standby VIP is selected, the switching strategy is issued but the switching strategy does not actually take effect, and the aim is to test the effect of the switching strategy. And observing whether the switching strategy is in accordance with the expectation or not by simulating the process of automatic switching of the VIPs when the main VIP fails.
An embodiment of the present application further provides a switching device, as shown in fig. 2, including:
a domain name obtaining module 201, configured to obtain a destination domain name to be monitored;
an address obtaining module 202, configured to obtain a destination address to be monitored, where the destination address corresponds to a destination domain name, and the destination address is an address of a currently visited destination domain name;
the exception judging module 203 is used for judging whether the destination address is abnormal or not according to the access condition of the destination address;
and the switching execution module 204 is configured to switch the access address of the destination domain name from the destination address to another address of all addresses corresponding to the destination domain name according to a preset switching policy when it is determined that the destination address is abnormal.
In one embodiment, as shown in fig. 3, the abnormality determining module further includes:
a first determining unit 301, configured to determine that an abnormality occurs in the destination address when an abnormality rate of the destination client accessing the destination address is a first set value.
In one embodiment, as shown in fig. 4, the abnormality determining module further includes:
a second determination unit 401, configured to determine that the destination address is abnormal if the ping fails when the abnormality rate of the destination client accessing the destination address is a first set value and the number of times of continuously executing a second set value on the destination address.
In one embodiment, as shown in fig. 5, the handover performing module further includes:
a first executing unit 501, configured to switch a destination address to an address corresponding to a destination domain name in a different-place machine room when a preset switching policy is a switching policy that reduces switching time;
the second executing unit 502 is configured to, if the preset switching policy is a switching policy that reduces traffic cost, switch the destination address to an address corresponding to the destination domain name in the local computer room.
In one embodiment, in the case that it is determined that the destination address is abnormal, the handover performing module is further configured to:
and when the number of destination addresses which need to be switched simultaneously currently exceeds a set threshold value, refusing to execute the step of switching the access address of the destination domain name from the destination address to the other address in all addresses corresponding to the destination domain name.
The switching device provided by the embodiment of the application can accurately identify VIP abnormity when a VIP fault occurs, selects a proper standby VIP and quickly completes VIP automatic switching.
An example of the switching device provided in the present application, as shown in fig. 6, includes: a VIP loading module 601, a VIP monitoring module 602, a VIP switching module 603, wherein,
the VIP loading module 601: the module can acquire the available domain names of the full cluster, namely all the available domain names of one server side, through the operation and maintenance data center. And reading a domain name white list which can be automatically switched from the domain names available in the full cluster. The domain name white list capable of automatic switching can be a domain name allowing automatic address switching. The domain name white list capable of automatically switching the zones is customizable by a user, a plurality of domain names are provided by a data system, the switching function is only opened for a specific domain name, and the domain name without the switching function is not in the domain name white list capable of automatically switching. For example, the domain name under maintenance may not be set in the white list, the domain name for object storage may open automatic switching, and the domain name for offline storage may not open automatic switching. The domain names in the white list are the domain names to be monitored, namely the destination domain names. There may be many VIPs under a domain name in the domain name white list that can be automatically switched, and there are primary VIPs and backup VIPs of the domain name, and an incoming VIP can switch within the VIP range under the domain name when accessing the domain name. The VIP loading module 601 calls the VIP switching platform to acquire all VIPs of domain names that can be automatically switched by the current cluster. The domain names in the domain name white list capable of being automatically switched can be analyzed through a public network domain name analysis system, and the VIP under the domain names is obtained.
The VIP monitoring module 602: the module is responsible for VIP health state acquisition, namely judging whether the VIP is abnormal or not according to the VIP access condition. The VIP monitoring module 602 may determine whether the VIP is abnormal by setting a policy. For example, the setting policy may be a strict mode policy, and under the strict mode policy, when the VIP abnormality rates obtained by obtaining all the operator monitoring clients are set values (e.g., 100%), and the VIP that reaches the set value abnormality rate fails to perform ping continuously for a set number of times (e.g., 3 times), it is determined that the VIP is abnormal. The setting policy may also be a loose mode policy: and when the VIP abnormal rate acquired by the monitoring client of the same operator exceeds a threshold value, judging that the VIP is abnormal.
The VIP switching module 603: the module is responsible for selecting a proper standby VIP to call the VIP switching platform to complete the switching operation, and the switching strategy of the VIP switching module 603 can be set as required. For example, the switching policy may be a same-room priority policy, that is, a VIP in the same room is preferentially selected to switch. Under the same machine room strategy, when the destination address is the main VIP and the main VIP is abnormal, the VIP in the same machine room is preferentially selected to be switched among all available standby VIPs in the same operator, and the same machine room priority strategy can be used for a VIP forbidden scene. For another example, the switching policy may be a different place machine room priority policy, that is, the VIP of the different place machine room is preferentially selected for switching. Under the priority strategy of the different-place machine room, when the main VIP is abnormal, the VIP of the different-place machine room is preferentially selected from all available standby VIPs of the same operator, and the scenes of poor quality of machine room outlets and fault of the operator are mainly used.
In another example of the present application, as shown in fig. 7, the switching means includes a VIP monitoring platform 701, a VIP switching platform 702, and a VIP presentation platform 703. The VIP monitoring platform 701 obtains the global domain name corresponding to the server and the global VIP corresponding to the global domain name from the operation and maintenance data center, and loads the global VIP through the VIP loading module 704. The VIP switching platform 702 monitors the loaded VIP using the VIP monitoring platform 701, and for an abnormal VIP, switching is performed at the VIP switching platform 702. The VIP display platform 703 displays the domain name-bound primary VIP and the standby VIP.
The functions of each module in each apparatus in the embodiment of the present application may refer to corresponding descriptions in the above method, and are not described herein again.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 8 is a block diagram of an electronic device according to the handover method of the embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 8, the electronic apparatus includes: one or more processors 801, memory 802, and interfaces for connecting the various components, including a high speed interface and a low speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display Graphical information for a Graphical User Interface (GUI) on an external input/output device, such as a display device coupled to the Interface. In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). Fig. 8 illustrates an example of a processor 801.
The memory 802 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by the at least one processor, so that the at least one processor executes the handover method provided by the present application. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to perform the handover method provided by the present application.
The memory 802 is a non-transitory computer readable storage medium, and can be used for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the switching method in the embodiment of the present application (for example, the domain name obtaining module 201, the address obtaining module 202, the anomaly determination module 203, and the switching execution module 204 shown in fig. 2). The processor 801 executes various functional applications of the server and data processing by running non-transitory software programs, instructions, and modules stored in the memory 802, that is, implements the switching method in the above-described method embodiments.
The memory 802 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the electronic device of the switching method, and the like. Further, the memory 802 may include high speed random access memory and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory 802 optionally includes memory located remotely from the processor 801, which may be connected to the electronic devices via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device may further include: an input device 803 and an output device 804. The processor 801, the memory 802, the input device 803, and the output device 804 may be connected by a bus or other means, and are exemplified by a bus in fig. 8.
The input device 803 may receive input numeric or character information and generate key signal inputs related to user settings and function controls of the electronic apparatus described above, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or other input devices. The output devices 804 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. The Display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) Display, and a plasma Display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, Integrated circuitry, Application Specific Integrated Circuits (ASICs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (Cathode Ray Tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, under the condition that the abnormality of the destination address of the destination domain name is monitored, the access address of the destination domain name is switched to another address corresponding to the destination domain name from the destination address according to the preset switching strategy, so that a countermeasure can be quickly taken against the condition that a user entry in a system is abnormal, the condition that the user cannot access due to the abnormal address is avoided, the flow of the user is lost, and the success rate of the user access and the user experience are improved.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present application can be achieved, and the present invention is not limited herein.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (12)

1. A method of handover, comprising:
acquiring a destination domain name to be monitored;
acquiring a destination address which is corresponding to the destination domain name and needs to be monitored, wherein the destination address is an address for accessing the destination domain name at present;
judging whether the destination address is abnormal or not according to the access condition of the destination address;
and under the condition that the destination address is judged to be abnormal, switching the access address of the destination domain name from the destination address to another one of all addresses corresponding to the destination domain name according to a preset switching strategy.
2. The method of claim 1, wherein the determining whether the destination address is abnormal according to the access status of the destination address comprises:
and under the condition that the abnormal rate of the target client accessing the target address is a first set value, judging that the target address is abnormal.
3. The method of claim 1, wherein the determining whether the destination address is abnormal according to the access status of the destination address comprises:
and when the target client accessing the destination address has a first set value as the abnormal rate of accessing the destination address and fails in ping instructions for continuously executing a second set value for the destination address, judging that the destination address is abnormal.
4. The method according to claim 1, wherein the switching the access address of the destination domain name from the destination address to another address of all addresses corresponding to the destination domain name according to a preset switching policy comprises:
under the condition that the preset switching strategy is a switching strategy for reducing switching time, switching the destination address into an address corresponding to the destination domain name in a different-place machine room;
and under the condition that the preset switching strategy is a switching strategy for reducing the flow cost, switching the destination address into an address corresponding to the destination domain name in a local machine room.
5. The method of claim 1, further comprising:
and when the number of the destination addresses which need to be switched simultaneously currently exceeds a set threshold value, refusing to execute the step of switching the access address of the destination domain name from the destination address to another address in all addresses corresponding to the destination domain name.
6. A switching device, comprising:
the domain name acquisition module is used for acquiring a target domain name to be monitored;
an address obtaining module, configured to obtain a destination address to be monitored, where the destination address corresponds to the destination domain name, and the destination address is an address where the destination domain name is currently accessed;
the abnormity judging module is used for judging whether the destination address is abnormal or not according to the access condition of the destination address;
and the switching execution module is used for switching the access address of the destination domain name from the destination address to another address in all addresses corresponding to the destination domain name according to a preset switching strategy under the condition that the destination address is judged to be abnormal.
7. The apparatus of claim 6, wherein the anomaly determination module further comprises:
and the first judgment unit is used for judging that the destination address is abnormal under the condition that the abnormal rate of the destination address accessed by the target client accessing the destination address is a first set value.
8. The apparatus of claim 6, wherein the anomaly determination module further comprises:
and a second determination unit configured to determine that the destination address is abnormal, when a ping fails, in which an abnormality rate of a target client accessing the destination address is a first set value and a second set value is continuously executed for the destination address.
9. The apparatus of claim 6, wherein the handover performing module further comprises:
the first execution unit is used for switching the destination address into an address corresponding to the destination domain name in a different-place machine room under the condition that the preset switching strategy is a switching strategy for reducing switching time;
and the second execution unit is used for switching the destination address into an address corresponding to the destination domain name in a local machine room under the condition that the preset switching strategy is a switching strategy for reducing the flow cost.
10. The apparatus of claim 6, wherein in the event that the destination address is determined to be anomalous, the apparatus is further configured to:
and when the number of the destination addresses which need to be switched simultaneously currently exceeds a set threshold value, refusing to execute the step of switching the access address of the destination domain name from the destination address to another address in all addresses corresponding to the destination domain name.
11. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5.
12. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-5.
CN202010701941.3A 2020-07-20 2020-07-20 Switching method, device, equipment and computer storage medium Pending CN111885145A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010701941.3A CN111885145A (en) 2020-07-20 2020-07-20 Switching method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010701941.3A CN111885145A (en) 2020-07-20 2020-07-20 Switching method, device, equipment and computer storage medium

Publications (1)

Publication Number Publication Date
CN111885145A true CN111885145A (en) 2020-11-03

Family

ID=73155266

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010701941.3A Pending CN111885145A (en) 2020-07-20 2020-07-20 Switching method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN111885145A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835702A (en) * 2021-02-25 2021-05-25 平安消费金融有限公司 Service switching method and device, computer equipment and storage medium
CN113452766A (en) * 2021-06-22 2021-09-28 青岛海尔科技有限公司 Node switching method and device, storage medium and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465768A (en) * 2009-01-12 2009-06-24 上海及第熊软件科技有限公司 Method and system for implementing website disaster-tolerating and error-tolerating operation
CN106533722A (en) * 2015-09-11 2017-03-22 北京国双科技有限公司 Network monitoring method and network monitoring device
CN109308223A (en) * 2018-09-17 2019-02-05 平安科技(深圳)有限公司 A kind of response method and equipment of service request
CN109474668A (en) * 2018-10-16 2019-03-15 平安科技(深圳)有限公司 CDN service switching method, device, computer equipment and storage medium
CN109660486A (en) * 2017-10-10 2019-04-19 阿里巴巴集团控股有限公司 The method and system and data processing method of attack is isolated
CN110519401A (en) * 2019-07-05 2019-11-29 中国平安财产保险股份有限公司 Improve method, apparatus, equipment and the storage medium of network Access Success Rate
CN110855808A (en) * 2019-10-11 2020-02-28 新浪网技术(中国)有限公司 Domain name automatic switching method, device and system based on distributed monitoring strategy

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465768A (en) * 2009-01-12 2009-06-24 上海及第熊软件科技有限公司 Method and system for implementing website disaster-tolerating and error-tolerating operation
CN106533722A (en) * 2015-09-11 2017-03-22 北京国双科技有限公司 Network monitoring method and network monitoring device
CN109660486A (en) * 2017-10-10 2019-04-19 阿里巴巴集团控股有限公司 The method and system and data processing method of attack is isolated
CN109308223A (en) * 2018-09-17 2019-02-05 平安科技(深圳)有限公司 A kind of response method and equipment of service request
CN109474668A (en) * 2018-10-16 2019-03-15 平安科技(深圳)有限公司 CDN service switching method, device, computer equipment and storage medium
CN110519401A (en) * 2019-07-05 2019-11-29 中国平安财产保险股份有限公司 Improve method, apparatus, equipment and the storage medium of network Access Success Rate
CN110855808A (en) * 2019-10-11 2020-02-28 新浪网技术(中国)有限公司 Domain name automatic switching method, device and system based on distributed monitoring strategy

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835702A (en) * 2021-02-25 2021-05-25 平安消费金融有限公司 Service switching method and device, computer equipment and storage medium
CN113452766A (en) * 2021-06-22 2021-09-28 青岛海尔科技有限公司 Node switching method and device, storage medium and electronic device
CN113452766B (en) * 2021-06-22 2023-10-24 青岛海尔科技有限公司 Node switching method and device, storage medium and electronic device

Similar Documents

Publication Publication Date Title
US11546289B1 (en) User-configurable dynamic DNS mapping for virtual services
US20150128052A1 (en) Systems and methods for protecting virtualized assets
US8555189B2 (en) Management system and management system control method
US11805004B2 (en) Techniques and interfaces for troubleshooting datacenter networks
CN112437018A (en) Flow control method, device, equipment and storage medium for distributed cluster
CN110765024A (en) Simulation test method, simulation test device, electronic equipment and computer-readable storage medium
CN112653577A (en) Network element management method, device and storage medium
CN111885145A (en) Switching method, device, equipment and computer storage medium
US8943373B1 (en) Keyboard, video and mouse switch identifying and displaying nodes experiencing a problem
EP2645635B1 (en) Cluster monitor, method for monitoring a cluster, and computer-readable recording medium
EP3865998A1 (en) Cluster management method, apparatus and system
CN111865682A (en) Method and apparatus for handling faults
KR102176028B1 (en) System for Real-time integrated monitoring and method thereof
CN107453888B (en) High-availability virtual machine cluster management method and device
CN111865720B (en) Method, apparatus, device and storage medium for processing request
CN111884847B (en) Method and device for processing fault
US11861133B1 (en) Apparatus and methods of analyzing status of computing servers
KR101718695B1 (en) Apparatus for controlling building automatically based on virtualization controller
CN110737560A (en) service state detection method, device, electronic equipment and medium
CN111741077B (en) Network service scheduling method and device, electronic equipment and storage medium
US9490995B1 (en) Simulation system for network devices in a network
CN112416743A (en) Test control system, method and equipment
CN113254205A (en) Load balancing system, method and device, electronic equipment and storage medium
CN112416744A (en) Test control system, method and equipment
US20140223241A1 (en) Intelligently responding to hardware failures so as to optimize system performance

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201103

RJ01 Rejection of invention patent application after publication