CN112990867A - Method, system and equipment for realizing high availability of document platform service - Google Patents

Method, system and equipment for realizing high availability of document platform service Download PDF

Info

Publication number
CN112990867A
CN112990867A CN202110263754.6A CN202110263754A CN112990867A CN 112990867 A CN112990867 A CN 112990867A CN 202110263754 A CN202110263754 A CN 202110263754A CN 112990867 A CN112990867 A CN 112990867A
Authority
CN
China
Prior art keywords
node
service
database
main
auxiliary
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
CN202110263754.6A
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 Minglue Zhaohui Technology Co Ltd
Original Assignee
Beijing Minglue Zhaohui 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 Minglue Zhaohui Technology Co Ltd filed Critical Beijing Minglue Zhaohui Technology Co Ltd
Priority to CN202110263754.6A priority Critical patent/CN112990867A/en
Publication of CN112990867A publication Critical patent/CN112990867A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/10Office automation; Time management
    • G06Q10/103Workflow collaboration or project management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • 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/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • 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]
    • 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/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Databases & Information Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Operations Research (AREA)
  • Tourism & Hospitality (AREA)
  • General Business, Economics & Management (AREA)
  • Hardware Redundancy (AREA)

Abstract

The invention provides a method, a system and computer equipment for realizing high availability of document platform service, which comprises the following steps: a service node construction step, namely constructing a service node based on a document platform, wherein the service node is respectively in communication connection with a domain name server and a database, the service node comprises a service main node and a service auxiliary node, and the service main node is set to be synchronous with the service auxiliary node in real time; and a service node switching step, namely detecting the fault condition of the service main node or the service auxiliary node in use in real time, notifying the domain name server when the service main node or the service auxiliary node has a fault, and switching the normal service main node or the service auxiliary node to respectively establish communication connection with the domain name server and the database. The method uses the self-owned server for deployment, so that the cost is greatly reduced, and when the service node fails, the service node can be switched to the usable service node without manual intervention, so that the safety is improved, and the stability of the service is ensured.

Description

