Memory sharing method, container management platform, and 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: 2019-01-15
BEIJING BAIWU TECH CO LTD
View PDF7 Cites 8 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 im

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
  • Memory sharing method, container management platform, and computer-readable storage medium
  • Memory sharing method, container management platform, and computer-readable storage medium
  • Memory sharing method, container management platform, and computer-readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0039] In order to make the objectives, technical solutions, and advantages of the present invention clearer, the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments in the application and the features in the embodiments can be combined with each other arbitrarily if there is no conflict.

[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 a host machine where at least two containers are located, the at least two containers have the same label, so that the memories of the at least two containers share 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.

[0043] Kubernetes is an open source container cluster management system initiated and mai...

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
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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products