I want to use Docker to deploy Weaviate on two machines,The starting command for Docker is:
my node1 machine docker run this ,
docker run --name weaviate-node1 \
-p 6080:8080 \
-p 6081:6081 \
-p 6082:6082 \
-e "AUTHENTICATION_APIKEY_ENABLED=true" \
-e "AUTHENTICATION_APIKEY_ALLOWED_KEYS=A1iB0t_d4m0" \
-e "AUTHENTICATION_APIKEY_USERS=admin" \
-e "PERSISTENCE_DATA_PATH=/root/weaviate/data" \
-e "AUTHORIZATION_ADMINLIST_USERS=admin" \
-e "CLUSTER_HOSTNAME=weaviate-node1" \
-e "CLUSTER_GOSSIP_BIND_PORT=6081" \
-e "CLUSTER_DATA_BIND_PORT=6082" \
-d semitechnologies/weaviate:1.20.5
node 1 From the logs, it appears that the startup was successful
but node 2 i run this :
docker run --name weaviate-node2 \
-p 7080:8080 \
-p 7081:7081 \
-p 7082:7082 \
-e "AUTHENTICATION_APIKEY_ENABLED=true" \
-e "AUTHENTICATION_APIKEY_ALLOWED_KEYS=A1iB0t_d4m0" \
-e "AUTHENTICATION_APIKEY_USERS=admin" \
-e "PERSISTENCE_DATA_PATH=/root/weaviate/data" \
-e "AUTHORIZATION_ADMINLIST_USERS=admin" \
-e "CLUSTER_HOSTNAME=weaviate-node2" \
-e "CLUSTER_GOSSIP_BIND_PORT=7081" \
-e "CLUSTER_DATA_BIND_PORT=7082" \
-e "CLUSTER_JOIN=weaviate-node1-IP:6081" \
-d semitechnologies/weaviate:1.20.5
i got some error
{"action":"startup","error":"could not load or initialize schema: sync schema with other nodes in the cluster: read schema: open transaction: broadcast open transaction: host \"192.168.42.4:6082\": send http request: Post \"http://192.168.42.4:6082/schema/transactions/\": dial tcp 192.168.42.4:6082: connect: connection refused","level":"fatal","msg":"could not initialize schema manager","time":"2023-08-10T07:01:33Z"}
192.168.42.4
is node 2 inner ip
and node 1 i see The following logs
{"level":"info","msg":" memberlist: Suspect weaviate-node2 has failed, no acks received","time":"2023-08-10T07:01:42Z"}
{"level":"info","msg":" memberlist: Marking weaviate-node2 as failed, suspect timeout reached (0 peer confirmations)","time":"2023-08-10T07:01:46Z"}
{"level":"info","msg":" memberlist: Suspect weaviate-node2 has failed, no acks received","time":"2023-08-10T07:01:51Z"}
Where are the issues with these startup commands? Can you help me take a look? Thank you very much