Port Layout:
Member | Cluster Client Port | Cluster Peer Port | API Port |
---|---|---|---|
writer-001 | 12379 | 12380 | 12381 |
writer-002 | 22379 | 22380 | 22381 |
writer-003 | 32379 | 22380 | 32381 |
reader-004 | - | - | 42381 |
reader-005 | - | - | 52381 |
./start_cluster.sh
Please notice only one server will listen the port 10080 successfully because the members are running on the same machine. But it's fine for the following demoing.
./create_objects.sh
The create_objects.sh
applies the operation creation for all the yaml files under config/
.
It's fine that it applies objects which has already existed.
./update_objects.sh
The update_objects.sh
applies the operation update for all the yaml files under config/
.
It's fine that it applies objects which don't exist.
The check_cluster_status.sh
will list:
- all status of members.
- all objects.
- Using
curl
to test the access-ability of applied services. - Using HTTP-based tool hey for stress-testing the applied services.
./stop_cluster.sh
./clean_eg_cluster.sh
It will ignore step-stop if members have stopped.
go run mirror.go
go run remote.go
Please notice we didn't start backend service in the scripts above, so we testers could observe the situation when the backend is not ready.