Scalability article

  • Thread starter Deleted member 43669
  • Start date
Status
Not open for further replies.
D

Deleted member 43669

Guest
I'm drafting an article about scalability for my blog. I've been researching a bit and thinking about the stuff and got the following ideas:

Read-based workloads are easily scalable- you can scale by buying bigger servers and buying more servers and replicating. It's maybe not linear cost scaling, but it seems to be good enough.

The problem is writes. You can buy faster disks, but somehow I think that you hit limits pretty quickly. Scaling by better iron... if you get a big enough big-ass RAID10 array, at some point you're going to saturate CPU or IO bandwidth and at some point your system won't simply go up. A common box can hit 1500 write db transactions per second pretty easily, but it seems like a really low number (if you are dealing with heavy write-based sites, such as Facebook and their 250M uploaded photos a day (or a small fraction of that), and I don't think you can really go many orders of magnitude about that number, even with SSDs and RAID10.

So then you want to scale horizontally, but you've got a problem. If you want a write to be available to all nodes, you are screwed. You have the same limits as with one node. Reads will scale, but writes won't.

So what do you do? Well, if you application allows it, you can shard your data. If you can partition somehow and split the data across the nodes, you can distribute writes too and scale. However, can you, most of the time? FB users are well-connected, and probably a user's writes need to be read by different users in a way where you can't really shard.

So if you can't shard? Well, you gotta give up on writes being available immediately on all nodes, don't you? You have to risk outdated information, inconsistency, etc... meaning that if your write workload is big enough and you can't shard in a decent way... you gotta give up on decent RDBMSs goodness and go to the NoSQL write-scaling solutions (which is not a virtue of not being SQL, it's a virtue of sacrificing data integrity).

But my question is... if you go for eventual consistency... are you really shattering the write scaling limits? If you get a high-enough sustained write workload, you won't ever get to "eventual", right?

So in the end... we are still slaves to Moore's law...?

Thoughts?

Alex
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
Read-based workloads are easily scalable

Are you talking only about the web server stuff here?
Because believe me on many High throughput compute tasks that isn't the case since transferring the data can sometimes takes an appreciable amount of time compared to the calculations on it.

Also I would point out you have it slightly wrong.

Read is easy to scale.
Write is easy to scale.
In both cases you shard (and in the case of write whoever got there last wins).

Read AND Write is not (note that increments are read and write).
Speeding this up by reducing the effective 'isolation level' is entirely possible, you just have to have a system that allows for that. 'eventual consistency' isn't going to fly for a bank, and it's going to be tricky to use as a shop "sorry that order we said you had, you don't[1].

