Agile Cat — in the cloud

May 31, 2011

Evernote アーキテクチャ – 900万人のユーザーと、1億 5000万のリクエストに日々対応

Evernote Architecture – 9 Million Users and 150 Million Requests a Day
transparentMonday, May 23, 2011 at 8:33AM
http://highscalability.com/blog/2011/5/23/evernote-architecture-9-million-users-and-150-million-reques.html

_highscalability

The folks at Evernote were kind enough to write up an overview of their architecture in a post titled Architectural Digest. Dave Engberg describes their approach to networking, sharding, user storage, search, and some other custom services.

親切なことに、Evernote の人々は Architectural Digest というタイトルのポストにおいて、そのアーキテクチャの概要を説明してくれた。 具体的にいうと、Networking および、Sharding、User Storage、Search や、その他の Custom Service について、Dave Engberg が記述している。

Evernote is a cool application, partially realizing Vannevar Bush‘s amazing vision of a memex. Wikipedia describes Evernote’s features succinctly:

Evernote はイカしたアプリケーションであり、Vannevar Bush のステキな ビジョン である memex("memory" and "index")を、部分的に具体化したものでもある。 Wikipedia は Evernote の特徴について、以下のように簡潔に紹介している:

Evernote is a suite of software and services designed for notetaking and archiving. A "note" can be a piece of formattable text, a full webpage or webpage excerpt, a photograph, a voice memo, or a handwritten "ink" note. Notes can also have file attachments. Notes can then be sorted into folders, tagged, annotated, edited, given comments, and searched. Evernote supports a number of operating system platforms (including Android, Mac OS X, iOS, Microsoft Windows and WebOS), and also offers online synchronization and backup services.

Evernote とは、ノート作成とアーカイブを目的にデザインされた、ソフトウェアとサービスの組み合わせのことである。 その「ノート」は、フォーマットが可能なテキストの断片や、Web ページの全体/一部に対応するだけではなく、写真や、音声メモ、手書きの「インク」にも対応する。 さらに「ノート」は、ファイル添付も実現している。 また、「ノート」を編集するだけではなく、管理のための機能として、フォルダー内でのソートや、タグ付け、注釈とコメントの追加、検索にも対応している。 Evernote は、数多くのオペレーティング・システムとプラットフォームをサポートし(Android、Mac OS X、iOS、Microsoft Windows、WebOS など)、オンライン同期とバックアップのサービスも提供する。

imageKey here is that Evernote stores a lot of data, that must be searched, and synced through their cloud to any device you use.

ここでの主題は、Evernote にストアされる大量のデータに関するものである。 それらのデータは検索に対応し、また、各種のユーザー・デバイスとクラウドを介して同期しなければならない。

Another key is the effect of Evernote’s business model and cost structure. Evernote is notable for their pioneering of the freemium model, based on the idea from their CEO: The easiest way to get 1 million people paying is to get 1 billion people using. Evernote is designed to become profitable at a 1% conversion rate. The free online service limits users to a hefty 60 MB/month while premium users pay $45 per year for 1,000 MB/month. To be profitable they most store a lot of data without spending a lot of money. There’s not a lot of room for extras, which accounts for the simple practicality of their architecture.

もう 1つの視点は、ビジネス・モデルとコスト構造に関する Evernote の取り組みである。 Evernote は無料ネット・モデルの草分けであり、それが、同社の CEO のアイデアに基づいていることを指摘しておく。 つまり、100万人の人々から対価を得るための、最も簡単な方法は、10億人の人々に使ってもらうという発想である。 つまり、Evernote は、この 1% の変換レートで、利益が生じるようにデザインされている。無料のオンライン・サービスでは、ユーザーからのアップロードが 60MB(月)に制限されるが、1年間に $45 支払うプレミアム・ユーザーは、その枠が 1,000MB(月)まで広がる。したがって、利益を確保するためには、多額のコストを生じることなく、大量のデータをストアしなければならない。そのアーキテクチャにおけるシンプルな実用性を説明すると、過大な利益が生じない構造が見えてくる。

