A story how much it costs per month to have servers. In my case.
Actually I have couple servers. One of them that is the easiest to understand is a server that I use to provide this website. That being said, this website is not on provided everything on a single server, so the story is a bit more complicated.
いくつかサーバーは持っている。一番わかりやすいのはこのウェブサイトを運営するためのサーバーだな。とは言ってもこのウェブサイトもすべてを1台のサーバーでやっているわけでもないから話がちょっとややこしいんだけど。
Servers to provide this site.
I used to use AWS EC2 as a web server and RDS as a database server until couple years ago, but now I use VPS. Everything relating to the Anonyz runs on this VPS, but in case of this scale, it can be handled enough with SSD for the DB without the need for scaling or distribution. So, VPS is more than sufficient for now and maybe ever. This costs less than 50 U.S. dollars per month. Currently, it hasn't exceeded 80 U.S. dollars. When I was using AWS, it used to easily cost a few hundred dollars.
However, binary data like photos is exception.
Photos waste so much space on disk, so it's necessary not to place them on the VPS, it's better to place them on AWS S3. Sometimes there's someone who mind how much AWS S3 costs, but it wouldn't be as high as to mind if operating S3 just as a simple file server like me. Even at its highest cost, it's at the level of several tens of U.S. dollars per month. Oppositely, the fact that having access to nearly unlimited storage at this cost for personal use itself is quite awesome.
何年か前までは AWS の EC2 をウェブサーバーにして RDS を DB サーバーにして使っていたんだけど、今は VPS を使っている。例の Anonyz 関連は全部この VPS で動いているんだけど、まあ DB が SSD で運用できる今はこのくらいの規模ならスケーリングしたり分散化する必要もまずないし VPS で必要十分。これは毎月数千円程度。今のところ一万円は超えていない。AWS を使っていた頃は余裕で数万円かかっていたけど。
ただし写真みたいなバイナリデータは例外。
写真はホントにディスク容量を消費しちゃうから VPS じゃなくて AWS の S3 に置いておくのがベター。たまに S3 のコストを気にする人もいるけど、自分みたくただのファイルサーバーとして S3 を運用するだけならそれほどのコストにもならないし。かかって月で数千円のレベル。逆に個人レベルでこのサイズのほぼ無限に使えるストレージをこの程度の費用で使えるって方がすごい。
By the way, what can be a bottleneck the most running applications and databases on a VPS, is clearly the part as the database server. When the IO here is under load, the response time degrades significantly. This part is quite critical.
ちなみにアプリケーションとデータベースを VPS で運用していて一番ボトルネックになる部分は完全にデータベースサーバーとしての部分。ここの IO に負荷がかかると一気にレスポンスが悪くなる。ここ結構重要。
Servers running at home, and running for home.
I used to use a Raspberry Pi as a server at home. Homebridge server was running on that, and couple my own server applications that I made by myself were also running on that. But one day, the Raspberry Pi got broken actually. This is probably around 2020. At that time, due to the influence of COVID-19 and so on, I rarely took my MacBook Pro outside even I use MacBook Pro, a laptop computer. So I've run server processes on the MacBook Pro I use everyday and using it as a server as well since then. In my case, I don't even turn off or put the Mac to sleep.
I actually think about having a Mac mini dedicated for server purposes other than the MacBook Pro, but, I haven't encountered a situation where I urgently needed it. So, I still stick with this setup for now.
以前は Raspberry Pi をサーバーとして自宅では使っていた。Homebridge のサーバーはそこで動かしていたし、自分用に自分で作ったいくつかのサーバーアプリケーションもそこで動かしていた。けどいつだったかその Raspberry Pi が壊れちゃって。たぶん2020年頃の話。で、当時はもう例の COVID-19 の影響なんかもあって MacBook Pro を使ってはいるけど外に持ち出すこともほとんどなくなっていたから、今に至るまで普段使っている MacBook Pro の中にサーバーのプロセス立ち上げてサーバーとしても使っている。そもそも自分の場合はその Mac も電源を切るとかスリープにするってこともないし。
本当はそんな MacBook Pro とは別に完全にサーバー用の Mac mini でもあればいいかなーとは思ったりもするんだけど、まあ今すぐ必要って事態には一切遭遇していないので未だにこの環境を続けている。
How about file storage server at home?
For the beginning, I don't use any file storage server at home nowadays. All the personal data I want to share via network is located on iCloud.
First of all, speaking of the basics, even back when I had set up a file server at home around high school age, I used to think "It would be great if I could access those files on the server when I'm away from home". With so many cloud storage options available now, there's really no reason not to use them. Having a file server at home comes with its own set of complexities like redundancy and the risk of data loss due to disk failure. Cloud storage services take care of all that hassle and more, so I have no wonder to opt for them.
まずはじめに、今はもう自宅でファイルストレージサーバーは使っていない。ネットワークを通して使いたい個人的なデータはすべて iCloud に置いてある。
まずそもそもの話として高校生くらいの頃に自宅にファイルサーバー用意していた頃でさえ、そういう『ファイルサーバーのファイルに外にいる時にもアクセスできればいいのに・・・』って思っていた人が、クラウドストレージがこれだけあってそれを使わない理由がない。家にファイルサーバーを置いておいたら冗長化考えたりディスクの故障でのデータ消失のリスクもあったりって・・・そういうのも含めてまるっと面倒を見てくれるクラウドストレージ、そりゃそっちを使うさ。
So.
As Total, it currently costs around 75 U.S. dollars per month for iCloud as a personal file server, the VPS and the AWS S3. The VPS and the S3 could be called some parts of my business in my case, so I honestly can't say for sure whether this is expensive or not. However, comparing it to the times when we used to need to use dedicated servers costing couple hundreds of U.S. dollars or dedicated lines, able to cover all of personal usage with this level of cost doesn't seem that high. So what do you think of this?
合計としては個人用のファイルサーバーとして使っている iCloud、あと VPS と AWS S3 で月に1万円ちょっとが毎月のサーバー代としてかかっている。VPS と S3 に関してはある意味では仕事上の必要経費的な側面もあるから、これが高いのか安いのかは正直よくわかんない。ただ一台数十万円単位の専用サーバーやら専用回線が必要だった時代から考えれば、この程度のコストで個人で使う分が賄えているんだから言うほど高くはないんじゃないかなー、とも思う。どうだろ?