Posts

Showing posts with the label Observabililty

Distributed databases, how many shards and where are they

Image
[+/- Draft! Beware: Work In Progress] TL;DR: Trying to find out how to shard data on Yugabyte (link). I find a lot of "moving parts" in the YB-Universe, and try to explain and simplify. For Deep-Down-Engineers, YB-ers: check the questions at bottom. Background Future of Databases is ... Serverless, possibly sharded. But Sharding is something for Very Large sets. An average (serverless) database that comes form "the real world"  doesnt need 1000s of shards... IIMHO, it needs "ACID" and Relational Capabilities First. Yugabyte does this, and potentially "serverless" to make the database more Resilient, and more Scalable (on demand-scaling?) and overall Easier to Operate. By experimenting with a 6-node database, I try to observe the sharding, and might try to draw some conclusions or "good practices" from what I see. My "cluster" is running in docker-containers hence K8s or other container-systems will also work. After the first e...

Some notes on pg Yugabyte and Obervability

TL;DR: Use SQL to expose information. And use Catalog and similar info to do it. Some pro/con arguments, and some Examples below. Note: I'm not tweeting or otherwise promoting this blog. It is just info for those who have the link or can search cleverly.  I'm using this post to send a few notes to some  friends, who may or may not use the info further.  Aim: Find + Expose data via SQL To create some "catalog" information (views) about my Yugabyte objects. My overall-aim: use SQL to find info related to the catalog, and to the back-end. Ideally, I get to use SQL and  combine  the info.  Yugabyte exposes some of this at ports 7000 (tserver) and 9000 (master) Background :  Yugabyte stores data in Tablets , which are stored at Nodes in clusters. A Tablet is replicated over multiple nodes (3 nodes if the RF=3: Replication Factor). The "Front-end" of Yugabyte, the part that the Developer sees, is using the Postgres code, hence YB is a perfect fit-in if you ...