Unlock instant, AI-driven research and patent intelligence for your innovation.

Container service scheduling method and apparatus

A scheduling method and technology for a scheduling device, applied in the computer field, can solve problems such as port conflicts, and achieve the effects of improving efficiency, avoiding waste of resources, and avoiding port conflicts.

Active Publication Date: 2018-12-18
HUAWEI CLOUD COMPUTING TECH CO LTD
View PDF4 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The ports used by the services on the container for communication are usually specified by the application running the service. Then, when the services of multiple containers run the same application, each service running on each container needs to be specified by the application. Since the containers in the same container group share the same network namespace, when the services of each container in the same container group run the same application, each service needs to be bound to the same port in the same network namespace , causing a port conflict

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
  • Container service scheduling method and apparatus
  • Container service scheduling method and apparatus
  • Container service scheduling method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0057] The technical solution in this application will be described below with reference to the accompanying drawings.

[0058] The container service scheduling method, container scheduling device, and management device provided in the embodiments of the present application can be applied to various large-scale computing scenarios, such as big data processing, deep learning, and the like.

[0059] figure 1 It is a schematic diagram of a container system 100 applicable to the embodiment of the present application. It includes scheduling node 110 , service node 120 and container group 121 . These parts are described in detail below.

[0060] Scheduling node 110: a central control node in the container system, which controls resource scheduling and task execution of the entire container system.

[0061] Specifically, the scheduling service running on the scheduling node 110 can complete resource scheduling and task execution of the entire container system.

[0062] Service no...

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 present application provides a service scheduling method of a container, a scheduling apparatus and a management apparatus of the container. The service scheduling method of the container includes: firstly creating a container group, the container group including at least two containers, for example, a first container and a second container; depending on the application you want to run, running the service on each container, starting the first container first, a first service of the first container being started when the first container is started, the first service occupying the first port provided by the container group, and then starting the second container, the second service of the second container being started when the second container is started, the second container being provided with a port replacement script, and the port replacement script being used for replacing the first port with the second port provided by the container group. The service scheduling method of thecontainer provided by the present application can avoid port collisions when each container under the same container group starts the service.

Description

technical field [0001] The present application relates to the field of computers, and more specifically, to a container service scheduling method and device. Background technique [0002] In a computer system, a container can be used as a lightweight virtual machine, that is, a container is a virtualization of resources at the operating system level to isolate processes and resources. Depending on the application to be run, running the service on each container can make the application run as if it were running on an independent machine. Container technology effectively divides the resources managed by a single operating system into isolated groups to better balance conflicting resource usage requirements among the isolated groups. Common container technologies include Solaris Zones, BSD Jails, and container technologies on Linux operating systems, among others. [0003] Namespace (NameSpace) is a kernel technology of Linux and the basis of container technology. Wherein, ...

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/50G06F9/455
CPCG06F9/45558G06F9/5027G06F2009/4557
Inventor 王凯
Owner HUAWEI CLOUD COMPUTING TECH CO LTD