The issue is always contention (be it legit, or false sharing). If you have a sustained load of writes none of which interference with each other then you can scale to as much hardware as you've got (to the point that you could have a node per user for facebook).
Reducing false contention is obviously a big win (since you don't have to worry about breaking correctness when doing so), but you end up being very granular (which can hurt your actual performance on the current hardware you have available). Sometimes this can come from evalutaing whether different aspects of your system need the same level of latency[2].
Eliminating genuine contention requires altering your whole model in some way. If there are guidelines for general websites that apply here that's cool. But I would have thought it depended heavily on your sector.

Are you a "shop" backed by limited "products"?
Do you depend on some other systems (third party payment facilities) which are choke points anyway?

1. or worse you got part of it.
2. If you're looking at X and Y which are properties of N things where X[n] is simply a function of the nth instance but Y[n] is a function of all of them. If you can have the system set up so that you can split up to N ways, but that each instance must also supply the data needed for Y to some asynchronous node that handles this and sends back a relatively up to date value for Y[n] to each then, so long as you are more likely to get many more events relevant to X rather than Y then you have enabled better scaling. This is of course at the cost of considerable complexity.
 
D

Deleted member 43669

Guest
ShuggyCoUk":3cgda7it said:
Read-based workloads are easily scalable

Are you talking only about the web server stuff here?

Yup

Also I would point out you have it slightly wrong.

Read is easy to scale.
Write is easy to scale.
In both cases you shard (and in the case of write whoever got there last wins).

Read AND Write is not (note that increments are read and write).

Well, write without read is rare, at least in web stuff, so when I say "write" I mean read *and* write.

Speeding this up by reducing the effective 'isolation level' is entirely possible, you just have to have a system that allows for that. 'eventual consistency' isn't going to fly for a bank, and it's going to be tricky to use as a shop "sorry that order we said you had, you don't[1].

Yes, yes, of course... one of the things I want to convey is that all this big talk about NoSQL and stuff means giving up data correctness- which you shouldn't if necessary.

The issue is always contention (be it legit, or false sharing). If you have a sustained load of writes none of which interference with each other then you can scale to as much hardware as you've got (to the point that you could have a node per user for facebook).

Really? Even when you need to *read* this information you are writing?
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
Really? Even when you need to *read* this information you are writing?

It's write and read where they are *dependent* (any order, though read then write is most likely)

What do you need to read *then write on the basis of that read* for facebook?
Write then read does happen, but that's simply updating your own state (which is hugely unlikely to be concurrently modified[1])

There's going to be some bits but fundamentally it works well for a model based on "multiple independent streams of info collated into one view" since that is precisely what it is modelling (multiple streams of info about a person).

Further more they will tend to exhibit high degrees of other forms of locality (temporal, you can easily classify a user's regular sleep cycle if that matters), frequency of update/view (something like the 80:20 rule will apply I'm sure, the percise distribution is likely something FB considers trade secret).

1. as a side benefit their permissions system means they never need to escalate "read only to read/write" for the vast majority of users.

Group pages/events will be somewhat different. But nothing in one event/group cares about another's alterations, so again you can scale almost arbitrarily.

Their big issue is multiple different views on the same page of differening things, where you don't want one thing to hold up all the rest. I suspect a large amount of ajax and progressive enhancement fixes much of those problems. Requiring some good developers of course, but scaling massively is never 'free' in that sense IME.
 

tinyMan

Ars Tribunus Angusticlavius
6,149
Subscriptor++
koala":2loesc3d said:
But my question is... if you go for eventual consistency... are you really shattering the write scaling limits? If you get a high-enough sustained write workload, you won't ever get to "eventual", right?

IF you actually are able to divvy up your application into true shared-nothing-shards then maybe you shattered the write scaling limit. In the real world, there is always some dependency or hidden factor that holds you back from unlimited scaling. Designing the code and architecture the environment to limit these cases and their overall impact is crucial.

In my experience it is relatively easy to make sure sufficient network bandwidth is available between data centers to keep thing synchronized during normal operations. If you can't keep systems synchronized when everything is working right then there are probably fundamental issues with the application.

It is when your network environment and application is having problems that you really concentrate on. How do you re-sync an environment where you had to bring one replication partner down for maintenance. How do you bring a whole DC back up to date after a 24 hour network-cut? What happens to the performance of the rest of your application when doing the catch-up replication.
 

rain shadow

Ars Tribunus Angusticlavius
6,684
Subscriptor++
i guess my only point would be that a company with so much data that they're worried about scaling will be complex enough that their data won't all have the same consistency criteria.

i think that in many cases, the data that requires ACID (user accounts, financial data) is probably small in comparison to zillions of consistent-eventually transactions, e.g. who liked what status.
 
nofundsleft":26juo3k4 said:
i think that in many cases, the data that requires ACID (user accounts, financial data) is probably small in comparison to zillions of consistent-eventually transactions, e.g. who liked what status.

Explain this and think about it first -- even your example makes no sense. ACID is the basic building block of a database. Data that is so unlinked to anything else in a relational database to the point that there's no ACID issues at all is extremely rare. Something like a log dump would be a much better example of the exception: blind writes and no reads from the data generator.

---

I've had the un-pleasure of partitioning a database for co-located servers. Even a simple application has very few items where replication was a trivial issue. Redesigning parts of the application with this in mind was also an intensive process. I just can't imagine a situation where any web application could be so trivial where partitioning of this level is doable.
 

Pont

Ars Legatus Legionis
26,160
Subscriptor
i think that in many cases, the data that requires ACID (user accounts, [strong]financial data[/strong]) is probably small in comparison to zillions of consistent-eventually transactions, e.g. who liked what status.

* nofundsleft spent $0.0010 on a virtual T-shirt for his avatar
* nofundsleft spent $3.50 on coffee at an airport cafe
* nofundsleft earned $0.01 in interest on his checking account
* nofundsleft checked his balance on his checking account @ precisely 03:02 GMT

No, "financial data" is not low-volume. It's also not a new problem, so it has entire hardware and software systems (mainframes) designed for it.
 

tinyMan

Ars Tribunus Angusticlavius
6,149
Subscriptor++
And yet almost all the hot "big data" startups and established players out there are working on systems that are eventually consistent, multi-writer, wide-scaling solutions.

The biggest data warehouses in the world (i.e. Google and Facebook, not Wal*Mart) are eventually-consistent models with massive scaling factors.

Not every problem is a nail and not every solution requires a hammer. Your application *might* require ACID or it might not. If you build your application to require ACID to work correctly, then its not a huge shocker that your application is dependent on ACID transactions.
 

Richard Berg

Ars Legatus Legionis
43,037
Subscriptor
Nobody's disputed that. The question is whether it's worth spending developer time on domain-specific conflict resolution, pruning dependency graphs, fancy retry logic, partial state transitions (read: combinatorial explosion, if you care to reason about -- let alone prove -- properties of the data model), and all the rest.

If you need a Facebook-like combo of scale and (in)consistency, perhaps it's worthwhile. The coding overhead remains fairly large since the relevant tools are less mature and/or more proprietary.

If not, there is zero shame in throwing hardware + RDBMS at it.
 

tinyMan

Ars Tribunus Angusticlavius
6,149
Subscriptor++
If not, there is zero shame in throwing hardware + RDBMS at it.

There is some risk in doing this though. At some point, you actually can not just throw more hardware at it and you'll have to spend a gigantic amount of effort backporting your working environment over to a data store/model that can scale.

I'd say that for many uses, you are 100% correct about this being the right course of action. Many applications are for internal use only with a limited scope and a relatively fixed maximum user base. There is no use spending resources and time making sure you can scale to 10,000 concurrent users when the most use an app will ever see is 10 people.

On the other hand, some applications try to serve the world, and like Twitter, can have some extreme growing pains.

If your application has even the slight possibility of needing to scale beyond a single database, its probably best to design it from the get-go with multiple data stores and writers, otherwise you can easily end up becoming a victim of your own success.

Anyway you look at it, there is no single magic bullet for Scaling and the design of the application is going to be the biggest asset or liability.
 

Richard Berg

Ars Legatus Legionis
43,037
Subscriptor
You still seem to assume that relational data stores cannot scale to large, public-facing, highly concurrent websites. This is plainly false.

* Just because you use SQL doesn't mean every write has to be wrapped in a fully serializable transaction over the master table(s).
* Even if it did, 10k concurrent users is not a big deal for a modern commercial database.
 

Blacken00100

Ars Legatus Legionis
10,130
Subscriptor
Richard Berg":cobctavq said:
You still seem to assume that relational data stores cannot scale to large, public-facing, highly concurrent websites. This is plainly false.
There should be a big asterisk here, though. Of course relational data stores can be used as the backing stores for such sites, but for the most part, they also need racks of caching to do so (unless their database usage is extraordinarily light...in which case "highly concurrent" seems unlikely because it strikes me that you're probably not doing a whole hell of a lot). 10,000 concurrent users is a pretty significant number for scaling purposes in the web world--my company meets or exceeds that during peak times, and even outside of peak times our databases are consistently running well over 50% load with an eyebrow-raising amount of cache in front of them. Granted, we use Postgres, but the performance profile isn't orders of magnitude different; if we'd handed over wheelbarrows of money for Oracle we'd be in a not-dissimilar situation. (The cost to aggressively scale out our databases such that we could feed our requests without dozens of gigabytes of memcached would swamp the cost of the memcached machines by an absolutely preposterous amount.)



For personal stuff, it's pretty easy: a while ago I formalized a straightforward SOA for my own projects. This is trivial to do, as have sufficient VM resources to run it locally and I've got puppet scripts set up that spin everything I need up in about ten minutes. Doing so was a minor, mostly educational investment, and gives me the option to tackle a problem however I'd like. Services (content, user, etc.) live in the backend and reside in a MySQL database (mostly for ease of use; I'd use Postgres for a serious project), with a (clusterable) memcached instance that's also accessible from the frontends to avoid a round-trip in the case of easy requests. Redis is set up for a message queue to provide a pleasant way to send data to offline processing, should I need it (I considered the *MQ libraries but Redis seemed a little more sane at the time). All services are Java on top of Play or Apache Mina, frontends are whatever the hell I feel like playing with.

Took me about three days to set up the puppet scripts, but most of that was learning how puppet worked. Actually using it doesn't really add more development time (although the context switch from Java to whatever I'm using for frontends can sometimes throw me out of my groove for a bit), and as tinyMan notes, it reduces your risk going forward because you're unlikely to have to go rip huge whacks of it out if you hit a scaling problem (which, I can say from experience, can certainly happen sooner than you might think). Like tinyMan, I do think that a reliance on a relational data store has its potential drawbacks, and I definitely have to think that paying attention to them makes addressing them ahead of time pretty easy.
 

