0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

zeitのインスタンスを一つにしぼる bru1を停止する

Last updated at Posted at 2018-07-27
$ now scale zeit-test-ofhvnrqcjn.now.sh 1 1
> Fetched deployment "zeit-test-ofhvnrqcjn.now.sh" [695ms]
> Scale rules for bru1, sfo1 (min: 1, max: 1) saved [6s]
> √ Scaled 1 instance in bru1 [3s]
> √ Scaled 1 instance in sfo1 [4s]
> Success! Scale state verified [5s]

インスタンスを1つ固定で建てたいのに2つ消費しちゃってるー!
ブラジルは遠いからいらない。はず。

デプロイ時やnow.jsonで特定する方法もあるようだが、
今回はnow scaleでbru1のinstance数を変更する。

方法は、bruのインスタンス数だけをmin 0 max 0に変更する。

$ now scale zeit-test-ofhvnrqcjn.now.sh bru 0 0
> Fetched deployment "zeit-test-ofhvnrqcjn.now.sh" [842ms]
> Scale rules for bru1 (min: 0, max: 0) saved [2s]
> √ Scaled 1 instance in sfo1 [375ms]
> Success! Scale state verified [500ms]

sfo1だけが動くようになりました。

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?