Skip to content
Snippets Groups Projects
  • Damian Nowak's avatar
    f8a59446
    Enable OOM killing · f8a59446
    Damian Nowak authored
    When etcd exceeds its memory limit, it becomes useless but keeps running.
    We should let OOM killer kill etcd process in the container, so systemd can spot
    the problem and restart etcd according to "Restart" setting in etcd.service unit file.
    If OOME problem keep repeating, i.e. it happens every single restart,
    systemd will eventually back off and stop restarting it anyway.
    
    --restart=on-failure:5 in this file has no effect because memory allocation error
    doesn't by itself cause the process to die
    
    Related: https://github.com/kubernetes-incubator/kubespray/blob/master/roles/etcd/templates/etcd-docker.service.j2
    
    This kind of reverts a change introduced in #1860.
    f8a59446
    History
    Enable OOM killing
    Damian Nowak authored
    When etcd exceeds its memory limit, it becomes useless but keeps running.
    We should let OOM killer kill etcd process in the container, so systemd can spot
    the problem and restart etcd according to "Restart" setting in etcd.service unit file.
    If OOME problem keep repeating, i.e. it happens every single restart,
    systemd will eventually back off and stop restarting it anyway.
    
    --restart=on-failure:5 in this file has no effect because memory allocation error
    doesn't by itself cause the process to die
    
    Related: https://github.com/kubernetes-incubator/kubespray/blob/master/roles/etcd/templates/etcd-docker.service.j2
    
    This kind of reverts a change introduced in #1860.