パスワードを忘れた? アカウント作成
374948 journal

WindVoiceの日記: [翻訳部的活動]Slashdot FAQ-Tech

日記 by WindVoice

FAQのTechの項が未訳なので、作業中です。最初の項だけは(長いので)まだなんですが、そのほかの部分は終わりました。とりあえず載せてみますので、ご意見、修正、訂正案がありましたらご遠慮なくどうぞ。

追記:(9/28 21:07)全体を訳し終わりました。

--------------

What kind of hardware does Slashdot run on?

Slashdotはどんなハードウェアで運営されていますか?

[Note: This writeup originally appeared as a Slashdot post. You can see the original post, complete with comments, here. ]

[メモ:この記事はもともとSlashdotにポストされたものです。オリジナルの記事と完全なコメントはここで見ることができます。]

At the request of countless users, we're happy to finally present a summary of the new setup over at Exodus. It's the result of over 6 months of work from a lot of people, so shout-outs to Adam, Kurt, and Scoop, Team P: Pudge, PatG & Pater for the code, and Martin, BSD-Pat, and Liz for getting the hardware and co-loc taken care of.

数えられないほどのユーザの要望で、ついにExodus上にまとめて設置することができて幸せです。これはたくさんの人の6ヶ月以上にわたる仕事の成果です。Adam, Kurt, そしてScoop, Team P: Pudge, PatG & Pater はコードを書いてくれました。そしてMartin, BSD-Pat, それからLizはハードウェアの再設置を引き受けてくれました。ここでお礼を言います。

The original version of this document was written by Andover.Net Alpha Geek Kurt Grey. The funny jokes are his. The stupid jokes are mine.

この文書のオリジナルはAndover.Net Alpha Geek Kurt Greyによって書かれました。面白いジョークは彼のものです。駄目なジョークは私によるものです。

The Backstory

背景

We realized soon that our setup at Digital Nation was very flawed. We were having great difficulty administering the machines and making changes. But the real problem was that all the SQL traffic was flowing over the same switch. The decision was made to move to Exodus to solve these problems, as well as to go to a provider that would allow us to scatter multiple data centers around the world when we were ready to do so.

Digital Nationの設備は欠点だらけだということはすぐにはっきりしました。マシンを管理したり変更を加えたりするのは非常に難しくなっていました。しかし本当の問題はSQLのトラフィックが同じスイッチを流れていたことです。問題を解決するためにExodusに移動できるようにすることに決め、その準備が出来たときには同時にデータセンターを世界の複数に分散することができるように、プロバイダも回ることにしました。

Meanwhile, Slashcode kicked and screamed its way to v1.0 at the iron fists of CaptTofu (Patrick Galbraith) and Pudge (Chris Nandor). The list of bug fixes stretches many miles, and the world rejoiced, although Slashdot itself continued to run the old code until we made the move.

一方で、Slashcodeは過酷なCaptTofu (Patrick Galbraith) とPudge (Chris Nandor)によるv1.0のやり方では接続がきれたり悲鳴をあげたりしていました。バグフィックスのリストは伸ばすと何マイルにもなり、世界を楽しませ、しかしそれでもSlashdot自身は移動になるまで動き続けたのです。

The Colocation Site

再配置先のサイト

Slashdot's new co-location site is now at Andover.Net's own (pinky finger to the mouth) $1 million dedicated data center at the Exodus network facility in Waltham, Mass, which has the added advantage of being less than a 30 minute drive for most of our network admins -- so they don't have to fly cross-country to install machines. We have some racks sitting at Exodus. All boxes are networked together through a Cisco 6509 with 2 MSFCs and a Cisco 3500 so we can rearrange our internal network topology just by reconfiguring the switch. Internet connectivity to/from the outside world all flows through an Arrowpoint CS-800 switch which acts as both a firewall load balancer for the front end Web servers. It also so happens that Arrowpoint shares the same office building with Andover.Net in Acton so whenever we need Arrowpoint tech support we just walk upstairs and talk to the engineers.

Slashdotが新しく再配置されるサイトはAndover.Netの自前のものです。WalthamにはExodusが(小指一本で指笛の準備を)百万ドルをかけたデータセンターとネットワークの設備があり、さらに好都合なことに、ここまではほとんどのネットワーク管理者は車で30分もかからずにすむのです。だからマシンにインストールするために国をまたいで飛ぶ必要はないのです。私たちはExodusにいくつかラックを持っています。すべてのボックスは2つのMSFCのついたCisco 6509とCisco 3500によってネットワークに接続しているので、内部ネットワークの構成を再配置するにはスイッチを再設定するだけですみます。外の世界のインターネット接続(から/へ)の流れはArrowpoint CS-800スイッチがファイヤーウォールとロードバランサをかねてWebサーバの前方で動作しています。もうひとつ幸運なのはArrowpointはActonでAndover.Netと同じビルを共有していることで、私たちはArrowpointのテクニカルサポートを受けるために階段を上ってエンジニアに話しかけるだけでいいのです。

