Method for sharing IPC (Information Processing Center) naming space in Pod in Kubernetes
A namespace and unified technology, applied in the field of information processing, can solve the problems that shared memory communication cannot be used, and Kubernetes cannot guarantee that shared memory communication applications are deployed to the same machine.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
Embodiment Construction
[0021] The present invention will be further described below in conjunction with embodiment:
[0022] A method for Pods sharing an IPC namespace in Kubernetes, comprising the following steps:
[0023] Step 1. Add a scheduling policy and deploy producer-pod and consumer-pod to the same host;
[0024] Step 2. At startup, when the pod is a producer-pod, use Kubernetes' native scheduling rules to schedule the producer-pod to the hosts in the cluster; when the pod is a consumer-pod, use the IPCSelector label to find the consumer-pod Dependent producer-pod, associated consumer-pod and producer-pod ipc namespace;
[0025] Step 3. During the use and operation of pods, if any pods are abnormal, use the prefabricated error recovery mechanism to try to process the pods and restore them to a normal state.
[0026] In this embodiment, the step 1 is carried out in the following steps:
[0027] Add predefined labels to hosts; use nodeSelector to deploy producer-pod to hosts that meet the ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More