classicswarm icon indicating copy to clipboard operation
classicswarm copied to clipboard

"swap limit capabilities" fail task

Open zymtx5g79k opened this issue 8 years ago • 1 comments

An option resources in deploy section allow to fail task after several (5-10) http requests to container.

journalctl -f -u docker.service

Dec 12 17:26:05 box-12280 dockerd[986]: time="2017-12-12T17:26:05.590714847+03:00" level=warning msg="Your kernel does not support swap limit capabilities,or the cgroup is not mounted. Memory limited without swap."
Dec 12 17:26:21 box-12280 dockerd[986]: time="2017-12-12T17:26:21.912492289+03:00" level=warning msg="Your kernel does not support swap limit capabilities,or the cgroup is not mounted. Memory limited without swap."
Dec 12 17:26:33 box-12280 dockerd[986]: time="2017-12-12T17:26:33.854011566+03:00" level=error msg="fatal task error" error="task: non-zero exit (1)" module="node/agent/taskmanager" node.id=brl973mia7iiirzwis8zliqy9 service.id=ndre6ij1ybqthqum678pnhpv8 task.id=vii5t6u3ilmp5595pdabc0dzd
Dec 12 17:26:34 box-12280 dockerd[986]: time="2017-12-12T17:26:34.070025675+03:00" level=warning msg="Your kernel does not support swap limit capabilities,or the cgroup is not mounted. Memory limited without swap."

uname -a

Linux box-12280 4.4.0-103-generic #126-Ubuntu SMP Mon Dec 4 16:23:28 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

docker version

Client:
 Version:      17.09.0-ce
 API version:  1.32
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:42:18 2017
 OS/Arch:      linux/amd64

Server:
 Version:      17.09.0-ce
 API version:  1.32 (minimum version 1.12)
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:40:56 2017
 OS/Arch:      linux/amd64
 Experimental: false

docker-compose.yml

networks:
  somenet:
    driver: overlay
    attachable: true

services:
  someservice:
    deploy:
      resources:
        limits:  # 
          cpus: '0.25'
          memory: 50M
      placement:
        constraints:
          - node.hostname == box-12280
    image: some.registry/someservice
    ports:
      - 8000:8000
    networks:
      - somenet
    volumes:
      - stage-nm:/var/dir/node_modules
      - stage-bc:/var/dir/app/bower_components
version: '3.4'
volumes:
  stage-nm:
  stage-bc:

Dockerfile

FROM ubuntu:latest

RUN apt -y update --fix-missing
RUN apt install -y nano git curl make python g++ nodejs npm --no-install-recommends

RUN ln -s /usr/bin/nodejs /usr/bin/node

RUN npm install bower -g

ADD app /var/dir/app
ADD .bowerrc .bowerrc bower.json package.json /var/dir/

VOLUME ["/var/dir/node_modules", "/var/dir/app/bower_components"]

WORKDIR /var/dir

EXPOSE 8000

ENTRYPOINT ["npm"]
CMD ["start"]

zymtx5g79k avatar Dec 12 '17 15:12 zymtx5g79k

@zymtx5g79k please open this issue on https://www.github.com/moby/moby. Sorry for the trouble.

nishanttotla avatar Apr 12 '18 17:04 nishanttotla