yandeu / docker-swarm-visualizer

🐋 A Visualizer for Docker Swarm using the Docker Engine API and Node.js.
Other
35 stars 9 forks source link

Visualizer breaks #15

Open eznix86 opened 1 week ago

eznix86 commented 1 week ago

I wanted to try out 3 managers on a cluster of 3 nodes. I kill one node to the see the behaviour, the visualizer broke and show only one node.

After killing one node:

Screenshot 2024-06-28 at 01 03 20

Using 3 VM (Ubuntu mutlpass)

Screenshot 2024-06-28 at 01 10 53

This is what I get:

Screenshot 2024-06-28 at 00 59 52

The configuration (taken from the docs)

version: '3.9'

services:
  manager:
    environment:
      - VISUALIZER_TYPE=manager
    image: yandeu/visualizer:dev
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    networks:
      - agent_network
    deploy:
      mode: replicated
      replicas: 1
      placement:
        constraints: [node.role == manager]
    labels:
      - visualizer.manager
    healthcheck:
      test: curl -f http://localhost:3500/healthcheck || exit 1
      interval: 10s
      timeout: 2s
      retries: 3
      start_period: 5s
    ports:
      - '9500:3500'

  agent:
    environment:
      - VISUALIZER_TYPE=agent
    image: yandeu/visualizer:dev
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    networks:
      - agent_network
    deploy:
      mode: global
      placement:
        constraints: [node.platform.os == linux]
    labels:
      - visualizer.agent
    healthcheck:
      test: curl -f http://localhost:9501/healthcheck || exit 1
      interval: 10s
      timeout: 2s
      retries: 3
      start_period: 5s

networks:
  agent_network:
    driver: overlay
    attachable: true
yandeu commented 6 days ago

Is there the same issue then using the rust version? https://github.com/yandeu/docker-swarm-visualizer-rs

eznix86 commented 5 days ago

i will try that !