15 karma · joined May 26, 2010 (16y ago) · 15 submissions
comment 13y ago · link · parent
If you know the tree will be cached and/or the keys you have to hash are large then sure a tree might be a win, but hashing a small key might only be the same as two or three cache misses. Comparing tree nodes is not instruction free either.
I think it is really a case by case sort of thing, but there is no substitute for measuring (and nailing down the comparison to specific hash functions).
comment 13y ago · link · parent
I am taking the first 4-bytes of the hash function output and using that. I checked and MurmurHash3 mixes the first and last 8 bytes of hash output as a last step, but I am not sure how much differentiation there is in the first 4-bytes.
I guess it is something I should check.
comment 13y ago · link · parent
This ancient medication that is a generic costs 130 dollars a month and that is the negotiated rate!
The money isn't going to research and it isn't going to manufacturing so where does it go?
comment 14y ago · link · parent
I am able to get sub-millisecond offsets (as reported by ntpq -p) with m1.large instances, but I have never left them running long. I am not sure what Henning got when he ran. I pointed him to my blog post on the topic http://www.afewmoreamps.com/2011/07/configuring-ntp-for-volt...
On bare metal ntpdate reports offsets that are sub microsecond.
I find that nodes sync up quickly if only one of them polls the public pool.
comment 16y ago · link · parent
comment 16y ago · link · parent
comment 16y ago · link · parent
"Cassandra's example configuration shows CommitLogSync set to periodic, meaning that we sync the commitlog every CommitLogSyncPeriodInMS ms, so you can potentially lose up to that much data in a crash ... You can also select "batch" mode, where Cassandra will guarantee that it syncs before acknowledging writes, i.e., fully durable mode"
Cassandra has very fine grained control over just about everything to do with consistency and durability. I believe you can pick your desired level of consistency at access time.