The article is short and succinct, so definitely read it for details. Some takeaways: 

  • Controlling costs. Evernote runs out of a pair of dedicated cages in a data center in Santa Clara, California. Using a cloud wouldn’t provide enough processing power and storage at a cheap enough cost to make Evernote’s business model work. As their load doesn’t appear to be spiky, using their own colo site makes a lot of sense, especially given how they make use of VMs for reliability.

  • Controlling costs. Evernote は、California, Santa Clara のデータセンターで、2つの専用フロアを埋め尽くしている。 Evernote のビジネス・モデルをクラウド上で推進しても、大幅に低減されるコストで、充分な処理能力とストレージを実現することは無いだろう。 このサービスにおいては、極端なピークが生じないため、自身のコロケーション・サイトでの運用、とりわけ信頼性のための VM 使用において、大きな意味を持つだろう。

  • Architecture based on the nature of the data. User notes are independent of each other, which makes it very practical for Evernote to shard their 9.5 million total users across 90 shards. Each shard is a pair of two quad-core Intel  SuperMicro boxes with lots RAM and a full chassis of Seagate enterprise drives in mirrored RAID configurations. All storage and API processing is handled by a shard. They’ve found using directly attached storage to have the best price/performance ratio. Using a remote storage tier, with the same level of redundancy, would cost substantially more. Adding drives to a server and replicating with DRDB is low both in overhead and costs.

  • Architecture based on the nature of the data. ユーザー・メモは、全体で 950万人のユーザーを90の区分に Sharing するという、きわめて現実的な Evernote 方式により、どの独立性を守られている。 それぞれの区分は、2つの Intel Quad Core と大量のメモリを搭載した SuperMicro ボックスと、 RAID コンフィグレーションされた Seagate のエンタープライズ・ドライブの組み合わせを、ペアで有している。 すべてのストレージと API の処理は、この区分ごとに実行される。 彼らは、最高の価格/性能比を得るために、ダイレクトにアタッチされるストレージを選択した。リモート・ストレージ・ティアを用いて、同等の冗長性を得るには、さらに多くの費用がかかるだろう。サーバーにドライブを加え、DRDB をリプリケーションする方式は、オーバーヘッドとコストを引き下げる。

  • Application redundancy. Each box runs two VMs. A primary VM runs the core stack: Debian + Java 6 + Tomcat + Hibernate + Ehcache +  Stripes + GWT + MySQL (for metadata) + hierarchical local file systems (for file data). DRDB is used to replication a primary VM to a secondary VM on another box. Heartbeat is used to fail over to a secondary VM is the primary VM dies. A smart way to use those powerful machines and make a reliable system with fewer resources.

  • Application redundancy. それぞれのボックス内で、2つの VM が稼動している。 第1の VM はコア・スタックを実行する。 具体的に言うと、 Debian + Java 6 + Tomcat + Hibernate + Ehcache +  Stripes + GWT + MySQL (for metadata) + 階層的なローカル・ファイル・システム (for file data) である。 DRDB はリプリケーションのために用いられ、別のボックス内にある第2の VM への模写を行う。 ハートビートを用いて、第 1 VM のダウンが検出されると、第 2 VM へのフェイル・オーバーが行われる。 こうしたパワフルなマシンを用いて、少量のリソースで信頼性の高いシステムを構築するのは、スマートな手法である。

  • Data reliability. User data is stored on four different enterprise drives across two different physical servers. Nightly backups  copies data over a dedicated 1Gbps link to a secondary data center. 

  • Data reliability. ユーザー・データは、2つの物理的なサーバーまたいだ、4つのエンタープライズ・ドライブにストアされる。 バックアップ・コピーは、専用の 1Gbps リンクを用いて、第 2データセンターへ向けて毎晩行われる。

  • Fast request routing. User account information–username, MD5 password, and user shard ID–is stored in an in-memory MySQL database. Reliability comes from RAID mirroring, DRBD replication to a secondary, and nightly backups. This approach makes the routing of users to their data a simple and fast in-memory lookup, while still being highly available.

  • Fast request routing. ユーザー・アカウント情報(ユーザ名、MD5 パスワード、ユーザー Sharing ID)は、in-memory MySQL データベースにストアされる。 つまり、信頼性は、RAID ミラーリングおよび、第2 DRBD へのリプリケーション、そして、毎晩のバックアップによりもたらされる。 このアプローチは、きわめて可用性が高く、また、ユーザー・データへのルーティングを、シンプルで高速のイン・メモリー検索で実現する。

  • A separate pool of 28 8-core servers process images for search, handwriting recognition, and other services. This is custom software and is a powerful value-add that is not easily replicated by anyone else.

  • 28 セットの 8 Core コア・サーバーにより、検索のためのイメージ生成や、ハンド・ライティング認識などのサービスに対応する。 そこで用いられるカスタム・ソフトウェアでは、容易に模倣できるものではない。

  • Puppet is used for configuration management.

  • コンフィグレーション・マネージメントのために、Puppet が用いられる。

  • Monitoring is done with Zabbix, Opsview, and AlertSite.

  • モニタリングに関しては、Zabbix および、Opsview、AlertSite が用いられる。

