Patent ID: 11966296
Assignee: SHANGHAI SUNINFO INFORMATION TECHNOLOGY CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A master-slave architecture deployment method based on snapshot, comprising:
restoring a core library corresponding to a MySQL database at any point in snapshot time, wherein the core library is a virtual library of the MySQL database;
querying out at least one piece of configuration information necessary for master-slave configuration of the MySQL database by using the core library as baseline;
taking a snapshot on the core library by using a snapshot technology;
creating and cloning at least one copy library corresponding to the core library respectively based on the snapshot and the at least one piece of configuration information necessary for master-slave configuration; and
configuring a master-slave relationship and a master library and a slave library corresponding to the master-slave relationship for the core library and the at least one copy library.