WO2021169264A1 - Automatic scheduling method and apparatus for database access layer middleware - Google Patents

Automatic scheduling method and apparatus for database access layer middleware Download PDF

Info

Publication number
WO2021169264A1
WO2021169264A1 PCT/CN2020/117425 CN2020117425W WO2021169264A1 WO 2021169264 A1 WO2021169264 A1 WO 2021169264A1 CN 2020117425 W CN2020117425 W CN 2020117425W WO 2021169264 A1 WO2021169264 A1 WO 2021169264A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration information
synchronization
database
access layer
available area
Prior art date
Application number
PCT/CN2020/117425
Other languages
French (fr)
Chinese (zh)
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 WO2021169264A1 publication Critical patent/WO2021169264A1/en

Links

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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • G06F16/275Synchronous replication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5083Techniques for rebalancing the load in a distributed system

Definitions

  • This application relates to the field of big data technology, and in particular to an automatic scheduling method and device for database access layer middleware.
  • Database access layer middleware is a kind of database middleware, which exists as database access, proxy, and load balancing. It focuses on the database access layer and realizes the proxy function from the user to the database.
  • the embodiments of the present application provide an automatic scheduling method, device, computer equipment, and storage medium for database access layer middleware to solve the current inability to achieve database access under a cross-regional and cross-computer room distributed architecture.
  • the problem of automatic scheduling of entry-level middleware is a problem of automatic scheduling of entry-level middleware.
  • an embodiment of the present application provides an automatic scheduling method for database access layer middleware, including: receiving a scheduling request, wherein the scheduling request includes configuration information, and the object to be stored of the configuration information is the first Synchronization node; storing the configuration information in the first synchronization node; using the first synchronization node to remove the remaining synchronization nodes of the first synchronization node from the database resource available area to synchronize the configuration information Update; According to the configuration information, generate or modify the database access layer middleware in the available area of the database resources; according to the configuration information, use pacemaker to schedule the database access layer middleware.
  • an embodiment of the present application provides an automatic scheduling device for database access layer middleware, including: a receiving module for receiving a scheduling request, wherein the scheduling request includes configuration information, and the configuration information is pending
  • the storage object is the first synchronization node; the storage module is used to store the configuration information in the first synchronization node; the synchronization update module is used to use the first synchronization node to remove the database resource available area The remaining synchronization nodes of the first synchronization node perform the synchronization update of the configuration information; the middleware configuration module is used to generate or modify the database access layer middleware in the available area of the database resources according to the configuration information; middleware
  • the scheduling module is configured to use pacemaker to schedule the database access layer middleware according to the configuration information.
  • a computer device includes a memory, a processor, and a computer program that is stored in the memory and can run on the processor, and the processor implements the database access layer when the computer program is executed.
  • the steps of an automatic scheduling method for middleware wherein the method includes: receiving a scheduling request, wherein the scheduling request includes configuration information, and the object to be stored of the configuration information is the first synchronization node; storing the configuration information To the first synchronization node; use the first synchronization node to remove the remaining synchronization nodes of the first synchronization node from the database resource available area, and perform the synchronization update of the configuration information; according to the configuration information,
  • the database resource available area generates or modifies database access layer middleware; according to the configuration information, pacemaker is used to schedule the database access layer middleware.
  • an embodiment of the present application provides a computer-readable storage medium, including: a computer program that, when executed by a processor, realizes the steps of the automatic scheduling method of the database access layer middleware, wherein: The method includes the following steps: receiving a scheduling request, where the scheduling request includes configuration information, and the object to be stored of the configuration information is a first synchronization node; storing the configuration information in the first synchronization node; The first synchronization node removes the remaining synchronization nodes of the first synchronization node from the database resource available area, and performs the synchronization update of the configuration information; according to the configuration information, the database is generated or modified in the database resource available area Access layer middleware; according to the configuration information, use pacemaker to schedule the database access layer middleware.
  • a scheduling request is first received, where the scheduling request includes configuration information, and the object to be stored for the configuration information is the first synchronization node, which can realize the function of receiving configuration information through any synchronization node; then the configuration information is stored To the first synchronization node, use the first synchronization node to remove the remaining synchronization nodes of the database resource available area from the first synchronization node, and perform the synchronization update of the configuration information.
  • any synchronization node When any synchronization node receives the scheduling request, according to the configuration information Synchronously update the remaining synchronization nodes in the available area of the database resource, so that the remaining synchronization nodes can obtain the latest configuration information in near real time; then, according to the configuration information, generate or modify the database access layer middleware in the available area of the database resource.
  • the database access layer middleware for the configuration information realizes the quick configuration function, modify the database access layer middleware or directly generate the database access layer middleware; finally, according to the configuration information, use pacemaker to schedule the database access layer middleware , It can automatically manage and coordinate the allocation and scheduling of resources in the background, and realize the automatic scheduling of middleware in the database access layer under a cross-regional and cross-computer room distributed architecture.
  • Fig. 1 is a flowchart of an automatic scheduling method for database access layer middleware in an embodiment of the present application.
  • Fig. 2 is a schematic block diagram of an automatic scheduling device for database access layer middleware in an embodiment of the present application.
  • Fig. 3 is a schematic diagram of a computer device in an embodiment of the present application.
  • Fig. 1 shows a flow chart of the automatic scheduling method of the database access layer middleware in this embodiment.
  • the automatic scheduling method of database access layer middleware can be applied to an automatic scheduling system, and can realize automatic scheduling of database access layer middleware under a cross-regional and cross-computer room distributed architecture.
  • the automatic dispatch system can be specifically applied to computer equipment, where the computer equipment is a device that can perform human-computer interaction with users, including but not limited to devices such as computers, smart phones, and tablets.
  • the automatic scheduling method of the database access layer middleware includes.
  • S10 Receive a scheduling request, where the scheduling request includes configuration information, and the to-be-stored object of the configuration information is the first synchronization node.
  • the subject receiving the scheduling request is the scheduling system, which is a system based on a distributed architecture and includes one or more database resource available areas; wherein, one database resource available area includes one or more synchronization nodes .
  • the scheduling system is implemented on the basis of cross-regional and cross-machine rooms (corresponding to different database resource available areas), and can be implemented through any synchronization node (a synchronization node can specifically refer to a computer in the database resource available area).
  • the device receives the scheduling request, and uses the synchronization node as the object to be stored for configuration information.
  • the synchronization node is also referred to as the first synchronization node.
  • the scheduling request initiated by the scheduling system is initiated by the scheduling system, and the scheduling system receives the scheduling request and uses the synchronization node receiving the scheduling request as the object to be stored for configuration information, which can realize the function of receiving configuration information through any synchronization node .
  • step S10 that is, before the step of receiving a scheduling request, it specifically includes.
  • the interface call request refers to a request to call an application programming interface, and the interface call request may specifically be issued by the dispatch initiating system.
  • S12 Provide an access call of the application programming interface according to the interface call request, where the application programming interface is used to generate configuration information.
  • API Application Programming Interface
  • the purpose is to provide applications and developers with the ability to access a set of routines based on certain software or hardware without having to access the source code, or Understand the details of the internal working mechanism.
  • the configuration information may specifically refer to related parameter information such as the configuration of the database access layer, the configuration of the database resource available area, the configuration of the synchronization node, and the configuration of the central processing unit.
  • the scheduling system includes application programming interfaces open to the outside world.
  • users can directly call these application programming interfaces through the scheduling initiation system, and use preset rules, such as an input sequence arranged according to certain rules. Write the relevant parameter information of the configuration to generate configuration information.
  • the scheduling system adopts an open application programming interface, which can improve the efficiency of obtaining configuration information and save unnecessary time. You only need to care about the relevant parameter information written in the configuration. In addition, you can also unify the input format, Standardize, and further improve the efficiency of obtaining configuration information.
  • the scheduling system will monitor the scheduling request. Specifically, the synchronization nodes in the available area of the database resource will enable the monitoring mode, and realize the automatic scheduling of the database access layer middleware in time according to the received scheduling request. .
  • steps S11-S13 before the step of receiving the scheduling request, the application programming interface of the scheduling system is called, which can improve the efficiency of obtaining configuration information; in addition, the monitoring mode is enabled for all synchronization nodes, which can be used in different regions. , Realize the function of receiving scheduling requests in real time under the actual scenarios of different computer rooms.
  • the configuration information after receiving the scheduling request, the configuration information will be stored.
  • the specific storage object is the first synchronization node.
  • the first synchronization node may refer to any computer device in the available area of the database resource.
  • a synchronization node stores configuration information to achieve the purpose of distributed synchronization update.
  • the scheduling system includes one or more database resource available areas, and one database resource available area includes one or more synchronization nodes.
  • the configuration information of the remaining synchronization nodes except the first synchronization node in all the available areas of the database resources will be synchronized and updated, which can be used when any synchronization node receives the scheduling request.
  • the configuration information all synchronization nodes in the available area of the database resource are synchronized and updated, so that each synchronization node can obtain the latest configuration information in near real time.
  • step S30 the first synchronization node is used to remove the remaining synchronization nodes from the first synchronization node in the available area of the database resource to perform the synchronization update of the configuration information, which specifically includes the following steps.
  • S31 Use consul to scan the remaining synchronization nodes in the database resource available area to obtain the storage location of the synchronization node in the database resource available area excluding the first synchronization node.
  • consul is a service grid (responsible for network calls, current limiting, fuse and monitoring between services) solution, it is a distributed, highly available system. It provides a fully functional control plane, the main features are: service discovery, health check, key-value storage, secure service communication, and multiple data centers.
  • the storage location of the first synchronization node is known. Therefore, when consul is used to scan the available area of database resources, the storage location of the first synchronization node can be excluded and the database The remaining synchronization nodes in the resource available area are scanned. Of course, all synchronization nodes may also be scanned.
  • the storage location of the first synchronization node is removed, and the storage location of the remaining synchronization nodes except the first synchronization node in the database resource available area is determined by consul scanning, so as to implement subsequent implementations based on the storage location in the first synchronization node.
  • the purpose of the configuration information update to remove the remaining synchronization nodes of the first synchronization node is to make the remaining synchronization nodes removed from the first synchronization node also store the same configuration information as the first synchronization node.
  • the first synchronization node uses consul to communicate with the remaining synchronization nodes, and sends configuration information to the remaining synchronization nodes in the database resource available area, and stores the configuration information in each corresponding storage location determined by the scan. , Among them, the configuration information is stored in consul.
  • the configuration information can be directly obtained from consul. Understandably, with the help of consul, after the configuration information is obtained at the first synchronization node, the configuration information of the remaining synchronization nodes in the database resource available area can be synchronized in near real time.
  • a computer device in the database resource available area in Shanghai After receiving the scheduling request, it will update the configuration information of the remaining synchronization nodes in the available areas of the database resources in Beijing and Shenzhen in near real time.
  • steps S31-S32 a specific implementation manner of using the first synchronization node to synchronize the configuration information of the remaining synchronization nodes in the database resource available area is provided.
  • the configuration information can be obtained at the first synchronization node.
  • S40 Generate or modify database access layer middleware in the available area of the database resource according to the configuration information.
  • the database access layer middleware will be instantiated according to the configuration information.
  • the database access layer middleware When there is no database access layer middleware in the available area of the database resource corresponding to each synchronization node, the database access layer middleware will be generated according to the configuration information.
  • the database access layer middleware When the database access layer middleware already exists in the database resource available area corresponding to each synchronization node, the database access layer middleware is modified according to the configuration information.
  • step S40 according to the configuration information, the database access layer middleware is generated or modified in the database resource available area, which specifically includes the following steps.
  • S41 Use the observation mechanism of consul-template to monitor all synchronization nodes, where all synchronization nodes include the first synchronization node and the remaining synchronization nodes.
  • consul-template is based on the extensible tool provided by consul.
  • the observation mechanism of consul-template can dynamically modify the templates in some configuration files by monitoring data changes in consul. It is often used for dynamic dynamics on reverse proxy servers. Configure the client reverse proxy information in a healthy state.
  • all synchronization nodes are monitored, so that when configuration information is updated, the database access layer middleware can be instantiated according to the configuration information.
  • the extensible tool consul-template provided by consul is used as the monitoring tool.
  • the historical configuration information of all synchronization nodes is not the same as the currently stored configuration information, it means that the configuration information is successfully synchronized to all synchronization nodes, indicating that the scheduling system needs to make changes in scheduling. At this time, it will be added according to the configuration information. Or generated database access layer middleware to facilitate subsequent automatic scheduling of newly added or generated database access layer middleware database access layer middleware.
  • steps S41-S42 a specific implementation method for generating or modifying database access layer middleware in the available area of database resources based on configuration information is provided.
  • the database access layer middleware is implemented by using the observation mechanism of consul-template. Generation or modification provides an important basis for subsequent scheduling based on the generated or modified database access layer middleware.
  • pacemaker is a cluster resource manager. It uses the message and member management capabilities provided by the cluster infrastructure to detect and recover from node or resource level failures to achieve maximum availability of cluster services (also known as resources).
  • cluster services also known as resources.
  • using pacemaker can complete resource scheduling according to configuration information, and can also realize automatic background management and coordinate resource allocation and scheduling, and realize the function of managing database access layer middleware.
  • the configuration information written through the application programming interface may be specifically as follows.
  • pacemaker will schedule the database access layer middleware according to the configuration information.
  • pacemaker is used to schedule the database access layer middleware, which specifically includes the following steps.
  • S51 Determine resource scheduling information from the configuration information through field matching.
  • the scheduling in the configuration information is the specific resource scheduling information, such as "limit_memory”: 1.0, "limit_cpu”: 0.5 indicates the limit of the storage ratio and the limit of the CPU operation ratio, which can be determined by field matching, and the configuration information such as the creation time create_time is not directly used for resource scheduling and is not used as a resource Scheduling information.
  • pacemaker is used to implement resource scheduling, and the available area of database resources can be used more reasonably, and automatic scheduling of database access layer middleware can be realized in a cross-regional and cross-computer room scenario.
  • steps S51-S52 a specific implementation manner for scheduling database access layer middleware is provided, which can realize reasonable scheduling of database access layer middleware.
  • the scheduling system can realize automatic scheduling of database access layer middleware under a cross-regional and cross-computer room distributed architecture.
  • a scheduling request is first received, where the scheduling request includes configuration information, and the object to be stored for the configuration information is the first synchronization node, which can realize the function of receiving configuration information through any synchronization node; then the configuration information is stored To the first synchronization node, use the first synchronization node to remove the remaining synchronization nodes of the database resource available area from the first synchronization node, and perform the synchronization update of the configuration information.
  • any synchronization node When any synchronization node receives the scheduling request, according to the configuration information Synchronously update the remaining synchronization nodes in the available area of the database resource, so that the remaining synchronization nodes can obtain the latest configuration information in near real time; then, according to the configuration information, generate or modify the database access layer middleware in the available area of the database resource.
  • the database access layer middleware for the configuration information realizes the quick configuration function, modify the database access layer middleware or directly generate the database access layer middleware; finally, according to the configuration information, use pacemaker to schedule the database access layer middleware , It can automatically manage and coordinate the allocation and scheduling of resources in the background, and realize the automatic scheduling of middleware in the database access layer under a cross-regional and cross-computer room distributed architecture.
  • the embodiment of the present application further provides an embodiment of a device that implements each step and method in the above method embodiment.
  • Fig. 2 shows the principle block diagram of the automatic scheduling device of the database access layer middleware corresponding to the automatic scheduling method of the database access layer middleware in the embodiment.
  • the automatic scheduling device of the database access layer middleware includes a receiving module 10, a storage module 20, a synchronization update module 30, a middleware configuration module 40 and a middleware scheduling module 50.
  • the implementation functions of the receiving module 10, the storage module 20, the synchronization update module 30, the middleware configuration module 40, and the middleware scheduling module 50 correspond to the steps corresponding to the automatic scheduling method of the database access layer middleware in the embodiment one by one. To avoid repetition, this embodiment will not go into details one by one.
  • the receiving module 10 is configured to receive a scheduling request, where the scheduling request includes configuration information, and the to-be-stored object of the configuration information is the first synchronization node.
  • the subject receiving the scheduling request is the scheduling system, which is a system based on a distributed architecture and includes one or more database resource available areas; wherein, one database resource available area includes one or more synchronization nodes .
  • the scheduling system is implemented on the basis of cross-regional and cross-machine rooms (corresponding to different database resource available areas), and can be implemented through any synchronization node (a synchronization node can specifically refer to a computer in the database resource available area).
  • the device receives the scheduling request, and uses the synchronization node as the object to be stored for configuration information.
  • the synchronization node is also referred to as the first synchronization node.
  • the scheduling request initiated by the scheduling system is initiated by the scheduling system, and the scheduling system receives the scheduling request and uses the synchronization node receiving the scheduling request as the object to be stored for configuration information, which can realize the function of receiving configuration information through any synchronization node .
  • the storage module 20 is used to store the configuration information in the first synchronization node.
  • the configuration information after receiving the scheduling request, the configuration information will be stored.
  • the specific storage object is the first synchronization node.
  • the first synchronization node may refer to any computer device in the available area of the database resource.
  • a synchronization node stores configuration information to achieve the purpose of distributed synchronization update.
  • the synchronization update module 30 is configured to use the first synchronization node to remove the remaining synchronization nodes from the database resource available area except for the first synchronization node to perform synchronization update of configuration information.
  • the configuration information of the remaining synchronization nodes excluding the first synchronization node in all database resource available areas will be synchronized and updated, and the scheduling request can be received at any synchronization node
  • all synchronization nodes in the available area of the database resource are synchronized and updated according to the configuration information, so that each synchronization node can obtain the latest configuration information in near real time.
  • the middleware configuration module 40 is used to generate or modify database access layer middleware in the database resource available area according to the configuration information.
  • the database access layer middleware will be instantiated according to the configuration information.
  • the database access layer middleware When there is no database access layer middleware in the available area of the database resource corresponding to each synchronization node, the database access layer middleware will be generated according to the configuration information.
  • the database access layer middleware When the database access layer middleware already exists in the database resource available area corresponding to each synchronization node, the database access layer middleware is modified according to the configuration information.
  • the middleware scheduling module 50 is configured to use pacemaker to schedule the database access layer middleware according to the configuration information.
  • pacemaker is a cluster resource manager. It uses the message and member management capabilities provided by the cluster infrastructure to detect and recover from node or resource level failures to achieve maximum availability of cluster services (also known as resources).
  • cluster services also known as resources.
  • using pacemaker can complete resource scheduling according to configuration information, and can also realize automatic background management and coordinate resource allocation and scheduling, and realize the function of managing database access layer middleware.
  • the device further includes a preprocessing module, and the preprocessing module is specifically configured to: receive an interface call request.
  • the interface call request the access call of the application programming interface is provided, where the application programming interface is used to generate configuration information.
  • Enable monitoring mode to monitor whether a scheduling request is initiated.
  • the synchronization update module 30 is further specifically configured to use consul to scan the remaining synchronization nodes in the database resource available area to obtain the storage locations of the remaining synchronization nodes in the database resource available area except the first synchronization node.
  • the middleware configuration module 40 is further specifically configured to monitor all synchronization nodes using the observation mechanism of consul-template, where all synchronization nodes include the first synchronization node and the remaining synchronization nodes.
  • the monitoring determines that the historical configuration information of all synchronization nodes is not the same as the currently stored configuration information, modify the configuration of the data access layer middleware in the database resource available area according to the configuration information, or add a new database access layer middleware Pieces.
  • the middleware scheduling module 50 is further specifically configured to: determine resource scheduling information from the configuration information through field matching; and use pacemaker to schedule the database access layer middleware according to the resource scheduling information.
  • a scheduling request is first received, where the scheduling request includes configuration information, and the object to be stored for the configuration information is the first synchronization node, which can realize the function of receiving configuration information through any synchronization node; then the configuration information is stored To the first synchronization node, use the first synchronization node to remove the remaining synchronization nodes of the database resource available area from the first synchronization node, and perform the synchronization update of the configuration information.
  • any synchronization node When any synchronization node receives the scheduling request, according to the configuration information Synchronously update the remaining synchronization nodes in the available area of the database resource, so that the remaining synchronization nodes can obtain the latest configuration information in near real time; then, according to the configuration information, generate or modify the database access layer middleware in the available area of the database resource.
  • the database access layer middleware for the configuration information realizes the quick configuration function, modify the database access layer middleware or directly generate the database access layer middleware; finally, according to the configuration information, use pacemaker to schedule the database access layer middleware , It can automatically manage and coordinate the allocation and scheduling of resources in the background, and realize the automatic scheduling of middleware in the database access layer under a cross-regional and cross-computer room distributed architecture.
  • This embodiment provides a computer-readable storage medium with a computer program stored on the computer-readable storage medium.
  • the computer program When the computer program is executed by a processor, the automatic scheduling method of the database access layer middleware in the embodiment is realized. In order to avoid repetition, I will not repeat them here.
  • the computer program when the computer program is executed by the processor, the function of each module/unit in the automatic scheduling device of the database access layer middleware in the embodiment is realized. In order to avoid repetition, it will not be repeated here.
  • the computer-readable storage medium may be non-volatile or volatile.
  • Fig. 3 is a schematic diagram of a computer device provided by an embodiment of the present application.
  • the computer device 60 of this embodiment includes a processor 61, a memory 62, and a computer program 63 stored in the memory 62 and running on the processor 61.
  • the computer program 63 is executed by the processor 61
  • the automatic scheduling method of the database access layer middleware in the embodiment is realized.
  • the functions of each model/unit in the automatic scheduling device of the database access layer middleware corresponding to the automatic scheduling method of the database access layer middleware in the embodiment are implemented one-to-one.
  • the computer device 60 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the computer device 60 may include, but is not limited to, a processor 61 and a memory 62.
  • FIG. 3 is only an example of the computer device 60, and does not constitute a limitation on the computer device 60. It may include more or less components than those shown in the figure, or a combination of certain components, or different components.
  • computer equipment may also include input and output devices, network access devices, buses, and so on.
  • the so-called processor 61 may be a central processing unit (Central Processing Unit, CPU), it can also be other general-purpose processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (Field-Programmable Gate Arrays, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 62 may be an internal storage unit of the computer device 60, such as a hard disk or memory of the computer device 60.
  • the memory 62 may also be an external storage device of the computer device 60, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD) card, flash card (Flash Card), etc.
  • the memory 62 may also include both an internal storage unit of the computer device 60 and an external storage device.
  • the memory 62 is used to store computer programs and other programs and data required by the computer equipment.
  • the memory 62 can also be used to temporarily store data that has been output or will be output.