There’s a promise of future articles focusing more on individual subsystems. I look forward to these as you have to appreciate the elegance of the system they’ve created for their business model. A good example to learn from. 

そこにあるのは、個々のサブシステムに注目することで達成していく、将来へ向けた展望である。彼らのビジネス・モデルに合わせて作られた、そのシステムのそのエレガンスさが、正当に評価されるときを、私は楽しみにしている。そこには、学ぶべき例がある。

Related Articles

ーーーーー

大の Evernote ファンである Agile_Cat としては、このような記事を読めるだけで嬉しいですし、ガンバレという思いをさらに強くしてしまうわけです。この記事で明らかにされたアーキテクチャにより、これまで以上の安心感が得られて、ほんとうに良かったと思っています。 $45/年の使用料というかドネーションも、すでに 2年目の支払いが終わりましたが、とても気分良く払えるところが、Evenote のステキなところです :) 今後とも、よろしくお願いしま~~~す! ーーー __AC Stamp 2

ーーーーー

<関連>

Evernote を Version 4 にアップデートしてみました
クロス・プラットフォームへの賛同票を、あっという間に 500万人から集めた Evernote !
Evernote は $20 Million を調達して、何を狙うのか?
Evernote が 400 万ユーザーに達した! – その理由は?
Agile_Cat の 9つの TOOL とは?- WordPress と Twitter だけじゃないよ!
OneNote 2010 が Evernote に負けているのは ココだ!

May 30, 2011

Facebook は Web のセントラル・ハブとなり、音楽とビデオを制覇する

Filed under: Entertainment,Facebook — Agile Cat @ 8:52 pm
Tags: , , , , , , ,

Facebook Wants to Become the Web’s Central Hub for Music & Video
clip_image001May 27 2011 – by Ben Parr
http://mashable.com/2011/05/27/facebook-media-feature/

 

image

Facebook is partnering with online music and video companies for the launch of a new feature that will integrate outside media into profile pages, according to a new report.

最新のレポートによると、 Facebook のプロファイル・ページに、外部のメディアを統合する新機能を立ち上げるために、オンラインでミュージックとビデオを提供する企業との提携が進んでいるという。

The new feature will take the shape of a widget or tab on the user’s profile page, according to The New York Times. It will display the songs a user listens to the most and provide a method for friends to listen to and share those songs. Facebook will do the same thing for video and television content.

New York Times によると、この新機能は、ユーザー・プロファイル・ページ上の、ウィジェットあるいはタブになるらしい。 それは、ユーザーが最も頻繁に聴いている曲を示し、また、その曲を友人たちと共有しながら、楽しむための方式を提供するという。 Facebook は、ビデオとテレビのコンテンツに関しても、同じ機能を提供するだろう。