Richard Berg

Ars Legatus Legionis
43,037
Subscriptor
Huh, I did not know that. Redis is eminently more programmer-friendly than stuff like Hadoop; glad to see it's picked up steam.

"Don't rewrite the whole backend" is essentially my argument. (I wasn't clear). Some data is better off in a k/v store, despite never leaving the intranet. And some data really is best-suited to a RDBMS -- even at web scale. (so long as your website doesn't end in "oogle")

All of the above will need to aggregate data from multiple kinds of writers once they reach a sufficient level of complexity / integration / corporate cruft. Good programmers will be prepared for that reality. Sometimes that implies *starting* with some ultra-sharded anti-Join design, but I argue this is a niche case.
 

tinyMan

Ars Tribunus Angusticlavius
6,149
Subscriptor++
Richard Berg":2psfhk7x said:
You still seem to assume that relational data stores cannot scale to large, public-facing, highly concurrent websites. This is plainly false.

* Just because you use SQL doesn't mean every write has to be wrapped in a fully serializable transaction over the master table(s).
* Even if it did, 10k concurrent users is not a big deal for a modern commercial database.

To me, the place where traditional SQL style solutions seem to break down is when you need to start handling transactions from multiple data centers (active/active). Then you either need to take a big latency hit by backhauling your db requests across the WAN to a central site or put in the development effort to replicate your changes in some sort of failure-resistant asynchronous process.

