Skip to content

Instantly share code, notes, and snippets.

@yoshimov
Created May 19, 2017 10:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yoshimov/5784a16f9b1470c34a42d96d67ce58da to your computer and use it in GitHub Desktop.
Save yoshimov/5784a16f9b1470c34a42d96d67ce58da to your computer and use it in GitHub Desktop.

Mastodon on ECSの構成

これだけ使ってみました。

  • Amazon ELB x2
    • Webサイト用とStreaming用に2つ用意
  • Amazon ElastiCache x1
    • Redisのt2.micro
  • Amazon RDS x1
    • PostgreSQLのt2.micro
  • Amazon EC2 x1
    • Dockerコンテナ用にt2.micro
  • Amazon EBS x1
    • Dockerコンテナの外部記憶用

1ヶ月の利用料金試算(2017/5)

以下は全て東京リージョンの料金です。

  • ELB: $0.008/h * 24 * 30 * 2 = $11.52-
  • ElastiCache: $0.026 * 24 * 30 = $18.72-
  • RDS: $0.028 * 24 * 30 = $20.16-
  • EC2: $0.016 * 24 * 30 = $11.52-
  • EBS: $0.12/per GB-month * 2.3GB = $0.29-

合計、月 $62.21- になりました。正確にはこの他にもメディアの保存先としてS3があるので若干かかります。 やはり、ELB, Cache, RDSなどのサービスはEC2に比べて割高な感じです。 このあたりもDockerイメージを使ってEC2に入れられれば、月額 $11.81- でぐっと安くなります。

こうやって計算してみると、MastoHostの安さがよくわかります。

参考

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment