WO2018103356A1 - 一种数据库服务提供方法及服务器 - Google Patents

一种数据库服务提供方法及服务器 Download PDF

Info

Publication number
WO2018103356A1
WO2018103356A1 PCT/CN2017/096051 CN2017096051W WO2018103356A1 WO 2018103356 A1 WO2018103356 A1 WO 2018103356A1 CN 2017096051 W CN2017096051 W CN 2017096051W WO 2018103356 A1 WO2018103356 A1 WO 2018103356A1
Authority
WO
WIPO (PCT)
Prior art keywords
database
managed
management
command
server
Prior art date
Application number
PCT/CN2017/096051
Other languages
English (en)
French (fr)
Inventor
王涛
党李飞
陈一玮
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2018103356A1 publication Critical patent/WO2018103356A1/zh

Links

Images

Classifications

    • 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/21Design, administration or maintenance of databases
    • G06F16/219Managing data history or versioning
    • 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/21Design, administration or maintenance of databases

Definitions

  • the embodiments of the present invention relate to the field of data processing technologies, and in particular, to a database service providing method and a server.
  • a database (Database, DB) is a repository built on a computer storage device that organizes, stores, and manages data according to a data structure.
  • databases There are many types of databases in the industry, such as MySQL, Redis, Mongodb, Cassandra, and so on.
  • the DB services provided for the database are completely independent, and for different DB services, different people need to be developed and maintained.
  • the DB service provided for MySQL is called Relational Database Service (RDS)
  • the DB service provided for Redis is called Distributed Cache Service (DCS). Both services are deployed. It is still independent in terms of maintenance.
  • each service has its own separate front user interface (UI), background management (manager) system, and maintenance personnel.
  • UI front user interface
  • manager background management
  • the embodiment of the invention provides a database service providing method and a server, which solves the problem that the DB service of different databases is completely independent, the management cost is increased and the maintenance is complicated, and the new database has a long online connection period.
  • the embodiment of the present invention adopts the following technical solutions:
  • a first aspect of the embodiments of the present invention provides a database service providing method, including:
  • the server receives a management request sent by the client for managing the database to be managed, the management request includes a type and a version of the database to be managed, and the server loads the plug-in of the database to be managed according to the type and version of the database to be managed, and is in the plug-in.
  • the management of the management database includes at least one of the following: creating a database instance, backing up a database instance, deleting a database instance, restoring data of a database to be managed, recovering a database instance, configuring a database instance, and performing high availability processing of the database instance.
  • the database service providing method provided by the embodiment of the present invention, after the server receives the management request sent by the client, loads the plug-in of the to-be-managed data according to the type and version of the database to be managed carried in the management request, and loads the The plug-in obtains the resources required for managing the database to be managed, and after the configuration of the resources required for managing the database to be managed is completed, the management command is obtained according to the management request, and the execution of the management request is completed by running the script of the management command.
  • the server acquiring the resources required to manage the database to be managed in the plug-in may include: the server generates an application resource request in the plug-in, and obtains management to be managed according to the application resource request.
  • the resources required by the database may include: the server generates an application resource request in the plug-in, and obtains management to be managed according to the application resource request. The resources required by the database.
  • the request for the resource request includes: the number and specifications of the virtual machines to be created,
  • the resource required to manage the database to be managed is at least one virtual machine, and the management command is a startup command.
  • the server configures the resources required for managing the database to be managed, and after the configuration is completed, obtains the management command according to the management request.
  • the method includes: the server creates at least one virtual machine according to the resources required to manage the database to be managed, and obtains a create database instance command, where the create database instance command includes a virtual machine list, where the virtual machine list includes at least one successfully created virtual machine
  • the server obtains the configuration command of the created virtual machine in the plug-in, and configures the created virtual machine according to the configuration command. After the configuration is complete, the startup command of the created virtual machine is obtained from the plug-in according to the management request.
  • the server running the script of the management command in order to execute the management request, may specifically include: the server running the script corresponding to the startup command, so as to start the creation successfully. virtual machine.
  • the request for the resource request includes: the size of the new disk to be created, and the management waits
  • the resource required for managing the database is at least one new disk
  • the management command is a backup command.
  • the server configures the resources required for managing the database to be managed, and after the configuration is completed, the management command is obtained according to the management request.
  • the server mounts at least one new disk to the virtual machine of the database to be managed according to the resources required to manage the database to be managed, and obtains the backup database instance command after the mount is completed.
  • the backup database instance command includes the virtual machine list.
  • the virtual machine list includes at least one virtual machine to which the new disk is mounted; then, the server obtains a backup command of the virtual machine to which the new disk is mounted in the plugin according to the management request.
  • the server runs a script of the management command, so as to execute the management request, which may include: the server runs a script corresponding to the backup command, so as to start exporting Manage the data in the database and save it on a new disk.
  • a second aspect of the embodiments of the present invention provides a server, including: an application programming interface (API) service module, a task management service module, a DB management module, and a proxy module.
  • API application programming interface
  • the API service module is configured to receive a management request sent by the client, where the management request includes: a type and a version of the database to be managed, and the management request is used to manage the database to be managed, and is to be managed according to the type and version of the database to be managed.
  • Plugin for the database includes: a type and a version of the database to be managed, and the management request is used to manage the database to be managed, and is to be managed according to the type and version of the database to be managed.
  • the task management service module is configured to acquire resources required for managing the database to be managed, and configure resources required for managing the database to be managed;
  • a DB management module configured to load a plug-in of the database to be managed according to the type and version of the database to be managed, and obtain a management command in the plug-in according to the management request;
  • a proxy module for scripts that run administrative commands to perform administrative requests.
  • the API service module is further configured to generate an application resource request in the plug-in, and send the application resource request to the task management service module; the task management service module is specifically configured to receive Request a resource request and obtain the resources needed to manage the database to be managed according to the application resource request.
  • the request for the resource request includes: the number and specifications of the virtual machines to be created,
  • the resource required to manage the database to be managed is at least one virtual machine, and the management command is a startup command.
  • the task management service module is specifically configured to create at least one virtual machine according to resources required for managing the database to be managed, and obtain a command to create a database instance.
  • the database instance command includes a virtual machine list, a type and a version of the database to be managed, and the virtual machine list includes at least one virtual machine that is successfully created, and sends a database instance command to the DB management module; the DB management module is specifically used for The system creates a database instance, loads the plug-in of the database to be managed according to the type and version of the database to be managed included in the database instance, and obtains the configuration command of the created virtual machine in the plug-in, and sends the configuration command to the agent module.
  • the proxy module is created as The proxy module of the virtual machine; the proxy module is also configured to receive the configuration command, configure the successfully created virtual machine according to the configuration command, and send a configuration completion command to the DB management module after the configuration is completed; the DB management module, specifically It is configured to receive a configuration completion command, obtain a startup command of the successfully created virtual machine in the plug-in according to the management request, and send the startup command to the proxy module.
  • the proxy module is specifically configured to receive a startup command and run a script corresponding to the startup command to start a virtual machine that is successfully created.
  • the request for the resource request includes: the size of the new disk to be created, and the management waits
  • the resource required to manage the database is at least one new disk, and the management command is a backup command
  • the task management service module is specifically configured to mount at least one new disk to the virtual machine of the database to be managed according to resources required for managing the database to be managed. After the mount is complete, the backup database instance command is obtained.
  • the backup database instance command includes a virtual machine list, a type and version of the database to be managed, and the virtual machine list includes at least one virtual machine to which the new disk is mounted, and
  • the backup database instance command is sent to the DB management module; the DB management module is specifically configured to receive the backup database instance, and load the plug-in of the database to be managed according to the type and version of the database to be managed included in the backup database instance, and according to the management request, Get the virtual machine to which the new disk is mounted in the plugin Backup command to send a backup command to the agent module.
  • the proxy module is specifically configured to receive a backup command and run a script corresponding to the backup command, so as to start to export data in the database to be managed, and Save on a new disk.
  • a third aspect of the embodiments of the present invention provides a server, where the server may include: at least one processor, a memory, a communication interface, and a communication bus;
  • At least one processor is coupled to the memory and the communication interface via a communication bus, the memory is configured to store the computer execution instructions, and when the server is running, the processor executes the memory stored computer execution instructions to enable the server to perform the first aspect or the first aspect A database service providing method as described in any of the implementations.
  • a fourth aspect of the embodiments of the present invention provides a computer storage medium for storing computer software instructions for use by the server, the computer software instructions including a program designed to execute the database service providing method.
  • FIG. 1 is a simplified schematic diagram of an architecture for providing a DB service provided by the prior art
  • FIG. 2 is a simplified schematic diagram of a system architecture to which an embodiment of the present invention is applied according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
  • FIG. 4 is a flowchart of a method for providing a database service according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of another database service providing method according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a server according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of another server according to an embodiment of the present invention.
  • the embodiment of the present invention provides a database service providing method, and the basic principle is: a server Receiving a management request sent by the client for managing the database to be managed, and then loading the plug-in of the database to be managed according to the type and version of the database to be managed included in the received management request, and obtaining the management to-be-managed database in the plug-in
  • the required resources, and the resources required to manage the database to be managed are configured.
  • the management commands are obtained according to the management request, and then the script of the management command is executed to execute the management request.
  • the DB services of different databases can be supported by a common background service, thereby solving the DB of different databases. Services are completely independent, resulting in increased management costs and complex maintenance. Moreover, for the new database, only a small amount of functions need to be added to the general background service, the online can be completed, and the online period of the new database is shortened.
  • the system architecture can include at least one server 11 and a client 12.
  • At least one server 11 is deployed with a different database cluster and is used to provide a DB service for the deployed database cluster.
  • the network architecture of the present invention includes six servers, namely server 11, server 13, server 14, server 15, server 16, and server 17.
  • three different database clusters are deployed in at least one server 11 as Mongodb, Redis, and Cassandra.
  • the three database clusters present a unified API service, that is, the three database clusters can provide DB services through a common background service.
  • Each database cluster can be deployed on a virtual machine (VM) cluster or deployed on a server cluster.
  • VM virtual machine
  • FIG. 2 a database is deployed on a VM cluster, that is, Cassandra is deployed on a VM cluster included in the server 11
  • Mongodb is deployed on a VM cluster included in the server 13
  • Redis is deployed on a VM cluster included in the server 14.
  • the client 12 is configured to provide a front-end user interface for the administrator and display data returned by the server 11, and the user can manage the database deployed in the at least one server 11 through the client 12.
  • the client 12 can be a mobile phone, a tablet computer, a notebook computer, an Ultra-mobile Personal Computer (UMPC), a netbook, a Personal Digital Assistant (PDA), and the like.
  • the network architecture of the present invention includes a client 12 that is a notebook computer.
  • the database service providing method provided by the embodiment of the present invention may be implemented by using an API service module, a task management service module, a DB management module, and a proxy module. And the above modules can be deployed in at least one server 11 in a distributed manner.
  • the API module, the task management service module, and the DB management module can be deployed on different VMs of the same server. It can also be deployed to different servers.
  • an API service module is deployed in the server 15.
  • a task management service module is deployed in the server 16.
  • a DB management module is deployed in the server 17, wherein the DB management
  • the specific module can be a cluster.
  • a proxy module is deployed in each of the server 11, the server 13, and the server 14.
  • the embodiment of the present invention is only used to illustrate the modules deployed in the at least one server 11.
  • at least one server in the server 11 may be deployed with an API service module, a task management service module, and A combination of one or more of the DB management modules, the remaining portions of the server may deploy a database and a proxy module to cooperate with each other to implement the database service providing method of the present invention.
  • the API service module, the task management service module, and the DB management module are deployed in different servers, communication can be implemented through the Rest interface.
  • the DB management module and the proxy module can communicate via the Secure Shell (SSH) channel.
  • SSH Secure Shell
  • the API service module is mainly used to interact with the client 12, such as receiving a management request.
  • the task management service module is mainly used to obtain resources required for managing the database, such as applying for a VM to the underlying service, and applying for a disk.
  • the DB management module is mainly used to obtain commands such as configuration, startup, backup, data recovery, and instance recovery of the database, and is sent to the agent module.
  • the agent module is used to execute the configuration, startup, backup, data recovery, and instance fault recovery commands issued by the DB management module.
  • system architecture of the embodiment of the present invention further includes peripheral dependencies: an elactic compute service (ESC), an Elastic volume service (EVS), a virtual private cloud (VPC), and a DB. . These components need to be deployed independently during actual deployment.
  • ESC elactic compute service
  • EVS Elastic volume service
  • VPC virtual private cloud
  • DB DB
  • ESC is a module that provides virtual machine management, which can be used to apply for virtual machines.
  • EVS is a module that provides a virtual machine disk that can be used to request a new virtual machine disk.
  • the VPC is a module that provides virtual machine network management, and the module can provide the virtual machine with the capability of the virtual machine local area network.
  • DB is a module that provides database management for storing management data of DB services.
  • FIG. 3 is a schematic diagram of a composition of a server according to an embodiment of the present invention.
  • the server may include at least one processor 21, a memory 22, a communication interface 23, and a communication bus 24.
  • the processor 21 is a control center of the server, and may be a processor or a collective name of a plurality of processing elements.
  • the processor 21 is a central processing unit (CPU), may be an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • microprocessors Digital Signal Processors, DSPs
  • FPGAs Field Programmable Gate Arrays
  • the processor 21 can perform various functions of the server by running or executing a software program stored in the memory 22 and calling data stored in the memory 22.
  • processor 21 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG.
  • the server may include multiple processors, such as processor 21 and processor 25 shown in FIG.
  • processors can be a single core processor (CPU) or a multi-core processor (multi-CPU).
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data, such as computer program instructions.
  • the memory 22 can be a read-only memory (ROM) or other type of static storage device that can store static information and instructions, a random access memory (RAM) or can store information. And other types of dynamic storage devices, and may also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other Disc storage, optical storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), disk storage media or other magnetic storage devices, or capable of carrying or storing desired programs in the form of instructions or data structures Code and any other medium that can be accessed by a computer, but is not limited thereto.
  • Memory 22 may be present independently and coupled to processor 21 via communication bus 24. The memory 22 can also be integrated with the processor 21.
  • the memory 22 is used to store a software program that executes the solution of the present invention and is controlled by the processor 21.
  • the communication interface 23 uses a device such as any transceiver for communicating with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Networks (WLAN), etc. .
  • the communication interface 23 may include a receiving unit that implements a receiving function, and a transmitting unit that implements a transmitting function.
  • the communication bus 24 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Industry Standard Architecture
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 3, but it does not mean that there is only one bus or one type of bus.
  • the device structure shown in FIG. 3 does not constitute a limitation to the server, and may include more or less components than those illustrated, or some components may be combined, or different component arrangements.
  • FIG. 4 is a flowchart of a method for providing a database service according to an embodiment of the present invention.
  • the embodiment of the present invention provides a database service providing method according to an embodiment of the present invention, where the management request is specifically used to create a database instance to be managed, and the server includes an API service module, a task management service module, a DB management module, and a proxy module. Introduce. As shown in FIG. 4, the method may include:
  • the API service module of the server receives the management request sent by the client.
  • the management request is used to request the creation of a database instance, and the management request includes the type and version of the database to be managed.
  • the type and version can uniquely determine a database.
  • the type of database can be master-slave and peer-to-peer.
  • the task of creating a database instance can be triggered in the front-end user interface of the client, and the type and version of the database to be managed are selected.
  • the client detects the trigger of the user, the client can obtain a management request for requesting to create a database instance, and carry the type and version of the database to be managed in the management request, and perform a representational state transition with the server (Representational The State Transfer, Rest) interface is sent to the server's API service module.
  • the server's API service module can receive the management request.
  • the API service module of the server loads the plug-in of the database to be managed according to the type and version of the database to be managed carried in the management request.
  • the server has a plug-in that stores different databases in advance.
  • the API service module of the server may load the plug-in of the database to be managed according to the type and version of the database to be managed carried in the received management request, and the plug-in corresponds to the type and version of the database to be managed.
  • the API service module of the server generates an application resource request in the plug-in according to the management request, and sends an application resource request to the task manager service module of the server.
  • the application resource request includes the number of virtual machines to be created, the specifications of the virtual machine, and the database to be managed. Type and version.
  • the API service module of the server may send an application resource request to the task management service module of the server through the Rest interface.
  • the number of virtual machines to be created and the specifications of the virtual machine can be specified by the user in the foreground interface.
  • the number of virtual machines to be created and the specifications of the virtual machine can be generated by the server's API service module according to the default values in the plugin.
  • the number of virtual machines to be created and the specifications of the virtual machine are selected by the user in the foreground interface, and the client carries the API service module transmitted to the server in the management request.
  • the API service module of the server may generate an application resource request in the plug-in according to the number of virtual machines to be created and the specifications of the virtual machine carried in the management request.
  • the number of virtual machines to be created is greater than or equal to 2, and the virtual machine to be created includes a master virtual machine and at least one slave (slave). virtual machine.
  • the task management service module of the server receives the application resource request sent by the API service module of the server.
  • the task management service module of the server obtains, according to the application resource request, the resources required to create the database instance by the underlying virtual machine management service module.
  • the virtual machine management server module can be an ESC.
  • the task management service module of the server may initiate a task of requesting to create a virtual machine to the virtual machine management service module, where the task includes the number of virtual machines to be created and the specifications of the virtual machine.
  • the virtual machine management service module receives the task of requesting to create a virtual machine, the virtual machine can be allocated according to the number of virtual machines to be created and the specifications of the virtual machine.
  • the virtual machine management service module sends the assigned virtual machine to the task management service module of the server.
  • the task management service module of the server creates a virtual machine according to the resources required to create the database instance, and after the creation is completed, obtains a command to create a database instance, and sends a command to create a database instance to the DB management module of the server.
  • the Create Database Instance command includes the type and version of the database to be managed, and a list of created virtual machines.
  • the task management service module of the server may send a create database instance command to the DB management module of the server through the Rest interface.
  • the DB management module of the server receives a create database instance command sent by a task management service module of the server.
  • the DB management module of the server loads the plug-in of the database to be managed according to the type and version of the database to be managed carried in the database instance command.
  • the DB management module of the server may load the plug-in of the database to be managed according to the type and version of the database to be managed carried in the received database instance command, and the plug-in corresponds to the type and version of the database to be managed.
  • the DB management module of the server obtains a configuration command according to the virtual machine list carried in the create database instance command in the plug-in, and sends a configuration command to the proxy module of the server.
  • the agent module is a proxy module of a virtual machine included in the virtual machine list.
  • the DB management module of the server can send a configuration command to the proxy module of the server through the SSH channel. It should be noted that, for a successfully created virtual machine included in the virtual machine list, the DB management module of the server needs to send a configuration command to the proxy module where each successfully created virtual machine is located, so as to complete each successfully created virtual machine. Configuration.
  • the proxy module of the server receives the configuration command sent by the DB management module of the server, and configures the virtual machine according to the configuration command. After the configuration is completed, the proxy module of the server sends a configuration completion command to the DB management module of the server.
  • the DB management module of the server receives a configuration completion command sent by the proxy module of the server, and sends a startup command to the proxy module of the server.
  • the DB management module of the server needs to send a startup command to the proxy module where each successfully created virtual machine is located, so as to complete each successfully created virtual machine. start up.
  • the proxy module of the server receives the startup command sent by the DB management module of the server, and executes a script corresponding to the startup command to complete the creation of the database instance.
  • the proxy module of the server when the mode of the database to be managed is master-slave, the proxy module of the server usually starts the master virtual machine and then starts the slave virtual machine in the process of executing the script corresponding to the startup command. Moreover, after the startup of the master virtual machine and the slave virtual machine is completed, it is possible to continue to detect whether the state of the started virtual machine is normal. After the state of the started virtual machine is normal, the process of ending the creation of the database instance ends.
  • the proxy module of the server may start the virtual machine simultaneously or sequentially in the process of executing the script corresponding to the startup command. Moreover, after the startup of the virtual machine is completed, it can continue to detect whether the state of the started virtual machine is normal. After the state of the started virtual machine is normal, the process of ending the creation of the database instance ends.
  • the database service providing method provided by the embodiment of the present invention, after the server receives the management request sent by the client, loads the plug-in of the to-be-managed data according to the type and version of the database to be managed carried in the management request, and loads the The plug-in obtains the resources required for managing the database to be managed, and after the configuration of the resources required for managing the database to be managed is completed, the management command is obtained according to the management request, and the execution of the management request is completed by running the script of the management command.
  • the DB services of different databases can be supported by a common background service, thereby solving the DB of different databases. Services are completely independent, resulting in increased management costs and complex maintenance.
  • the online for the new database, only a small amount of functions need to be added to the general background service, the online can be completed, and the online period of the new database is shortened.
  • FIG. 5 is a flowchart of another database service providing method according to an embodiment of the present invention.
  • the embodiment of the present invention provides a database service providing method according to an embodiment of the present invention, where the management request is specifically used to treat a database backup database instance, and the server includes an API service module, a task management service module, a DB management module, and a proxy module. Introduce. As shown in FIG. 5, the method may include:
  • the API service module of the server receives the management request sent by the client.
  • the management request is used to request a backup database instance, and the management request includes the type and version of the database to be managed.
  • the task of backing up the database instance can be triggered in the front-end user interface of the client, and the type and version of the database to be managed are selected.
  • the client may obtain a management request for requesting backup of the database instance, and carry the type and version of the database to be managed in the management request, and send it to the server through the Rest interface with the server.
  • API service module the server's API service module can receive the management request.
  • the API service module of the server loads the plug-in of the database to be managed according to the type and version of the database to be managed carried in the management request.
  • the API service module of the server generates an application resource request in the plug-in according to the management request, and sends an application resource request to the task management service module of the server.
  • the request resource request includes the size of the new disk to be created and the type and version of the database to be managed.
  • the size of the new disk to be created can be determined according to the size of the disk where the data to be backed up is located. For example, the size of the new disk to be created included in the application resource request is larger than the disk on which the data to be backed up is located. The same is small.
  • the task management service module of the server receives the application resource request sent by the API service module of the server.
  • the task management service module of the server obtains, according to the application resource request, the resources required for backing up the database instance by the underlying volume management service module.
  • the volume management service module may be an EVS.
  • the task management service module of the server may initiate a request to the volume management service module to create a new disk, including the size of the new disk to be created.
  • the volume management service module After the volume management service module receives the task of requesting to create a new disk, it can allocate the resources required to back up the database instance according to the size of the new disk to be created, that is, allocate a new disk.
  • the Volume Management Service module sends the assigned new disk to the task management service module of the server.
  • the task management service module of the server mounts the new disk to the virtual machine of the database to be managed according to the resources required for backing up the database instance, and obtains the backup database instance command after the mount is completed, and the DB management module of the server is obtained. Send a backup database instance command.
  • the backup database instance command includes the type and version of the database to be managed and the list of virtual machines to which the new disk is mounted.
  • the DB management module of the server receives a backup database instance command sent by the task management service module of the server.
  • the DB management module of the server loads the plug-in of the database to be managed according to the type and version of the database to be managed carried in the backup database instance command.
  • the DB management module of the server sends a backup command to the proxy module of the server according to the list of virtual machines to which the new disk is carried in the backup database instance command.
  • the agent module is the proxy module of the virtual machine to which the new disk is mounted.
  • the proxy module of the server receives the backup command sent by the DB management module of the server, and executes a script corresponding to the backup command, so as to start exporting the data in the database to be managed, and output the exported data to the backup file and save the new disk. in.
  • the DB management module of the server may periodically detect the backup status of the proxy module of the server in the plug-in, and send an upload command to the proxy module of the server when determining that the backup status is the completion status.
  • the proxy module of the server receives the upload command sent by the DB management module of the server, and uploads the backup file saved in the new disk to the backup file system. And after the upload is complete, delete the backup file saved in the new disk.
  • the database service providing method provided by the embodiment of the present invention, after the server receives the management request sent by the client, loads the plug-in of the to-be-managed data according to the type and version of the database to be managed carried in the management request, and loads the The plug-in obtains the resources required for managing the database to be managed, and after the configuration of the resources required for managing the database to be managed is completed, the management command is obtained according to the management request, and the execution of the management request is completed by running the script of the management command.
  • the DB services of different databases can be supported by a common background service, thereby solving the DB of different databases. Services are completely independent, resulting in increased management costs and complex maintenance.
  • the online for the new database, only a small amount of functions need to be added to the general background service, the online can be completed, and the online period of the new database is shortened.
  • each network element such as a server and a terminal, in order to implement the above functions, includes hardware structures and/or software modules corresponding to each function.
  • the present invention can be implemented in a combination of hardware or hardware and computer software in combination with the algorithm steps of the various examples described in the embodiments disclosed herein. a function Whether it is implemented in hardware or computer software to drive hardware depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
  • the embodiments of the present invention may divide the functional modules of the server and the terminal according to the foregoing method.
  • each functional module may be divided according to each function, or two or more functions may be integrated into one processing module.
  • the above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of the module in the embodiment of the present invention is schematic, and is only a logical function division, and the actual implementation may have another division manner.
  • FIG. 6 is a schematic diagram showing a possible composition of the server involved in the foregoing and the embodiment.
  • the server may include: an API service module 51, The task management service module 52, the DB management module 53, and the agent module 54.
  • the API service module 51 is configured to support the server to perform step 301, step 302, and step 303 in the database service providing method shown in FIG. 4, and step 401, step 402, and step in the database service providing method shown in FIG. 403.
  • the task management service module 52 is configured to support the server to perform step 304, step 305, and step 306 in the database service providing method shown in FIG. 4, and step 404, step 405, and step 406 in the database service providing method shown in FIG. .
  • the DB management module 53 is configured to support the server to perform step 307, step 308, step 309, and step 311 in the database service providing method shown in FIG. 4, and step 407 and step 408 in the database service providing method shown in FIG. Step 409.
  • the proxy module 54 is configured to support the server to perform step 310, step 312 in the database service providing method shown in FIG. 4, and step 410 in the database service providing method shown in FIG. 5.
  • the server provided by the embodiment of the present invention is configured to execute the foregoing database service providing method, so that the same effect as the above database service providing method can be achieved.
  • FIG. 7 shows another possible composition diagram of the server involved in the above embodiment.
  • the server includes a processing module 61 and a communication module 62.
  • the processing module 61 is configured to perform control management on the actions of the server.
  • the processing module 61 is configured to support the server to perform step 302, step 305 in FIG. 4, step 402, step 405, etc. in FIG. 5, and/or Other processes of the described techniques.
  • Communication module 62 is used to support communication between the server and other network entities, such as with the functional modules or network entities shown in FIG. 2.
  • the server may also include a storage module 63 for storing program code and data of the server.
  • the processing module 61 can be a processor or a controller. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor can also be a combination of computing functions, for example, including one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • the communication module 62 can be a transceiver, a transceiver circuit, a communication interface, or the like.
  • the storage module 63 can be a memory.
  • the server involved in the embodiment of the present invention may be the server shown in FIG.
  • the server provided by the embodiment of the present invention is configured to execute the foregoing database service providing method, so that the same effect as the above database service providing method can be achieved.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division.
  • there may be another division manner for example, multiple units or components may be used.
  • the combination may be integrated into another device, or some features may be ignored or not performed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may be one physical unit or multiple physical units, that is, may be located in one place, or may be distributed to multiple different places. . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a readable storage medium.
  • the technical solution of the embodiments of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a device (which may be a microcontroller, chip, etc.) or a processor to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种数据库服务提供方法及服务器,涉及数据处理技术领域,用于数据库的管理过程中,具体方案为:服务器接收客户端发送的管理请求(301,401),管理请求包括待管理数据库的类型和版本,管理请求用于对待管理数据库进行管理;服务器根据待管理数据库的类型和版本,加载待管理数据库的插件(308,408);服务器在插件中获取管理待管理数据库所需的资源;服务器对管理待管理数据库所需的资源进行配置,并在配置完成后,根据管理请求获取管理命令;服务器运行管理命令的脚本,以便执行管理请求。该方案解决了由于不同数据库的DB服务是完全独立的,导致的管理成本增加和维护复杂,以及新的数据库上线周期长的问题。

Description

一种数据库服务提供方法及服务器
本申请要求于2016年12月6日提交中国专利局、申请号为201611112406.4、发明名称为“一种数据库服务提供方法及服务器”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明实施例涉及数据处理技术领域,尤其涉及一种数据库服务提供方法及服务器。
背景技术
数据库(Database,DB)是按照数据结构来组织、存储和管理数据的建立在计算机存储设备上的仓库。业界的数据库有很多种类,例如,MySQL、Redis、Mongodb、Cassandra等等。
目前,针对每种数据库,为该数据库提供的DB服务都是完全独立的,且对于不同的DB服务,需要由不同的人员来开发和维护。例如,为MySQL提供的DB服务称为关系型数据库服务(Relational Database Service,RDS),为Redis提供的DB服务称为分布式缓存服务(Distributed Cache Service,DCS),这两种服务无论是在部署上,还是在维护上都是独立的。如图1所示,对于RDS和DCS这两种服务,每种服务都有自己独立的前台用户界面(User Interface,UI)、后台管理(manager)系统以及维护人员等。
在为数据库提供DB服务的过程中,至少存在如下问题:由于不同数据库的DB服务都是完全独立的,因此,会使得对这些数据库的管理和维护也需要独立进行,从而导致管理成本的增加和维护的复杂。另外,若有新的数据库上线,则需要重新开发相应的DB服务,这会导致新的数据库上线周期加长。
发明内容
本发明实施例提供一种数据库服务提供方法及服务器,解决了由于不同数据库的DB服务是完全独立的,导致的管理成本增加和维护复杂,以及新的数据库上线周期长的问题。
为达到上述目的,本发明实施例采用如下技术方案:
本发明实施例的第一方面,提供一种数据库服务提供方法,包括:
服务器接收客户端发送的用于对待管理数据库进行管理的管理请求,该管理请求包括待管理数据库的类型和版本,服务器根据待管理数据库的类型和版本,加载待管理数据库的插件,并在插件中获取管理待管理数据库所需的资源,且对管理待管理数据库所需的资源进行配置,并在配置完成后,根据管理请求获取管理命令,然后运行管理命令的脚本,以便执行管理请求。
其中,对待管理数据库的管理包括以下至少一种:创建数据库实例、备份数据库实例、删除数据库实例、恢复待管理数据库的数据、数据库实例的故障恢复、配置数据库实例、数据库实例的高可用性处理。
本发明实施例提供的数据库服务提供方法,在服务器接收到客户端发送的管理请求之后,通过根据管理请求中携带的待管理数据库的类型和版本,加载该待管理数据的插件,并在加载的插件中获取管理待管理数据库所需的资源,且在对管理待管理数据库所需的资源配置完成后,根据管理请求获取管理命令,并通过运行管理命令的脚本,完成管理请求的执行操作。这样,在接收到不同数据库的管理请求之后,通过加载该数据库的插件以及运行相应 的脚本,使得不同的数据库的DB服务可以通过一套通用的后台服务来支撑,从而解决了由于不同数据库的DB服务是完全独立的,导致的管理成本增加和维护复杂。并且,对于新的数据库,仅需在通用的后台服务中增加少量的功能,便可以完成上线,缩短了新的数据库的上线周期。
结合第一方面,在一种可能的实现方式中,服务器在插件中获取管理待管理数据库所需的资源具体的可以包括:服务器在插件中生成申请资源请求,并根据申请资源请求获取管理待管理数据库所需的资源。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,当管理请求具体用于对待管理数据库创建数据库实例时,申请资源请求包括:需创建的虚拟机的数量和规格,管理待管理数据库所需的资源为至少一个虚拟机,管理命令为启动命令;此时,服务器对管理待管理数据库所需的资源进行配置,并在配置完成后,根据管理请求获取管理命令具体的可以包括:服务器根据管理待管理数据库所需的资源,创建至少一个虚拟机,并获取创建数据库实例命令,该创建数据库实例命令中包括虚拟机列表,虚拟机列表中包括至少一个创建成功的虚拟机;服务器在插件中获取创建成功的虚拟机的配置命令,并根据配置命令对创建成功的虚拟机进行配置,在配置完成后,根据管理请求在插件中获取创建成功的虚拟机的启动命令。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,服务器运行管理命令的脚本,以便执行管理请求具体的可以包括:服务器运行启动命令对应的脚本,以便启动创建成功的虚拟机。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,当管理请求具体用于对待管理数据库备份数据库实例时,申请资源请求包括:需创建的新磁盘的大小,管理待管理数据库所需的资源为至少一个新磁盘,管理命令为备份命令;此时,服务器对管理待管理数据库所需的资源进行配置,并在配置完成后,根据管理请求获取管理命令具体的可以包括:服务器根据管理待管理数据库所需的资源,将至少一个新磁盘挂载到待管理数据库的虚拟机中,并在挂载完成后,获取备份数据库实例命令,备份数据库实例命令中包括虚拟机列表,虚拟机列表中包括至少一个新磁盘挂载到的虚拟机;然后,服务器根据管理请求,在插件中获取新磁盘挂载到的虚拟机的备份命令。
结合第一方面和上述可能的实现方式,在另一种可能的实现方式中,服务器运行管理命令的脚本,以便执行管理请求,具体的可以包括:服务器运行备份命令对应的脚本,以便开始导出待管理数据库中的数据,并保存在新磁盘中。
本发明实施例的第二方面,提供一种服务器,包括:应用程序接口(Application Programming Interface,API)服务模块、任务管理服务模块、DB管理模块、代理模块。
其中,API服务模块,用于接收客户端发送的管理请求,管理请求包括:待管理数据库的类型和版本,管理请求用于对待管理数据库进行管理,根据待管理数据库的类型和版本,加载待管理数据库的插件;
任务管理服务模块,用于获取管理待管理数据库所需的资源,对管理待管理数据库所需的资源进行配置;
DB管理模块,用于根据待管理数据库的类型和版本,加载待管理数据库的插件,并根据管理请求,在插件中获取管理命令;
代理模块,用于运行管理命令的脚本,以便执行管理请求。
结合第二方面,在一种可能的实现方式中,API服务模块,还用于在插件中生成申请资源请求,并将申请资源请求发送至任务管理服务模块;任务管理服务模块,具体用于接收申请资源请求,并根据申请资源请求获取管理待管理数据库所需的资源。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,当管理请求具体用于对待管理数据库创建数据库实例时,申请资源请求包括:需创建的虚拟机的数量和规格,管理待管理数据库所需的资源为至少一个虚拟机,管理命令为启动命令;任务管理服务模块,具体用于根据管理待管理数据库所需的资源,创建至少一个虚拟机,获取创建数据库实例命令,创建数据库实例命令中包括虚拟机列表、待管理数据库的类型和版本,虚拟机列表中包括至少一个创建成功的虚拟机,并将创建数据库实例命令发送至DB管理模块;DB管理模块,具体用于接收创建数据库实例,根据创建数据库实例中包括的待管理数据库的类型和版本,加载待管理数据库的插件,并在插件中获取创建成功的虚拟机的配置命令,并将配置命令发送至代理模块,代理模块为创建成功的虚拟机的代理模块;代理模块,还用于接收配置命令,根据配置命令对创建成功的虚拟机进行配置,在配置完成后,向DB管理模块发送配置完成命令;DB管理模块,具体还用于接收配置完成命令,根据管理请求,在插件中获取创建成功的虚拟机的启动命令,并将启动命令发送至代理模块。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,代理模块,具体用于接收启动命令,并运行启动命令对应的脚本,以便启动创建成功的虚拟机。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,当管理请求具体用于对待管理数据库备份数据库实例时,申请资源请求包括:需创建的新磁盘的大小,管理待管理数据库所需的资源为至少一个新磁盘,管理命令为备份命令;任务管理服务模块,具体用于根据管理待管理数据库所需的资源,将至少一个新磁盘挂载到待管理数据库的虚拟机中,在挂载完成后,获取备份数据库实例命令,备份数据库实例命令中包括虚拟机列表、待管理数据库的类型和版本,虚拟机列表中包括至少一个新磁盘挂载到的虚拟机,并将备份数据库实例命令发送至DB管理模块;DB管理模块,具体用于接收备份数据库实例,根据备份数据库实例中包括的待管理数据库的类型和版本,加载待管理数据库的插件,并根据管理请求,在插件中获取新磁盘挂载到的虚拟机的备份命令,将备份命令发送至代理模块。
结合第二方面和上述可能的实现方式,在另一种可能的实现方式中,代理模块,具体用于接收备份命令,并运行备份命令对应的脚本,以便开始导出待管理数据库中的数据,并保存在新磁盘中。
本发明实施例的第三方面,提供一种服务器,该服务器可以包括:至少一个处理器,存储器、通信接口、通信总线;
至少一个处理器与存储器、通信接口通过通信总线连接,存储器用于存储计算机执行指令,当服务器运行时,处理器执行存储器存储的计算机执行指令,以使服务器执行第一方面或第一方面的可能的实现方式中任一所述的数据库服务提供方法。
本发明实施例的第四方面,提供一种计算机存储介质,用于存储上述服务器所用的计算机软件指令,该计算机软件指令包含用于执行上述数据库服务提供方法所设计的程序。
附图说明
图1为现有技术提供的一种提供DB服务的架构简化示意图;
图2为本发明实施例提供的一种应用本发明实施例的系统架构的简化示意图;
图3为本发明实施例提供的一种服务器的组成示意图;
图4为本发明实施例提供的一种数据库服务提供方法的流程图;
图5为本发明实施例提供的另一种数据库服务提供方法的流程图;
图6为本发明实施例提供的一种服务器的组成示意图;
图7为本发明实施例提供的另一种服务器的组成示意图。
具体实施方式
为了解决由于不同数据库的DB服务是完全独立的,导致的管理成本增加和维护复杂,以及新的数据库上线周期长的问题,本发明实施例提供一种数据库服务提供方法,其基本原理是:服务器接收客户端发送的用于对待管理数据库进行管理的管理请求,然后根据接收到的管理请求中包括的待管理数据库的类型和版本,加载待管理数据库的插件,并在插件中获取管理待管理数据库所需的资源,且对管理待管理数据库所需的资源进行配置,在配置完成后,根据管理请求获取管理命令,然后运行管理命令的脚本,以便执行管理请求。这样,在接收到不同数据库的管理请求之后,通过加载该数据库的插件以及运行相应的脚本,使得不同的数据库的DB服务可以通过一套通用的后台服务来支撑,从而解决了由于不同数据库的DB服务是完全独立的,导致的管理成本增加和维护复杂。并且,对于新的数据库,仅需在通用的后台服务中增加少量的功能,便可以完成上线,缩短了新的数据库的上线周期。
下面将结合附图对本发明实施例的实施方式进行详细描述。
图2示出的是可以应用本发明实施例的系统架构的简化示意图。如图2所示,该系统架构可以包括:至少一个服务器11和客户端12。
其中,至少一个服务器11中部署有不同的数据库集群,且用于为部署的数据库集群提供DB服务。
在具体实现中,作为一种实施例,例如图2中所示的本发明的网络架构包括六个服务器,分别为服务器11、服务器13、服务器14、服务器15、服务器16和服务器17。
另外,在本发明实施例中,以至少一个服务器11中部署有三种不同的数据库集群为例,分别为:Mongodb、Redis、Cassandra。其中,这三种数据库集群对外呈现统一的API服务,即这三种数据库集群可以通过一套通用的后台服务来提供DB服务。每种数据库集群可以部署在一个虚拟机(Virtual Machine,VM)集群上或者部署在服务器集群上。如图2以一种数据库部署在一个VM集群上为例示出,即Cassandra部署在服务器11包括的VM集群上、Mongodb部署在服务器13包括的VM集群上、Redis部署在服务器14包括的VM集群上。
客户端12用于为管理人员提供前台用户界面以及显示服务器11返回的数据,用户通过客户端12可以对部署在至少一个服务器11中的数据库进行管理。在具体的实现中,该客户端12可以手机、平板电脑、笔记本电脑、超级移动个人计算机(Ultra-mobile Personal Computer,UMPC)、上网本、个人数字助理(Personal Digital Assistant,PDA)等等。作为一种实施例,如图2中所示,本发明的网络架构包括的客户端12为笔记本电脑。
需要说明的是,在本发明实施例中,可以通过API服务模块、任务管理服务模块、DB管理模块以及代理模块的配合实现本发明实施例提供的数据库服务提供方法。且上述模块可以以分布式的方式部署在至少一个服务器11中。当然,为了节省成本,API服务模块、任务管理服务模块和DB管理模块这三个模块可以部署在同一个服务器的不同VM上。也可以部署到不同的服务器上。
在具体实现中,作为一种实施例中,例如图2中所示,服务器15中部署有API服务模块。服务器16中部署有任务管理服务模块。服务器17中部署有DB管理模块,其中,DB管 理模块具体的可以是一个集群。服务器11、服务器13和服务器14中均部署有代理模块。
当然,本发明实施例在此仅是对至少一个服务器11中部署的模块进行了举例说明,在实际的应用场景中,至少一个服务器11中部分服务器可以部署有API服务模块、任务管理服务模块和DB管理模块的一个或多个的组合,剩余部分服务器可以部署数据库以及代理模块,以便互相配合实现本发明的数据库服务提供方法。其中,当API服务模块、任务管理服务模块和DB管理模块部署在不同的服务器中时,可以通过Rest接口实现通信。DB管理模块和代理模块可以通过安全外壳协议(Secure Shell,SSH)通道实现通信。
其中,API服务模块,主要用于与客户端12进行交互,如接收管理请求。
任务管理服务模块,主要用于获取管理数据库所需的资源,如向底层服务申请VM,申请磁盘等。
DB管理模块,主要用于获取对数据库的配置,启动,备份,数据恢复,实例故障恢复等命令,并下发至代理模块。
代理模块,用于执行DB管理模块下发的对数据库的配置,启动,备份,数据恢复,实例故障恢复等命令。
另外,本发明实施例的系统架构中还包括一些周边依赖组件:弹性计算服务(elactic compute service,ESC)、云硬盘(Elastic volume service,EVS)、虚拟私有云(Vitual private cloud,VPC)和DB。这些组件在实际部署时需独立部署。
ESC为一个可以提供虚拟机管理的模块,利用该模块可以申请虚拟机。
EVS为一个提供虚拟机磁盘的模块,利用该模块可申请新的虚拟机磁盘。
VPC为一个提供虚拟机网络管理的模块,利用该模块可向虚拟机提供虚拟机局域网络的能力。
DB为一个提供数据库管理的模块,用于存储DB服务的管理数据。
图3为本发明实施例提供的一种服务器的组成示意图,如图3所示,服务器可以包括至少一个处理器21,存储器22、通信接口23、通信总线24。
下面结合图3对服务器的各个构成部件进行具体的介绍:
处理器21是服务器的控制中心,可以是一个处理器,也可以是多个处理元件的统称。例如,处理器21是一个中央处理器(Central Processing Unit,CPU),也可以是特定集成电路(Application Specific Integrated Circuit,ASIC),或者是被配置成实施本发明实施例的一个或多个集成电路,例如:一个或多个微处理器(Digital Signal Processor,DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array,FPGA)。
其中,处理器21可以通过运行或执行存储在存储器22内的软件程序,以及调用存储在存储器22内的数据,执行服务器的各种功能。
在具体的实现中,作为一种实施例,处理器21可以包括一个或多个CPU,例如图3中所示的CPU0和CPU1。
在具体实现中,作为一种实施例,服务器可以包括多个处理器,例如图3中所示的处理器21和处理器25。这些处理器中的每一个可以是一个单核处理器(single-CPU),也可以是一个多核处理器(multi-CPU)。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。
存储器22可以是只读存储器(Read-Only Memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(Random Access Memory,RAM)或者可存储信息 和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器22可以是独立存在,通过通信总线24与处理器21相连接。存储器22也可以和处理器21集成在一起。
其中,存储器22用于存储执行本发明方案的软件程序,并由处理器21来控制执行。
通信接口23,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线接入网(Radio Access Network,RAN),无线局域网(Wireless Local Area Networks,WLAN)等。通信接口23可以包括接收单元实现接收功能,以及发送单元实现发送功能。
通信总线24,可以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。为便于表示,图3中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
图3中示出的设备结构并不构成对服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。
图4为本发明实施例提供的一种数据库服务提供方法的流程图。其中,本发明实施例以管理请求具体用于对待管理数据库创建数据库实例为例,且以服务器包括API服务模块、任务管理服务模块、DB管理模块和代理模块对本发明实施例提供的数据库服务提供方法进行介绍。如图4所示,该方法可以包括:
301、服务器的API服务(service)模块接收客户端发送的管理请求。
该管理请求用于请求创建数据库实例,且该管理请求包括待管理数据库的类型和版本。
其中,类型和版本可以唯一确定一数据库。数据库的类型可以为主从(master-slave)式、对等(peer-to-peer)式。
示例性的,当用户需要针对待管理数据库创建数据库实例时,可以在客户端的前台用户界面中触发创建数据库实例的任务,并选择待管理数据库的类型和版本。客户端在检测到用户的触发时,便可以获取用于请求创建数据库实例的管理请求,并将待管理数据库的类型和版本携带在管理请求中,通过与服务器之间的表述性状态转移(Representational State Transfer,Rest)接口发送至服务器的API服务模块。此时,服务器的API服务模块便可以接收该管理请求。
302、服务器的API服务模块根据管理请求中携带的待管理数据库的类型和版本,加载待管理数据库的插件。
其中,服务器中预先存储有不同数据库的插件。服务器的API服务模块可以根据接收到的管理请求中携带的待管理数据库的类型和版本,加载待管理数据库的插件,该插件与待管理数据库的类型和版本相对应。
303、服务器的API服务模块根据管理请求在插件中生成申请资源请求,并向服务器的任务管理(task manager)服务模块发送申请资源请求。
其中,申请资源请求中包括需创建的虚拟机的数量、虚拟机的规格以及待管理数据库的 类型和版本。服务器的API服务模块可以通过Rest接口向服务器的任务管理服务模块发送申请资源请求。
需要说明的是,需创建的虚拟机的数量和虚拟机的规格可以由用户在前台界面中指定。当用户未在前台界面中指定时,需创建的虚拟机的数量和虚拟机的规格可以由服务器的API服务模块根据插件中的默认值生成。
示例性的,需创建的虚拟机的数量和虚拟机的规格由用户在前台界面中选择,并由客户端携带在管理请求中传输至服务器的API服务模块。此时,服务器的API服务模块可以根据管理请求中携带的需创建的虚拟机的数量和虚拟机的规格,在插件中生成申请资源请求。其中,当待管理数据库的模式为master-slave式时,需创建的虚拟机的数量大于或等于2,且在需创建的虚拟机中包括一个主(master)虚拟机和至少一个从(slave)虚拟机。
304、服务器的任务管理服务模块接收服务器的API服务模块发送的申请资源请求。
305、服务器的任务管理服务模块根据申请资源请求,由底层的虚拟机管理服务模块处获取创建数据库实例所需的资源。
其中,虚拟机管理服务器模块可以为ESC。
示例性的,服务器的任务管理服务模块可以向虚拟机管理服务模块发起请求创建虚拟机的任务,该任务中包括需创建的虚拟机的数量和虚拟机的规格。虚拟机管理服务模块接收到请求创建虚拟机的任务之后,可以根据需创建的虚拟机的数量和虚拟机的规格,分配创建数据库实例所需的资源,即分配虚拟机。虚拟机管理服务模块将分配的虚拟机发送至服务器的任务管理服务模块。
306、服务器的任务管理服务模块根据创建数据库实例所需的资源,创建虚拟机,并在创建完成后,获取创建数据库实例命令,向服务器的DB管理模块发送创建数据库实例命令。
该创建数据库实例命令中包括待管理数据库的类型和版本,以及创建好的虚拟机列表。
其中,服务器的任务管理服务模块可以通过Rest接口向服务器的DB管理模块发送创建数据库实例命令。
307、服务器的DB管理模块接收服务器的任务管理服务模块发送的创建数据库实例命令。
308、服务器的DB管理模块根据创建数据库实例命令中携带的待管理数据库的类型和版本,加载待管理数据库的插件。
其中,服务器的DB管理模块可以根据接收到的创建数据库实例命令中携带的待管理数据库的类型和版本,加载待管理数据库的插件,该插件与待管理数据库的类型和版本相对应。
309、服务器的DB管理模块在插件中根据创建数据库实例命令中携带的虚拟机列表,获取配置命令,并向服务器的代理模块发送配置命令。
该代理模块为虚拟机列表中包括的虚拟机的代理模块。
其中,服务器的DB管理模块可以通过SSH通道向服务器的代理模块发送配置命令。需要说明的是,对于虚拟机列表中包括的创建成功的虚拟机,服务器的DB管理模块需向每个创建成功的虚拟机所在的代理模块发送配置命令,以便完成每个创建成功的虚拟机的配置。
310、服务器的代理模块接收服务器的DB管理模块发送的配置命令,并根据配置命令对虚拟机进行配置。在配置完成之后,服务器的代理模块向服务器的DB管理模块发送配置完成命令。
311、服务器的DB管理模块接收服务器的代理模块发送的配置完成命令,并向服务器的代理模块发送启动命令。
需要说明的是,对于虚拟机列表中包括的创建成功的虚拟机,服务器的DB管理模块需向每个创建成功的虚拟机所在的代理模块发送启动命令,以便完成每个创建成功的虚拟机的启动。
312、服务器的代理模块接收服务器的DB管理模块发送的启动命令,并执行与启动命令对应的脚本,以完成数据库实例的创建。
示例性的,当待管理数据库的模式为master-slave式时,服务器的代理模块在执行与启动命令对应的脚本的过程中,通常会先启动master虚拟机,然后再启动slave虚拟机。并且,在完成了master虚拟机和slave虚拟机的启动之后,可以继续检测启动的虚拟机的状态是否正常。在启动的虚拟机的状态正常后,结束创建数据库实例的流程结束。
当待管理数据库的模式为peer-to-peer式时,服务器的代理模块在执行与启动命令对应的脚本的过程中,可以同时或依次启动虚拟机。并且,在完成了虚拟机的启动之后,可以继续检测启动的虚拟机的状态是否正常。在启动的虚拟机的状态正常后,结束创建数据库实例的流程结束。
本发明实施例提供的数据库服务提供方法,在服务器接收到客户端发送的管理请求之后,通过根据管理请求中携带的待管理数据库的类型和版本,加载该待管理数据的插件,并在加载的插件中获取管理待管理数据库所需的资源,且在对管理待管理数据库所需的资源配置完成后,根据管理请求获取管理命令,并通过运行管理命令的脚本,完成管理请求的执行操作。这样,在接收到不同数据库的管理请求之后,通过加载该数据库的插件以及运行相应的脚本,使得不同的数据库的DB服务可以通过一套通用的后台服务来支撑,从而解决了由于不同数据库的DB服务是完全独立的,导致的管理成本增加和维护复杂。并且,对于新的数据库,仅需在通用的后台服务中增加少量的功能,便可以完成上线,缩短了新的数据库的上线周期。
图5为本发明实施例提供的另一种数据库服务提供方法的流程图。其中,本发明实施例以管理请求具体用于对待管理数据库备份数据库实例为例,且以服务器包括API服务模块、任务管理服务模块、DB管理模块和代理模块对本发明实施例提供的数据库服务提供方法进行介绍。如图5所示,该方法可以包括:
401、服务器的API服务模块接收客户端发送的管理请求。
该管理请求用于请求备份数据库实例,且该管理请求包括待管理数据库的类型和版本。
示例性的,当用户需要针对待管理数据库备份数据库实例时,可以在客户端的前台用户界面中触发备份数据库实例的任务,并选择待管理数据库的类型和版本。客户端在检测到用户的触发时,便可以获取用于请求备份数据库实例的管理请求,并将待管理数据库的类型和版本携带在管理请求中,通过与服务器之间的Rest接口发送至服务器的API服务模块。此时,服务器的API服务模块便可以接收该管理请求。
402、服务器的API服务模块根据管理请求中携带的待管理数据库的类型和版本,加载待管理数据库的插件。
403、服务器的API服务模块根据管理请求在插件中生成申请资源请求,并向服务器的任务管理服务模块发送申请资源请求。
其中,申请资源请求中包括需创建的新磁盘的大小,以及待管理数据库的类型和版本。
需要说明的是,需创建的新磁盘的大小可以根据需要备份的数据所在的磁盘的大小决定。例如,申请资源请求中包括的需创建的新磁盘的大小与需要备份的数据所在的磁盘的大 小相同。
404、服务器的任务管理服务模块接收服务器的API服务模块发送的申请资源请求。
405、服务器的任务管理服务模块根据申请资源请求,由底层的卷管理服务模块处获取备份数据库实例所需的资源。
其中,卷管理服务模块可以为EVS。
示例性的,服务器的任务管理服务模块可以向卷管理服务模块发起请求创建新磁盘的任务,该任务中包括需创建的新磁盘的大小。卷管理服务模块接收到请求创建新磁盘的任务之后,可以根据需创建的新磁盘的大小,分配备份数据库实例所需的资源,即分配新磁盘。卷管理服务模块将分配的新磁盘发送至服务器的任务管理服务模块。
406、服务器的任务管理服务模块根据备份数据库实例所需的资源,将新磁盘挂载到待管理数据库的虚拟机中,并在挂载完成后,获取备份数据库实例命令,向服务器的DB管理模块发送备份数据库实例命令。
该备份数据库实例命令中包括待管理数据库的类型和版本,以及新磁盘挂载到的虚拟机列表。
407、服务器的DB管理模块接收服务器的任务管理服务模块发送的备份数据库实例命令。
408、服务器的DB管理模块根据备份数据库实例命令中携带的待管理数据库的类型和版本,加载待管理数据库的插件。
409、服务器的DB管理模块在插件中根据备份数据库实例命令中携带的新磁盘挂载到的虚拟机列表,向服务器的代理模块发送备份命令。
该代理模块为新磁盘挂载到的虚拟机的代理模块。
410、服务器的代理模块接收服务器的DB管理模块发送的备份命令,并执行备份命令对应的脚本,以便开始导出待管理数据库中的数据,并将导出的数据输出到备份文件中,保存在新磁盘中。
并且,服务器的DB管理模块可以在插件中,定时检测服务器的代理模块的备份状态,并在确定备份状态为完成状态时,向服务器的代理模块发送上传命令。服务器的代理模块接收服务器的DB管理模块发送的上传命令,并将新磁盘中保存的备份文件上传到备份文件系统中。并在上传完成后,删除新磁盘中保存的备份文件。
本发明实施例提供的数据库服务提供方法,在服务器接收到客户端发送的管理请求之后,通过根据管理请求中携带的待管理数据库的类型和版本,加载该待管理数据的插件,并在加载的插件中获取管理待管理数据库所需的资源,且在对管理待管理数据库所需的资源配置完成后,根据管理请求获取管理命令,并通过运行管理命令的脚本,完成管理请求的执行操作。这样,在接收到不同数据库的管理请求之后,通过加载该数据库的插件以及运行相应的脚本,使得不同的数据库的DB服务可以通过一套通用的后台服务来支撑,从而解决了由于不同数据库的DB服务是完全独立的,导致的管理成本增加和维护复杂。并且,对于新的数据库,仅需在通用的后台服务中增加少量的功能,便可以完成上线,缩短了新的数据库的上线周期。
上述主要从各个网元之间交互的角度对本发明实施例提供的方案进行了介绍。可以理解的是,各个网元,例如服务器、终端为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的算法步骤,本发明能够以硬件或硬件和计算机软件的结合形式来实现。某个功能 究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。
本发明实施例可以根据上述方法示例对服务器、终端进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
在采用对应各个功能划分各个功能模块的情况下,图6示出了上述和实施例中涉及的服务器的一种可能的组成示意图,如图6所示,该服务器可以包括:API服务模块51、任务管理服务模块52、DB管理模块53、代理模块54。
其中,API服务模块51,用于支持服务器执行图4所示的数据库服务提供方法中的步骤301、步骤302、步骤303,图5所示的数据库服务提供方法中的步骤401、步骤402、步骤403。
任务管理服务模块52,用于支持服务器执行图4所示的数据库服务提供方法中的步骤304、步骤305、步骤306,图5所示的数据库服务提供方法中的步骤404、步骤405、步骤406。
DB管理模块53,用于支持服务器执行图4所示的数据库服务提供方法中的步骤307、步骤308、步骤309、步骤311,图5所示的数据库服务提供方法中的步骤407、步骤408、步骤409。
代理模块54,用于支持服务器执行图4所示的数据库服务提供方法中的步骤310、步骤312,图5所示的数据库服务提供方法中的步骤410。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模块的功能描述,在此不再赘述。
本发明实施例提供的服务器,用于执行上述数据库服务提供方法,因此可以达到与上述数据库服务提供方法相同的效果。
在采用集成的单元的情况下,图7示出了上述实施例中所涉及的服务器的另一种可能的组成示意图。如图7所示,该服务器包括:处理模块61和通信模块62。
处理模块61用于对服务器的动作进行控制管理,例如,处理模块61用于支持服务器执行图4中的步骤302、步骤305,图5中的步骤402、步骤405等等和/或用于本文所描述的技术的其它过程。通信模块62用于支持服务器与其他网络实体的通信,例如与图2中示出的功能模块或网络实体之间的通信。服务器还可以包括存储模块63,用于存储服务器的程序代码和数据。
其中,处理模块61可以是处理器或控制器。其可以实现或执行结合本发明公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信模块62可以是收发器、收发电路或通信接口等。存储模块63可以是存储器。
当处理模块61为处理器,通信模块62为通信接口,存储模块63为存储器时,本发明实施例所涉及的服务器可以为图3所示的服务器。
需要说明的是,上述方法实施例涉及的各步骤的所有相关内容均可以援引到对应功能模 块的功能描述,在此不再赘述。
本发明实施例提供的服务器,用于执行上述数据库服务提供方法,因此可以达到与上述数据库服务提供方法相同的效果。
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。

Claims (12)

  1. 一种数据库服务提供方法,其特征在于,包括:
    服务器接收客户端发送的管理请求,所述管理请求包括:待管理数据库的类型和版本,所述管理请求用于对所述待管理数据库进行管理;
    所述服务器根据所述待管理数据库的类型和版本,加载所述待管理数据库的插件;
    所述服务器在所述插件中获取管理所述待管理数据库所需的资源;
    所述服务器对所述管理所述待管理数据库所需的资源进行配置,并在配置完成后,根据所述管理请求获取管理命令;
    所述服务器运行所述管理命令的脚本,以便执行所述管理请求。
  2. 根据权利要求1所述的方法,其特征在于,所述服务器在所述插件中获取管理所述待管理数据库所需的资源,包括:
    所述服务器在所述插件中生成申请资源请求;
    所述服务器根据所述申请资源请求获取所述管理所述待管理数据库所需的资源。
  3. 根据权利要求2所述的方法,其特征在于,当所述管理请求具体用于对所述待管理数据库创建数据库实例时,所述申请资源请求包括:需创建的虚拟机的数量和规格,所述管理所述待管理数据库所需的资源为至少一个虚拟机,所述管理命令为启动命令;
    所述服务器对所述管理所述待管理数据库所需的资源进行配置,并在配置完成后,根据所述管理请求获取管理命令,包括:
    所述服务器根据所述管理所述待管理数据库所需的资源,创建所述至少一个虚拟机;
    所述服务器获取创建数据库实例命令,所述创建数据库实例命令中包括虚拟机列表,所述虚拟机列表中包括至少一个创建成功的虚拟机;
    所述服务器在所述插件中获取所述创建成功的虚拟机的配置命令,并根据所述配置命令对所述创建成功的虚拟机进行配置,在配置完成后,根据所述管理请求,在所述插件中获取所述创建成功的虚拟机的所述启动命令。
  4. 根据权利要求3所述的方法,其特征在于,所述服务器运行所述管理命令的脚本,以便执行所述管理请求,包括:
    所述服务器运行所述启动命令对应的脚本,以便启动所述创建成功的虚拟机。
  5. 根据权利要求2所述的方法,其特征在于,当所述管理请求具体用于对所述待管理数据库备份数据库实例时,所述申请资源请求包括:需创建的新磁盘的大小,所述管理所述待管理数据库所需的资源为至少一个新磁盘,所述管理命令为备份命令;
    所述服务器对所述管理所述待管理数据库所需的资源进行配置,并在配置完成后,根据所述管理请求获取管理命令,包括:
    所述服务器根据所述管理所述待管理数据库所需的资源,将所述至少一个新磁盘挂载到 所述待管理数据库的虚拟机中;
    所述服务器在挂载完成后,获取备份数据库实例命令,所述备份数据库实例命令中包括虚拟机列表,所述虚拟机列表中包括至少一个所述新磁盘挂载到的虚拟机;
    所述服务器根据所述管理请求,在所述插件中获取所述新磁盘挂载到的虚拟机的所述备份命令。
  6. 根据权利要求5所述的方法,其特征在于,所述服务器运行所述管理命令的脚本,以便执行所述管理请求,包括:
    所述服务器运行所述备份命令对应的脚本,以便开始导出所述待管理数据库中的数据,并保存在所述新磁盘中。
  7. 一种服务器,其特征在于,包括:应用程序接口API服务模块、任务管理服务模块、数据库DB管理模块、代理模块;
    所述API服务模块,用于接收客户端发送的管理请求,所述管理请求包括:待管理数据库的类型和版本,所述管理请求用于对所述待管理数据库进行管理,根据所述待管理数据库的类型和版本,加载所述待管理数据库的插件;
    所述任务管理服务模块,用于获取管理所述待管理数据库所需的资源,对所述管理所述待管理数据库所需的资源进行配置;
    所述DB管理模块,用于根据所述待管理数据库的类型和版本,加载所述待管理数据库的插件,并根据所述管理请求,在插件中获取管理命令;
    所述代理模块,用于运行所述管理命令的脚本,以便执行所述管理请求。
  8. 根据权利要求7所述的服务器,其特征在于,
    所述API服务模块,还用于在所述插件中生成申请资源请求,并将所述申请资源请求发送至所述任务管理服务模块;
    所述任务管理服务模块,具体用于接收所述申请资源请求,并根据所述申请资源请求获取所述管理所述待管理数据库所需的资源。
  9. 根据权利要求8所述的服务器,其特征在于,当所述管理请求具体用于对所述待管理数据库创建数据库实例时,所述申请资源请求包括:需创建的虚拟机的数量和规格,所述管理所述待管理数据库所需的资源为至少一个虚拟机,所述管理命令为启动命令;
    所述任务管理服务模块,具体用于根据所述管理所述待管理数据库所需的资源,创建所述至少一个虚拟机,获取创建数据库实例命令,所述创建数据库实例命令中包括虚拟机列表、待管理数据库的类型和版本,所述虚拟机列表中包括至少一个创建成功的虚拟机,并将所述创建数据库实例命令发送至所述DB管理模块;
    所述DB管理模块,具体用于接收所述创建数据库实例,根据所述创建数据库实例中包括的所述待管理数据库的类型和版本,加载所述待管理数据库的插件,并在所述插件中获取所述创建成功的虚拟机的配置命令,并将所述配置命令发送至所述代理模块,所述代理模块为所述创建成功的虚拟机的代理模块;
    所述代理模块,还用于接收所述配置命令,根据所述配置命令对所述创建成功的虚拟机进行配置,在配置完成后,向所述DB管理模块发送配置完成命令;
    所述DB管理模块,具体还用于接收所述配置完成命令,根据所述管理请求,在所述插件中获取所述创建成功的虚拟机的所述启动命令,并将所述启动命令发送至所述代理模块。
  10. 根据权利要求9所述的服务器,其特征在于,
    所述代理模块,具体用于接收所述启动命令,并运行所述启动命令对应的脚本,以便启动所述创建成功的虚拟机。
  11. 根据权利要求8所述的服务器,其特征在于,当所述管理请求具体用于对所述待管理数据库备份数据库实例时,所述申请资源请求包括:需创建的新磁盘的大小,所述管理所述待管理数据库所需的资源为至少一个新磁盘,所述管理命令为备份命令;
    所述任务管理服务模块,具体用于根据所述管理所述待管理数据库所需的资源,将所述至少一个新磁盘挂载到所述待管理数据库的虚拟机中,在挂载完成后,获取备份数据库实例命令,所述备份数据库实例命令中包括虚拟机列表、待管理数据库的类型和版本,所述虚拟机列表中包括至少一个所述新磁盘挂载到的虚拟机,并将所述备份数据库实例命令发送至所述DB管理模块;
    所述DB管理模块,具体用于接收所述备份数据库实例,根据所述备份数据库实例中包括的所述待管理数据库的类型和版本,加载所述待管理数据库的插件,并根据所述管理请求,在所述插件中获取所述新磁盘挂载到的虚拟机的所述备份命令,将所述备份命令发送至所述代理模块。
  12. 根据权利要求11所述的服务器,其特征在于,
    所述代理模块,具体用于接收所述备份命令,并运行所述备份命令对应的脚本,以便开始导出所述待管理数据库中的数据,并保存在所述新磁盘中。
PCT/CN2017/096051 2016-12-06 2017-08-04 一种数据库服务提供方法及服务器 WO2018103356A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611112406.4A CN106776998B (zh) 2016-12-06 2016-12-06 一种数据库服务提供方法及服务器
CN201611112406.4 2016-12-06

Publications (1)

Publication Number Publication Date
WO2018103356A1 true WO2018103356A1 (zh) 2018-06-14

Family

ID=58879279

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/096051 WO2018103356A1 (zh) 2016-12-06 2017-08-04 一种数据库服务提供方法及服务器

Country Status (2)

Country Link
CN (1) CN106776998B (zh)
WO (1) WO2018103356A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109035417A (zh) * 2018-07-24 2018-12-18 北航(天津武清)智能制造研究院有限公司 含有机构的虚拟场景建模方法和装置
CN111651431A (zh) * 2020-06-09 2020-09-11 中国雄安集团数字城市科技有限公司 一种面向数据库服务的管理流程标准化方法
CN114245149A (zh) * 2020-09-09 2022-03-25 腾讯科技(深圳)有限公司 虚拟资源配置方法、装置和系统、电子设备及存储介质

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776998B (zh) * 2016-12-06 2020-01-21 华为技术有限公司 一种数据库服务提供方法及服务器
CN107547250A (zh) * 2017-06-26 2018-01-05 新华三云计算技术有限公司 在云计算管理平台中部署数据库的方法和装置
CN107391665A (zh) * 2017-07-20 2017-11-24 郑州云海信息技术有限公司 一种数据库实例的创建方法和装置
CN107391138A (zh) * 2017-07-21 2017-11-24 郑州云海信息技术有限公司 一种平台即服务PaaS服务管理方法及装置
CN109840094B (zh) * 2017-11-24 2021-08-31 腾讯科技(深圳)有限公司 一种数据库的部署方法、装置及存储设备
CN108846129B (zh) * 2018-07-02 2023-04-18 腾讯科技(深圳)有限公司 存储数据访问方法、装置及存储介质
CN109063150A (zh) * 2018-08-08 2018-12-21 湖南永爱生物科技有限公司 大数据提取方法、装置、存储介质及服务器
CN109947789B (zh) * 2019-01-28 2023-12-19 平安科技(深圳)有限公司 一种多数据库的数据处理的方法、装置、计算机设备及存储介质
CN111984397A (zh) * 2019-05-24 2020-11-24 阿里巴巴集团控股有限公司 计算资源分配系统和方法
CN112214540B (zh) * 2020-10-15 2024-03-01 上海达梦数据库有限公司 一种数据处理方法、装置、设备及存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8307003B1 (en) * 2009-03-31 2012-11-06 Amazon Technologies, Inc. Self-service control environment
CN104102489A (zh) * 2014-07-24 2014-10-15 深圳市神州通在线科技有限公司 一种第三方数据库app构建系统及构建方法
CN105074702A (zh) * 2013-02-28 2015-11-18 亚马逊科技公司 提供单租户和多租户环境的数据库系统
CN105488179A (zh) * 2015-11-30 2016-04-13 中电科华云信息技术有限公司 处理多种数据库及中间件的自动配置连接方法
CN106776998A (zh) * 2016-12-06 2017-05-31 华为技术有限公司 一种数据库服务提供方法及服务器

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9135283B2 (en) * 2009-10-07 2015-09-15 Amazon Technologies, Inc. Self-service configuration for data environment
CN101859317A (zh) * 2010-05-10 2010-10-13 浪潮电子信息产业股份有限公司 一种利用虚拟化构建数据库集群的方法
CN104899015A (zh) * 2014-03-07 2015-09-09 上海高达星软件系统有限公司 一种业务组件管理系统及其方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8307003B1 (en) * 2009-03-31 2012-11-06 Amazon Technologies, Inc. Self-service control environment
CN105074702A (zh) * 2013-02-28 2015-11-18 亚马逊科技公司 提供单租户和多租户环境的数据库系统
CN104102489A (zh) * 2014-07-24 2014-10-15 深圳市神州通在线科技有限公司 一种第三方数据库app构建系统及构建方法
CN105488179A (zh) * 2015-11-30 2016-04-13 中电科华云信息技术有限公司 处理多种数据库及中间件的自动配置连接方法
CN106776998A (zh) * 2016-12-06 2017-05-31 华为技术有限公司 一种数据库服务提供方法及服务器

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109035417A (zh) * 2018-07-24 2018-12-18 北航(天津武清)智能制造研究院有限公司 含有机构的虚拟场景建模方法和装置
CN109035417B (zh) * 2018-07-24 2023-08-01 北航(天津武清)智能制造研究院有限公司 含有机构的虚拟场景建模方法和装置
CN111651431A (zh) * 2020-06-09 2020-09-11 中国雄安集团数字城市科技有限公司 一种面向数据库服务的管理流程标准化方法
CN114245149A (zh) * 2020-09-09 2022-03-25 腾讯科技(深圳)有限公司 虚拟资源配置方法、装置和系统、电子设备及存储介质
CN114245149B (zh) * 2020-09-09 2024-02-27 腾讯科技(深圳)有限公司 虚拟资源配置方法、装置和系统、电子设备及存储介质

Also Published As

Publication number Publication date
CN106776998A (zh) 2017-05-31
CN106776998B (zh) 2020-01-21

Similar Documents

Publication Publication Date Title
WO2018103356A1 (zh) 一种数据库服务提供方法及服务器
US10778521B2 (en) Reconfiguring a server including a reconfigurable adapter device
US9268590B2 (en) Provisioning a cluster of distributed computing platform based on placement strategy
US9213572B2 (en) Interdependent virtual machine management
CN106775946B (zh) 一种虚拟机快速创建方法
US8904159B2 (en) Methods and systems for enabling control to a hypervisor in a cloud computing environment
US8832775B2 (en) Techniques for workload spawning
US20200097449A1 (en) File management in thin provisioning storage environments
US9521194B1 (en) Nondeterministic value source
US9077613B2 (en) System and method for graph based K-redundant resiliency for IT cloud
US10474484B2 (en) Offline management of virtualization software installed on a host computer
US8949430B2 (en) Clustered computer environment partition resolution
US10592373B2 (en) Integrating external services with a clustered file system
US20210240544A1 (en) Collaboration service to support cross-process coordination between active instances of a microservice
US20230221997A1 (en) System and method for subscription management using composed systems
US9755986B1 (en) Techniques for tightly-integrating an enterprise storage array into a distributed virtualized computing environment
US10324747B1 (en) Distributed configuration checking and troubleshooting in data center using best practices rules
US10742731B2 (en) Maintaining service configuration consistency across nodes of a clustered file system
US20200379857A1 (en) Host multipath layer notification and path switchover following node failure
US20150271029A1 (en) Activation management system and activation management method
US10637915B1 (en) Storage services configured for storage-oriented applications
Wei et al. A VDI system based on cloud stack and active directory
US20190050256A1 (en) Systems and methods for distributed management of computing resources
US11080079B2 (en) Autonomously reproducing and destructing virtual machines
US20230333869A1 (en) Deploying virtual machines to a virtualization management environment using an agent to obtain remote virtual machine templates

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17877494

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17877494

Country of ref document: EP

Kind code of ref document: A1