| ▲ | cduzz 10 hours ago | |
I'll ignore fancy "kafka as a service" for a moment to just discuss a vanilla kafka cluster; A 6 node cluster with 2 nodes in each AZ will be somewhat trashed by an AZ failure; lots of partitions lose redundancy, you'll have a pile of leader elections, and some partitions may be totally unavailable (if you messed up the AZ awareness or were particularly unlucky and a partition was already underreplicated). This mess will very likely cause your other 2 functional AZs to be degraded and if you'v got your acks set to what most people have them set to for most data you'll likely drop transactions that were in-flight. And if you've got your acks set to something paranoid, your cluster will be super slow all the time and hickup whenever AZ interconnects burp, which they do a lot. This same "one AZ failure trashes the distributed system" issue holds true for opensearch and probably most other shared nothing systems. So my proposal is usually 3 (or "N") independent clusters (which is probably also a pain in the ass) each tied to a single AZ, and service discovery such that internal services reach that internal resource, and only reach out to "all of it" when strictly necessary to do the bigger aggregations (opensearch cross cluster search / kafka consumers dumping into S3, etc). So in that idiom, 2/3rds of your customers keep trucking along without noticing. Now, if someone's droned the AZ and it's totally gone, and that was compliance critical data or whatever, it's time to talk to your in-house legal counsel about the force majeure clause in your SLAs. Ideally you talk about that particular column in your "risk register" ahead of time... [edited to refine / correct partition issues with AZ failure] | ||