Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Database mode switching method and device and electronic equipment

A mode switching and database technology, applied in the computer field, can solve problems affecting the normal operation of business, network instability, business interruption, etc., to achieve the effect of disaster recovery and high availability

Pending Publication Date: 2020-05-19
HANGZHOU HIKVISION SYST TECH
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The database installation modes are mainly divided into three categories: one is stand-alone mode, which only installs the database environment on a single device. This mode is low in cost and easy to install and deploy, and is suitable for small projects; The databases are installed on the devices separately, and the databases of the two devices are configured as a high-availability dual-machine cluster (High Available, HA). The two devices in the dual-machine cluster can synchronize the data of their own databases to the database of the peer device in real time. In order to achieve high availability; the third is the cluster mode, install the database on at least three devices, and the database on each device forms a distributed storage. The cluster mode has high availability, but the cost is high, and it is suitable for large-scale projects
[0003] With the development of the project, the amount of data it contains will continue to increase. If the stand-alone model is always used to store data, the normal operation of the business may be affected due to network instability or equipment downtime, and even lead to data loss or business interruption

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Database mode switching method and device and electronic equipment
  • Database mode switching method and device and electronic equipment
  • Database mode switching method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, and to make the above-mentioned purposes, features and advantages of the embodiments of the present invention more obvious and understandable, the following describes the existing technical solutions and the present invention in conjunction with the accompanying drawings. The technical solutions in the embodiments of the invention are described in further detail.

[0046] see figure 1 , which is a flow chart of a database mode switching method shown in this application, the method includes the following steps:

[0047] Step 101: Receive a mode switching instruction, and check whether an installation package of database management software has been written on the new node based on the address of the new node in the mode switching instruction.

[0048] Wherein, the above method can be applied to an electronic device that has deployed a dat...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a database mode switching method and device and electronic equipment, and the method comprises the following steps: receiving a mode switching instruction, and checking whetheran installation package of database management software is written into a new node or not based on the address of the new node in the mode switching instruction; if yes, stopping the write-in serviceof the database, and exporting the database to a local specified directory; if the database is successfully exported, installing the database management software on the new node based on the installation package, and updating the configuration of the database management software of the new node and the configuration of the database management software of the new node according to a preset high-availability strategy; and importing the database into the new node, and starting write-in services of the database and the new node. According to the technical scheme, switching of the database from thesingle-machine mode to the double-machine mode is achieved, and therefore disaster recovery and high availability of the database are achieved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a database mode switching method, device and electronic equipment. Background technique [0002] The database installation modes are mainly divided into three categories: one is stand-alone mode, which only installs the database environment on a single device. This mode is low in cost and easy to install and deploy, and is suitable for small projects; The databases are installed on the devices separately, and the databases of the two devices are configured as a high-availability dual-machine cluster (High Available, HA). The two devices in the dual-machine cluster can synchronize the data of their own databases to the database of the peer device in real time. In order to achieve high availability; the third is the cluster mode, install the database on at least three devices, and the database on each device forms a distributed storage. The cluster mode has strong high ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/14G06F16/21G06F8/61
CPCG06F11/1458G06F8/61G06F2201/80
Inventor 朱建成
Owner HANGZHOU HIKVISION SYST TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products