imageThe social network has reportedly been talking to various media companies about integrating their content to Facebook’s new feature, including Spotify. Earlier this week, rumors about a potential Spotify and Facebook partnership made the rounds. The rumors made it seem like Facebook had chosen Spotify to power a Facebook music service. NYT reports however that Facebook doesn’t want to tie itself to just one music service, but instead wants multiple partners for its media platform.

伝えられるところによると、このソーシャル・ネットワークは、Facebook の新機能にコンテントツ統合するために、これまれ数々のメディアと協議しており、その中には Spotify も含まれている。 今週のはじめに、Spotify と Facebook のパートナーシップに関するウワサが流れていた。 そのウワサは、Facebook のミュージック・サービスを強化するために、Facebook は Spotify を選んだと思わせるものだった。 しかし NYT は、Facebook が 1つだけのミュージック・サービスを選ぶことは望まず、そのメディア・プラットフォームのために、マルチ・パートナーを求めるとレポートしている。

Imagine if you could see what your friends were watching on Netflix or listening to on Pandora from their Facebook pages. Now imagine if you could also see their recommendations and access their content with a single click. It could turn Facebook into the web’s central hub for multimedia content. Media content and recommendations could give Facebook a new engagement layer that would compel its users to stay on the site for longer.

あなたの友人たちが、Netflix で観ているものを、また、その Facebook ページ上で Pandora を聴いている様子を、想像してほしい。 さらに、友達のリコメンドを参照し、ワン・クリックでコンテントにアクセスする状況も想像してほしい。そのとき、Facebook は、マルチメディア・コンテンツのための、Web セントラル・ハブに変化するだろう。 メディアのコンテントとリコメンドは Facebook に新しいレイヤと求心力を与え、あなたは、Facebook に留まる時間がさらに長くなる。

Facebook wants to become the operating system of the web. That much was clear when it acquired web operating system Parakey in 2007. In order to be the web’s central dashboard though, it needs to have access to the music, movies, TV shows and books of its users. This new feature seems designed to do exactly that. We’ll let you know if we hear more about this Facebook feature.

Facebook が望むものは、Web におけるオペレーティング・システムになることだ。 それは、2007年に Web オペレーティング・システムである Parakey を買収したときに明らかになっている。 しかし、Web のダッシュボードになるためには、そのユーザーの、Music/Movie/TV Show/Book にアクセスする必要がある。 この新機能は、まさに、それを行うようにデザインされている。この、Facebook の新機能につて、さらなる情報が入手できたら、またレポートする。

ーーーーー

そうかぁ~~~ Facebook は、これからの Web OS なのか・・・ と、きわめて単純に納得してしまう Agile_Cat なのでありますぅ。 すごく解りやすい、例えというか、現実だぁ ーーー__AC Stamp 2

ーーーーー

<関連>

Facebook Phone – INQ Cloud Touch を GIGAOM が初レビュー
ストリーミングとクラウドを使いこなす Netflix とは?
Netflix の API は、200 億リクエスト/月 を処理する
クラウド化される Music Streaming は、どのように変化するのだろうか?
Facebook Likes で、Eminem が Lady Gaga を抜いてトップヘ
いったい誰が、クラウド版の iTunes を作れるのか? いや、作るべきなのか?

 

May 29, 2011

Google の 次期 Nexus Phone – リーク写真はホンモノか?

Filed under: Google,Mobile — Agile Cat @ 9:31 am
Tags: , , , , , ,

LEAKED PHOTO: Is This Google’s Next Nexus Phone?
Steve Kovach | May 28, 2011, 1:58 PM
http://www.businessinsider.com/nexus-3-2011-5

_ Business Insider

A leaked photo of what is supposedly a test model of Google’s next Nexus phone started circulating today after the blog Tech Hog claims to have snagged it from an inside source. The photo has since been removed from Tech Hog, but we managed to snag a copy here.

Google の次期 Nexus Phone のテスト・モデルと思われる写真が、インターネット上に出回っているが、それについて Tech Hog は、Google 内部から入手したと主張している。その写真は、すでに Tech Hog からは削除されているが、コピーを上手く取り込むことができた。