If your data is highly connected and your front end/service code was written without regard to this eventual requirement, untangling things at this point can be rather unpleasant.
 

ShuggyCoUk

Ars Legatus Legionis
10,387
Subscriptor++
Does Redis support sharding[1]? It appears to just offer master slave stuff.

The opportunistic concurrency is nice I grant you (compared to the horrible to code against IsolationLevel.Serializable optimistic stuff in SQL Server) but would you not expect a decent RDBMS which can do this (I know SQL Server can, and IIRC Oracle's support is nice too) to also support this model and just use as much memory as you can throw at it reasonably efficiently (certainly IME SQL Server performance ramps up extremely well as you push more memory at it)

As such is it really changing things much to justify the investment in the altered query/update language?

I assume it much to justify the wide spread like for it.
Perhaps it's the more complex key data structures it supports and immense flexibility. I guess I'm not their target market so I'd appreciate any points of view on this...

[1] in the sense that multiple nodes take ownership of different aspects of things and writes are spread out, as opposed to centralized and then pushed.
 
koala":hknkycue said:
I'm drafting an article about scalability for my blog. I've been researching a bit and thinking about the stuff and got the following ideas:

Can I ask who your target audience is and what is your experience? At first glance you make some pretty broad generalizations.

Read-based workloads are easily scalable- you can scale by buying bigger servers and buying more servers and replicating. It's maybe not linear cost scaling, but it seems to be good enough.

This is not true. You still need to handle the request, and that takes CPU. You can cache, but you mentioned that stale data is a problem. What if you have authentication? User permissions? That reduces the amount of caching you can do as well. Furthermore, not everyone has the money to scale just by throwing more servers at it. Both your hardware and maintenance costs go up. Lastly - what type of data are you reading? Across how many tables? How complex are your queries? Are they properly indexed? How many rows of data do you need to show?

Skipping down your list - you mention sharding in a kind of nonchalant manner. Sharding is a pretty big deal. You're development costs go up, you lose your ability to do complex queries, complexity of your app goes WAY up, your ability to make changes to your schema goes WAY down, and your recovery plans become more complex as well.

Facebook has about 200 Memcached servers btw. If you want to scale (and by scaling I mean be able to grow with your users as opposed to building something for 10 million users and waiting for your user count to reach that level - that's not really scaling) you have to stay out of the database - that's for reading and writing.
 

Richard Berg

Ars Legatus Legionis
43,037
Subscriptor
To me, the place where traditional SQL style solutions seem to break down is when you need to start handling transactions from multiple data centers (active/active). Then you either need to take a big latency hit by backhauling your db requests across the WAN to a central site or put in the development effort to replicate your changes in some sort of failure-resistant asynchronous process.
How much of this do you get for free in a cloud-based RDBMS like SQL Azure? I haven't kept up.
 
D

Deleted member 43669

Guest
darkpill":3bv6ikpi said:
koala":3bv6ikpi said:
I'm drafting an article about scalability for my blog. I've been researching a bit and thinking about the stuff and got the following ideas:

Can I ask who your target audience is and what is your experience? At first glance you make some pretty broad generalizations.

To put it bluntly, people who think NoSQL is the solution to all scaling problems.

Read-based workloads are easily scalable- you can scale by buying bigger servers and buying more servers and replicating. It's maybe not linear cost scaling, but it seems to be good enough.

This is not true. You still need to handle the request, and that takes CPU. You can cache, but you mentioned that stale data is a problem. What if you have authentication? User permissions? That reduces the amount of caching you can do as well. Furthermore, not everyone has the money to scale just by throwing more servers at it. Both your hardware and maintenance costs go up. Lastly - what type of data are you reading? Across how many tables? How complex are your queries? Are they properly indexed? How many rows of data do you need to show?

That's not scaling wrt. to concurrent users. I assume that you can handle one single user correctly (which is a whole different problem, IMHO- that's all about indexing, optimization, etc.). Of course, there you don't necessarily need to scale with hardware.

Skipping down your list - you mention sharding in a kind of nonchalant manner. Sharding is a pretty big deal. You're development costs go up, you lose your ability to do complex queries, complexity of your app goes WAY up, your ability to make changes to your schema goes WAY down, and your recovery plans become more complex as well.

Well, I stated that:

However, can you, most of the time? FB users are well-connected, and probably a user's writes need to be read by different users in a way where you can't really shard.

, meaning I don't believe sharding is easy or possible in a lots of cases.

Facebook has about 200 Memcached servers btw. If you want to scale (and by scaling I mean be able to grow with your users as opposed to building something for 10 million users and waiting for your user count to reach that level - that's not really scaling) you have to stay out of the database - that's for reading and writing.

Caching is not scaling wrt. user load, is it? It makes stuff go faster, but it doesn't make things scalable- it helps with reads (which as I said, is easy) but it doesn't do much for writes.
 
D

Deleted member 43669

Guest
Richard Berg":2opes2h3 said:
"Don't rewrite the whole backend" is essentially my argument. (I wasn't clear). Some data is better off in a k/v store, despite never leaving the intranet. And some data really is best-suited to a RDBMS -- even at web scale. (so long as your website doesn't end in "oogle")

Ahhh! This is more or less what was hiding there in my brain. I need to read more about Stack Overflow's performance- IIRC it's RDBMS in the end, and they do scale.

I just want to dispel the myth that RDBMSs are not good for omg scaling and that NoSQL is the correct answer. I agree with the -oogle thing there (yes, probably Google wouldn't work on a RDBMS, but mostly everyone else, can).
 
You're being overly harsh. Many people reason by simple quips and generalizations - in fact, a majority of programmers I've worked with. They could benefit from such an article, especially if it describes some general techniques or technologies to help RDBMSes scale, and possibly some benchmarks, although that's a lot of work and a can of worms. (You conveniently qualified the potential audience to those with "any influence anywhere", and you might define that in a way so as to exclude all people who would benefit from such an article, but I don't see the justification for that qualification.)
 
D

Deleted member 43669

Guest
Oh, yeah. Let's google nosql...

First result, http://en.wikipedia.org/wiki/NoSQL

Typical modern relational databases have shown poor performance on certain data-intensive applications, including indexing a large number of documents, serving pages on high-traffic websites, and delivering streaming media.Typical RDBMS implementations are tuned either for small but frequent read/write transactions or for large batch transactions with rare write accesses. NoSQL, on the other hand, can service heavy read/write workloads

Second result, http://nosql-database.org/

NoSQL DEFINITION: Next Generation Databases mostly addressing some of the points: being non-relational, distributed, open-source and horizontally scalable. The original intention has been modern web-scale databases.

Third result is anti-NoSQL.

Fourth result, http://nosql.mypopescu.com/kb/nosql quotes the above.

Fifth, sixth, again anti-NoSQL.

Seventh, unrelated link (a relational database that does not use SQL)

Eight is a news article about Oracle's NoSQL.

Ninth result http://blog.nahurst.com/visual-guide-to-nosql-systems

One of the primary goals of NoSQL systems is to bolster horizontal scalability. To scale horizontally, you need strong network partition tolerance which requires giving up either consistency or availability. NoSQL systems typically accomplish this by relaxing relational abilities and/or loosening transactional semantics.

Tenth result http://www.techrepublic.com/blog/10thin ... bases/1772

For years, database administrators have relied on scale up — buying bigger servers as database load increases — rather than scale out — distributing the database across multiple hosts as load increases. However, as transaction rates and availability requirements increase, and as databases move into the cloud or onto virtualized environments, the economic advantages of scaling out on commodity hardware become irresistible.

RDBMS might not scale out easily on commodity clusters, but the new breed of NoSQL databases are designed to expand transparently to take advantage of new nodes, and they’re usually designed with low-cost commodity hardware in mind.

...
 

Blacken00100

Ars Legatus Legionis
10,130
Subscriptor
jxl":2vwlbsbj said:
OK. Assuming you had a point, what would it be?
This theoretical article of yours, will it crack Google's top 10 for "NoSQL"?
His attempted point is "waah, they say their stuff does this well!" when, as it happens, for these workloads, it fucking does. Better than his pet datastore of choice, as it happens. (Seriously, who has a pet datastore? Do you hug your postgres boxes and take them for walkies?)

No-fucking-body (cue somebody dredging up some random no-name, so almost no-fucking-body, k?) says you can't scale a RDBMS. What they do say is that it is more difficult to scale a RDBMS (which is true) and that scaling for some operations is much more difficult (which it is). Sharding reads and writes for a Riak setup are absolutely trivial, (EDIT: originally I referred to MongoDB, which was a brainfart; Riak, on the other hand, is fully predicated on being sharded at all times and would have been a better example in the first place). Scaling writes across multiple RDBMS nodes is much, much, much more complex than what you can get with a NoSQL solution. Ergo, Riak is--gasp!--probably more suitable for workloads where that's necessary than your RDBMS of choice. The win is even more stark in cloud environments where disk IO is, as the French might say, tres fucking expensive and memory is pretty dirt cheap.

(I haven't even touched on cost; comparing Oracle and SQL Server god boxes to a raft of cloud-based Mongo shards seems, shall we say, misleading.)



It sounds like he's translated "use the right tool in the right context" into "FUCK RDBMSes IN THE BUTT" which nobody actually says, in part because "arr dee bee emm esses" is hard to say but largely because it's painfully obviously untrue. The only people who are seeing hype are people who want to see it, and for some godforsaken reason that includes a lot of butthurt defensive people who tuck their SQL Server boxes in at night.




--


Let's just post the picture from one of those "OMFG HYPE" sites in his magical mystery tour of Google's first page of results, shall we?

media_httpfarm5static_mevIk.png.scaled1000.png


It's almost like they're being reasonable and **OH** **SHIT** **SON!** about all of this. Serious hype, right? "You probably want Riak something if you need to be able to store document-based data in a way where you aren't always writing to one node." The goddamn nerve of these people!


Then there's this:

Second result, http://nosql-database.org/
NoSQL DEFINITION: Next Generation Databases mostly addressing some of the points: being non-relational, distributed, open-source and horizontally scalable. The original intention has been modern web-scale databases.

All of which is essentially true. It's even better if he'd actually bothered to read the rest of the paragraph: So the misleading term "nosql" (the community now translates it mostly with "not only sql") should be seen as an alias to something like the definition above.

"Not only SQL". Imagine that, DrPizzas and gentlemen. Imagine that... it's like they're reasonable people who attempt to discern if different tools make sense in different situations.
 

Blacken00100

Ars Legatus Legionis
10,130
Subscriptor
Sorry, I read your question as "what happens when you hit the write limit", at which my response is "uh...probably nothing good". Of course it'll let you write more.

Nodes are the computers on which Riak runs. VNodes are individual chunks of the Riak address space. Generally you run many vnodes to a node, and you spread out the vnodes when you scale horizontally (so there's an upper bound on your number of nodes, where 1 node = 1 vnode). You write to the vnodes (running on the nodes) that correspond to the correct places for that data in the Riak integer space.

http://wiki.basho.com/Concepts.html - smarter words than me on the topic
 

Blacken00100

Ars Legatus Legionis
10,130
Subscriptor
I think you're asking the wrong question but I'm not 100% about it; what I know about Riak's eventual consistency and failure model is better described by the Riak guys themselves: http://wiki.basho.com/Eventual-Consistency.html

It seems that, should you tap out write capacity (a situation of which "scale faster and don't let that happen" seems to be the prevailing wisdom), it'll rebuild its consistency once you spread vnodes out sufficiently to accomodate the necessary write throughput. But, again, I'm not sure.

(I also pointed Corren to this thread.)
 

Corren

Seniorius Lurkius
47
Just jumping in here. Haven't read the whole thread yet. WHen you are talking write limit I assume you mean you've saturated the write operations of your cluster.

Under any circumstances you can scale out your ring by adding more machines, however the Basho guys strongly recommend you do this before you saturate your ring as you will see degraded performance while you're moving partitions under load.

The reality is we haven't at Clipboard had any kind of load close (we only came out of stealth two weeks ago) so we can't say this from first hand knowledge. In reality however we have excellent monitoring on our ring so the likelihood of going from lots of dynamic overhead to none and getting caught with our pants down is pretty slim. And adding nodes to a cluster not saturated is painless.

It's literally a one line command:

> riak-admin join riak@target-ring-member-fqdn-here

Does that help?
 
Status
Not open for further replies.