Problem: Really large scientific computations.
Is it real? No matter how fast computers get, we seem to find more computations to run on them.
Nugget: Distribute the computation to regular computer users through a client-side platform that runs when the computer is idle (e.g. as a screensaver) and incentivizes users by providing a nice UI and a count of how much they are contributing to the project. The paper describes a lot of neat features that went into BOINC to make it easy for scientists and attractive for users of various levels (enthusiasts vs. average coputer users).
Influence: SETI@home is very popular (although no aliens have been found yet!) and other projects also seem to have made a significant amount of progress using BOINC. It's a good idea. The lessons learned with respect to building a system that real computer users will want to participate in are also great.
Criticism: Interestingly, BOINC is perhaps the least power-efficient way possible to get really massive parallel computations (compared to a data center or to a supercomputer).
Sunday, April 26, 2009
BitTorrent
Problem: Distributing a large file to multiple users.
Is it real? Yes, and in fact some real large-scale apps that are not file-sharing sites, such as World of Warcraft, use BitTorrent to distribute software updates.
Nugget: A peer-to-peer protocol that lets peers fetch pieces of the file on separate connections from various peers and reciprocate by uploading other pieces to them. The rarest-first rule and the choking/unchoking algorithms are what really contribute to BitTorrent's efficiency.
Criticism: Although BitTorrent undeniably works great, one has to wonder how much of this is due to users not modifying their clients as opposed to the design of the protocol. Even if there are a few abusive leechers, BitTorrent will do fine. However, if a substantial number of peers tried to download without uploading, there would be problems. The game theory behind the prisoner's dilemma shows that even in this situations, peers might choose a tit-for-tat strategy, which is nice. However, because not many users are very abusive today, we don't know how well the protocol will handle having a significant fraction of users beeing selfish from the paper.
Is it real? Yes, and in fact some real large-scale apps that are not file-sharing sites, such as World of Warcraft, use BitTorrent to distribute software updates.
Nugget: A peer-to-peer protocol that lets peers fetch pieces of the file on separate connections from various peers and reciprocate by uploading other pieces to them. The rarest-first rule and the choking/unchoking algorithms are what really contribute to BitTorrent's efficiency.
Criticism: Although BitTorrent undeniably works great, one has to wonder how much of this is due to users not modifying their clients as opposed to the design of the protocol. Even if there are a few abusive leechers, BitTorrent will do fine. However, if a substantial number of peers tried to download without uploading, there would be problems. The game theory behind the prisoner's dilemma shows that even in this situations, peers might choose a tit-for-tat strategy, which is nice. However, because not many users are very abusive today, we don't know how well the protocol will handle having a significant fraction of users beeing selfish from the paper.
Measuring and Evaluating Large-Scale CDNs
Problem: How can we compare content distribution networks for performance and availability?
Is it important? Most major websites are probably interested in the results. It's interesting to ask what they use to make the decision on hosts however; this study is done purely from the outside, but CDNs must have internal performance metrics they present to potential customers.
Nugget: Use DNS from a large list of open recursive DNS servers to identify the servers in each CDN and measure latencies to them from a large number of geographical locations. The particular technique used comes from a system called King. To measure the latency from an open recursive DNS server D to a target server T, one first uses a domain one owns to install a name server entry for a subdomain with T's IP address listed as the name server. One then tries to make a query for this subdomain through D, thus causing D to send a message to T and receive a reply. There were also other neat pieces of methodology in the paper, such as using a list of logs from MSN Live to find a large number of open recursive DNS servers.
Results: The paper compares Akamai with Limelight and finds a number of interesting differences between them, largely resulting from their different architectures. Akamai has many small clusters of servers in ISPs, while Limelight has a few larger clusters each of which are placed near a number of ISPs at the same time. We see the following high-level results:
Is it important? Most major websites are probably interested in the results. It's interesting to ask what they use to make the decision on hosts however; this study is done purely from the outside, but CDNs must have internal performance metrics they present to potential customers.
Nugget: Use DNS from a large list of open recursive DNS servers to identify the servers in each CDN and measure latencies to them from a large number of geographical locations. The particular technique used comes from a system called King. To measure the latency from an open recursive DNS server D to a target server T, one first uses a domain one owns to install a name server entry for a subdomain with T's IP address listed as the name server. One then tries to make a query for this subdomain through D, thus causing D to send a message to T and receive a reply. There were also other neat pieces of methodology in the paper, such as using a list of logs from MSN Live to find a large number of open recursive DNS servers.
Results: The paper compares Akamai with Limelight and finds a number of interesting differences between them, largely resulting from their different architectures. Akamai has many small clusters of servers in ISPs, while Limelight has a few larger clusters each of which are placed near a number of ISPs at the same time. We see the following high-level results:
- Akamai has more servers in total by nearly (~25K versus ~5K).
- Akamai's services are more geographically distributed (e.g. Limelight has none in Oceania and only 3 in Asia).
- Individual Akamai servers have lower availability (although it's not clear whether availability for the service as a whole is affected), presumably because there are more of them so they are harder to manage.
- Akamai has lower 95th percentile latency across the whole suite of tests (from each of the locations with open recursive DNS servers). However, interestingly, Limelight does very well within particular regions, beating Akamai in North America and Europe. The difference seems to be mainly due to Limelight not having focused so much on Asia and Oceania yet, so perhaps its approach will work fine as it evolves.
Monday, April 20, 2009
WheelFS
Problem: Distributed storage.. in particular, making it easy to program and making it possible for legacy applications to use distributed storage systems.
Is it real? Definitely.
Nugget: WheelFS looks like a standard POSIX file system, but allows specification of distributed storage policies like consistency, primary replica, hints about read patterns, etc to be specified as "cues" in path names.
Will it be influential? The idea of putting hints about consistency/etc properties into "cues" in a path is neat and can probably benefit other systems. Using FUSE to achieve a POSIX-like file system interface and allow legacy apps to run on top is a win; Hadoop's HDFS does this too (sort of) as of recently, and I imagine that other people writing distributed FS'es will do it. The main question with respect to influence of this work will be whether WheelFS will prove flexible and efficient enough for applications beyond the ones it was evaluated with.
Criticism: One general question with a general system like WheelFS is whether a single system can be optimal for all applications. Common engineering sense says that the answer is probably no (although maybe the *API* of WheelFS could be used for other apps). The next question then is, what are the limitations of WheelFS? Can we say which apps it will be good for and which apps it won't?
Is it real? Definitely.
Nugget: WheelFS looks like a standard POSIX file system, but allows specification of distributed storage policies like consistency, primary replica, hints about read patterns, etc to be specified as "cues" in path names.
Will it be influential? The idea of putting hints about consistency/etc properties into "cues" in a path is neat and can probably benefit other systems. Using FUSE to achieve a POSIX-like file system interface and allow legacy apps to run on top is a win; Hadoop's HDFS does this too (sort of) as of recently, and I imagine that other people writing distributed FS'es will do it. The main question with respect to influence of this work will be whether WheelFS will prove flexible and efficient enough for applications beyond the ones it was evaluated with.
Criticism: One general question with a general system like WheelFS is whether a single system can be optimal for all applications. Common engineering sense says that the answer is probably no (although maybe the *API* of WheelFS could be used for other apps). The next question then is, what are the limitations of WheelFS? Can we say which apps it will be good for and which apps it won't?
Scaling Out
Problem: Facebook needed multiple datacenters for reliability and performance (latency).
Importance: Relevant to everyone who hosts an Internet service.
Solution: The most interesting thing about this article is the fairly pragmatic use of existing technology rather than reinventing data center storage from scratch, which allowed them to deploy a second data center relatively quickly. The biggest "trick" or "nugget" is the extension to MySQL to cause it to invalidate caches when replication pushes a database change over, maintaining the invariant that MySQL never contains older data than memcached. The other interesting idea is read-your-own-writes by redirecting users to the California data center after a write.
Is it influential? Sure, many web companies use a similar strategy. The article clearly points out some of the issues that need to be taken into account when you have replication and caching together.
Criticism: The main problem with this article's approach is the flip side to the nugget - by using some simple hacks on existing technology (MySQL, memcached, load balancing) we might be missing out a more general, less hacky solution. Already the solution in the article only supports writes at one data center, for example. The worrying about memcached and MySQL at the application level is a serious concern for anyone interested in ease of programming and bug prevention in Internet services as well. Projects like SCADS try to take a more general and clean-slate approach to these problems.
Importance: Relevant to everyone who hosts an Internet service.
Solution: The most interesting thing about this article is the fairly pragmatic use of existing technology rather than reinventing data center storage from scratch, which allowed them to deploy a second data center relatively quickly. The biggest "trick" or "nugget" is the extension to MySQL to cause it to invalidate caches when replication pushes a database change over, maintaining the invariant that MySQL never contains older data than memcached. The other interesting idea is read-your-own-writes by redirecting users to the California data center after a write.
Is it influential? Sure, many web companies use a similar strategy. The article clearly points out some of the issues that need to be taken into account when you have replication and caching together.
Criticism: The main problem with this article's approach is the flip side to the nugget - by using some simple hacks on existing technology (MySQL, memcached, load balancing) we might be missing out a more general, less hacky solution. Already the solution in the article only supports writes at one data center, for example. The worrying about memcached and MySQL at the application level is a serious concern for anyone interested in ease of programming and bug prevention in Internet services as well. Projects like SCADS try to take a more general and clean-slate approach to these problems.
Wednesday, April 15, 2009
AppDrop and portable cloud computing
The nugget in the AppDrop is that a higher-level cloud computing API (AppEngine) can be emulated on top of a lower-level cloud computing API (EC2). AppDrop achieves this with very little effort by just running Google's local-machine test environment for AppEngine on EC2.
Unfortunately, it punts on the most interesting part of AppEngine, which is scalability, especially of the data store. Although many of the blog comments say "it shouldn't be too hard to get this to run over MySQL" or even propose using HBase, I don't think anyone has done this yet.
Part of the problem might have been that running small Python apps written against a Google API was just not that compelling that companies would want to do it on multiple providers. Google App Engine has gotten much more interesting recently, however, by supporting Java. It does this through standard J2EE APIs, meaning that one can actually envision taking a serious J2EE app now and running it on AppEngine, EC2, etc. Existing J2EE storage layers are more scalable than the little AppEngine test environment used in AppDrop, so one could imagine running these apps scalably on EC2 or private clouds. However, there will still be a serious problem of sharing data across clouds.
Unfortunately, it punts on the most interesting part of AppEngine, which is scalability, especially of the data store. Although many of the blog comments say "it shouldn't be too hard to get this to run over MySQL" or even propose using HBase, I don't think anyone has done this yet.
Part of the problem might have been that running small Python apps written against a Google API was just not that compelling that companies would want to do it on multiple providers. Google App Engine has gotten much more interesting recently, however, by supporting Java. It does this through standard J2EE APIs, meaning that one can actually envision taking a serious J2EE app now and running it on AppEngine, EC2, etc. Existing J2EE storage layers are more scalable than the little AppEngine test environment used in AppDrop, so one could imagine running these apps scalably on EC2 or private clouds. However, there will still be a serious problem of sharing data across clouds.
Open Cloud Manifesto
The Open Cloud Manifesto is a good summary of some of the value propositions and potential obstacles to cloud computing. Nothing inside is absolutely revolutionary, but listing the topics in one place is useful. The main thesis of the manifesto is that cloud providers should attempt to define open standards for clouds to enable users to truly treat them as utilities. This is a good idea, and might happen anyway through market forces, but the interesting thing is that none of the major cloud providers (Amazon, Google and Microsoft) has signed the manifesto. There are probably politics involved that don't fully come out in the writing.
Subscribe to:
Posts (Atom)