Landscapes

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

Abstract

An automatic scheduling method and apparatus for database access layer middleware, a computer device, and a storage medium, relating to the technical field of big data. The automatic scheduling method for the database access layer middleware comprises: receiving a scheduling request, wherein the scheduling request comprises configuration information, and an object to be stored of the configuration information is a first synchronization node (S10); storing the configuration information to the first synchronization node (S20); utilizing the first synchronization node to synchronously update configuration information of the remaining synchronization nodes except the first synchronization node in a database resource available area (S30); generating or modifying the database access layer middleware in the database resource available area according to the configuration information (S40); and scheduling, according to the configuration information, the database access layer middleware by using a pacemaker (S50). By using the method, automatic scheduling of the database access layer middleware can be achieved under a cross-region and cross-computer-room distributed architecture.

Description

数据库接入层中间件的自动调度方法和装置Automatic dispatching method and device of database access layer middleware
本申请要求于2020年02月24日提交中国专利局、申请号为202010112926.5,发明名称为“数据库接入层中间件的自动调度方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on February 24, 2020, the application number is 202010112926.5, and the invention title is "Automatic scheduling method and device for database access layer middleware", the entire content of which is incorporated by reference Incorporated in this application.
技术领域Technical field
本申请涉及大数据技术领域,尤其涉及一种数据库接入层中间件的自动调度方法和装置。This application relates to the field of big data technology, and in particular to an automatic scheduling method and device for database access layer middleware.
背景技术Background technique
数据库接入层中间件是数据库中间件的一种,作为数据库接入、代理、负载均衡存在,专注数据库接入层,实现用户到数据库的代理功能。Database access layer middleware is a kind of database middleware, which exists as database access, proxy, and load balancing. It focuses on the database access layer and realizes the proxy function from the user to the database.
对于数据库来讲,自动调度是由数据库接入层中间件完成的,也就是说数据库接入层中间件都有着不错的后端数据库负载及均衡调度的能力,但是其本身却很少或不具有自动调度的能力。发明人意识到,传统的数据库接入层中间件应对的都是简单的几台或十几台的位于同一机房或数据库资源可用区的计算机设备,无法实现在跨地域、跨机房的分布式架构下数据库接入层中间件的自动调度。For the database, automatic scheduling is completed by the database access layer middleware, which means that the database access layer middleware has a good back-end database load and balanced scheduling capabilities, but it has little or no capacity. The ability to automatically schedule. The inventor realized that the traditional database access layer middleware dealt with a few or more than a dozen computer devices located in the same computer room or database resource available area, and could not achieve a cross-regional and cross-computer room distributed architecture. Automatic scheduling of middleware in the lower database access layer.
技术问题technical problem
有鉴于此,本申请实施例提供了一种数据库接入层中间件的自动调度方法、装置、计算机设备及存储介质,用以解决目前无法在跨地域、跨机房的分布式架构下实现数据库接入层中间件的自动调度的问题。In view of this, the embodiments of the present application provide an automatic scheduling method, device, computer equipment, and storage medium for database access layer middleware to solve the current inability to achieve database access under a cross-regional and cross-computer room distributed architecture. The problem of automatic scheduling of entry-level middleware.
技术解决方案Technical solutions
第一方面,本申请实施例提供了一种数据库接入层中间件的自动调度方法,包括:接收调度请求,其中,所述调度请求包括配置信息,所述配置信息的待存储对象为第一同步节点;将所述配置信息存储到所述第一同步节点;利用所述第一同步节点,将数据库资源可用区中除去所述第一同步节点的剩余同步节点,进行所述配置信息的同步更新;根据所述配置信息,在所述数据库资源可用区生成或修改数据库接入层中间件;根据所述配置信息,采用pacemaker对所述数据库接入层中间件进行调度。In the first aspect, an embodiment of the present application provides an automatic scheduling method for database access layer middleware, including: receiving a scheduling request, wherein the scheduling request includes configuration information, and the object to be stored of the configuration information is the first Synchronization node; storing the configuration information in the first synchronization node; using the first synchronization node to remove the remaining synchronization nodes of the first synchronization node from the database resource available area to synchronize the configuration information Update; According to the configuration information, generate or modify the database access layer middleware in the available area of the database resources; according to the configuration information, use pacemaker to schedule the database access layer middleware.
第二方面,本申请实施例提供了一种数据库接入层中间件的自动调度装置,包括:接收模块,用于接收调度请求,其中,所述调度请求包括配置信息,所述配置信息的待存储对象为第一同步节点;存储模块,用于将所述配置信息存储到所述第一同步节点;同步更新模块,用于利用所述第一同步节点,将数据库资源可用区中除去所述第一同步节点的剩余同步节点,进行所述配置信息的同步更新;中间件配置模块,用于根据所述配置信息,在所述数据库资源可用区生成或修改数据库接入层中间件;中间件调度模块,用于根据所述配置信息,采用pacemaker对所述数据库接入层中间件进行调度。In a second aspect, an embodiment of the present application provides an automatic scheduling device for database access layer middleware, including: a receiving module for receiving a scheduling request, wherein the scheduling request includes configuration information, and the configuration information is pending The storage object is the first synchronization node; the storage module is used to store the configuration information in the first synchronization node; the synchronization update module is used to use the first synchronization node to remove the database resource available area The remaining synchronization nodes of the first synchronization node perform the synchronization update of the configuration information; the middleware configuration module is used to generate or modify the database access layer middleware in the available area of the database resources according to the configuration information; middleware The scheduling module is configured to use pacemaker to schedule the database access layer middleware according to the configuration information.
第三方面,一种计算机设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述数据库接入层中间件的自动调度方法的步骤,其中,所述方法包括:接收调度请求,其中,所述调度请求包括配置信息,所述配置信息的待存储对象为第一同步节点;将所述配置信息存储到所述第一同步节点;利用所述第一同步节点,将数据库资源可用区中除去所述第一同步节点的剩余同步节点,进行所述配置信息的同步更新;根据所述配置信息,在所述数据库资源可用区生成或修改数据库接入层中间件;根据所述配置信息,采用pacemaker对所述数据库接入层中间件进行调度。In a third aspect, a computer device includes a memory, a processor, and a computer program that is stored in the memory and can run on the processor, and the processor implements the database access layer when the computer program is executed. The steps of an automatic scheduling method for middleware, wherein the method includes: receiving a scheduling request, wherein the scheduling request includes configuration information, and the object to be stored of the configuration information is the first synchronization node; storing the configuration information To the first synchronization node; use the first synchronization node to remove the remaining synchronization nodes of the first synchronization node from the database resource available area, and perform the synchronization update of the configuration information; according to the configuration information, The database resource available area generates or modifies database access layer middleware; according to the configuration information, pacemaker is used to schedule the database access layer middleware.
第四方面,本申请实施例提供了一种计算机可读存储介质,包括:计算机程序,所述计算机程序被处理器执行时实现上述数据库接入层中间件的自动调度方法的步骤,其中,所述方法包括以下步骤:接收调度请求,其中,所述调度请求包括配置信息,所述配置信息的待存储对象为第一同步节点;将所述配置信息存储到所述第一同步节点;利用所述第一同步节点,将数据库资源可用区中除去所述第一同步节点的剩余同步节点,进行所述配置信息的同步更新;根据所述配置信息,在所述数据库资源可用区生成或修改数据库接入层中间件;根据所述配置信息,采用pacemaker对所述数据库接入层中间件进行调度。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, including: a computer program that, when executed by a processor, realizes the steps of the automatic scheduling method of the database access layer middleware, wherein: The method includes the following steps: receiving a scheduling request, where the scheduling request includes configuration information, and the object to be stored of the configuration information is a first synchronization node; storing the configuration information in the first synchronization node; The first synchronization node removes the remaining synchronization nodes of the first synchronization node from the database resource available area, and performs the synchronization update of the configuration information; according to the configuration information, the database is generated or modified in the database resource available area Access layer middleware; according to the configuration information, use pacemaker to schedule the database access layer middleware.
有益效果Beneficial effect
在本申请实施例中,首先接收调度请求,其中,调度请求包括配置信息,配置信息的待存储对象为第一同步节点,能够实现通过任一同步节点接收配置信息的功能;然后将配置信息存储到第一同步节点,利用第一同步节点,将数据库资源可用区中除去第一同步节点的剩余同步节点,进行配置信息的同步更新,能够在任一同步节点接收调度请求的情况下,根据配置信息对数据库资源可用区中的剩余同步节点均进行同步更新,使得剩余同步节点能够近实时获取到最新的配置信息;接着根据配置信息,在数据库资源可用区生成或修改数据库接入层中间件,能够针对配置信息的数据库接入层中间件实现快速配置功能,对数据库接入层中间件进行修改或直接生成数据库接入层中间件;最后根据配置信息,采用pacemaker对数据库接入层中间件进行调度,能够对后台自动管理及协调资源的分配及调度,能够在跨地域、跨机房的分布式架构下实现数据库接入层中间件的自动调度。In the embodiment of the present application, a scheduling request is first received, where the scheduling request includes configuration information, and the object to be stored for the configuration information is the first synchronization node, which can realize the function of receiving configuration information through any synchronization node; then the configuration information is stored To the first synchronization node, use the first synchronization node to remove the remaining synchronization nodes of the database resource available area from the first synchronization node, and perform the synchronization update of the configuration information. When any synchronization node receives the scheduling request, according to the configuration information Synchronously update the remaining synchronization nodes in the available area of the database resource, so that the remaining synchronization nodes can obtain the latest configuration information in near real time; then, according to the configuration information, generate or modify the database access layer middleware in the available area of the database resource. The database access layer middleware for the configuration information realizes the quick configuration function, modify the database access layer middleware or directly generate the database access layer middleware; finally, according to the configuration information, use pacemaker to schedule the database access layer middleware , It can automatically manage and coordinate the allocation and scheduling of resources in the background, and realize the automatic scheduling of middleware in the database access layer under a cross-regional and cross-computer room distributed architecture.
附图说明Description of the drawings
图1是本申请一实施例中数据库接入层中间件的自动调度方法的一流程图。Fig. 1 is a flowchart of an automatic scheduling method for database access layer middleware in an embodiment of the present application.
图2是本申请一实施例中数据库接入层中间件的自动调度装置的原理框图。Fig. 2 is a schematic block diagram of an automatic scheduling device for database access layer middleware in an embodiment of the present application.
图3是本申请一实施例中计算机设备的一示意图。Fig. 3 is a schematic diagram of a computer device in an embodiment of the present application.
本发明的实施方式Embodiments of the present invention
为了更好的理解本申请的技术方案,下面结合附图对本申请实施例进行详细描述。In order to better understand the technical solutions of the present application, the following describes the embodiments of the present application in detail with reference to the accompanying drawings.
图1示出本实施例中数据库接入层中间件的自动调度方法的一流程图。该数据库接入层中间件的自动调度方法可应用在自动调度系统上,能够在跨地域、跨机房的分布式架构下实现数据库接入层中间件的自动调度。该自动调度系统具体可应用在计算机设备上,其中,该计算机设备是可与用户进行人机交互的设备,包括但不限于电脑、智能手机和平板等设备。如图1所示,该数据库接入层中间件的自动调度方法包括。Fig. 1 shows a flow chart of the automatic scheduling method of the database access layer middleware in this embodiment. The automatic scheduling method of database access layer middleware can be applied to an automatic scheduling system, and can realize automatic scheduling of database access layer middleware under a cross-regional and cross-computer room distributed architecture. The automatic dispatch system can be specifically applied to computer equipment, where the computer equipment is a device that can perform human-computer interaction with users, including but not limited to devices such as computers, smart phones, and tablets. As shown in Figure 1, the automatic scheduling method of the database access layer middleware includes.
S10:接收调度请求,其中,调度请求包括配置信息,配置信息的待存储对象为第一同步节点。S10: Receive a scheduling request, where the scheduling request includes configuration information, and the to-be-stored object of the configuration information is the first synchronization node.
其中,接收调度请求的主体为调度系统,该调度系统是一个基于分布式架构实现的系统,包括一个或多个数据库资源可用区;其中,在一个数据库资源可用区中包括一个或多个同步节点。可以理解地,该调度系统是在跨地域、跨机房(对应不同的数据库资源可用区)的基础上实现的,可以通过任一同步节点(同步节点具体可以是指处于数据库资源可用区中的计算机设备)接收调度请求,并将该同步节点作为配置信息的待存储对象,该同步节点也称为第一同步节点。Among them, the subject receiving the scheduling request is the scheduling system, which is a system based on a distributed architecture and includes one or more database resource available areas; wherein, one database resource available area includes one or more synchronization nodes . Understandably, the scheduling system is implemented on the basis of cross-regional and cross-machine rooms (corresponding to different database resource available areas), and can be implemented through any synchronization node (a synchronization node can specifically refer to a computer in the database resource available area). The device) receives the scheduling request, and uses the synchronization node as the object to be stored for configuration information. The synchronization node is also referred to as the first synchronization node.
在一实施例中,通过调度发起系统发起的调度请求,调度系统接收该调度请求,并将接收调度请求的同步节点作为配置信息的待存储对象,能够实现通过任一同步节点接收配置信息的功能。In one embodiment, the scheduling request initiated by the scheduling system is initiated by the scheduling system, and the scheduling system receives the scheduling request and uses the synchronization node receiving the scheduling request as the object to be stored for configuration information, which can realize the function of receiving configuration information through any synchronization node .
进一步地,在步骤S10之前,即在接收调度请求的步骤之前,具体还包括。Further, before step S10, that is, before the step of receiving a scheduling request, it specifically includes.
S11:接收接口调用请求。S11: Receive an interface call request.
其中,接口调用请求是指要求调用应用程序编程接口的请求,该接口调用请求具体可以是调度发起系统发出的。Wherein, the interface call request refers to a request to call an application programming interface, and the interface call request may specifically be issued by the dispatch initiating system.
S12:根据接口调用请求提供应用程序编程接口的访问调用,其中,应用程序编程接口用于生成配置信息。S12: Provide an access call of the application programming interface according to the interface call request, where the application programming interface is used to generate configuration information.
其中,应用程序编程接口(Application Programming Interface,简称API)是一些预先定义的函数,目的是提供应用程序与开发人员基于某软件或硬件得以访问一组例程的能力,而又无需访问源码,或理解内部工作机制的细节。Among them, Application Programming Interface (API for short) is some pre-defined functions. The purpose is to provide applications and developers with the ability to access a set of routines based on certain software or hardware without having to access the source code, or Understand the details of the internal working mechanism.
其中,配置信息具体可以是指对数据库接入层的配置、数据库资源可用区的配置、同步节点的配置、中央处理器的配置等的相关参数信息。Among them, the configuration information may specifically refer to related parameter information such as the configuration of the database access layer, the configuration of the database resource available area, the configuration of the synchronization node, and the configuration of the central processing unit.
可以理解地,调度系统包括对外开放的应用程序编程接口,在一实施例中用户可以通过调度发起系统直接调用这些应用程序编程接口,并采用预设的规则,如按照一定规则排列的输入顺序,写入配置的相关参数信息,生成配置信息。Understandably, the scheduling system includes application programming interfaces open to the outside world. In one embodiment, users can directly call these application programming interfaces through the scheduling initiation system, and use preset rules, such as an input sequence arranged according to certain rules. Write the relevant parameter information of the configuration to generate configuration information.
可以理解地,调度系统采用对外开放的应用程序编程接口,可以提高得到配置信息的效率,节省不必要的时间,只需要关心写入配置的相关参数信息即可,此外,还可以统一输入格式、规范,进一步提高得到配置信息的效率。Understandably, the scheduling system adopts an open application programming interface, which can improve the efficiency of obtaining configuration information and save unnecessary time. You only need to care about the relevant parameter information written in the configuration. In addition, you can also unify the input format, Standardize, and further improve the efficiency of obtaining configuration information.
S13:启用监听模式,以监听是否有调度请求发起。S13: Enable the monitoring mode to monitor whether a scheduling request is initiated.
在一实施例中,调度系统将对调度请求进行监听,具体地,数据库资源可用区中的同步节点都将启用监听模式,以及时根据接收到的调度请求实现数据库接入层中间件的自动调度。In an embodiment, the scheduling system will monitor the scheduling request. Specifically, the synchronization nodes in the available area of the database resource will enable the monitoring mode, and realize the automatic scheduling of the database access layer middleware in time according to the received scheduling request. .
在步骤S11-S13中,在接收调度请求的步骤之前调用了调度系统对外开放的应用程序编程接口,能够提高得到配置信息的效率;此外,还对全部同步节点启用了监听模式,能够在不同地域、不同机房的实际场景下实现实时接收调度请求的功能。In steps S11-S13, before the step of receiving the scheduling request, the application programming interface of the scheduling system is called, which can improve the efficiency of obtaining configuration information; in addition, the monitoring mode is enabled for all synchronization nodes, which can be used in different regions. , Realize the function of receiving scheduling requests in real time under the actual scenarios of different computer rooms.
S20:将配置信息存储到第一同步节点。S20: Store the configuration information in the first synchronization node.
在一实施例中,在接收调度请求后将对配置信息进行存储,具体存储的对象为第一同步节点,该第一同步节点可以是指数据库资源可用区中的任一计算机设备,能够通过任一同步节点存储配置信息,实现分布式同步更新的目的。In one embodiment, after receiving the scheduling request, the configuration information will be stored. The specific storage object is the first synchronization node. The first synchronization node may refer to any computer device in the available area of the database resource. A synchronization node stores configuration information to achieve the purpose of distributed synchronization update.
S30:利用第一同步节点,将数据库资源可用区中除去第一同步节点的剩余同步节点,进行配置信息的同步更新。S30: Using the first synchronization node, remove the remaining synchronization nodes of the database resource available area from the first synchronization node, and perform synchronization update of the configuration information.
其中,调度系统包括一个或多个数据库资源可用区,一个数据库资源可用区包括一个或多个同步节点。Among them, the scheduling system includes one or more database resource available areas, and one database resource available area includes one or more synchronization nodes.
在一实施例中,当第一同步节点存储配置信息后,将对所有数据库资源可用区中除去第一同步节点剩余同步节点的配置信息进行同步更新,能够在任一同步节点接收调度请求的情况下,根据配置信息对数据库资源可用区中所有的同步节点均进行同步更新,使得各同步节点能够近实时获取到最新的配置信息。In an embodiment, after the first synchronization node stores the configuration information, the configuration information of the remaining synchronization nodes except the first synchronization node in all the available areas of the database resources will be synchronized and updated, which can be used when any synchronization node receives the scheduling request. , According to the configuration information, all synchronization nodes in the available area of the database resource are synchronized and updated, so that each synchronization node can obtain the latest configuration information in near real time.
进一步地,在步骤S30中,利用第一同步节点,将数据库资源可用区中除去第一同步节点剩余同步节点进行配置信息的同步更新,具体包括以下步骤。Further, in step S30, the first synchronization node is used to remove the remaining synchronization nodes from the first synchronization node in the available area of the database resource to perform the synchronization update of the configuration information, which specifically includes the following steps.
S31:采用consul对数据库资源可用区进行的剩余同步节点扫描,得到数据库资源可用区中除去第一同步节点的同步节点的存储位置。S31: Use consul to scan the remaining synchronization nodes in the database resource available area to obtain the storage location of the synchronization node in the database resource available area excluding the first synchronization node.
其中,consul是一个服务网格(负责服务之间的网络调用、限流、熔断和监控)解决方案,它是一个一个分布式的,高度可用的系统。它提供了一个功能齐全的控制平面,主要特点是:服务发现、健康检查、键值存储、安全服务通信、多数据中心。Among them, consul is a service grid (responsible for network calls, current limiting, fuse and monitoring between services) solution, it is a distributed, highly available system. It provides a fully functional control plane, the main features are: service discovery, health check, key-value storage, secure service communication, and multiple data centers.
可以理解地,第一同步节点在存储配置信息时,第一同步节点的存储位置是已知的,因此在采用consul对数据库资源可用区扫描时,可排除第一同步节点的存储位置后对数据库资源可用区的所述剩余同步节点进行扫描,当然,也可以扫描全部同步节点。Understandably, when the first synchronization node stores configuration information, the storage location of the first synchronization node is known. Therefore, when consul is used to scan the available area of database resources, the storage location of the first synchronization node can be excluded and the database The remaining synchronization nodes in the resource available area are scanned. Of course, all synchronization nodes may also be scanned.
在一实施例中,除去第一同步节点的存储位置,通过consul扫描确定在数据库资源可用区中除第一同步节点外的剩余同步节点的存储位置,以后续实现根据第一同步节点中存储的配置信息更新除去第一同步节点的剩余同步节点的目的,使除去第一同步节点的剩余同步节点也存储有与第一同步节点相同的配置信息。In an embodiment, the storage location of the first synchronization node is removed, and the storage location of the remaining synchronization nodes except the first synchronization node in the database resource available area is determined by consul scanning, so as to implement subsequent implementations based on the storage location in the first synchronization node. The purpose of the configuration information update to remove the remaining synchronization nodes of the first synchronization node is to make the remaining synchronization nodes removed from the first synchronization node also store the same configuration information as the first synchronization node.
S32:基于数据库资源可用区中除去第一同步节点的剩余同步节点的存储位置,采用consul将配置信息发送到数据库资源可用区的剩余同步节点,对数据库资源可用区中的剩余同步节点进行配置信息的同步更新。S32: Based on the storage location of the remaining synchronization nodes except the first synchronization node in the database resource available area, use consul to send the configuration information to the remaining synchronization nodes in the database resource available area, and configure the remaining synchronization nodes in the database resource available area Sync updates.
在一实施例中,第一同步节点通过采用consul进行数据的传输与剩余同步节点间的通信,将配置信息发送到数据库资源可用区的剩余同步节点,并存储在扫描确定的各对应的存储位置,其中,consul中存储有配置信息,在进行同步更新时,从consul中直接拿取配置信息即可。可以理解地,通过借助consul可以在第一同步节点得到配置信息后,近实时地对数据库资源可用区的剩余同步节点进行配置信息的同步更新,例如,上海的一处于数据库资源可用区的计算机设备(第一同步节点)接收到调度请求后,将近实时地对其他在北京、深圳的数据库资源可用区的剩余同步节点进行配置信息的更新。In an embodiment, the first synchronization node uses consul to communicate with the remaining synchronization nodes, and sends configuration information to the remaining synchronization nodes in the database resource available area, and stores the configuration information in each corresponding storage location determined by the scan. , Among them, the configuration information is stored in consul. When the synchronization update is performed, the configuration information can be directly obtained from consul. Understandably, with the help of consul, after the configuration information is obtained at the first synchronization node, the configuration information of the remaining synchronization nodes in the database resource available area can be synchronized in near real time. For example, a computer device in the database resource available area in Shanghai (The first synchronization node) After receiving the scheduling request, it will update the configuration information of the remaining synchronization nodes in the available areas of the database resources in Beijing and Shenzhen in near real time.
在步骤S31-S32中,提供了一种利用第一同步节点将数据库资源可用区中的剩余同步节点进行配置信息的同步更新的具体实施方式,通过采用consul可以在第一同步节点得到配置信息后,近实时地对数据库资源可用区的同步节点进行配置信息的同步更新。In steps S31-S32, a specific implementation manner of using the first synchronization node to synchronize the configuration information of the remaining synchronization nodes in the database resource available area is provided. By using consul, the configuration information can be obtained at the first synchronization node. , Synchronously update the configuration information of the synchronization node in the available zone of the database resource in near real time.
S40:根据配置信息,在数据库资源可用区生成或修改数据库接入层中间件。S40: Generate or modify database access layer middleware in the available area of the database resource according to the configuration information.
在一实施例中,将按照配置信息进行数据库接入层中间件的实例化,当各同步节点对应的数据库资源可用区没有数据库接入层中间件时,则根据配置信息生成数据库接入层中间件,当各同步节点对应的数据库资源可用区已存在数据库接入层中间件时,则根据配置信息修改数据库接入层中间件。In one embodiment, the database access layer middleware will be instantiated according to the configuration information. When there is no database access layer middleware in the available area of the database resource corresponding to each synchronization node, the database access layer middleware will be generated according to the configuration information. When the database access layer middleware already exists in the database resource available area corresponding to each synchronization node, the database access layer middleware is modified according to the configuration information.
进一步地,在步骤S40中,根据配置信息,在数据库资源可用区生成或修改数据库接入层中间件,具体包括以下步骤。Further, in step S40, according to the configuration information, the database access layer middleware is generated or modified in the database resource available area, which specifically includes the following steps.
S41:采用consul-template的观察机制对全部同步节点进行监听,其中,全部同步节点包括第一同步节点和剩余同步节点。S41: Use the observation mechanism of consul-template to monitor all synchronization nodes, where all synchronization nodes include the first synchronization node and the remaining synchronization nodes.
其中,consul-template是基于consul所提供的可扩展的工具,consul-template的观察机制能够通过监听consul中的数据变化,动态地修改一些配置文件中的模板,常用于在反向代理服务器上动态配置健康状态下的客户端反向代理信息。Among them, consul-template is based on the extensible tool provided by consul. The observation mechanism of consul-template can dynamically modify the templates in some configuration files by monitoring data changes in consul. It is often used for dynamic dynamics on reverse proxy servers. Configure the client reverse proxy information in a healthy state.
在一实施例中,为了实现近实时的数据库接入层中间件生成或修改,对全部同步节点都进行了监听,以在配置信息更新时,能够按照配置信息实例化数据库接入层中间件。具体地,在本实施例中采用了consul所提供的可扩展的工具consul-template作为监听工具。In one embodiment, in order to realize near real-time generation or modification of database access layer middleware, all synchronization nodes are monitored, so that when configuration information is updated, the database access layer middleware can be instantiated according to the configuration information. Specifically, in this embodiment, the extensible tool consul-template provided by consul is used as the monitoring tool.
S42:当监听确定全部同步节点的历史配置信息与当前存储的配置信息不相同时,根据配置信息在数据库资源可用区中对数据可接入层中间件的配置进行修改,或者新增数据库接入层中间件。S42: When monitoring and determining that the historical configuration information of all synchronization nodes is different from the currently stored configuration information, modify the configuration of the data access layer middleware in the database resource available area according to the configuration information, or add new database access Layer middleware.
可以理解地,当全部同步节点的历史配置信息与当前存储的配置信息不相同时,说明配置信息成功同步到全部同步节点,表明调度系统需要进行调度上的变化,此时将根据配置信息新增或生成的数据库接入层中间件,以方便后续对新增或生成的数据库接入层中间件数据库接入层中间件的自动调度。Understandably, when the historical configuration information of all synchronization nodes is not the same as the currently stored configuration information, it means that the configuration information is successfully synchronized to all synchronization nodes, indicating that the scheduling system needs to make changes in scheduling. At this time, it will be added according to the configuration information. Or generated database access layer middleware to facilitate subsequent automatic scheduling of newly added or generated database access layer middleware database access layer middleware.
在步骤S41-S42中,提供了一种根据配置信息,在数据库资源可用区生成或修改数据库接入层中间件的具体实施方式,通过采用consul-template的观察机制实现数据库接入层中间件的生成或修改,为后续根据生成或修改的数据库接入层中间件进行调度提供了重要基础。In steps S41-S42, a specific implementation method for generating or modifying database access layer middleware in the available area of database resources based on configuration information is provided. The database access layer middleware is implemented by using the observation mechanism of consul-template. Generation or modification provides an important basis for subsequent scheduling based on the generated or modified database access layer middleware.
S50:根据配置信息,采用pacemaker对数据库接入层中间件进行调度。S50: According to the configuration information, use pacemaker to schedule the database access layer middleware.
其中,pacemaker是一个集群资源管理器。它利用集群基础构件提供的消息和成员管理能力来探测并从节点或资源级别的故障中恢复,以实现群集服务(亦称资源)的最大可用性。Among them, pacemaker is a cluster resource manager. It uses the message and member management capabilities provided by the cluster infrastructure to detect and recover from node or resource level failures to achieve maximum availability of cluster services (also known as resources).
在一实施例中,采用pacemaker可根据配置信息完成资源的调度,还能够实现后台自动管理及协调资源的分配及调度,实现管理数据库接入层中间件的功能。In an embodiment, using pacemaker can complete resource scheduling according to configuration information, and can also realize automatic background management and coordinate resource allocation and scheduling, and realize the function of managing database access layer middleware.
具体地,通过应用程序编程接口写入的配置信息具体可以如下所示。Specifically, the configuration information written through the application programming interface may be specifically as follows.
db/nginx/nxy6m0sz:{"region": "in", "network_type": "classical", "listeners": [{"Instance_idx": 1, "Instance_name": "nxy6m0sz_1", "limit_memory": 1.0, "limit_cpu": 0.5, "create_time": "2019-05-09 02:21:48", "hosts": {"master": "CNSZ081825", "slave": "CNSZ081823"}, "CIDR": "10.25.88.216", "listener_port": 3605}], "ng_site": "INA", "db_type": "mysql", "rss": [{"enable": "True", "rs_instance_id": 52210, "ip": "10.25.88.1", "site": "INA", "create_time": "2019-05-09 02:21:48", "rs_name": "myq8814c", "port": 3008}, {"enable": "True", "rs_instance_id": 51545, "ip": "10.25.88.78", "site": "INB", "create_time": "2019-05-09 02:21:48", "rs_name": "myq8814c", "port": 3008}]},从该配置信息可以看出对数据库接入层中间件(db/nginx/nxy6m0sz)的配置,其中还包括如对数据库资源可用区、机器配置,还有一些如中央处理器限制等的配置。在一实施例中,pacemaker将根据这些配置信息对数据库接入层中间件进行调度。db/nginx/nxy6m0sz:{"region": "in", "network_type": "classical", "listeners": [{"Instance_idx": 1, "Instance_name": "nxy6m0sz_1", "limit_memory": 1.0, "limit_cpu": 0.5, "create_time": "2019-05-09 02:21:48", "hosts": {"master": "CNSZ081825", "slave": "CNSZ081823"}, "CIDR": "10.25.88.216", "listener_port": 3605}], "ng_site": "INA", "db_type": "mysql", "rss": [{"enable": "True", "rs_instance_id": 52210, "ip": "10.25.88.1", "site": "INA", "create_time": "2019-05-09 02:21:48", "rs_name": "myq8814c", "port": 3008}, {"enable": "True", "rs_instance_id": 51545, "ip": "10.25.88.78", "site": "INB", "create_time": "2019-05-09 02:21:48", "rs_name": "myq8814c", "port": 3008}]}. From the configuration information, we can see the configuration of the database access layer middleware (db/nginx/nxy6m0sz), which also includes such as the database resource available area and machine configuration, There are also some configurations such as CPU limitations. In an embodiment, pacemaker will schedule the database access layer middleware according to the configuration information.
进一步地,在步骤S50中,根据配置信息,采用pacemaker对数据库接入层中间件进行调度,具体包括以下步骤。Further, in step S50, according to the configuration information, pacemaker is used to schedule the database access layer middleware, which specifically includes the following steps.
S51:通过字段匹配,从配置信息中确定资源调度信息。S51: Determine resource scheduling information from the configuration information through field matching.
可以理解地,配置信息中决定调度的是具体的资源调度信息,如"limit_memory": 1.0, "limit_cpu": 0.5表示了对存储占比的极限和中央处理器运行占比的极限,可通过字段匹配确定,而如创建时间create_time等的配置信息则不直接进行资源调度,不作为资源调度信息。Understandably, what determines the scheduling in the configuration information is the specific resource scheduling information, such as "limit_memory": 1.0, "limit_cpu": 0.5 indicates the limit of the storage ratio and the limit of the CPU operation ratio, which can be determined by field matching, and the configuration information such as the creation time create_time is not directly used for resource scheduling and is not used as a resource Scheduling information.
S52:根据资源调度信息,采用pacemaker对数据库接入层中间件进行调度。S52: According to the resource scheduling information, use pacemaker to schedule the database access layer middleware.
在一实施例中,根据资源调度信息,采用pacemaker实现资源调度,更合理地利用数据库资源可用区,能够在跨地域、跨机房的场景下实现数据库接入层中间件的自动调度。In one embodiment, according to the resource scheduling information, pacemaker is used to implement resource scheduling, and the available area of database resources can be used more reasonably, and automatic scheduling of database access layer middleware can be realized in a cross-regional and cross-computer room scenario.
在步骤S51-S52中,提供了一种对数据库接入层中间件进行调度的具体实施方式,能够实现数据库接入层中间件的合理调度。In steps S51-S52, a specific implementation manner for scheduling database access layer middleware is provided, which can realize reasonable scheduling of database access layer middleware.
可以理解地,调度系统通过步骤S10-S50的执行,能够在跨地域、跨机房的分布式架构下实现数据库接入层中间件的自动调度。Understandably, through the execution of steps S10-S50, the scheduling system can realize automatic scheduling of database access layer middleware under a cross-regional and cross-computer room distributed architecture.
在本申请实施例中,首先接收调度请求,其中,调度请求包括配置信息,配置信息的待存储对象为第一同步节点,能够实现通过任一同步节点接收配置信息的功能;然后将配置信息存储到第一同步节点,利用第一同步节点,将数据库资源可用区中除去第一同步节点的剩余同步节点,进行配置信息的同步更新,能够在任一同步节点接收调度请求的情况下,根据配置信息对数据库资源可用区中的剩余同步节点均进行同步更新,使得剩余同步节点能够近实时获取到最新的配置信息;接着根据配置信息,在数据库资源可用区生成或修改数据库接入层中间件,能够针对配置信息的数据库接入层中间件实现快速配置功能,对数据库接入层中间件进行修改或直接生成数据库接入层中间件;最后根据配置信息,采用pacemaker对数据库接入层中间件进行调度,能够对后台自动管理及协调资源的分配及调度,能够在跨地域、跨机房的分布式架构下实现数据库接入层中间件的自动调度。In the embodiment of the present application, a scheduling request is first received, where the scheduling request includes configuration information, and the object to be stored for the configuration information is the first synchronization node, which can realize the function of receiving configuration information through any synchronization node; then the configuration information is stored To the first synchronization node, use the first synchronization node to remove the remaining synchronization nodes of the database resource available area from the first synchronization node, and perform the synchronization update of the configuration information. When any synchronization node receives the scheduling request, according to the configuration information Synchronously update the remaining synchronization nodes in the available area of the database resource, so that the remaining synchronization nodes can obtain the latest configuration information in near real time; then, according to the configuration information, generate or modify the database access layer middleware in the available area of the database resource. The database access layer middleware for the configuration information realizes the quick configuration function, modify the database access layer middleware or directly generate the database access layer middleware; finally, according to the configuration information, use pacemaker to schedule the database access layer middleware , It can automatically manage and coordinate the allocation and scheduling of resources in the background, and realize the automatic scheduling of middleware in the database access layer under a cross-regional and cross-computer room distributed architecture.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。It should be understood that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
基于实施例中所提供的数据库接入层中间件的自动调度方法,本申请实施例进一步给出实现上述方法实施例中各步骤及方法的装置实施例。Based on the automatic scheduling method of the database access layer middleware provided in the embodiment, the embodiment of the present application further provides an embodiment of a device that implements each step and method in the above method embodiment.
图2示出与实施例中数据库接入层中间件的自动调度方法一一对应的数据库接入层中间件的自动调度装置的原理框图。如图2所示,该数据库接入层中间件的自动调度装置包括接收模块10、存储模块20、同步更新模块30、中间件配置模块40和中间件调度模块50。其中,接收模块10、存储模块20、同步更新模块30、中间件配置模块40和中间件调度模块50的实现功能与实施例中数据库接入层中间件的自动调度方法对应的步骤一一对应,为避免赘述,本实施例不一一详述。Fig. 2 shows the principle block diagram of the automatic scheduling device of the database access layer middleware corresponding to the automatic scheduling method of the database access layer middleware in the embodiment. As shown in FIG. 2, the automatic scheduling device of the database access layer middleware includes a receiving module 10, a storage module 20, a synchronization update module 30, a middleware configuration module 40 and a middleware scheduling module 50. Among them, the implementation functions of the receiving module 10, the storage module 20, the synchronization update module 30, the middleware configuration module 40, and the middleware scheduling module 50 correspond to the steps corresponding to the automatic scheduling method of the database access layer middleware in the embodiment one by one. To avoid repetition, this embodiment will not go into details one by one.
接收模块10,用于接收调度请求,其中,调度请求包括配置信息,配置信息的待存储对象为第一同步节点。The receiving module 10 is configured to receive a scheduling request, where the scheduling request includes configuration information, and the to-be-stored object of the configuration information is the first synchronization node.
其中,接收调度请求的主体为调度系统,该调度系统是一个基于分布式架构实现的系统,包括一个或多个数据库资源可用区;其中,在一个数据库资源可用区中包括一个或多个同步节点。可以理解地,该调度系统是在跨地域、跨机房(对应不同的数据库资源可用区)的基础上实现的,可以通过任一同步节点(同步节点具体可以是指处于数据库资源可用区中的计算机设备)接收调度请求,并将该同步节点作为配置信息的待存储对象,该同步节点也称为第一同步节点。Among them, the subject receiving the scheduling request is the scheduling system, which is a system based on a distributed architecture and includes one or more database resource available areas; wherein, one database resource available area includes one or more synchronization nodes . Understandably, the scheduling system is implemented on the basis of cross-regional and cross-machine rooms (corresponding to different database resource available areas), and can be implemented through any synchronization node (a synchronization node can specifically refer to a computer in the database resource available area). The device) receives the scheduling request, and uses the synchronization node as the object to be stored for configuration information. The synchronization node is also referred to as the first synchronization node.
在一实施例中,通过调度发起系统发起的调度请求,调度系统接收该调度请求,并将接收调度请求的同步节点作为配置信息的待存储对象,能够实现通过任一同步节点接收配置信息的功能。In one embodiment, the scheduling request initiated by the scheduling system is initiated by the scheduling system, and the scheduling system receives the scheduling request and uses the synchronization node receiving the scheduling request as the object to be stored for configuration information, which can realize the function of receiving configuration information through any synchronization node .
存储模块20,用于将配置信息存储到第一同步节点。The storage module 20 is used to store the configuration information in the first synchronization node.
在一实施例中,在接收调度请求后将对配置信息进行存储,具体存储的对象为第一同步节点,该第一同步节点可以是指数据库资源可用区中的任一计算机设备,能够通过任一同步节点存储配置信息,实现分布式同步更新的目的。In one embodiment, after receiving the scheduling request, the configuration information will be stored. The specific storage object is the first synchronization node. The first synchronization node may refer to any computer device in the available area of the database resource. A synchronization node stores configuration information to achieve the purpose of distributed synchronization update.
同步更新模块30,用于利用第一同步节点,将数据库资源可用区中除去第一同步节点的剩余同步节点,进行配置信息的同步更新。The synchronization update module 30 is configured to use the first synchronization node to remove the remaining synchronization nodes from the database resource available area except for the first synchronization node to perform synchronization update of configuration information.
在一实施例中,当第一同步节点存储配置信息后,将对所有数据库资源可用区中除去第一同步节点的剩余同步节点的配置信息进行同步更新,能够在任一同步节点接收调度请求的情况下,根据配置信息对数据库资源可用区中所有的同步节点均进行同步更新,使得各同步节点能够近实时获取到最新的配置信息。In an embodiment, after the first synchronization node stores the configuration information, the configuration information of the remaining synchronization nodes excluding the first synchronization node in all database resource available areas will be synchronized and updated, and the scheduling request can be received at any synchronization node Next, all synchronization nodes in the available area of the database resource are synchronized and updated according to the configuration information, so that each synchronization node can obtain the latest configuration information in near real time.
中间件配置模块40,用于根据配置信息,在数据库资源可用区生成或修改数据库接入层中间件。The middleware configuration module 40 is used to generate or modify database access layer middleware in the database resource available area according to the configuration information.
在一实施例中,将按照配置信息进行数据库接入层中间件的实例化,当各同步节点对应的数据库资源可用区没有数据库接入层中间件时,则根据配置信息生成数据库接入层中间件,当各同步节点对应的数据库资源可用区已存在数据库接入层中间件时,则根据配置信息修改数据库接入层中间件。In one embodiment, the database access layer middleware will be instantiated according to the configuration information. When there is no database access layer middleware in the available area of the database resource corresponding to each synchronization node, the database access layer middleware will be generated according to the configuration information. When the database access layer middleware already exists in the database resource available area corresponding to each synchronization node, the database access layer middleware is modified according to the configuration information.
中间件调度模块50,用于根据配置信息,采用pacemaker对数据库接入层中间件进行调度。The middleware scheduling module 50 is configured to use pacemaker to schedule the database access layer middleware according to the configuration information.
其中,pacemaker是一个集群资源管理器。它利用集群基础构件提供的消息和成员管理能力来探测并从节点或资源级别的故障中恢复,以实现群集服务(亦称资源)的最大可用性。Among them, pacemaker is a cluster resource manager. It uses the message and member management capabilities provided by the cluster infrastructure to detect and recover from node or resource level failures to achieve maximum availability of cluster services (also known as resources).
在一实施例中,采用pacemaker可根据配置信息完成资源的调度,还能够实现后台自动管理及协调资源的分配及调度,实现管理数据库接入层中间件的功能。In an embodiment, using pacemaker can complete resource scheduling according to configuration information, and can also realize automatic background management and coordinate resource allocation and scheduling, and realize the function of managing database access layer middleware.
可选地,所述装置还包括预处理模块,所述预处理模块具体用于:接收接口调用请求。根据接口调用请求提供应用程序编程接口的访问调用,其中,应用程序编程接口用于生成配置信息。Optionally, the device further includes a preprocessing module, and the preprocessing module is specifically configured to: receive an interface call request. According to the interface call request, the access call of the application programming interface is provided, where the application programming interface is used to generate configuration information.
启用监听模式,以监听是否有调度请求发起。Enable monitoring mode to monitor whether a scheduling request is initiated.
可选地,同步更新模块30还具体用于:采用consul对数据库资源可用区的剩余同步节点进行扫描,得到数据库资源可用区中除去第一同步节点的剩余同步节点的存储位置。Optionally, the synchronization update module 30 is further specifically configured to use consul to scan the remaining synchronization nodes in the database resource available area to obtain the storage locations of the remaining synchronization nodes in the database resource available area except the first synchronization node.
基于数据库资源可用区中除去第一同步节点的剩余同步节点的存储位置,采用consul将配置信息发送到数据库资源可用区的剩余同步节点,对数据库资源可用区中的剩余同步节点进行配置信息的同步更新。Based on the storage location of the remaining synchronization nodes except the first synchronization node in the database resource available area, use consul to send the configuration information to the remaining synchronization nodes in the database resource available area, and synchronize the configuration information of the remaining synchronization nodes in the database resource available area. renew.
可选地,中间件配置模块40还具体用于:采用consul-template的观察机制对全部同步节点进行监听,其中,全部同步节点包括第一同步节点和剩余同步节点。Optionally, the middleware configuration module 40 is further specifically configured to monitor all synchronization nodes using the observation mechanism of consul-template, where all synchronization nodes include the first synchronization node and the remaining synchronization nodes.
当监听确定全部同步节点的历史配置信息与当前存储的配置信息不相同时,根据配置信息在数据库资源可用区中对数据可接入层中间件的配置进行修改,或者新增数据库接入层中间件。When the monitoring determines that the historical configuration information of all synchronization nodes is not the same as the currently stored configuration information, modify the configuration of the data access layer middleware in the database resource available area according to the configuration information, or add a new database access layer middleware Pieces.
可选地,中间件调度模块50还具体用于:通过字段匹配,从配置信息中确定资源调度信息;根据资源调度信息,采用pacemaker对数据库接入层中间件进行调度。Optionally, the middleware scheduling module 50 is further specifically configured to: determine resource scheduling information from the configuration information through field matching; and use pacemaker to schedule the database access layer middleware according to the resource scheduling information.
在本申请实施例中,首先接收调度请求,其中,调度请求包括配置信息,配置信息的待存储对象为第一同步节点,能够实现通过任一同步节点接收配置信息的功能;然后将配置信息存储到第一同步节点,利用第一同步节点,将数据库资源可用区中除去第一同步节点的剩余同步节点,进行配置信息的同步更新,能够在任一同步节点接收调度请求的情况下,根据配置信息对数据库资源可用区中剩余的同步节点均进行同步更新,使得剩余同步节点能够近实时获取到最新的配置信息;接着根据配置信息,在数据库资源可用区生成或修改数据库接入层中间件,能够针对配置信息的数据库接入层中间件实现快速配置功能,对数据库接入层中间件进行修改或直接生成数据库接入层中间件;最后根据配置信息,采用pacemaker对数据库接入层中间件进行调度,能够对后台自动管理及协调资源的分配及调度,能够在跨地域、跨机房的分布式架构下实现数据库接入层中间件的自动调度。In the embodiment of the present application, a scheduling request is first received, where the scheduling request includes configuration information, and the object to be stored for the configuration information is the first synchronization node, which can realize the function of receiving configuration information through any synchronization node; then the configuration information is stored To the first synchronization node, use the first synchronization node to remove the remaining synchronization nodes of the database resource available area from the first synchronization node, and perform the synchronization update of the configuration information. When any synchronization node receives the scheduling request, according to the configuration information Synchronously update the remaining synchronization nodes in the available area of the database resource, so that the remaining synchronization nodes can obtain the latest configuration information in near real time; then, according to the configuration information, generate or modify the database access layer middleware in the available area of the database resource. The database access layer middleware for the configuration information realizes the quick configuration function, modify the database access layer middleware or directly generate the database access layer middleware; finally, according to the configuration information, use pacemaker to schedule the database access layer middleware , It can automatically manage and coordinate the allocation and scheduling of resources in the background, and realize the automatic scheduling of middleware in the database access layer under a cross-regional and cross-computer room distributed architecture.
本实施例提供一计算机可读存储介质,该计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现实施例中数据库接入层中间件的自动调度方法,为避免重复,此处不一一赘述。或者,该计算机程序被处理器执行时实现实施例中数据库接入层中间件的自动调度装置中各模块/单元的功能,为避免重复,此处不一一赘述。其中,所述计算机可读存储介质可以是非易失性,也可以是易失性的。This embodiment provides a computer-readable storage medium with a computer program stored on the computer-readable storage medium. When the computer program is executed by a processor, the automatic scheduling method of the database access layer middleware in the embodiment is realized. In order to avoid repetition, I will not repeat them here. Alternatively, when the computer program is executed by the processor, the function of each module/unit in the automatic scheduling device of the database access layer middleware in the embodiment is realized. In order to avoid repetition, it will not be repeated here. Wherein, the computer-readable storage medium may be non-volatile or volatile.
图3是本申请一实施例提供的计算机设备的示意图。如图3所示,该实施例的计算机设备60包括:处理器61、存储器62以及存储在存储器62中并可在处理器61上运行的计算机程序63,该计算机程序63被处理器61执行时实现实施例中数据库接入层中间件的自动调度方法。或者,该计算机程序63被处理器61执行时实现实施例中与数据库接入层中间件的自动调度方法一一对应的数据库接入层中间件的自动调度装置中各模型/单元的功能。Fig. 3 is a schematic diagram of a computer device provided by an embodiment of the present application. As shown in FIG. 3, the computer device 60 of this embodiment includes a processor 61, a memory 62, and a computer program 63 stored in the memory 62 and running on the processor 61. When the computer program 63 is executed by the processor 61 The automatic scheduling method of the database access layer middleware in the embodiment is realized. Alternatively, when the computer program 63 is executed by the processor 61, the functions of each model/unit in the automatic scheduling device of the database access layer middleware corresponding to the automatic scheduling method of the database access layer middleware in the embodiment are implemented one-to-one.
计算机设备60可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。计算机设备60可包括,但不仅限于,处理器61、存储器62。本领域技术人员可以理解,图3仅仅是计算机设备60的示例,并不构成对计算机设备60的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如计算机设备还可以包括输入输出设备、网络接入设备、总线等。The computer device 60 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The computer device 60 may include, but is not limited to, a processor 61 and a memory 62. Those skilled in the art can understand that FIG. 3 is only an example of the computer device 60, and does not constitute a limitation on the computer device 60. It may include more or less components than those shown in the figure, or a combination of certain components, or different components. For example, computer equipment may also include input and output devices, network access devices, buses, and so on.
所称处理器61可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现场可编程门阵列 (Field-Programmable Gate Array,FPGA) 或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 61 may be a central processing unit (Central Processing Unit, CPU), it can also be other general-purpose processors, Digital Signal Processors (DSP), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (Field-Programmable Gate Arrays, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
存储器62可以是计算机设备60的内部存储单元,例如计算机设备60的硬盘或内存。存储器62也可以是计算机设备60的外部存储设备,例如计算机设备60上配备的插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)等。进一步地,存储器62还可以既包括计算机设备60的内部存储单元也包括外部存储设备。存储器62用于存储计算机程序以及计算机设备所需的其他程序和数据。存储器62还可以用于暂时地存储已经输出或者将要输出的数据。The memory 62 may be an internal storage unit of the computer device 60, such as a hard disk or memory of the computer device 60. The memory 62 may also be an external storage device of the computer device 60, such as a plug-in hard disk, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD) card, flash card (Flash Card), etc. Further, the memory 62 may also include both an internal storage unit of the computer device 60 and an external storage device. The memory 62 is used to store computer programs and other programs and data required by the computer equipment. The memory 62 can also be used to temporarily store data that has been output or will be output.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific implementations of this application, but the protection scope of this application is not limited to this. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application. Should be covered within the scope of protection of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims (20)

  1. 一种数据库接入层中间件的自动调度方法,其中,所述方法包括:An automatic scheduling method for database access layer middleware, wherein the method includes:
    接收调度请求,其中,所述调度请求包括配置信息,所述配置信息的待存储对象为第一同步节点;Receiving a scheduling request, where the scheduling request includes configuration information, and the to-be-stored object of the configuration information is the first synchronization node;
    将所述配置信息存储到所述第一同步节点;Storing the configuration information in the first synchronization node;
    利用所述第一同步节点,将数据库资源可用区中除去所述第一同步节点的剩余同步节点,进行所述配置信息的同步更新;Using the first synchronization node to remove the remaining synchronization nodes of the database resource available area from the first synchronization node, and perform the synchronization update of the configuration information;
    根据所述配置信息,在所述数据库资源可用区生成或修改数据库接入层中间件;Generate or modify database access layer middleware in the available area of the database resource according to the configuration information;
    根据所述配置信息,采用pacemaker对所述数据库接入层中间件进行调度。According to the configuration information, pacemaker is used to schedule the database access layer middleware.
  2. 根据权利要求1所述的方法,其中,在所述接收调度请求之前,还包括:The method according to claim 1, wherein before said receiving a scheduling request, further comprising:
    接收接口调用请求;Receive interface call request;
    根据所述接口调用请求提供应用程序编程接口的访问调用,其中,所述应用程序编程接口用于生成所述配置信息;Providing an access call of an application programming interface according to the interface call request, wherein the application programming interface is used to generate the configuration information;
    启用监听模式,以监听是否有所述调度请求发起。Enable the monitoring mode to monitor whether the scheduling request is initiated.
  3. 根据权利要求1所述的方法,其中,所述利用所述第一同步节点,将数据库资源可用区中除去所述第一同步节点的剩余同步节点,进行所述配置信息的同步更新,包括:The method according to claim 1, wherein the using the first synchronization node to remove the remaining synchronization nodes of the database resource available area from the first synchronization node to perform the synchronization update of the configuration information comprises:
    采用consul对所述数据库资源可用区的所述剩余同步节点进行扫描,得到所述数据库资源可用区中除去所述第一同步节点的剩余同步节点的存储位置;Using consul to scan the remaining synchronization nodes in the database resource available area to obtain the storage locations of the remaining synchronization nodes in the database resource available area excluding the first synchronization node;
    基于所述数据库资源可用区中除去所述第一同步节点的剩余同步节点的存储位置,采用consul将所述配置信息发送到所述数据库资源可用区的所述剩余同步节点,对所述数据库资源可用区中的所述剩余同步节点进行所述配置信息的同步更新。Based on the storage location of the remaining synchronization nodes in the database resource available area excluding the first synchronization node, consul is used to send the configuration information to the remaining synchronization nodes in the database resource available area, and the database resource The remaining synchronization nodes in the available zone perform synchronization update of the configuration information.
  4. 根据权利要求1所述的方法,其中,所述根据所述配置信息,在所述数据库资源可用区生成或修改数据库接入层中间件,包括:The method according to claim 1, wherein the generating or modifying database access layer middleware in the available area of the database resource according to the configuration information comprises:
    采用consul-template的观察机制对全部同步节点进行监听,其中,所述全部同步节点包括所述第一同步节点和所述剩余同步节点;Monitor all synchronization nodes by adopting a consul-template observation mechanism, where all synchronization nodes include the first synchronization node and the remaining synchronization nodes;
    当监听确定所述全部同步节点的历史配置信息与当前存储的所述配置信息不相同时,根据所述配置信息在所述数据库资源可用区中对所述数据可接入层中间件的配置进行修改,或者新增所述数据库接入层中间件。When it is determined through monitoring that the historical configuration information of all synchronization nodes is not the same as the currently stored configuration information, the configuration of the data access layer middleware is performed in the available area of the database resource according to the configuration information Modify or add the database access layer middleware.
  5. 根据权利要求1-4任意一项所述的方法,其中,所述根据所述配置信息,采用pacemaker对所述数据库接入层中间件进行调度,包括:The method according to any one of claims 1 to 4, wherein the using pacemaker to schedule the database access layer middleware according to the configuration information comprises:
    通过字段匹配,从所述配置信息中确定资源调度信息;Determine resource scheduling information from the configuration information through field matching;
    根据所述资源调度信息,采用所述pacemaker对所述数据库接入层中间件进行调度。According to the resource scheduling information, the pacemaker is used to schedule the database access layer middleware.
  6. 一种数据库接入层中间件的自动调度装置,其中,包括:An automatic scheduling device for database access layer middleware, which includes:
    接收模块,用于接收调度请求,其中,所述调度请求包括配置信息,所述配置信息的待存储对象为第一同步节点;A receiving module, configured to receive a scheduling request, where the scheduling request includes configuration information, and the to-be-stored object of the configuration information is the first synchronization node;
    存储模块,用于将所述配置信息存储到所述第一同步节点;A storage module, configured to store the configuration information in the first synchronization node;
    同步更新模块,用于利用所述第一同步节点,将数据库资源可用区中除去所述第一同步节点的剩余同步节点,进行所述配置信息的同步更新;A synchronization update module, configured to use the first synchronization node to remove the remaining synchronization nodes from the database resource available area except for the first synchronization node to perform synchronization update of the configuration information;
    中间件配置模块,用于根据所述配置信息,在所述数据库资源可用区生成或修改数据库接入层中间件;A middleware configuration module, configured to generate or modify database access layer middleware in the database resource available area according to the configuration information;
    中间件调度模块,用于根据所述配置信息,采用pacemaker对所述数据库接入层中间件进行调度。The middleware scheduling module is configured to use pacemaker to schedule the database access layer middleware according to the configuration information.
  7. 根据权利要求6所述的装置,其中,所述装置还包括预处理模块,所述预处理模块具体用于:The device according to claim 6, wherein the device further comprises a pre-processing module, and the pre-processing module is specifically configured to:
    接收接口调用请求;Receive interface call request;
    根据所述接口调用请求提供应用程序编程接口的访问调用,其中,所述应用程序编程接口用于生成所述配置信息;Providing an access call of an application programming interface according to the interface call request, wherein the application programming interface is used to generate the configuration information;
    启用监听模式,以监听是否有所述调度请求发起。Enable the monitoring mode to monitor whether the scheduling request is initiated.
  8. 根据权利要求6所述的装置,其中,所述同步更新模块,具体用于:The device according to claim 6, wherein the synchronization update module is specifically configured to:
    采用consul对所述数据库资源可用区的所述剩余同步节点进行扫描,得到所述数据库资源可用区中除去所述第一同步节点的剩余同步节点的存储位置;Using consul to scan the remaining synchronization nodes in the database resource available area to obtain the storage locations of the remaining synchronization nodes in the database resource available area excluding the first synchronization node;
    基于所述数据库资源可用区中除去所述第一同步节点的剩余同步节点的存储位置,采用consul将所述配置信息发送到所述数据库资源可用区的所述剩余同步节点,对所述数据库资源可用区中的所述剩余同步节点进行所述配置信息的同步更新。Based on the storage location of the remaining synchronization nodes in the database resource available area excluding the first synchronization node, consul is used to send the configuration information to the remaining synchronization nodes in the database resource available area, and the database resource The remaining synchronization nodes in the available zone perform synchronization update of the configuration information.
  9. 根据权利要求6所述的装置,其中,所述中间件配置模块,具体用于:The device according to claim 6, wherein the middleware configuration module is specifically used for:
    采用consul-template的观察机制对全部同步节点进行监听,其中,所述全部同步节点包括所述第一同步节点和所述剩余同步节点;Monitor all synchronization nodes by adopting a consul-template observation mechanism, where all synchronization nodes include the first synchronization node and the remaining synchronization nodes;
    当监听确定所述全部同步节点的历史配置信息与当前存储的所述配置信息不相同时,根据所述配置信息在所述数据库资源可用区中对所述数据可接入层中间件的配置进行修改,或者新增所述数据库接入层中间件。When it is determined through monitoring that the historical configuration information of all synchronization nodes is not the same as the currently stored configuration information, the configuration of the data access layer middleware is performed in the available area of the database resource according to the configuration information Modify or add the database access layer middleware.
  10. 根据权利要求6-9任意一项所述的装置,其中,所述中间件调度模块具体还用于:The device according to any one of claims 6-9, wherein the middleware scheduling module is specifically further configured to:
    通过字段匹配,从所述配置信息中确定资源调度信息;Determine resource scheduling information from the configuration information through field matching;
    根据所述资源调度信息,采用所述pacemaker对所述数据库接入层中间件进行调度。According to the resource scheduling information, the pacemaker is used to schedule the database access layer middleware.
  11. 一种计算机设备,其中,所述计算机设备包括存储器和处理器,所述存储器和所述处理器相互连接,所述存储器用于存储计算机程序,所述计算机程序被配置为由所述处理器执行,所述计算机程序配置用于执行一种数据库接入层中间件的自动调度方法:A computer device, wherein the computer device includes a memory and a processor, the memory and the processor are connected to each other, and the memory is used to store a computer program configured to be executed by the processor , The computer program is configured to execute an automatic scheduling method for database access layer middleware:
    其中,所述方法包括:Wherein, the method includes:
    接收调度请求,其中,所述调度请求包括配置信息,所述配置信息的待存储对象为第一同步节点;Receiving a scheduling request, where the scheduling request includes configuration information, and the to-be-stored object of the configuration information is the first synchronization node;
    将所述配置信息存储到所述第一同步节点;Storing the configuration information in the first synchronization node;
    利用所述第一同步节点,将数据库资源可用区中除去所述第一同步节点的剩余同步节点,进行所述配置信息的同步更新;Using the first synchronization node to remove the remaining synchronization nodes of the database resource available area from the first synchronization node, and perform the synchronization update of the configuration information;
    根据所述配置信息,在所述数据库资源可用区生成或修改数据库接入层中间件;Generate or modify database access layer middleware in the available area of the database resource according to the configuration information;
    根据所述配置信息,采用pacemaker对所述数据库接入层中间件进行调度。According to the configuration information, pacemaker is used to schedule the database access layer middleware.
  12. 根据权利要求11所述的计算机设备,其中,在所述接收调度请求之前,还包括:The computer device according to claim 11, wherein before the receiving the scheduling request, further comprising:
    接收接口调用请求;Receive interface call request;
    根据所述接口调用请求提供应用程序编程接口的访问调用,其中,所述应用程序编程接口用于生成所述配置信息;Providing an access call of an application programming interface according to the interface call request, wherein the application programming interface is used to generate the configuration information;
    启用监听模式,以监听是否有所述调度请求发起。Enable the monitoring mode to monitor whether the scheduling request is initiated.
  13. 根据权利要求11所述的计算机设备,其中,所述利用所述第一同步节点,将数据库资源可用区中除去所述第一同步节点的剩余同步节点,进行所述配置信息的同步更新,包括:The computer device according to claim 11, wherein said using said first synchronization node to remove the remaining synchronization nodes of said first synchronization node from the available area of database resources to perform synchronization update of said configuration information, comprising :
    采用consul对所述数据库资源可用区的所述剩余同步节点进行扫描,得到所述数据库资源可用区中除去所述第一同步节点的剩余同步节点的存储位置;Using consul to scan the remaining synchronization nodes in the database resource available area to obtain the storage locations of the remaining synchronization nodes in the database resource available area excluding the first synchronization node;
    基于所述数据库资源可用区中除去所述第一同步节点的剩余同步节点的存储位置,采用consul将所述配置信息发送到所述数据库资源可用区的所述剩余同步节点,对所述数据库资源可用区中的所述剩余同步节点进行所述配置信息的同步更新。Based on the storage location of the remaining synchronization nodes in the database resource available area excluding the first synchronization node, consul is used to send the configuration information to the remaining synchronization nodes in the database resource available area, and the database resource The remaining synchronization nodes in the available zone perform synchronization update of the configuration information.
  14. 根据权利要求11所述的计算机设备,其中,所述根据所述配置信息,在所述数据库资源可用区生成或修改数据库接入层中间件,包括:11. The computer device according to claim 11, wherein said generating or modifying database access layer middleware in said database resource available area according to said configuration information comprises:
    采用consul-template的观察机制对全部同步节点进行监听,其中,所述全部同步节点包括所述第一同步节点和所述剩余同步节点;Monitor all synchronization nodes by adopting a consul-template observation mechanism, where all synchronization nodes include the first synchronization node and the remaining synchronization nodes;
    当监听确定所述全部同步节点的历史配置信息与当前存储的所述配置信息不相同时,根据所述配置信息在所述数据库资源可用区中对所述数据可接入层中间件的配置进行修改,或者新增所述数据库接入层中间件。When it is determined through monitoring that the historical configuration information of all synchronization nodes is not the same as the currently stored configuration information, the configuration of the data access layer middleware is performed in the available area of the database resource according to the configuration information Modify or add the database access layer middleware.
  15. 根据权利要求11-14任意一项所述的计算机设备,其中,所述根据所述配置信息,采用pacemaker对所述数据库接入层中间件进行调度,包括:The computer device according to any one of claims 11-14, wherein the scheduling of the database access layer middleware by using pacemaker according to the configuration information comprises:
    通过字段匹配,从所述配置信息中确定资源调度信息;Determine resource scheduling information from the configuration information through field matching;
    根据所述资源调度信息,采用所述pacemaker对所述数据库接入层中间件进行调度。According to the resource scheduling information, the pacemaker is used to schedule the database access layer middleware.
  16. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时用于实现一种数据库接入层中间件的自动调度方法,所述方法包括以下步骤:A computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it is used to implement an automatic scheduling method for database access layer middleware, the method includes the following step:
    接收调度请求,其中,所述调度请求包括配置信息,所述配置信息的待存储对象为第一同步节点;Receiving a scheduling request, where the scheduling request includes configuration information, and the to-be-stored object of the configuration information is the first synchronization node;
    将所述配置信息存储到所述第一同步节点;Storing the configuration information in the first synchronization node;
    利用所述第一同步节点,将数据库资源可用区中除去所述第一同步节点的剩余同步节点,进行所述配置信息的同步更新;Using the first synchronization node to remove the remaining synchronization nodes of the database resource available area from the first synchronization node, and perform the synchronization update of the configuration information;
    根据所述配置信息,在所述数据库资源可用区生成或修改数据库接入层中间件;Generate or modify database access layer middleware in the available area of the database resource according to the configuration information;
    根据所述配置信息,采用pacemaker对所述数据库接入层中间件进行调度。According to the configuration information, pacemaker is used to schedule the database access layer middleware.
  17. 根据权利要求16所述的计算机可读存储介质,其中,在所述接收调度请求之前,还包括:The computer-readable storage medium according to claim 16, wherein before the receiving the scheduling request, further comprising:
    接收接口调用请求;Receive interface call request;
    根据所述接口调用请求提供应用程序编程接口的访问调用,其中,所述应用程序编程接口用于生成所述配置信息;Providing an access call of an application programming interface according to the interface call request, wherein the application programming interface is used to generate the configuration information;
    启用监听模式,以监听是否有所述调度请求发起。Enable the monitoring mode to monitor whether the scheduling request is initiated.
  18. 根据权利要求16所述的计算机可读存储介质,其中,所述利用所述第一同步节点,将数据库资源可用区中除去所述第一同步节点的剩余同步节点,进行所述配置信息的同步更新,包括:The computer-readable storage medium according to claim 16, wherein the first synchronization node is used to remove the remaining synchronization nodes of the database resource available area from the first synchronization node to synchronize the configuration information Updates, including:
    采用consul对所述数据库资源可用区的所述剩余同步节点进行扫描,得到所述数据库资源可用区中除去所述第一同步节点的剩余同步节点的存储位置;Using consul to scan the remaining synchronization nodes in the database resource available area to obtain the storage locations of the remaining synchronization nodes in the database resource available area excluding the first synchronization node;
    基于所述数据库资源可用区中除去所述第一同步节点的剩余同步节点的存储位置,采用consul将所述配置信息发送到所述数据库资源可用区的所述剩余同步节点,对所述数据库资源可用区中的所述剩余同步节点进行所述配置信息的同步更新。Based on the storage location of the remaining synchronization nodes in the database resource available area excluding the first synchronization node, consul is used to send the configuration information to the remaining synchronization nodes in the database resource available area, and the database resource The remaining synchronization nodes in the available zone perform synchronization update of the configuration information.
  19. 根据权利要求16所述的计算机可读存储介质,其中,所述根据所述配置信息,在所述数据库资源可用区生成或修改数据库接入层中间件,包括:The computer-readable storage medium according to claim 16, wherein said generating or modifying database access layer middleware in said database resource available area according to said configuration information comprises:
    采用consul-template的观察机制对全部同步节点进行监听,其中,所述全部同步节点包括所述第一同步节点和所述剩余同步节点;Monitor all synchronization nodes by adopting a consul-template observation mechanism, where all synchronization nodes include the first synchronization node and the remaining synchronization nodes;
    当监听确定所述全部同步节点的历史配置信息与当前存储的所述配置信息不相同时,根据所述配置信息在所述数据库资源可用区中对所述数据可接入层中间件的配置进行修改,或者新增所述数据库接入层中间件。When it is determined through monitoring that the historical configuration information of all synchronization nodes is not the same as the currently stored configuration information, the configuration of the data access layer middleware is performed in the available area of the database resource according to the configuration information Modify or add the database access layer middleware.
  20. 根据权利要求16-19任意一项所述的计算机可读存储介质,其中,所述根据所述配置信息,采用pacemaker对所述数据库接入层中间件进行调度,包括:The computer-readable storage medium according to any one of claims 16-19, wherein the scheduling of the database access layer middleware by using pacemaker according to the configuration information comprises:
    通过字段匹配,从所述配置信息中确定资源调度信息;Determine resource scheduling information from the configuration information through field matching;
    根据所述资源调度信息,采用所述pacemaker对所述数据库接入层中间件进行调度。According to the resource scheduling information, the pacemaker is used to schedule the database access layer middleware.
