0

Reading this doc: https://docs.yugabyte.com/preview/architecture/core-functions/write-path/

Question 1: Can I think a node in yugabytedb is a machine with IP/port? Or a node can be multiple machines?

Question 2: Can I think a tablet as a service running in Linux that handles read/write for the given shard? How many tablets one machine can hold?

Thanks!

SuperBald
  • 109
  • 1
  • 12
  • Q1: a node in the link is a machine. However, a YugabyteDB cluster typically consists of multiple nodes working together. With a replication factor set to 3 (which is the standard deployment), 3 nodes are needed at a minimum. Q2: If a database is colocated and the object is colocated, it is stored in a tablet that stores all the colocated objects for that database. A non-colocated object consists of one or more tablets. A tablet contains replication factor replicas (typically 3), and has one leader and two followers. Writes are performed on all, reads are performed on the leader. – Frits Hoogland Jul 21 '23 at 10:08
  • Because a tablet can be 1 replica, 3 replicas or 5 or 7, the number of tablets is not the best number. However, like for every database, the correct answer is that the number of replicas a machine can serve is dependent on multiple factors like resources, network connection, etc. A pertinent rule is that only one replica for a given tablet can exist on a single tablet server (the replica is unique by the tablet UUID). – Frits Hoogland Jul 21 '23 at 10:11

0 Answers0