- writes
- writes entries directly to disk without checking if they already exist
- does fancy indexing of entries
- returns a write "OK" to the writing client after a quorum of nodes have confirmed
- reads
- tries to return the newest entry when client does a read
- has methods to eventually get the newest entry to return even if old ones still around
- replication
- stores entries to multiple nodes if replication is turned on
- deletes
- doesn't offically delete, just marks dead entries with a "tombstone"
- compaction is what gets rid of old versions of entries and dead entries
- balancing
- automatically fills in data holes if a node disappears
- automatically spreads data if new nodes are added
- resurrection
- 3-nodes: X, Y, Z, all replicate all data
- server X goes down
- delete goes to Y and Z for key A
- Y and Z are "compacted"
- i.e., redundant keys & tombstones cleaned up / removed
- key A is completely gone as far as Y and Z know
- X comes up and has value for key A
- A is back! resurrected from the dead! life sucks.
- NOTE: if Y and Z didn't have tombstones removed, they would have had a date that was more recent than X's key A entry, so they would have invalidated X's key A. But, they are gone after a compaction or cleanup.
Friday, 12 April 2013
Cassandra in 30 seconds
Subscribe to:
Post Comments (Atom)
Interview questions: 2020-12
Terraform provider vs provisioner Load balancing Network Load Balancer vs Application Load Balancer Networking Layer 1 vs Layer 4 haproxy u...
-
kubectl --cert=/tmp/tls.crt --key=/tmp/tls.key create secret tls tls-wc-ingress
-
apt-get install exim4 dpkg-reconfigure exim4-config Select: internet site; mail is sent and received directly using SMTP IP-addresses...
-
NOTE: unbound is now available via epel repo on Amazon Linux install requirements yum groupinstall "Development Tools" yum i...
No comments:
Post a Comment
Note: only a member of this blog may post a comment.