PCT/CN2020/117425 2020-02-24 2020-09-24 Automatic scheduling method and apparatus for database access layer middleware WO2021169264A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010112926.5 2020-02-24
CN202010112926.5A CN111339194A (en) 2020-02-24 2020-02-24 Automatic scheduling method and device for middleware of database access layer

Publications (1)

Publication Number Publication Date
WO2021169264A1 true WO2021169264A1 (en) 2021-09-02

Family

ID=71181776

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/117425 WO2021169264A1 (en) 2020-02-24 2020-09-24 Automatic scheduling method and apparatus for database access layer middleware

Country Status (2)

Country Link
CN (1) CN111339194A (en)
WO (1) WO2021169264A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111339194A (en) * 2020-02-24 2020-06-26 平安科技(深圳)有限公司 Automatic scheduling method and device for middleware of database access layer
CN111930789A (en) * 2020-09-21 2020-11-13 北京东方通软件有限公司 Automatic scheduling method and device for middleware of database access layer
CN112615912B (en) * 2020-12-11 2022-07-12 中国建设银行股份有限公司 Node scheduling processing method and device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6195685B1 (en) * 1998-05-22 2001-02-27 International Business Machines Corporation Flexible event sharing, batching, and state consistency mechanisms for interactive applications
CN101727496A (en) * 2010-01-15 2010-06-09 山东高效能服务器和存储研究院 Method for realizing load balancing cluster of MICROSOFT SQL SERVER database
CN106341454A (en) * 2016-08-23 2017-01-18 世纪龙信息网络有限责任公司 Across-room multiple-active distributed database management system and across-room multiple-active distributed database management method
CN110309231A (en) * 2019-07-12 2019-10-08 焦点科技股份有限公司 A kind of method of data synchronization and system across computer room
CN111339194A (en) * 2020-02-24 2020-06-26 平安科技(深圳)有限公司 Automatic scheduling method and device for middleware of database access layer

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6195685B1 (en) * 1998-05-22 2001-02-27 International Business Machines Corporation Flexible event sharing, batching, and state consistency mechanisms for interactive applications
CN101727496A (en) * 2010-01-15 2010-06-09 山东高效能服务器和存储研究院 Method for realizing load balancing cluster of MICROSOFT SQL SERVER database
CN106341454A (en) * 2016-08-23 2017-01-18 世纪龙信息网络有限责任公司 Across-room multiple-active distributed database management system and across-room multiple-active distributed database management method
CN110309231A (en) * 2019-07-12 2019-10-08 焦点科技股份有限公司 A kind of method of data synchronization and system across computer room
CN111339194A (en) * 2020-02-24 2020-06-26 平安科技(深圳)有限公司 Automatic scheduling method and device for middleware of database access layer