The Hardware

ハードウェア

  • 5 load balanced Web servers dedicated to pages
  • 3 load balanced Web servers dedicated to images
  • 1 SQL server
  • 1 NFS Server
  • ページのためのロードバランスされたWebサーバ5台
  • 画像のためのロードバランスされたWebサーバ3台
  • SQLサーバ1台
  • NFSサーバ1台

All the boxes are VA Linux Systems FullOns running Debian (except for the SQL box). Each box (except for the SQL box) has LVD SCSI with 10,000 RPM drives. And they all have 2 Intel EtherExpress 100 LAN adapters.

すべてのボックスはVA LinuxのシステムでDebianが動いています(SQLのボックスを除く)。それぞれのボックス(SQLのボックスを除く)には10,000RPMのドライブがつながったLVD SCSIがあります。それぞれには2つのEtherExpress 100 LANアダプタがついています。

The Software

ソフトウェア

Slashdot itself is finally running the latest release of Slashcode (it was pretty amusing being out of date with our own code: for nearly a year the code release lagged behind Slashdot, but my, how the tables have turned).

Slashdotそれ自身は最終的には最後にリリースされたSlashcodeで運営されています(それは私のもっているコードからはちょっと時代遅れのものでした。一年ちかくSlashdotのコードリリースは遅れていたのです。しかし、運命は風雲急を告げたのでした。)

Slashcode itself is based on Apache, mod_perl and MySQL. The MySQL and Apache configs are still being tweaked -- part of the trick is to keep the MaxClients setting in httpd.conf on each web server low enough to not overwhelm the connection limits of database, which in turn depends on the process limits of the kernel, which can all be tweaked until a state of perfect zen balance has been achieved ... this is one of the trickier parts. Run 'ab' (the apache bench tool) with a few different settings, then tweak SQL a bit. Repeat. Tweak httpd a bit. Repeat. Drink coffee. Repeat until dead. And every time you add or change hardware, you start over!

SlashcodeそのものはApacheベースのmod_perlとMySQLでできています。MySQLとApacheの設定はちょっといじってあります。仕掛けの一部はそれぞれのWebサーバでMaxClientsを維持するためのhttpd.confの設定で、データベースの接続の限度を超えないように抑えてあります。データベースそのものはカーネルのプロセス数の限界に依存しています。それらすべては完璧な禅の状態になるまで調整されています…… これは仕掛けの一部分です。'ab'(Apacheのベンチツール)を少し違う設定で動かしてあって、それでSQLを少し調整して、くりかえして、httpdの調節をほんの少しして、くりかえして、コーヒーを飲んで、死ぬまでくりかえす。そしていつもハードウェアを追加したり交換したりするときは、最初からやり直すんです。

The AdFu ad system has been replaced with a small Apache module written in C for better performance, and that too will be open sourced When It's Ready (tm). This was done to make things consistent across all of Andover.Net (I personally prefer AdFu, but since I'm not the one who has to read the reports and maintain the list of ads, I don't really care what Slashdot runs).

広告システムAdFuは、よりパフォーマンスのいいCで書かれた小さなApacheモジュールに置き換えられて、のちにこれもWhen It's Ready (tm)のオープンソースになりました。この変更はAndover.Net全体にわたって行われました。私は個人的にはAdFuの方が好みだけれど、レポートを読んで広告のリストを管理しているのは私ではないし、Slashdotが何によって運営されているのか、実は気にしていないのです。

Fault tolerance was a big issue. We've started by load balancing anything that could easily be balanced, but balancing MySQL is harder. We're funding development efforts with the MySQL team to add database replication and rollback capabilities to MySQL (these improvements will of course be rolled into the normal MySQL release as well).

耐障害性は大問題でした。私たちは初め、ロードバランサはともかく簡単に負荷分散してくれるものと思っていたけれど、MySQLを負荷分散させるのは大変です。MySQLチームと共にデータベースの複製とロールバックができるようにするために資金援助と開発努力をしています(これらの改良点はもちろん通常のMySQLリリースに投入されました)。

We're also developing some in-house software (code named "Odyssey") that will keep each Slashdot box synchronized with a hot-spare box, so in case a box suddenly dies it will automatically be replaced with a hot-spare box -- kind of a RAID-for-servers solution (imagine... a Beowulf cluster of these? rimshot) Yes, it'll also be released as open source when its functional.

