Coder Social home page Coder Social logo

[bug] SwarmPit Deploy fails about swarmpit HOT 3 OPEN

typoworx-de avatar typoworx-de commented on May 23, 2024
[bug] SwarmPit Deploy fails

from swarmpit.

Comments (3)

typoworx-de avatar typoworx-de commented on May 23, 2024

cross checked by increasing RAM-memory (in vmware esxi vm) and still deployment is stuck. Additionally I noticed this error in vm-console while trying to deploy swarmpit using ssh-session:
Memory cgroup out of memory: Killed process xxxx (beam.smp)

I don't know if this may have to do with the error thrown inside docker swarm-pit container?!

from swarmpit.

dcasota avatar dcasota commented on May 23, 2024

Hi,

Try the following custom setup. It works flawlessly so far. As first attempt, it does not include any cpu and ram limitations&reservations for the service subcomponents. Those can be added later. In addition it includes a few modifications to avoid culprits which are explained here. Hope this helps.

On Photon OS, clone the swarmpit github repository.

cd $HOME
tdnf install -y git
git clone https://github.com/swarmpit/swarmpit -b master

Replace docker-compose.yml and deploy.

cat > swarmpit/docker-compose.yml << "EOFdockercompose"
version: '3.9'

services:
  app:
    image: swarmpit/swarmpit:1.9
    depends_on:
      - db
    ulimits:
      nofile:
        soft: 65536
        hard: 65536
    environment:
      - SWARMPIT_DB=http://db:5984
      - SWARMPIT_INFLUXDB=http://influxdb:8086
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    ports:
      - 888:8080
    healthcheck:
      test: ["CMD", "curl", "-f", "http://localhost:8080"]
      interval: 60s
      timeout: 10s
      retries: 3
    networks:
      - net
    deploy:
      placement:
        constraints:
          - node.role == manager

  db:
    image: couchdb:2.3.1
    ulimits:
      nofile:
        soft: 65536
        hard: 65536
    volumes:
      - db-data:/opt/couchdb/data
    networks:
      - net

  influxdb:
    image: influxdb:1.7
    volumes:
      - influx-data:/var/lib/influxdb
    networks:
      - net

  agent:
    image: swarmpit/agent:2.2
    depends_on:
      - app
      - db
      - influxdb
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
    networks:
      - net
    deploy:
      labels:
        swarmpit.agent: 'true'

networks:
  net:
    driver: overlay

volumes:
  db-data:
    driver: local
  influx-data:
    driver: local
EOFdockercompose

docker stack deploy -c swarmpit/docker-compose.yml swarmpit

from swarmpit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.