mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
![]() Separate the hostname from the node identifier. All the messages that are exchanged on the network are containing a nodeName field that today was hostname-uniqueid. Now being encoded as strings in the protobuf without any length restriction they plays a role on the effieciency of protocol itself. If the hostname is very long the overhead will increase and will degradate the performance of the database itself that each single cycle by default allows 1400 bytes payload Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com> |
||
---|---|---|
.. | ||
dbclient | ||
dbserver | ||
dummyclient | ||
Dockerfile | ||
README | ||
testMain.go |
SERVER cd test/networkdb env GOOS=linux go build -v testMain.go && docker build -t fcrisciani/networkdb-test . (only for testkit case) docker push fcrisciani/networkdb-test Run server: docker service create --name testdb --network net1 --replicas 3 --env TASK_ID="{{.Task.ID}}" -p mode=host,target=8000 fcrisciani/networkdb-test server 8000 CLIENT cd test/networkdb Join cluster: docker run -it --network net1 fcrisciani/networkdb-test client join testdb 8000 Join network: docker run -it --network net1 fcrisciani/networkdb-test client join-network testdb 8000 test Run test: docker run -it --network net1 fcrisciani/networkdb-test client write-delete-unique-keys testdb 8000 test tableBla 3 10 check table: curl "localhost:32768/gettable?nid=test&tname=table_name"