私たちは他にも、いくつか社内向けのソフトを開発しています(コードネームは"Odyssey")。これはSlashdotのボックスが突然死んだときに自動的に置き換えられるように、ホットスペアのボックスを同期させておくためのもので、サーバのRAIDソリューションのようなものです(想像してください、Beowulfのこの手のクラスタを? rimshot)。そう、そしてこれも役に立つオープンソースとしてリリースされました。

Security Measures

セキュリティの手段

The Matrix sits behind a firewalling BSD box and an Arrowpoint Load balancer. Each filters certain kinds of attacks and frees up the httpd boxes to concentrate on just serving httpd, and allows the dedicated hardware to do what it does best. All administrative access is made through a VPN (which is just another box).

基盤はファイヤーウォールをしているBSDのボックスとArrowpointのロードバランサの後ろにあります。それぞれはある種の攻撃をフィルタして、httpdボックスをhttpdの仕事だけに専念できるようにしており、ハードウェアがベストを尽くせるようにしています。すべての管理アクセスはVPNを通して行われています(これは他のボックスにあります)。

Hardware Details

ハードウェアの詳細

  • Type I (web server)
    タイプ1(Webサーバ)
    • VA Full On 2x2
    • Debian Linux frozen
    • PIII/600 MHz 512K cache
    • 1 GB RAM
    • 9.1GB LVD SCSI with hot swap backplane
    • Intel EtherExpress Pro (built-in on moboard)
    • Intel EtherExpress 100 adapter
  • Type II (kernel NFS with kernel locking)
    タイプ2(kernel NFS with kernel locking)
    • VA Full On 2x2
    • Debian Linux frozen
    • Dual PIII/600 MHz
    • 2 GB RAM
    • (2) 9.1GB LVD SCSI with hot swap backplane
    • Intel EtherExpress Pro (built-in on motherboard)
    • Intel EtherExpress 100 adapter
  • Type III (SQL)
    タイプ3(SQL)
    • VA Research 3500
    • Red Hat Linux 6.2 (final release + tweaks)
    • Quad Xeon 550 MHz, 1MB cache
    • 2 GB RAM
    • 6 LVD disks, 10000 RPM (1 system disk, 5 disks for RAID5)
    • Mylex Extreme RAID controller 16 MB cache
    • Intel EtherExpress Pro (built-in on motherboard)
    • Intel EtherExpress 100 adapter

Answered by: CmdrTaco
Last Modified: 6/13/00


Why doesn't Slashdot display in Browser X?
どうしてSlashdotはBorwser Xで映らないの?

Ummm, I don't know? Slashdot has some pretty ancient and nasty HTML in it. It breaks some older browsers. Things work pretty well on lynx, w3m, Netscape 4.x+ and IE4.x+. It might work on other browsers. It might not. If you see a problem, feel free to mail us and let us know, but for the most part, if you can't tell us how to fix it, we won't. We don't have every browser running, and we're not psychic.

う~ん、わからないなぁ? Slashdotには太古の厄介なHTMLがいくつか含まれています。いくつかの古いブラウザはこれで壊れてしまいます。lynx, w3m, Netscape 4.x以降そして IE4.x以降ではうまくいっているのだけど。他のブラウザでもうまくいくはずなのだけれど、だめかもしれません。もし問題を見つけたら、気軽に私たちにメールで知らせてください。でも実際にはほとんどの場合修正方法を教えてもらえないので、修正していません。私たちはすべてのブラウザを持ってるわけではないし、超能力があるわけでもないですからね。

Answered by: CmdrTaco
Last Modified: 6/13/00


Where/Why do you use cookies?
どこで/なぜcookieを使っているのですか?

See this.

ここを見てください。

Answered by: CmdrTaco
Last Modified: 6/13/00


What kind of logging does Slashdot do with regard to its readers?
Slashdotでは読者に知らされる範囲でどんなロギングがされていますか?

We log the usual stuff (IP, page, time, user, page views, moderation, and comment posting, mainly). A few other odds and ends too, but mostly the data is used to make moderation possible. We keep the logs for 48 hours.

ありふれた要素がログの対象になっています(主にIP、ページ、時刻、ユーザ、閲覧ページ数、モデレーション、コメントの投稿)。いくらか他のガラクタもログにしているけれど、ほとんどのデータはモデレーションを可能にするために使用されています。これらのログは48時間保存されます。

Answered by: CmdrTaco
Last Modified: 10/28/00


Can I have your poll scripts?
投票スクリプトは入手できますか?

The poll scripts are included with the Slashdot source code.

