プリンキピア

第23章付録:深層学習のための道具

23.3.5. Closing Unused Instances23.3.5 使わないインスタンスを閉じる

As cloud services are billed by the time of use, you should close instances that are not being used. Note that there are alternatives:
英語のヒント
クラウドのサービスは使用時間で課金されるので、使っていないインスタンスは閉じるべきである。選択肢があることに注意しよう。
  • “Stopping” an instance means that you will be able to start it again. This is akin to switching off the power for your regular server. However, stopped instances will still be billed a small amount for the hard disk space retained.
    英語のヒント
    インスタンスを「停止」すると、再び起動できる。これは、ふつうのサーバの電源を切るのに似ている。しかし、停止したインスタンスでも、保持されているハードディスクの容量について少額が課金される。
  • “Terminating” an instance will delete all data associated with it. This includes the disk, hence you cannot start it again. Only do this if you know that you will not need it in the future.
    英語のヒント
    インスタンスを「終了」すると、それに関連するすべてのデータが削除される。これにはディスクも含まれるので、再び起動することはできない。将来それが必要にならないとわかっている場合にだけ、これを行うこと。
If you want to use the instance as a template for many more instances, right-click on the example in Fig. 23.3.9 and select “Image” → “Create” to create an image of the instance. Once this is complete, select “Instance State” → “Terminate” to terminate the instance. The next time you want to use this instance, you can follow the steps in this section to create an instance based on the saved image. The only difference is that, in “1. Choose AMI” shown in Fig. 23.3.4, you must use the “My AMIs” option on the left to select your saved image. The created instance will retain the information stored on the image hard disk. For example, you will not have to reinstall CUDA and other runtime environments.
英語のヒント
インスタンスをもっと多くのインスタンスのテンプレートとして使いたいなら、図23.3.9の例を右クリックして「Image」→「Create」を選び、インスタンスのイメージを作る。これが完了したら、「Instance State」→「Terminate」を選んでインスタンスを終了する。次にこのインスタンスを使いたいときは、この節の手順に従って、保存したイメージにもとづくインスタンスを作れる。唯一の違いは、図23.3.4に示した「1. Choose AMI」で、左の「My AMIs」のオプションを使って保存したイメージを選ばなければならないことである。作ったインスタンスは、イメージのハードディスクに保存された情報を保持する。たとえば、CUDAやほかの実行環境をインストールし直す必要はない。