Hello.
I used instructions Horizontal scalability | YugabyteDB Docs
-
I ran ./yb-docker-ctl create --rf 3 --num_shards_per_tserver 4
-
I ran
docker run --name yb-sample-apps --hostname yb-sample-apps --net yb-net yugabytedb/yb-sample-apps --workload SqlInserts \ --nodes yb-tserver-n1:5433 \ --num_threads_write 1 \ --num_threads_read 4
-
Everything was fine.
-
I added the node ./yb-docker-ctl add_node --num_shards_per_tserver 4
-
Everything worked, but requests were distributed unevenly: Screenshot by Lightshot (n4 and n1 servers). Why?
-
I deleted the node ./yb-docker-ctl remove_node 4
-
Reading and writing fell to zero 488127 [Thread-1] INFO com.yugabyte.sample.common.metrics.MetricsTracker - Read - Pastebin.com
Why? -
I decided to restart yb-sample-apps and got this error docker run --name yb-sample-apps --hostname yb-sample-apps --net yb-net yugabyte - Pastebin.com .
Why? -
And when I created the node, I didn’t get yb-master-n4. I only got yb-tserver-n4. Is it right?
Maybe I didn’t understand how it works. Help please.
p.s. I use Docker