Showing posts with label Joyent. Show all posts
Showing posts with label Joyent. Show all posts

Friday, October 17, 2008

update Rails and gems on Joyent Accelerator

Was back on my Joyent Accelerator (been too long), and hadn't done an update in awhile. Needed to update Rails, among many other gems and was coming across this error whenever I tried updating any gems:

ERROR: While executing gem ... (Gem::GemNotFoundException)
could not find capistrano locally or in a repository

Realized I needed to install rubygems-update-1.2.0 from source:

$ sudo curl -O http://rubyforge.rubyuser.de/rubygems/rubygems-update-1.1.1.gem
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 418k 100 418k 0 0 146k 0 0:00:02 0:00:02 --:--:-- 165k

$ sudo curl -O http://files.rubyforge.vm.bytemark.co.uk/rubygems/rubygems-update-1.2.0.gem
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 246k 100 246k 0 0 147k 0 0:00:01 0:00:01 --:--:-- 183k

$ sudo gem install rubygems-update-1.1.1.gem
Successfully installed rubygems-update-1.1.1
1 gem installed
[admin@golfapp /home]$ sudo gem install rubygems-update-1.2.0.gem
Successfully installed rubygems-update-1.2.0
1 gem installed

$ sudo update_rubygems

$ sudo gem update rails
Updating installed gems
Updating rails
Successfully installed activesupport-2.1.1
Successfully installed activerecord-2.1.1
Successfully installed actionpack-2.1.1
Successfully installed actionmailer-2.1.1
Successfully installed activeresource-2.1.1
Successfully installed rails-2.1.1
Gems updated: activesupport, activerecord, actionpack, actionmailer, activeresource, rails

Rubygems 1.3.0 was out about 20 days ago (it's been awhile since I updated this Accelerator)...
http://blog.segment7.net/articles/2008/09/26/rubygems-1-3-0

$ sudo curl -O http://files.rubyforge.vm.bytemark.co.uk/rubygems/rubygems-update-1.3.0.gem
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 257k 100 257k 0 0 151k 0 0:00:01 0:00:01 --:--:-- 188k
[admin@golfapp /home]$ sudo gem install rubygems-update-1.3.0.gem
Successfully installed rubygems-update-1.3.0
1 gem installed
[admin@golfapp /home]$ sudo update_rubygems
Installing RubyGems 1.3.0...

After reading Eric's blog post, I should have just done a:
$ sudo gem update --system
$ sudo gem update

Live and learn. But RubyGems is updated now, and so are all my installed gems. Yayy. Need to deploy my app to this by Dec 1 hopefully.

Wednesday, March 26, 2008

The Zettabyte File System (ZFS) : no limits

OpenSolaris …(and Solaris 10) implements ZFS filesystem as of c 2005/2006… ZFS is a 128-bit file system... … to give you an idea of the capability limitations of a 128-bit file system (hint: there are none):

-If a billion computers each filled a billion individual file systems per second, the time required to reach the limit of the overall system would be almost 1,000 times the estimated age of the universe.

- Project leader Bonwick said, "Populating 128-bit file systems would exceed the quantum limits of earth-based storage. You couldn't fill a 128-bit storage pool without boiling the oceans."[2] Later he clarified:

“

Although we'd all like Moore's Law to continue forever, quantum mechanics imposes some fundamental limits on the computation rate and information capacity of any physical device. In particular, it has been shown that 1 kilogram of matter confined to 1 liter of space can perform at most 1051 operations per second on at most 1031 bits of information [see Seth Lloyd, "Ultimate physical limits to computation." Nature 406, 1047-1054 (2000)]. A fully populated 128-bit storage pool would contain 2128 blocks = 2137 bytes = 2140 bits; therefore the minimum mass required to hold the bits would be (2140 bits) / (1031 bits/kg) = 136 billion kg.
To operate at the 1031 bits/kg limit, however, the entire mass of the computer must be in the form of pure energy. By E=mc², the rest energy of 136 billion kg is 1.2x1028 J. The mass of the oceans is about 1.4x1021 kg. It takes about 4,000 J to raise the temperature of 1 kg of water by 1 degree Celsius, and thus about 400,000 J to heat 1 kg of water from freezing to boiling. The latent heat of vaporization adds another 2 million J/kg. Thus the energy required to boil the oceans is about 2.4x106 J/kg * 1.4x1021 kg = 3.4x1027 J. Thus, fully populating a 128-bit storage pool would, literally, require more energy than boiling the oceans.[10]


ZFS read/write libraries are available on Mac OS X Leopard (which ported ZFS to the Mac in 2007)… but it has to be installed by hand from the binaries. Sponsored by Google’s Summer of Code, there is work being done on a port of ZFS to Linux due out in 2008. There have been bugs, but it is used in enterprise offerings and has distinct advantages…

Unix is technically the king.


http://arstechnica.com/articles/paedia/past-present-future-file-systems.ars/8

http://www.sun.com/2004-0914/feature/

(btw, Roy Fielding was/is on the OpenSolaris Community Advisory Board members as of 2005/2006)

Joyent's Cloud offering is enticing

…ZFS… Zpool… Solaris…. Zones……………Joyent is capitalizing on all of it… my Ruby amigos keep me informed (thanks Riggs!)… some of the Joyent plans look sweet, and they also have the ability to more readily hardware load balance (if the need arises eventually), static IP (dynamic IP only with EC2)… non-stateless deployments (EC2 deployments are stateless and a bit patchy having to hook into S3), … Joyent runs all of this off Sun Solaris (lover and dear friend of open source). Can also vertically scale a bit easier if the database needs it.

This might be the route I go with expandable Cloud deployments – the Accelerator… instead of the Elastic Compute Cloud… more affordable, and has some other advantages…

http://joyeur.com/2007/06/20/why-ec2-isnt-yet-a-platform-for-normal-web-applications

http://hostingfu.com/article/short-coming-amazon-ec2

Has been about 8-9 mos of research in the making with EC2, and the Joyent stuff looks surprisingly, even better…