環偶記

環の偶に書く記録

Google Cloud Platformで無料枠を続けたいのでF1-microからE2-microに変更した

f:id:TamaX31:20210808183020p:plain

急に来た

 時は2021/07/21、Googleからこんなメールが来た。

Upgrade your F1-micro VM to an E2-Micro to continue receiving the Free Tier discount.
Hello 環,

We’ve identified that you’re using an F1-micro instance that is a part of the Compute Engine Free Tier. As we improve the experience of the Free Tier, we will be introducing the E2-micro VM, which is a part of a second generation VM family. It offers additional resources for your use, specifically 0.25 vCPU (which burst to 2 vCPU periodically) and 1 GB of RAM.

What do I need to know?

The Free Tier F1-micro VM is changing to the E2-micro VM as the VM to use for free. On August 1, 2021, E2-micro Free Tier will be introduced. Follow these steps to change your machine type to E2-micro to avoid incurring charges for continuing to use F1-micro after August 31, 2021.

What do I need to do?

Starting August 1, 2021, change the machine type from F1-micro, or stop your existing F1-micro instance and begin using a E2-micro instance. VMs created with either method will automatically have the Free Tier discount applied to them. The supported regions will remain the same.

(以下略)

  要は無料で使えるVMがF1-microからE2-microに変更されるから早めに対応しろとのことである。

何が変わるの?

 まずCPUから、以下引用(f1-microはN1を、e2-microはE2のはず)

  • コストが最適化された E2 VM は、最大で 32 個の vCPU と 128 GB のメモリ(vCPU あたり最大 8 GB)を備えています。E2 VM には Intel プロセッサまたは第 2 世代の AMD EPYC Rome プロセッサを実行する CPU プラットフォームが事前に定義されています。このプラットフォームは VM 作成時に自動的に選択されます。E2 VM は、特に確約利用割引と組み合わせた場合、Compute Engine で最低価格のさまざまなコンピューティング リソースを提供します
  • (中略)
  • N1 VM は、最大 96 個までの vCPU、vCPU 1 個あたり最大 6.5 GB のメモリを提供します。この VM は、Intel Sandy Bridge、Broadwell、Haswell、Ivy Bridge、Skylake CPU のプラットフォームで使用できます。
  • (中略)
  • E2: e2-microe2-smalle2-medium 共有コア VM には、短時間のバーストに使用できる 2 個の vCPU があります。
  • N1: f1-microg1-small 共有コア VM には、短時間のバーストに使用できる 1 個の vCPU があります。

https://cloud.google.com/compute/docs/machine-types/?hl=ja より)

 少なくとも性能が上がってることしかわからなかった。短時間のバーストって何?

 メモリはというと純増で、0.6GBが1GBになった。0.6GBでは厳しかったので助かるかも。

 あとの違いは理解できてません。無いと思ってる。

ともあれやるしかない

 無料枠でPleroma個人鯖を運営している以上対応しないわけにはいかない。というわけで連休の落ち着いたタイミングで行うことにした。

 やり方は簡単で、変更したいインスタンスを停止して編集からマシンタイプを変更するだけ。やらかしポイントは停止しないと編集できない点くらいなのでミスる要素はない。

f:id:TamaX31:20210808184237p:plain

 できた!

ちゃんと無料になってる?

 でも結局一番気になるのは本当に無料枠が適用されたかどうかだと思うので確認もしっかりと...

f:id:TamaX31:20210808184545p:plain

 なんか20円 (13+7) 課金されてない?と思ったら

f:id:TamaX31:20210808184739p:plain

 きっちり割引されてました。やったね。

おわりに

 オチは思いつきませんでした。