Also Published As

Publication number Publication date
CN111339194A (en) 2020-06-26

Similar Documents

Publication Publication Date Title
WO2021169264A1 (en) Automatic scheduling method and apparatus for database access layer middleware
JP5074516B2 (en) ZEROOSINGLEPOINTOFFAILULOADLOADLANCANCER EQUIPMENT AND METHOD FOR ZERO SINGLE POINT LOAD BALANCER
US11579907B2 (en) Acceleration management node, acceleration node, client, and method
US7415522B2 (en) Extensible framework for transferring session state
US5920692A (en) Method and system for a remote notification service for a multi-user server architecture
WO2019184116A1 (en) Method and device for automatically building kubernetes main node, terminal device and computer-readable storage medium
US10917294B2 (en) Network function instance management method and related device
US20180176088A1 (en) Virtualized network function monitoring
US8849947B1 (en) IT discovery of virtualized environments by scanning VM files and images
WO2018045541A1 (en) Optimization method for container allocation and processing device
WO2016155023A1 (en) Network management system, device and method
WO2022257247A1 (en) Data processing method and apparatus, and computer-readable storage medium
CN116800616B (en) Management method and related device of virtualized network equipment
CN110417876A (en) Node server and main control device in session method, distributed system
JP4976128B2 (en) Transparent session transport between servers
WO2023184917A1 (en) Computing power information processing method and system and computing power gateway
US10379918B2 (en) System and method for MPI implementation in an embedded operating system
CN108347341A (en) A kind of acceleration capacity method of adjustment and device for adjusting virtual machine acceleration capacity
CN114979286A (en) Access control method, device and equipment for container service and computer storage medium
CN111858079B (en) Distributed lock migration method and device, electronic equipment and storage medium
CN111416852A (en) Method for session synchronization among multiple load balancers and load balancer
CN113676502B (en) Application service access method, device and storage medium
Xiong et al. Amino-a distributed runtime for applications running dynamically across device, edge and cloud
JP2007507762A (en) Transparent server-to-server transport of stateless sessions
EP4109255A1 (en) Scheduling in a container orchestration system utilizing hardware topology hints

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: 20921532

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: 20921532

Country of ref document: EP

Kind code of ref document: A1