クリックで拡大 ⇒    

The phone has no room for the four home keys found on other phones, which leads us to believe the next version of Android, Ice Cream Sandwich, will have on-screen controls.

この写真には、他の Android Phone に見られる、4つのホームキーを配置するスペースがない。したがって、次期 Android である Ice Cream Sandwich バージョンでは、それらのコントロールがスクリーン上に配置されると思えてくる。

It’s highly unlikely this is the final model of the Nexus 3, but Tech Hog said in its original post it was being developed by HTC. (HTC developed the original Nexus One phone.)

これが Nexus 3 の最終モデルになに可能性はきわめて低いが、Tech Hog のオリジナル・ポストによると、その開発は HTC が行うとされている。 (HTC は、最初の Nexus One Phone を開発している)

Don’t Miss: 10 HUGE Questions We Still Have About Android’s Next Version

ーーーーー

この手の話は、フェイクも多いのでなんとも言えませんが、最近の HTC は Google と緊密なので、Nexus 3 を同社が最初に・・・ という説には、なんとなく同意してしまいます。 それと、この Tech Hog のディスカッションも面白いですよ :) ーーー __AC Stamp 2

ーーーーー

<関連>

Google の Ice Cream Sandwich を、溶け出す前に美味しく食べるには?
Motorola の 次期 Android Phone は、Quad Core を搭載する?
2億 4600万台の Android デバイスを来年に – Google
Microsoft は Android から、Windows Phone の 5倍の利益を受け取る?

 

ついに出た! ネコ様用の iPad アプリ – Agile_Cat も嬉しい ニャ~~~

Filed under: Apple,Weekend — Agile Cat @ 6:39 am
Tags: , , , , , , ,

Even your cat can play iPad Games
Posted by Vincent Raja on May 23, 2011
http://www.tech2hell.com/2011/05/even-your-cat-can-play-ipad-games/

_ Tech 2 Hell

imageWhen first generation of iPad was released, it said to be even your kids can use it without trouble but now Next generation iPad was released on March 11th 2011. Purina Company created Friskies brand games that can be played by your cats. These games uses HTML 5 to play in both iPad and Android tablets as well.

第1世代の iPad が発表されたとき、それは子供たちにも問題なく利用できると言われたが、次世代の iPad が 2011年3月11日にリリースされたいま、何か変わるのだろう。 それが、Purina Company 社の Friskies というブランドだ。 そこでは、なんと! あなたのネコが遊ぶためのゲームが提供されるのだ。 これらのゲームは、HTML 5 を用いて、iPad と Android で動作する。

The three Friskies Brand games are same like floating around the screen. The Game is CAT FISHING, Fish goes around the screen of iPad and the cat watches and try to catch. Same kind of remaing games with custom shaped objects floating and flying around the screen and cat catches those parts.

Friskies  Brand が提供する 3つのゲームは、スクリーン上でオブジェクトをフローティングさせるものとなっている。 CAT FISHING というゲームでは、iPad のスクリーン上をグルグルと回る魚を、ネコたちが追いかけ、捕まえようとする。その他にも、カスタムな形状のオブジェクトがスクリーン上を漂い、それらをネコが追いかけまわすという、同種のゲームが提供されている。

And also Company Warned:

The bare glass screen on the iPad® stands up to our cat’s claws with no problems, but please be aware that a cat’s sharp claws could possibly damage add-on plastic film covers. -gamesforcats.com

なお、同社は、以下のように警告している:

iPad のスクリーンは、ネコの爪に耐え得るが、そこに貼られた保護シートは、ヤラれてしまう可能性があるので注意して欲しい  -gamesforcats.com

Play Games Online at http://gamesforcats.com/

If you like this post, Share it to your friends. Dont forget to Subscribe our Feeds, Follow us on Twitterand Facebook.

ーーーーー

ACす、す、すばらしい!  こうでなくてはいけません。 なぜ、iPad が人間だけに独占されなければならないのでしょうか? たしかに、人間の子供たちや、老人たちが、Jobs くんの構想の中に含まれているのは解っていますが、それだけじゃぁ、ブタに真珠、ネコに小判、というものです。 先日も、Woz くんが良いことを言っていましたが、所詮は人間の浅知恵です。 彼らも修行が足りません ニャ~~~ __AC Stamp 2

ーーーーー

< Weekend >

ヒトラーが iPad に言ってやりたいこと(字幕付き)
大は小を兼ねる – iPad As Mobile Phone(爆)
iPad 2 のカバーは、どう見ても 風呂のフタだ !
地下鉄の階段がピアノの鍵盤だったら
公園のゴミ箱が ヒュ~ン と 唸ったら
♫ Smooth Jazz を Winamp と Android で ・・・
笑えます – Google 日本語入力の、ウルトラ変態変換能力

May 28, 2011

WordPress が 8歳になった! おめでとう!

Filed under: .Chronicle,Miscs — Agile Cat @ 11:48 pm

WordPress turns 8 today
Posted in Main on May 27th, 2011 by Pingdom
http://royal.pingdom.com/2011/05/27/wordpress-turns-8-today/

_ pingdom

Exactly eight years ago today, Matt Mullenweg announced that the first release of WordPress was available for download. We wonder if he knew what he was starting.

ちょうど 8年前の今日(5/27)、WordPress の最初のリリースがダウンロードできるようになったと、Matt Mullenweg はアナウンスした。 私たちが思うのは、彼が始めたことを、彼自身が正確に認識していたのか、どうかということだ。

Much has happened with the blogging software since then. For one, WordPress has become the most popular blog platform in the world, which is no small feat. It’s also without a doubt one of the most successful open source projects ever created.

その時から、数多くの出来事が、このブログ・ソフトウェアに起きた。 まず、WordPress が世界で最も人気のあるブログ・プラットフォームになったことであり、そして決して小さな功績ではない。 さらに、これまでにおいて最も成功したオープンソース・プロジェクトであることにも、疑いの余地はない。

clip_image001How many WordPress blogs are there? In December, there were more than 16 million self-hosted WordPress blogs. If you also count WordPress.com, the hosted WordPress blog service from Automattic, that number more than doubles. WordPress.com alone now hosts more than 20 million blogs.

WordPress と利用するブログが、いくつ有るのか知っているだろうか? 昨年の 12月の時点で、1、600 万以上のブログが、WordPress  を用いてセルフ・ホストされている。 さらに、Automattic がホストする WordPress.com を加えると、その数は 2倍以上になる。 WordPress.com だけでも、2,000万以上のブログがホストされているのだ。

And yes, this blog runs on WordPress. icon_smile

そう! この Pingdom も、Agile_cat も、WordPress 上で実行されている icon_smile

We’d like to take this opportunity to congratulate Matt and the whole team at Automattic, as well as everyone else who has contributed to the development of WordPress through the years. It must feel good to have made such a big contribution to the evolution of the Web, and blogging in particular. As the saying goes, keep up the great work!

だからこそ、私たちは、Matt と Automattic のチームだけではなく、何年にもわたり WordPress の開発にコントリビュートしてきた人々にも、祝福の言葉を送りたいと思う。WordPress は、Web の発展において、その中でもブログの進化において、大きな貢献をしてきたと、多くの人々が捉えているはずだ。 月並みな言い方になるが、これからも素晴らしい仕事を継続して欲しい!

ーーーーー

いやぁ~~~ ほんと、嬉しいです。 最近は Twitter もあれば、Facebook もあるしという状況ですが、なんと言っても Agile_Cat のホーム・グラウンドは WordPress です。 これからも、よろしく お願いしま~~~す! ーーー __AC Stamp 2

ーーーーー

<関連>

祝! WordPress.com が 2000万ブログ・サイトに到達! でも、Tumblr が迫っている!
Web デベロッパーが知っておくべき、15種類の オープンソース・プロジェクト

Next Page »

Theme: Rubric. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 3,239 other followers