Quantcast
Channel: MySQL Forums - NDB clusters
Viewing all articles
Browse latest Browse all 1562

NDB Cluster docker IP addresses (no replies)

$
0
0
I am setting up a 5 node cluster 1 mgmt 1 sql and 3 data nodes I am having issues with the ip address
I have not been able to get docker to bring up the cluster without using the 192.168.0.0/24 network
any suggestions?

this is my docker-compose on the mgmt



Networks:
cluster_lan:
driver: macvlan
driver_opts:
parent: ens19 # your LAN NIC
ipam:
config:
- subnet: 192.168.0.0/24
gateway: 192.168.0.1

volumes:
mgmd-data: {}

services:
management1:
image: container-registry.oracle.com/mysql/community-cluster:8.4
container_name: management1
command: ["ndb_mgmd", "--config-file=/etc/mysql-cluster/config.ini", "--ndb-nodeid=1", "--initial"]
restart: unless-stopped
networks:
cluster_lan:
ipv4_address: 192.168.0.2
volumes:
- ./mysql-cluster/config.ini:/etc/mysql-cluster.cnf:ro
# - ./mysql-cluster/config.ini:/etc/mysql-cluster/config.ini:ro
- mgmd-data:/var/lib/mysql-cluster

# Host-facing proxy: listens on the VM host's :1186 and forwards to 192.168.0.2:1186
mgmd-proxy:
image: alpine/socat
container_name: mgmd-proxy
network_mode: host
restart: unless-stopped
depends_on: [management1]
command: ["TCP-LISTEN:1186,reuseaddr,fork","TCP:192.168.0.2:1186"]

~

Viewing all articles
Browse latest Browse all 1562

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>