Rootconf 2017

On service reliability

Ranjith Rajaram

@rrajaram

What should be PID 1 in a container?

Submitted Mar 3, 2017

In a traditional unix systems, PID 1 is usually the init/systemd process. When a container is started, the application becomes PID 1 in its assigned namespace. So the question that arises is " Does it really matter which process becomes PID 1 inside a container ?". PID 1 usually has different roles to play. This talk “What should be PID 1 in a container ?” will discuss about the problem related to process reaping and signal handling. This talk would be beneficial for developers who are planning to containerize the application. Problem related to process reaping,signal handling will be explained with a simple example.

Outline

  1. Quick look at the CMD directive Dockerfile [1 minute]
  2. Demo to visualize the problem [4 minutes]
  3. Discussion on Process reaping [2 minutes]
  4. Demo to visualize signal handling [2 minutes]
  5. Minimal init/systemd [1 minute]
  6. New feature of Docker 1.13 [1 minute]
  7. Systemd in action [2 minutes]

Requirements

Prior knowledge of Containers would be a plus

Speaker bio

Ranjith Rajaram works for Red Hat as a Sr. Principal Tech. Support Engineer. He has 13 years of experience in implementing Linux servers for complex workloads. Active member of Fudcon and was involved in the planning of container track for Fudcon 2015.

Slides

https://docs.google.com/presentation/d/1I5K2i04Dh0kDHvbc8XNpcqmkAiM7tLZ73_P9DdUwUng/pub?start=true&loop=false&delayms=5000

Comments

{{ gettext('Login to leave a comment') }}

{{ gettext('Post a comment…') }}
{{ gettext('New comment') }}
{{ formTitle }}

{{ errorMsg }}

{{ gettext('No comments posted yet') }}

Hosted by

We care about site reliability, cloud costs, security and data privacy