Method, system and equipment for realizing high availability of document platform service
Technical Field
The invention relates to the technical field of document platforms, in particular to a method, a system and equipment for realizing high availability of document platform services.
Background
As an important platform for an enterprise to accumulate technical documents or business documents, the Confluent document platform must ensure the safety of the important documents firstly, and can ensure the stable operation of services secondly, and on the basis of the stable operation, the service fault needs to be quickly recovered.
In the prior art, in order to achieve high availability of a document platform service, a Data center (Data center) mode is generally adopted, and under a domain name service, a plurality of cloud hosts are used for deploying web application service nodes and a database cluster.
However, in the prior art, if operation and maintenance personnel cannot timely troubleshoot a service node in a data center mode when the service node fails, the service node cannot be used in a short time, the service node cannot be accessed, the safety is low, the problem of failure is found immediately, and the service node needs to be manually switched under the condition that the service node cannot be quickly repaired, so that the maintenance cost is high.
Disclosure of Invention
The invention provides a method for realizing high availability of document platform service, which can solve the technical problems of low safety and high maintenance cost in the prior art.
The invention provides a method for realizing high availability of document platform service, which comprises the following steps:
a service node construction step, namely constructing a service node based on a document platform, wherein the service node is respectively in communication connection with a domain name server and a database, the service node comprises a service main node and a service auxiliary node, and the service main node is set to be synchronous with the service auxiliary node in real time;
and a service node switching step, namely detecting the fault condition of the service main node or the service secondary node in use in real time, when the service main node or the service secondary node has a fault, notifying the domain name server, and switching the normal service main node or the service secondary node to respectively establish communication connection with the domain name server and the database.
The method for realizing high availability of the document platform service further comprises:
a database node construction step of constructing a database node based on a database, the service node establishing communication connection with the database node, the database node including a database primary node and a database secondary node, the database primary node being configured to be synchronized with the database secondary node in real time;
and a database node switching step, namely detecting the fault condition of the database main node or the database auxiliary node in use in real time, and switching the normal database main node or the database auxiliary node to establish communication connection with the service main node or the service auxiliary node in use when the database main node or the database auxiliary node has a fault.
The method for realizing high availability of the document platform service further comprises:
and a backup database construction step, namely constructing a backup database, wherein the backup database is in communication connection with the database nodes and is used for backing up the database main node or the database auxiliary node which is in use in a distributed remote backup mode.
The method for realizing high availability of the document platform service further comprises:
and a database disaster recovery step, namely switching the backup database to establish communication connection with the service main node or the service auxiliary node which is in use when the database main node and the database auxiliary node are detected to be in failure.
The method for realizing high availability of the document platform service, wherein the method for detecting the fault condition of the service primary node or the service secondary node used in the service node switching step specifically includes:
and detecting the fault condition of the service primary node or the service secondary node in use in real time through a heartbeat detection service.
The invention also provides a system for realizing high availability of the document platform service, which comprises the following steps:
the service node construction module is used for constructing service nodes based on a document platform, the service nodes are respectively in communication connection with a domain name server and a database, the service nodes comprise a service main node and a service auxiliary node, and the service main node is set to be synchronous with the service auxiliary node in real time;
and the service node switching module is used for detecting the fault conditions of the service main node and the service secondary node in real time, notifying the domain name server when the service main node or the service secondary node has a fault, and switching the normal service main node or the service secondary node to respectively establish communication connection with the domain name server and the database.
The system for realizing high availability of the document platform service, wherein the system for realizing high availability of the document platform service further comprises:
the database node construction module is used for constructing a database node based on a database, the service node is in communication connection with the database node, the database node comprises a database main node and a database auxiliary node, and the database main node is set to be synchronous with the database auxiliary node in real time;
and the database node switching module is used for detecting the fault condition of the used database main node or the database secondary node in real time, and when the database main node or the database secondary node has a fault, the normal database main node or the database secondary node is switched to establish communication connection with the used service main node or the used service secondary node.
The system for realizing high availability of the document platform service, wherein the system for realizing high availability of the document platform service further comprises:
and the backup database construction module is used for constructing a backup database, establishing communication connection between the backup database and the database node, and backing up the database main node or the database auxiliary node which is in use in a distributed remote backup mode.
The system for realizing high availability of the document platform service, wherein the system for realizing high availability of the document platform service further comprises:
and the database disaster recovery module is used for switching the backup database to establish communication connection with the service main node or the service auxiliary node which is in use when detecting that the database main node and the database auxiliary node both have faults.
The invention also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for realizing high availability of document platform services as described above when executing the computer program.
The invention has the technical effects or advantages that:
the invention provides a method for realizing high availability of document platform service, which is characterized in that a service node is constructed based on a document platform, the service node is respectively in communication connection with a domain name server and a database, the service node comprises a service main node and a service auxiliary node, the service main node is set to be synchronous with the service auxiliary node in real time, the fault condition of the service main node or the service auxiliary node in use is monitored in real time, when the service main node or the service auxiliary node is in fault, the domain name server is informed, and the normal service main node or the normal service auxiliary node is switched to respectively establish communication connection with the domain name server and the database. Through the mode, the self-owned server is used for deployment, the cost is greatly reduced, when the service node fails, the service node can be switched to the usable service node without sensing without manual intervention, the safety is improved, and the stability of the service is ensured.
Drawings
FIG. 1 is a flowchart of a method for implementing high availability of document platform services according to an embodiment of the present invention;
FIG. 2 is a state flow diagram of a method for implementing high availability of document platform services according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a system for implementing high availability of document platform services according to an embodiment of the present invention;
FIG. 4 is a block diagram of an electronic device according to an embodiment of the present invention;
in the above figures:
1. a service node construction module; 2. a service node switching module; 3. a database node construction module; 4. a database node switching module; 5. a backup database construction module; 6. a database disaster recovery module;
10. a bus; 11. a processor; 12. a memory; 13. a communication interface.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another. Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict. Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect.
The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
In order to solve the technical problems of low safety and high maintenance cost in the prior art, the invention provides a method for realizing high availability of document platform service.
The technical solution of the present invention will be described in detail below with reference to the specific embodiments and the accompanying drawings.
The embodiment provides a method for realizing high availability of document platform service, which comprises the following steps:
a service node construction step, namely constructing a service node based on a document platform, wherein the service node is respectively in communication connection with a domain name server and a database, the service node comprises a service main node and a service auxiliary node, and the service main node is set to be synchronous with the service auxiliary node in real time;
and a service node switching step, namely detecting the fault condition of the service main node or the service secondary node in use in real time, when the service main node or the service secondary node has a fault, notifying the domain name server, and switching the normal service main node or the service secondary node to respectively establish communication connection with the domain name server and the database.
According to the method for realizing high availability of the document platform service, the self-owned server is used for deployment, the cost is greatly reduced, when the service node fails, manual intervention is not needed, the service node can be switched to the available service node without sensing, the safety is improved, and the stability of the service is ensured.
Referring to fig. 1, fig. 1 is a flowchart of a method for implementing high availability of document platform services according to an embodiment of the present invention. The embodiment of the invention provides a method for realizing high availability of document platform service, which comprises the following steps:
a service node constructing step S1, constructing service nodes based on the document platform, wherein the service nodes respectively establish communication connection with the domain name server and the database, the service nodes comprise a service main node and a service secondary node, and the service main node is set to be synchronous with the service secondary node in real time.
In this embodiment, the number of the service secondary nodes may be multiple, and the multiple service secondary nodes are all configured to be synchronized with the service primary node in real time, and the number of the service secondary nodes is not specifically limited in this embodiment. The document platform in this embodiment may be confluence.
A service node switching step S2, detecting a fault condition of the service primary node or the service secondary node in use in real time, when the service primary node or the service secondary node is faulty, notifying the domain name server, and switching the normal service primary node or the service secondary node to establish communication connection with the domain name server and the database, respectively.
In this embodiment, the method for detecting a failure of the service primary node or the service secondary node in use in the service node switching step S2 specifically includes:
and detecting the fault condition of the service primary node or the service secondary node in use in real time through a heartbeat detection service.
In specific application, the heartbeat detection service is used for detecting whether a service main node or a service auxiliary node which is used in a document platform can be normally used, and once the heartbeat detection service detects that the service main node or the service auxiliary node which is used in the document platform is unavailable, the heartbeat detection service can timely inform the domain name server to switch to the available service main node or the service auxiliary node. For example, under normal conditions, the domain name server establishes communication connection with the service master node, the service master node establishes communication connection with the database, the heartbeat detection service detects the fault condition of the service master node in real time, and when the service master node fails, the switching service secondary node establishes communication connection with the domain name server and the database respectively.
In the embodiment, the self-owned server is used for deployment, so that the cost is greatly reduced, and when the service node fails, the service node can be switched to the usable service node without manual intervention, so that the safety is improved, and the stability of the service is ensured.
The method for realizing high availability of the document platform service provided by the embodiment further comprises the following steps:
a database node constructing step S3, constructing a database node based on a database, the service node establishing a communication connection with the database node, the database node including a database primary node and a database secondary node, the database primary node being configured to synchronize with the database secondary node in real time.
In this embodiment, the number of the database secondary nodes may be multiple, the multiple database secondary nodes are all set to be synchronized with the database primary node in real time, and the number of the database secondary nodes is not specifically limited in this embodiment.
A database node switching step S4, detecting a failure condition of the database primary node or the database secondary node in use in real time, and when the database primary node or the database secondary node fails, switching the normal database primary node or the database secondary node to establish a communication connection with the service primary node or the service secondary node in use.
In specific application, under normal conditions, the database main node establishes communication connection with the service main node or the service secondary node, the fault condition of hardware, network and service states of the database main node in use is detected in real time through the availability of the database node, and when the fault condition of the database main node in use is detected, the normal database secondary node is switched to establish communication connection with the service node.
According to the method for realizing high availability of the document platform service, when the database node fails, the database node can be switched to the available database node without sensing without manual intervention, so that the safety is improved, and the stability of the service is ensured.
The method for realizing high availability of the document platform service provided by the embodiment further comprises the following steps: the method for realizing high availability of the document platform service further comprises the following steps:
a backup database construction step S5, which is to construct a backup database, where the backup database is in communication connection with the database node and is used to backup the database primary node or the database secondary node in use in a distributed remote backup manner.
And a database disaster recovery step S6, when it is detected that both the primary database node and the secondary database node are failed, switching the backup database to establish a communication connection with the primary service node or the secondary service node being used.
In the embodiment, the backup database is constructed to backup the database data in real time, the backup database can be used for disaster recovery, and when the database main node and the database secondary node cannot be used, the backup database can be directly started to be in butt joint with the service node, so that the service stability is ensured.
As an example, referring to fig. 2, the following describes a process for implementing high availability of document platform services, specifically as follows:
the domain name server is in communication connection with the service node, the service node is in communication connection with the database node, the database node is in communication connection with the backup database, whether a fault exists in the used service main node or service auxiliary node is detected in real time through the heartbeat detection service, if the fault exists, the domain name server is informed, the domain name server is switched to the normal service main node or service auxiliary node to be in communication connection with the domain name server and the database node, the fault detection is carried out on the used database main node or database auxiliary node in real time, if the fault exists, the communication connection is established between the used database main node or database auxiliary node and the used service main node or service auxiliary node, meanwhile, the backup database backs up the used database main node or database auxiliary node in real time, and if both the database main node and the database auxiliary node are in fault, the backup database is enabled to establish a communication connection with the primary service node or the secondary service node in use.
Referring to fig. 3, an embodiment of the present invention further provides a system for implementing high availability of document platform services, where the system for implementing high availability of document platform services includes: the system comprises a service node building module 1, a service node switching module 2, a database node building module 3, a database node switching module 4, a backup database building module 5 and a database disaster recovery module 6, wherein the service node building module 1 is in communication connection with the service node switching module 2, the service node switching module 2 is in communication connection with the database node switching module 4, the database node building module 3 is in communication connection with the database node switching module 4, the backup database building module 5 is in communication connection with the database disaster recovery module 6, and the database disaster recovery module 6 is in communication connection with the database node switching module 4.
The service node construction module 1 is used for constructing service nodes based on a document platform, the service nodes are respectively in communication connection with a domain name server and a database, the service nodes comprise service main nodes and service auxiliary nodes, and the service main nodes are set to be synchronous with the service auxiliary nodes in real time.
And the service node switching module 2 is configured to detect a fault condition of the service primary node or the service secondary node in use in real time, notify the domain name server when the service primary node or the service secondary node fails, and switch the normal service primary node or the service secondary node to establish communication connection with the domain name server and the database respectively.
And the database node construction module 3 is used for constructing a database node based on a database, the service node establishes communication connection with the database node, the database node comprises a database main node and a database auxiliary node, and the database main node is set to be synchronous with the database auxiliary node in real time.
And the database node switching module 4 is configured to detect a fault condition of the database primary node or the database secondary node in use in real time, and switch the normal database primary node or the database secondary node to establish a communication connection with the service primary node or the service secondary node in use when the database primary node or the database secondary node has a fault.
And the backup database construction module 5 is used for constructing a backup database, establishing communication connection between the backup database and the database node, and backing up the database main node or the database auxiliary node which is in use in a distributed remote backup mode.
And the database disaster recovery module 6 is configured to, when it is detected that both the database primary node and the database secondary node are faulty, switch the backup database to establish a communication connection with the serving primary node or the serving secondary node that is being used.
The system for realizing high availability of the document platform service provided by the embodiment uses the self-owned server for deployment, so that the cost is greatly reduced, and when the service node fails, the service node can be switched to the available service node without sensing without manual intervention, so that the safety is improved, and the stability of the service is ensured; when the database node fails, the database node can be switched to the usable database node without sensing without manual intervention, so that the safety is improved, and the stability of service is ensured; the backup database is constructed to backup the database data in real time, the backup database can be used for disaster recovery, and when the database main node and the database auxiliary node cannot be used, the backup database can be directly started to be in butt joint with the service node, so that the service stability is ensured.
Referring to fig. 4, the present embodiment further provides a computer device, which includes a memory 12, a processor 11, and a computer program stored on the memory 12 and executable on the processor 11, and the processor 11 implements the method for implementing high availability of document platform services as described above when executing the computer program.
The apparatus may comprise a processor 11 and a memory 12 in which computer program instructions are stored. Specifically, the processor 11 may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
Memory 12 may include, among other things, mass storage for data or instructions. By way of example, and not limitation, memory 12 may include a Hard Disk Drive (Hard Disk Drive, abbreviated to HDD), a floppy Disk Drive, a Solid State Drive (SSD), flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 12 may include removable or non-removable (or fixed) media, where appropriate. The memory 12 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 12 is a Non-Volatile (Non-Volatile) memory. In particular embodiments, Memory 12 includes Read-Only Memory (ROM) and Random Access Memory (RAM). The ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), Electrically rewritable ROM (EAROM), or FLASH Memory (FLASH), or a combination of two or more of these, where appropriate. The RAM may be a Static Random-Access Memory (SRAM) or a Dynamic Random-Access Memory (DRAM), where the DRAM may be a Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), an Extended data output Dynamic Random-Access Memory (EDODRAM), a Synchronous Dynamic Random-Access Memory (SDRAM), and the like.
The memory 12 may be used to store or cache various data files that need to be processed and/or used for communication, as well as possible computer program instructions executed by the processor 11.
The processor 11 may implement any of the above-described embodiments by reading and executing computer program instructions stored in the memory 12 to implement a highly available method of implementing document platform services.
In some of these embodiments, the computer device may also include a communication interface 13 and a bus 10. Referring to fig. 4, the processor 11, the memory 12, and the communication interface 13 are connected via the bus 10 and perform communication with each other. The communication interface 13 is used for implementing communication between modules, devices, units and/or equipment in the embodiment of the present application. The communication port 13 may also be implemented with other components such as: the data communication is carried out among external equipment, image/data acquisition equipment, a database, external storage, an image/data processing workstation and the like.
The bus 10 includes hardware, software, or both to couple the components of the electronic device to one another. Bus 10 includes, but is not limited to, at least one of the following: data Bus (Data Bus), Address Bus (Address Bus), Control Bus (Control Bus), Expansion Bus (Expansion Bus), and Local Bus (Local Bus). By way of example, and not limitation, Bus 10 may include an Accelerated Graphics Port (AGP) or other Graphics Bus, an Enhanced Industry Standard Architecture (EISA) Bus, a Front-Side Bus (FSB), a HyperTransport (HT) Interconnect, an ISA (ISA) Bus, an InfiniBand (InfiniBand) Interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a Microchannel Architecture (MCA) Bus, a PCI (Peripheral Component Interconnect) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (AGP) Bus, a Local Video Association (Video Electronics Bus), abbreviated VLB) bus or other suitable bus or a combination of two or more of these. Bus 10 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
In addition, in combination with the method for realizing high availability of the document platform service in the foregoing embodiments, the embodiments of the present application may provide a computer-readable storage medium to implement. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the above embodiments in a method for implementing high availability of document platform services.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for realizing high availability of document platform services is characterized by comprising the following steps:
a service node construction step, namely constructing a service node based on a document platform, wherein the service node is respectively in communication connection with a domain name server and a database, the service node comprises a service main node and a service auxiliary node, and the service main node is set to be synchronous with the service auxiliary node in real time;
and a service node switching step, namely detecting the fault condition of the service main node or the service secondary node in use in real time, when the service main node or the service secondary node has a fault, notifying the domain name server, and switching the normal service main node or the service secondary node to respectively establish communication connection with the domain name server and the database.
2. The method for realizing high availability of document platform services according to claim 1, further comprising:
a database node construction step of constructing a database node based on a database, the service node establishing communication connection with the database node, the database node including a database primary node and a database secondary node, the database primary node being configured to be synchronized with the database secondary node in real time;
and a database node switching step, namely detecting the fault condition of the database main node or the database auxiliary node in use in real time, and switching the normal database main node or the database auxiliary node to establish communication connection with the service main node or the service auxiliary node in use when the database main node or the database auxiliary node has a fault.
3. The method for realizing high availability of document platform services according to claim 2, further comprising:
and a backup database construction step, namely constructing a backup database, wherein the backup database is in communication connection with the database nodes and is used for backing up the database main node or the database auxiliary node which is in use in a distributed remote backup mode.
4. The method for realizing high availability of document platform services according to claim 3, further comprising:
and a database disaster recovery step, namely switching the backup database to establish communication connection with the service main node or the service auxiliary node which is in use when the database main node and the database auxiliary node are detected to be in failure.
5. The method according to claim 1, wherein the method for detecting the failure condition of the primary service node or the secondary service node in use in the service node switching step specifically comprises:
and detecting the fault condition of the service primary node or the service secondary node in use in real time through a heartbeat detection service.
6. A system for enabling high availability of document platform services, comprising:
the service node construction module is used for constructing service nodes based on a document platform, the service nodes are respectively in communication connection with a domain name server and a database, the service nodes comprise a service main node and a service auxiliary node, and the service main node is set to be synchronous with the service auxiliary node in real time;
and the service node switching module is used for detecting the fault condition of the service main node or the service secondary node in use in real time, notifying the domain name server when the service main node or the service secondary node has a fault, and switching the normal service main node or the service secondary node to respectively establish communication connection with the domain name server and the database.
7. The system for realizing high availability of document platform services according to claim 6, further comprising:
the database node construction module is used for constructing a database node based on a database, the service node is in communication connection with the database node, the database node comprises a database main node and a database auxiliary node, and the database main node is set to be synchronous with the database auxiliary node in real time;
and the database node switching module is used for detecting the fault condition of the used database main node or the database secondary node in real time, and when the database main node or the database secondary node has a fault, the normal database main node or the database secondary node is switched to establish communication connection with the used service main node or the used service secondary node.
8. The system for realizing high availability of document platform services according to claim 7, further comprising:
and the backup database construction module is used for constructing a backup database, establishing communication connection between the backup database and the database node, and backing up the database main node or the database auxiliary node which is in use in a distributed remote backup mode.
9. The system for realizing high availability of document platform services according to claim 8, further comprising:
and the database disaster recovery module is used for switching the backup database to establish communication connection with the service main node or the service auxiliary node which is in use when detecting that the database main node and the database auxiliary node both have faults.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of implementing document platform service high availability according to any of claims 1 to 5 when executing the computer program.
CN202110263754.6A 2021-03-11 2021-03-11 Method, system and equipment for realizing high availability of document platform service Pending CN112990867A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110263754.6A CN112990867A (en) 2021-03-11 2021-03-11 Method, system and equipment for realizing high availability of document platform service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110263754.6A CN112990867A (en) 2021-03-11 2021-03-11 Method, system and equipment for realizing high availability of document platform service

