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

A memory sharing method, a container management platform, and a computer-readable storage medium

A memory sharing and container management technology, applied in the computer field, can solve problems such as increasing system complexity, increasing system maintenance costs, reducing efficiency, etc., to achieve the effect of solving single point of failure and reducing multiple copies

Active Publication Date: 2020-12-29
BEIJING BAIWU TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the above two methods not only introduce additional components and increase the complexity of the system, but more importantly, the data needs to be copied continuously, which greatly increases the cost of system maintenance and reduces the efficiency

Method used

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A memory sharing method, a container management platform, and a computer-readable storage medium
  • A memory sharing method, a container management platform, and a computer-readable storage medium
  • A memory sharing method, a container management platform, and a computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

[0040] Such as figure 1 As shown, a memory sharing method according to an embodiment of the present invention includes the following steps:

[0041] Step 101: Create a virtual address space on the host machine where at least two containers are located, the at least two containers have the same label, so that the memory of the at least two containers shares the virtual address space;

[0042] In an example of this embodiment, the host where the at least two containers are located is a Kubernetes worker node (Worker Node).

[0043] Kubernetes is an open source container clust...

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

PUM

No PUM Login to View More

Abstract

The invention discloses a memory sharing method, a container management platform and a computer-readable storage medium. The method comprises the following steps: a virtual address space is created ona host machine where at least two containers are located; the at least two containers have the same label, so that the memory of the at least two containers shares the virtual address space; detecting a state of a container accessing the virtual address space; when an accessed container is down, a semaphore for controlling synchronization and mutual exclusion of data accesses between the containers and an operational address of the accessed container in the virtual address space are sent to a container having the same label as the accessed container. The semaphore is used to control synchronization and mutual exclusion of data accesses between the containers. By detecting a state of a container that accesses a virtual address space, when the access container is down, the semaphore and itsoperation address are sent to other containers. On the premise of reducing the front-end multiple distributions, the shared memory among multiple Memcached server nodes is realized, thus solving theproblem of single point failure of Memcached cluster.

Description

technical field [0001] The present invention relates to but not limited to the technical field of computers, and in particular relates to a memory sharing method, a container management platform and a computer-readable storage medium. Background technique [0002] Memcached is a high-performance distributed memory object caching system, which is used for dynamic web (Web) applications to reduce database load. From the initial database retrieval query to the current big data analysis in the scientific research field, its application scope is becoming wider and wider. . However, because there is no communication between the Memcached server and other Memcached servers in the Memcached cluster, and no data backup is performed, when any Memcached server node fails, data loss and reconnection will occur, which will affect the Memcached service. stability. [0003] Prior art is by adding proxy server before Memcached server node, carries out data synchronization to multiple Memc...

Claims

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

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/455G06F9/54
CPCG06F9/45558G06F9/544G06F2009/45583
Inventor 张建伟靳春孟邵洪润邓林青
Owner BEIJING BAIWU TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products