投票スクリプトはSlashdot source codeに含まれています。

Answered by: CmdrTaco
Last Modified: 6/21/00


Why are you generating so many pages dynamically?
どうしてこんなに大量のページを動的に生成しているのですか?

We're really not generating that many pages dynamically. The homepage, the section indexes, and the articles are all generated and stored for users as updates occur. These pages represent 50-60% of the site's total traffic. The only pages that are generated dynamically are the comments pages. These are dynamic for several reasons:

  • They change a lot.
  • The deeper you go, the fewer times the pages are hit.
  • User preferences and thresholds allow the comments to be customized to a user's taste. The static pages ignore those tastes.

実際にはこんな大量のページを動的に生成しているわけではないのです。ホームページ、セクションインデックス、それから文章はすべてアップデートがあったときに生成されて保存されます。これらのページはサイト全体のトラフィックの50-60%にあたります。動的に生成されている唯一のページはコンテンツページです。これを動的に生成する理由はいくつかあります。

  • 更新が頻繁にある。
  • ページは、下へ行くほどあまりヒットしなくなる。
  • ユーザの好みとしきい値によってユーザ風味にカスタマイズされる。静的なページではこれらは無視されてしまう。

Answered by: CmdrTaco
Last Modified: 6/13/00


What about the source code to this site?
このサイトのソースコードってどうなの?

The source code is called Slash and it has been released under the GPL. It contains pretty much everything that you see on Slashdot, but cleaned up a bit for general purpose use. You can use it to create your own weblog. With features like an online story editor, mass moderation, customizable user preferences and oh-so-much more. It's a fun little adventure. However it's not for the faint of heart either; it's got bugs.

ソースコードはSlashと呼ばれていて、GPLの元で公開されています。これにはあなたがSlashdotで見る、まさにすべてのものが含まれているけれど、一般的な用途のためにちょっと整理してあります。あなた自身がWeblogを作るために使うこともできます。オンラインストーリーエディタのような特徴的なものも、モデレーションも、カスタマイズ可能なユーザ嗜好も、他にもほんとにたくさんのものも。これはちょっとした楽しい冒険のようなものだけれど、臆病な人向けではないですね、バグがあるから。

Answered by: CmdrTaco
Last Modified: 6/13/00


If you were just starting to code Slashdot.org today, what would you code the site in PHP or mod_perl?
もしまさに今日これからSlashdot.orgのコードを書きはじめるとして、PHPやmod_perlを使いますか?

Perl.

Perlですね。

Answered by: CmdrTaco
Last Modified: 10/28/00


Do you guys ever worry that some site might steal Slashcode and try and outdo Slashdot?
君らはどこかのサイトがSlashcodeを盗んでSlashdotを凌ごうとすることが心配じゃないのかい?

Go for it.

頑張れよ。

Answered by: CmdrTaco
Last Modified: 10/28/00


How did it feel when you opensourced slashcode allowing people to tinker with your 'baby' as it were? Are you still involved with the process as much or is your time taken up by reading email and such?
あなたの赤ちゃんともいえるSlashcodeをオープンソースにしたことで、他の人たちがそれをいじるようになったことについてどう感じますか?あなたはいまだにプロセスにかかわり続けたり、電子メールを読むことに時間をとられたりしているのですか?

It was hard. People were mean about it. Attacked me personally. Insulted my code. I don't regret it, but a big company wouldn't take it. They'd say, "Forget this GPL thing." These guys are ungrateful jerks. I'm still involved, but less so. I still direct where the code goes and control the features that go in.

それはきつかったよ。みんな汚いんだ。個人的な攻撃はうける。コードは侮辱される。後悔はしていないけれど、大企業がもって行く。彼らは言うんだ、「GPLのことはわすれていたよ」って。やつらは恩知らずのまぬけさ。私はまだかかわり続けているけれど、少なくなってきているよ。私はコードが行く先を導き続けているし、将来どこに向かうのかコントロールしているよ。

Answered by: CmdrTaco
Last Modified: 10/28/00


What's the biggest benefit to come out of the opening of Slash so far? Better efficiency? Tighter security?
Slashを開いて以来受けた最大の手助けはなんですか?よりよい効率ですか?堅牢なセキュリティですか?

Yes. Both of these. Also, it's just cool when people submit patches.

うん、両方だね、それから、渋いパッチを提供してくれたことかな。

Answered by: CmdrTaco
Last Modified: 10/28/00

この議論は賞味期限が切れたので、アーカイブ化されています。 新たにコメントを付けることはできません。
typodupeerror

皆さんもソースを読むときに、行と行の間を読むような気持ちで見てほしい -- あるハッカー

読み込み中...