Publications (1)

Publication Number Publication Date
CN112990867A true CN112990867A (en) 2021-06-18

Family

ID=76334998

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110263754.6A Pending CN112990867A (en) 2021-03-11 2021-03-11 Method, system and equipment for realizing high availability of document platform service

Country Status (1)

Country Link
CN (1) CN112990867A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852506A (en) * 2021-09-27 2021-12-28 深信服科技股份有限公司 Fault processing method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729290A (en) * 2009-11-04 2010-06-09 中兴通讯股份有限公司 Method and device for realizing business system protection
CN102231681A (en) * 2011-06-27 2011-11-02 中国建设银行股份有限公司 High availability cluster computer system and fault treatment method thereof
CN104679907A (en) * 2015-03-24 2015-06-03 新余兴邦信息产业有限公司 Realization method and system for high-availability and high-performance database cluster

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729290A (en) * 2009-11-04 2010-06-09 中兴通讯股份有限公司 Method and device for realizing business system protection
CN102231681A (en) * 2011-06-27 2011-11-02 中国建设银行股份有限公司 High availability cluster computer system and fault treatment method thereof
CN104679907A (en) * 2015-03-24 2015-06-03 新余兴邦信息产业有限公司 Realization method and system for high-availability and high-performance database cluster

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113852506A (en) * 2021-09-27 2021-12-28 深信服科技股份有限公司 Fault processing method and device, electronic equipment and storage medium
CN113852506B (en) * 2021-09-27 2024-04-09 深信服科技股份有限公司 Fault processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111158962B (en) Remote disaster recovery method, device and system, electronic equipment and storage medium
CN108200124B (en) High-availability application program architecture and construction method
CN107508694B (en) Node management method and node equipment in cluster
CN110730125B (en) Message forwarding method and device, dual-active system and communication equipment
CN104036043A (en) High availability method of MYSQL and managing node
CN111949444A (en) Data backup and recovery system and method based on distributed service cluster
CN115269248B (en) Method and device for preventing brain fracture under double-node cluster, electronic equipment and storage medium
CN113535480A (en) Data disaster recovery system and method
CN105959145B (en) A kind of method and system for the concurrent management server being applicable in high availability cluster
CN102457400B (en) Method for preventing split brain phenomenon from occurring on distributed replicated block device (DRBD) resource
CN112990867A (en) Method, system and equipment for realizing high availability of document platform service
CN111338858A (en) Disaster recovery method and device for double machine rooms
CN107526652B (en) Data synchronization method and storage device
CN117201507A (en) Cloud platform switching method and device, electronic equipment and storage medium
CN110661599B (en) HA implementation method, device and storage medium between main node and standby node
CN114598594B (en) Method, system, medium and equipment for processing application faults under multiple clusters
CN107087021B (en) Master-slave server determination method and device
CN114124803B (en) Device management method and device, electronic device and storage medium
CN105939203A (en) Table entry synchronization method and device
JP2011145861A (en) Disaster time automatic switching system and method for processing the same
CN115396296A (en) Service processing method and device, electronic equipment and computer readable storage medium
CN104354723A (en) Integrated monitoring method and system for track traffic
CN114328033A (en) Method and device for keeping service configuration consistency of high-availability equipment group
JP6511737B2 (en) Redundant system, redundant method and redundant program
CN107590032A (en) The method and storage cluster system of storage cluster failure transfer

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