CN115277838B - Cloud cache database service method, device, equipment and readable storage medium - Google Patents

Cloud cache database service method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN115277838B
CN115277838B CN202210898911.5A CN202210898911A CN115277838B CN 115277838 B CN115277838 B CN 115277838B CN 202210898911 A CN202210898911 A CN 202210898911A CN 115277838 B CN115277838 B CN 115277838B
Authority
CN
China
Prior art keywords
service
service instance
socket
instance node
access
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210898911.5A
Other languages
Chinese (zh)
Other versions
CN115277838A (en
Inventor
章清亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianyi Cloud Technology Co Ltd
Original Assignee
Tianyi Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianyi Cloud Technology Co Ltd filed Critical Tianyi Cloud Technology Co Ltd
Priority to CN202210898911.5A priority Critical patent/CN115277838B/en
Publication of CN115277838A publication Critical patent/CN115277838A/en
Application granted granted Critical
Publication of CN115277838B publication Critical patent/CN115277838B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/252Integrating or interfacing systems involving database management systems between a Database Management System and a front-end application
    • 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/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Abstract

The cloud cache database service method, device and equipment and readable storage medium provided by the embodiment of the invention comprise the following steps: receiving a service request of a client through access service of a unified access layer; determining corresponding cloud cache service data through a target service instance node; the target service instance node determines a service instance node corresponding to a real socket corresponding to a virtual socket of a service request according to the corresponding relation between the virtual socket and the real socket through an access service; the corresponding relation is generated by a management and control center and configured in the access service; the virtual socket is generated by a management and control center; the real socket is used for creating a service instance node in the resource pool by calling the internal proxy service after the access service is deployed in the unified access layer and the internal proxy service is deployed in the resource pool through the management and control center, and the service instance node is determined in the creation process; the resource pool comprises at least one cloud cache database; and returning the cloud cache business data to the client through the access service.

Description

Cloud cache database service method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a cloud cache database service method, apparatus, device, and readable storage medium.
Background
Currently, when a service is implemented on a client, a mainstream cloud cache database generally needs direct access to a single instance node or direct access to a proxy node inside a cluster instance by the client. If the cloud cache database is formed by combining a plurality of different database schemes, users are required to respectively adapt service nodes of different implementation schemes. Thus, development workload is large for users, and experience is not friendly enough.
Disclosure of Invention
The embodiment of the invention provides a cloud cache database service method, device and equipment and a readable storage medium, which are used for solving the problem of inconvenient adaptation between cloud cache databases of different software versions and clients in the prior art.
The embodiment of the invention provides a cloud cache database service method, which comprises the following steps:
receiving a service request of a client to a target service through the access service of the unified access layer;
determining cloud cache service data corresponding to the service request through a target service instance node; the target service instance node determines a service instance node corresponding to a real socket corresponding to a virtual socket of the target service indicated by the service request according to the corresponding relation between the virtual socket and the real socket through the access service; the corresponding relation is generated by a management and control center and configured in the access service, and the virtual socket is generated by the management and control center; the real socket is formed by the steps that after the control center deploys access service in a unified access layer and internal proxy service in a resource pool according to a received service instance opening instruction, the internal proxy service is called to create a service instance node of a service corresponding to the service instance opening instruction in the resource pool, and the service instance node is determined in the creation process; wherein the resource pool comprises at least one cloud cache database;
and returning the cloud cache service data provided by the service instance node to the client through the access service.
Optionally, the method further comprises:
and when the management and control center determines that the access configuration modification condition is met, updating the corresponding relation between the real socket and the virtual socket of at least part of service instance nodes and the real socket, and configuring the updated corresponding relation to the corresponding access service.
Optionally, the service instance node of any service includes a main service instance node and at least one standby service instance node;
determining, by the access service according to a correspondence between a virtual socket and a real socket, a service instance node corresponding to the real socket corresponding to the virtual socket of the target service indicated by the service request, where the determining includes:
after determining a real socket of a main service instance node corresponding to the virtual socket indicated by the service request according to the corresponding relation between the virtual socket and the real socket through the access service, if the main service instance node corresponding to the real socket is normally accessed, determining that the main service instance node is the target service instance node;
if the main service instance node corresponding to the real socket cannot be normally accessed, determining a real socket of a standby service instance node corresponding to the virtual socket indicated by the service request according to the corresponding relation between the virtual socket and the real socket through the access service, and determining the standby service instance node as the target service instance node.
Optionally, the access configuration modification condition includes at least one of:
receiving a capacity expansion instruction of a service instance node of at least part of services through the management and control center;
receiving a capacity shrinking instruction of a service instance node of at least part of services through the management and control center;
receiving a node switching instruction for at least part of service instance nodes through the management and control center;
and receiving a fault transfer instruction to at least part of service instance nodes through the management and control center.
Based on the same inventive concept, the embodiment of the invention also provides a cloud cache database service device, which comprises:
the receiving unit is used for receiving a service request of the client to the target service through the access service of the unified access layer;
the matching unit is used for determining cloud cache service data corresponding to the service request through a target service instance node; the target service instance node determines a service instance node corresponding to a real socket corresponding to a virtual socket of the target service indicated by the service request according to the corresponding relation between the virtual socket and the real socket through the access service; the corresponding relation is generated by a management and control center and configured in the access service, and the virtual socket is generated by the management and control center; the real socket is formed by the steps that after the control center deploys access service in a unified access layer and internal proxy service in a resource pool according to a received service instance opening instruction, the internal proxy service is called to create a service instance node of a service corresponding to the service instance opening instruction in the resource pool, and the service instance node is determined in the creation process; wherein the resource pool comprises at least one cloud cache database;
and the implementation unit is used for returning the cloud cache service data provided by the service instance node to the client through the access service.
Optionally, the apparatus further comprises:
and the updating unit is used for updating the corresponding relation between the real socket and the virtual socket of at least part of service instance nodes and the real socket when the management and control center determines that the access configuration modification condition is met, and configuring the updated corresponding relation to the corresponding access service.
Optionally, the service instance node of any service includes a main service instance node and at least one standby service instance node;
determining, by the access service according to a correspondence between a virtual socket and a real socket, a service instance node corresponding to the real socket corresponding to the virtual socket of the target service indicated by the service request, where the determining includes:
after determining a real socket of a main service instance node corresponding to the virtual socket indicated by the service request according to the corresponding relation between the virtual socket and the real socket through the access service, if the main service instance node corresponding to the real socket is normally accessed, determining that the main service instance node is the target service instance node;
if the main service instance node corresponding to the real socket cannot be normally accessed, determining a real socket of a standby service instance node corresponding to the virtual socket indicated by the service request according to the corresponding relation between the virtual socket and the real socket through the access service, and determining the standby service instance node as the target service instance node.
Optionally, the access configuration modification condition includes at least one of:
receiving a capacity expansion instruction of a service instance node of at least part of services through the management and control center;
receiving a capacity shrinking instruction of a service instance node of at least part of services through the management and control center;
receiving a node switching instruction for at least part of service instance nodes through the management and control center;
and receiving a fault transfer instruction to at least part of service instance nodes through the management and control center.
Based on the same inventive concept, an embodiment of the present invention further provides an electronic device, including: a processor and a memory for storing instructions executable by the processor;
the processor is configured to execute the instructions to implement the cloud cache database service method.
Based on the same inventive concept, the embodiment of the invention also provides a readable storage medium, wherein the readable storage medium stores a computer program, and the computer program is used for realizing the cloud cache database service method.
The invention has the following beneficial effects:
according to the cloud cache database service method, device and equipment and the readable storage medium, an access layer is used for facing a client side aiming at the most widely used Redis cloud cache database and the cloud cache database correspondingly derived, so that the client side is not directly connected with the database of the bottom layer, abstract access to the bottom layer resource node is realized, isolation safety of bottom layer host resources is improved, meanwhile, the client side of the upper layer does not need to care about a specific software version of the cloud cache database of the bottom layer, and suitability of the client side is improved.
Drawings
FIG. 1 is one of partial flowcharts of a cloud cache database service method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a cloud cache database service system according to an embodiment of the present invention;
FIG. 3 is a second flowchart of a portion of a method for servicing a cloud cache database according to an embodiment of the present invention;
FIG. 4 is a third flowchart of a portion of a method for servicing a cloud cache database according to an embodiment of the present invention;
fig. 5 is a schematic diagram of determining an effect of a target service instance node in an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a cloud cache database service device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the invention will be readily understood, a further description of the invention will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings. However, the exemplary embodiments can be embodied in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and thus a repetitive description thereof will be omitted. The words expressing the positions and directions described in the present invention are described by taking the drawings as an example, but can be changed according to the needs, and all the changes are included in the protection scope of the present invention. The drawings of the present invention are merely schematic representations of relative positional relationships and are not intended to represent true proportions.
It is noted that in the following description, specific details are set forth in order to provide a thorough understanding of the present invention. The present invention may be embodied in many other forms than those herein described, and those skilled in the art may readily devise numerous other arrangements that do not depart from the spirit of the invention. Therefore, the present invention is not limited by the specific embodiments disclosed below. The description hereinafter sets forth the preferred embodiment for carrying out the present application, but is not intended to limit the scope of the present application in general, for the purpose of illustrating the general principles of the present application. The scope of the present application is defined by the appended claims.
The cloud cache database service method, the cloud cache database service device, the electronic equipment and the computer readable storage medium provided by the embodiment of the invention are specifically described below with reference to the accompanying drawings.
The embodiment of the invention provides a cloud cache database service method. Wherein the method is divided into a setup part and a service part. As shown in fig. 1, the step of performing the setup phase includes:
s101, after receiving a service instance opening instruction generated by a user through the management and control center, deploying access service in a unified access layer and deploying internal proxy service in a resource pool according to the service instance opening instruction. Wherein the resource pool comprises at least one cloud cache database.
In a specific implementation process, the management and control center can be based on services provided by the MemDB cloud cache database and a ZooKeeper design. The control center provides one or more visual pages (for example, the control center provides two different management console pages for a common user and an operation and maintenance manager respectively), and the user generates a service instance opening instruction in the form of a product instance construction list by operating on the visual pages. Then the management and control center may set up a MySQL database for saving the visualization page data. As shown in fig. 2, the unified access layer may be designed based on keepalive and HaProxy, and then the access service may be a haproxy+keepalive service. The resource pool is composed of cloud cache databases (such as Redis databases) in at least one hardware server, and each cloud cache database can be deployed by selecting the same or different database software versions according to actual needs.
S102, calling the internal proxy service by the management and control center to create a service instance node of a service corresponding to the service instance opening instruction in a resource pool, and determining a real socket of the service instance node in the creation process.
In a specific implementation process, the management and control center uses google remote procedure call (Google Remote Procedure Calls, GRPC) protocol to call an application program interface (Application Program Interface, API) provided by the internal proxy service to create a service instance node of a service corresponding to the service instance opening instruction.
S103, generating a virtual socket corresponding to the service through the management and control center, generating a corresponding relation between the real socket of the service instance node corresponding to the service and the virtual socket corresponding to the service, and configuring the corresponding relation to the access service.
Examples of configuration program code for the Haproxy service and the keepalive service are given below. The specific configuration process can refer to the following program codes and adjust the specific content of each configuration item according to the actual requirement for configuration.
For example, the configuration program code for the Haproxy service is exemplified as follows:
for keepalive services, the configuration program code is exemplified as follows:
after the above-mentioned setting step is completed, as shown in fig. 3, the steps in the service stage include:
s210, receiving a service request of the client to the target service through the access service of the unified access layer.
S220, determining a service instance node corresponding to a real socket corresponding to the virtual socket of the target service indicated by the service request as a target service instance node according to the corresponding relation between the virtual socket and the real socket through the access service, and determining cloud cache service data corresponding to the service request through the target service instance node.
And S230, returning the cloud cache service data provided by the service instance node to the client through the access service.
Therefore, by the method provided by the embodiment of the invention, aiming at the currently most widely used Redis cloud cache database and the corresponding derived cloud cache database, an access layer is used for facing the client, so that the client is not directly connected with the database of the bottom layer, abstract access to the bottom layer resource node is realized, isolation security of the bottom layer host resource is improved, meanwhile, the client side of the upper layer does not need to care about the specific software version of the cloud cache database of the bottom layer, and suitability of the client side is improved.
Optionally, the method further comprises:
and S240, when the management and control center determines that the access configuration modification condition is met, updating the corresponding relation between the real socket and the virtual socket of at least part of service instance nodes and the real socket, and configuring the updated corresponding relation to the corresponding access service.
Further, the access configuration modification condition includes at least one of:
receiving a capacity expansion instruction of a service instance node of at least part of services through the management and control center;
receiving a capacity shrinking instruction of a service instance node of at least part of services through the management and control center;
receiving a node switching instruction for at least part of service instance nodes through the management and control center;
and receiving a fault transfer instruction to at least part of service instance nodes through the management and control center.
Therefore, the unified access layer can support data migration operations such as bottom layer resource node switching, transverse expansion and contraction, failover and the like, so that no perception is caused to a client side, convenience in upper layer butt joint is improved, and user experience is enhanced.
Optionally, the service instance node of any service includes a primary service instance node and at least one backup service instance node.
As shown in fig. 4, in step S220, determining, by the access service according to the correspondence between the virtual socket and the real socket, that the service instance node corresponding to the real socket of the target service indicated by the service request is the target service instance node includes:
s221, determining the real socket of the main service example node corresponding to the virtual socket indicated by the service request according to the corresponding relation between the virtual socket and the real socket through the access service.
S222, accessing the main service instance node according to the real socket of the main service instance node, and judging whether the main service instance node can be normally accessed.
If the normal access is possible, step S223 is performed; if the normal access is not possible, step S224 is performed.
S223, determining the main service instance node as the target service instance node.
S224, according to the corresponding relation between the virtual socket and the real socket through the access service, determining the real socket of the standby service instance node corresponding to the virtual socket indicated by the service request, and determining the standby service instance node as the target service instance node.
In a specific implementation process, as shown in fig. 5, the switching between the main service instance node and the standby service instance node may be implemented by using a virtual routing redundancy protocol (Virtual Router Redundancy Protocol, VRRP). For example, the virtual internet protocol (Internet Protocol, IP) address in the virtual socket indicated by the service request is 192.168.1.4, the real IP of the real socket of the corresponding main service instance node is 192.168.1.2, the real IP of the real socket of the corresponding standby service instance node is 192.168.1.3, and the above node switching is implemented by adopting the VRRP protocol through the keepalive+haproxy-based access service, so that the finally determined target service instance node provides service data.
Based on the same inventive concept, the embodiment of the present invention further provides a cloud cache database service device, as shown in fig. 6, including:
a receiving unit U1, configured to receive, by using an access service of the unified access layer, a service request of a client for a target service;
the matching unit U2 is used for determining cloud cache service data corresponding to the service request through a target service instance node; the target service instance node determines a service instance node corresponding to a real socket corresponding to a virtual socket of the target service indicated by the service request according to the corresponding relation between the virtual socket and the real socket through the access service; the corresponding relation is generated by a management and control center and configured in the access service, and the virtual socket is generated by the management and control center; the real socket is formed by the steps that after the control center deploys access service in a unified access layer and internal proxy service in a resource pool according to a received service instance opening instruction, the internal proxy service is called to create a service instance node of a service corresponding to the service instance opening instruction in the resource pool, and the service instance node is determined in the creation process; wherein the resource pool comprises at least one cloud cache database;
and the realizing unit U3 is used for returning the cloud cache service data provided by the service instance node to the client through the access service.
Optionally, the apparatus further comprises:
and the updating unit U4 is used for updating the corresponding relation between the real socket and the virtual socket of at least part of service instance nodes and the real socket when the control center determines that the access configuration modification condition is met, and configuring the updated corresponding relation to the corresponding access service.
Optionally, the service instance node of any service includes a main service instance node and at least one standby service instance node;
determining, by the access service according to a correspondence between a virtual socket and a real socket, a service instance node corresponding to the real socket corresponding to the virtual socket of the target service indicated by the service request, where the determining includes:
after determining a real socket of a main service instance node corresponding to the virtual socket indicated by the service request according to the corresponding relation between the virtual socket and the real socket through the access service, if the main service instance node corresponding to the real socket is normally accessed, determining that the main service instance node is the target service instance node;
if the main service instance node corresponding to the real socket cannot be normally accessed, determining a real socket of a standby service instance node corresponding to the virtual socket indicated by the service request according to the corresponding relation between the virtual socket and the real socket through the access service, and determining the standby service instance node as the target service instance node.
Optionally, the access configuration modification condition includes at least one of:
receiving a capacity expansion instruction of a service instance node of at least part of services through the management and control center;
receiving a capacity shrinking instruction of a service instance node of at least part of services through the management and control center;
receiving a node switching instruction for at least part of service instance nodes through the management and control center;
and receiving a fault transfer instruction to at least part of service instance nodes through the management and control center.
It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice. In addition, each unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
Since the specific manner in which the units of the cloud cache database service apparatus perform the operations has been described in detail in the embodiments related to the cloud cache database service method, the details are not repeated here.
Based on the same inventive concept, an embodiment of the present invention further provides an apparatus, as shown in fig. 7, including: a main processor 110 and a memory 120 for storing instructions executable by the main processor 110; wherein the main processor 110 is configured to execute the instructions to implement the cloud cache database service method.
In particular implementations, the apparatus may vary considerably in configuration or performance and may include one or more processors 110, memory 120, readable storage medium 130, the memory 120 and/or the readable storage medium 130 including one or more applications 131 or data 132. One or more operating systems 133, such as Windows, mac OS, linux, IOS, android, unix, freeBSD, etc., may also be included in the memory 120 and/or the readable storage medium 130. Wherein the memory 120 and the readable storage medium 130 may be transitory or persistent storage. The application 131 may include one or more of the units (not shown in fig. 7), each of which may include a series of instruction operations. Still further, the processor 110 may be arranged to communicate with a readable storage medium 130 on which a series of instruction operations in the readable storage medium 130 are executed. The device may also include one or more power sources (not shown in fig. 7); one or more network interfaces 140, the network interfaces 140 comprising a wired network interface 141 and/or a wireless network interface 142; one or more input/output interfaces 143.
Based on the same inventive concept, the embodiment of the invention also provides a readable storage medium, wherein the readable storage medium stores a computer program, and the computer program is used for realizing the cloud cache database service method.
According to the cloud cache database service method, device and equipment and the readable storage medium, an access layer is used for facing a client side aiming at the most widely used Redis cloud cache database and the cloud cache database correspondingly derived, so that the client side is not directly connected with the database of the bottom layer, abstract access to the bottom layer resource node is realized, isolation safety of bottom layer host resources is improved, meanwhile, the client side of the upper layer does not need to care about a specific software version of the cloud cache database of the bottom layer, and suitability of the client side is improved.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (10)

1. The cloud cache database service method is characterized by comprising the following steps of:
receiving a service request of a client to a target service through access service of a unified access layer;
determining cloud cache service data corresponding to the service request through a target service instance node; the target service instance node determines a service instance node corresponding to a real socket corresponding to a virtual socket of the target service indicated by the service request according to the corresponding relation between the virtual socket and the real socket through the access service; the corresponding relation is generated by a management and control center and configured in the access service; the virtual socket is generated by the control center; the real socket is formed by the steps that after the control center deploys access service in a unified access layer and internal proxy service in a resource pool according to a received service instance opening instruction, the internal proxy service is called to create a service instance node of a service corresponding to the service instance opening instruction in the resource pool, and the service instance node is determined in the creation process; wherein the resource pool comprises at least one cloud cache database;
and returning the cloud cache service data provided by the service instance node to the client through the access service.
2. The method of claim 1, wherein the method further comprises:
and when the management and control center determines that the access configuration modification condition is met, updating the corresponding relation between the real socket and the virtual socket of at least part of service instance nodes and the real socket, and configuring the updated corresponding relation to the corresponding access service.
3. The method of claim 1, wherein the service instance nodes of any service include a master service instance node and at least one backup service instance node;
determining, by the access service according to a correspondence between a virtual socket and a real socket, a service instance node corresponding to the real socket corresponding to the virtual socket of the target service indicated by the service request, where the determining includes:
after determining a real socket of a main service instance node corresponding to the virtual socket indicated by the service request according to the corresponding relation between the virtual socket and the real socket through the access service, if the main service instance node corresponding to the real socket is normally accessed, determining that the main service instance node is the target service instance node;
if the main service instance node corresponding to the real socket cannot be normally accessed, determining a real socket of a standby service instance node corresponding to the virtual socket indicated by the service request according to the corresponding relation between the virtual socket and the real socket through the access service, and determining the standby service instance node as the target service instance node.
4. The method of claim 2, wherein the access configuration modification condition comprises at least one of:
receiving a capacity expansion instruction of a service instance node of at least part of services through the management and control center;
receiving a capacity shrinking instruction of a service instance node of at least part of services through the management and control center;
receiving a node switching instruction for at least part of service instance nodes through the management and control center;
and receiving a fault transfer instruction to at least part of service instance nodes through the management and control center.
5. A cloud cache database service apparatus, comprising:
the receiving unit is used for receiving the service request of the client to the target service through the access service of the unified access layer;
the matching unit is used for determining cloud cache service data corresponding to the service request through a target service instance node; the target service instance node determines a service instance node corresponding to a real socket corresponding to a virtual socket of the target service indicated by the service request according to the corresponding relation between the virtual socket and the real socket through the access service; the corresponding relation is generated by a management and control center and configured in the access service; the virtual socket is generated by the control center; the real socket is formed by the steps that after the control center deploys access service in a unified access layer and internal proxy service in a resource pool according to a received service instance opening instruction, the internal proxy service is called to create a service instance node of a service corresponding to the service instance opening instruction in the resource pool, and the service instance node is determined in the creation process; wherein the resource pool comprises at least one cloud cache database;
and the implementation unit is used for returning the cloud cache service data provided by the service instance node to the client through the access service.
6. The apparatus of claim 5, wherein the apparatus further comprises:
and the updating unit is used for updating the corresponding relation between the real socket and the virtual socket of at least part of service instance nodes and the real socket when the management and control center determines that the access configuration modification condition is met, and configuring the updated corresponding relation to the corresponding access service.
7. The apparatus of claim 5, wherein the service instance nodes of any service comprise a master service instance node and at least one backup service instance node;
determining, by the access service according to a correspondence between a virtual socket and a real socket, a service instance node corresponding to the real socket corresponding to the virtual socket of the target service indicated by the service request, where the determining includes:
after determining a real socket of a main service instance node corresponding to the virtual socket indicated by the service request according to the corresponding relation between the virtual socket and the real socket through the access service, if the main service instance node corresponding to the real socket is normally accessed, determining that the main service instance node is the target service instance node;
if the main service instance node corresponding to the real socket cannot be normally accessed, determining a real socket of a standby service instance node corresponding to the virtual socket indicated by the service request according to the corresponding relation between the virtual socket and the real socket through the access service, and determining the standby service instance node as the target service instance node.
8. The apparatus of claim 6, wherein the access configuration modification condition comprises at least one of:
receiving a capacity expansion instruction of a service instance node of at least part of services through the management and control center;
receiving a capacity shrinking instruction of a service instance node of at least part of services through the management and control center;
receiving a node switching instruction for at least part of service instance nodes through the management and control center;
and receiving a fault transfer instruction to at least part of service instance nodes through the management and control center.
9. An electronic device, comprising: a processor and a memory for storing instructions executable by the processor;
wherein the processor is configured to execute the instructions to implement the cloud cache database service method of any of claims 1-4.
10. A readable storage medium, characterized in that the readable storage medium stores a computer program, which is used to implement the cloud cache database service method according to any of claims 1-4.
CN202210898911.5A 2022-07-28 2022-07-28 Cloud cache database service method, device, equipment and readable storage medium Active CN115277838B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210898911.5A CN115277838B (en) 2022-07-28 2022-07-28 Cloud cache database service method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210898911.5A CN115277838B (en) 2022-07-28 2022-07-28 Cloud cache database service method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN115277838A CN115277838A (en) 2022-11-01
CN115277838B true CN115277838B (en) 2024-01-02

Family

ID=83771737

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210898911.5A Active CN115277838B (en) 2022-07-28 2022-07-28 Cloud cache database service method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN115277838B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101969391A (en) * 2010-10-27 2011-02-09 北京邮电大学 Cloud platform supporting fusion network service and operating method thereof
CN105101324A (en) * 2014-04-30 2015-11-25 华为技术有限公司 Heterogeneous network switching method, functional entity and terminal
CN107690793A (en) * 2015-05-11 2018-02-13 思杰系统有限公司 Micro- VPN tunnellings for mobile platform
CN107819744A (en) * 2017-10-25 2018-03-20 上海润和信息技术服务有限公司 Uniform service and the method and system of coordination based on CS frameworks
EP3664455A1 (en) * 2018-12-05 2020-06-10 Samsung Electronics Co., Ltd. Electronic apparatus, server and method of controlling the same
CN112712741A (en) * 2020-12-31 2021-04-27 中孚安全技术有限公司 Safety management training system, method and terminal
CN114048409A (en) * 2021-11-16 2022-02-15 广州市网星信息技术有限公司 Cache management method and device, computing equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101969391A (en) * 2010-10-27 2011-02-09 北京邮电大学 Cloud platform supporting fusion network service and operating method thereof
CN105101324A (en) * 2014-04-30 2015-11-25 华为技术有限公司 Heterogeneous network switching method, functional entity and terminal
CN107690793A (en) * 2015-05-11 2018-02-13 思杰系统有限公司 Micro- VPN tunnellings for mobile platform
CN107819744A (en) * 2017-10-25 2018-03-20 上海润和信息技术服务有限公司 Uniform service and the method and system of coordination based on CS frameworks
EP3664455A1 (en) * 2018-12-05 2020-06-10 Samsung Electronics Co., Ltd. Electronic apparatus, server and method of controlling the same
CN112712741A (en) * 2020-12-31 2021-04-27 中孚安全技术有限公司 Safety management training system, method and terminal
CN114048409A (en) * 2021-11-16 2022-02-15 广州市网星信息技术有限公司 Cache management method and device, computing equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"IMS构架下物联网终端的异构接入技术研究";南云龙;《中国优秀硕士学位论文全文数据库 (信息科技辑)》;I136-2097 *
"基于OPC的工业设备Web监测系统设计与开发";赵策;《中国优秀硕士学位论文全文数据库 (信息科技辑)》;I139-291 *

Also Published As

Publication number Publication date
CN115277838A (en) 2022-11-01

Similar Documents

Publication Publication Date Title
KR102628362B1 (en) Live migration of clusters in containerized environments
US11855904B2 (en) Automated migration of compute instances to isolated virtual networks
US11237815B2 (en) Service pool architecture for multitenant services to support canary release
US10148736B1 (en) Executing parallel jobs with message passing on compute clusters
US20180365074A1 (en) Thread pool management
US8892945B2 (en) Efficient application management in a cloud with failures
US11368407B2 (en) Failover management using availability groups
CN111277432B (en) Configuration information updating method and device, electronic equipment and storage medium
US9268588B2 (en) Optimizing virtual machine migration via identification and treatment of virtual memory swap file
WO2011156922A1 (en) Method and system for workload distributing and processing across a network of replicated virtual machines
US10673694B2 (en) Private network mirroring
US20220100550A1 (en) Accelerator Loading Method, System, and Apparatus
US20200412829A1 (en) Data Caching For Cloud Services
US10771570B2 (en) Scalable message passing architecture a cloud environment
CN113971095A (en) KUBERNETES application program interface in extended process
CN108089913A (en) A kind of virtual machine deployment method of super emerging system
US20070124573A1 (en) Method for rapid startup of a computer system
CN109814946B (en) Method and device for realizing distributed storage in XenServer
CN112804375B (en) Configuration method for single network card and multiple IPs
US11494184B1 (en) Creation of transportability container files for serverless applications
US11210347B2 (en) Object search with pagination and non-duplicates support
CN115277838B (en) Cloud cache database service method, device, equipment and readable storage medium
US11838362B2 (en) Data object delivery for distributed cluster computing
US11513833B1 (en) Event listener interface for container-based execution of serverless functions
CN112000437A (en) Disaster recovery method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant