Skip to content

Instantly share code, notes, and snippets.

@jsrimr
Created July 17, 2021 03:05
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 jsrimr/1ba2d4a5f27645f0ca184ff4f83f625c to your computer and use it in GitHub Desktop.
Save jsrimr/1ba2d4a5f27645f0ca184ff4f83f625c to your computer and use it in GitHub Desktop.
create 90 tpu at once
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-232-1-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-232-2-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-232-3-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-232-4-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-232-5-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-232-1-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-232-2-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-232-3-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-232-4-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-232-5-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-232-1-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-232-2-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-232-3-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-232-4-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-232-5-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-232-1-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-232-2-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-232-3-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-232-4-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-232-5-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-232-1-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-232-2-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-232-3-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-232-4-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-232-5-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-232-1-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-232-2-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-232-3-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-232-4-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-232-5-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-242-1-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-242-2-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-242-3-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-242-4-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-242-5-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-242-1-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-242-2-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-242-3-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-242-4-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-242-5-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-242-1-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-242-2-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-242-3-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-242-4-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-242-5-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-242-1-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-242-2-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-242-3-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-242-4-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-242-5-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-242-1-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-242-2-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-242-3-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-242-4-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-242-5-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-242-1-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-242-2-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-242-3-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-242-4-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-242-5-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-252-1-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-252-2-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-252-3-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-252-4-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-252-5-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-252-1-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-252-2-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-252-3-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-252-4-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-252-5-0 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-252-1-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-252-2-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-252-3-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-252-4-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-252-5-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-252-1-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-252-2-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-252-3-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-252-4-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-252-5-1 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-252-1-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-252-2-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-252-3-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-252-4-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-width-252-5-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-252-1-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-252-2-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-252-3-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-252-4-2 -tpu-only &
sleep 15
ctpu up --noconf --preemptible --zone=us-central1-f --tf-version=1.15.3 --name=incremental-scale-depth-252-5-2 -tpu-only &
@jsrimr
Copy link
Author

jsrimr commented Jul 17, 2021

error retrieving TPU operation: &tpu.Operation{Done:true, Error:(*tpu.Status)(0xc00008a480), Metadata:googleapi.RawMessage{0x7b, 0x22, 0x40, 0x74,
0x79, 0x70, 0x65, 0x22, 0x3a, 0x22, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6
d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x4f, 0x70, 0x65,
0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x22, 0x2c, 0x22, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x6
9, 0x6d, 0x65, 0x22, 0x3a, 0x22, 0x32, 0x30, 0x32, 0x31, 0x2d, 0x30, 0x37, 0x2d, 0x31, 0x37, 0x54, 0x30, 0x32, 0x3a, 0x35, 0x34, 0x3a, 0x32, 0x32,
0x2e, 0x31, 0x37, 0x36, 0x36, 0x30, 0x35, 0x31, 0x30, 0x38, 0x5a, 0x22, 0x2c, 0x22, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x3a, 0x22, 0x3
2, 0x30, 0x32, 0x31, 0x2d, 0x30, 0x37, 0x2d, 0x31, 0x37, 0x54, 0x30, 0x32, 0x3a, 0x35, 0x34, 0x3a, 0x34, 0x31, 0x2e, 0x39, 0x38, 0x35, 0x35, 0x30,
0x34, 0x39, 0x30, 0x39, 0x5a, 0x22, 0x2c, 0x22, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x22, 0x3a, 0x22, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7
3, 0x2f, 0x64, 0x72, 0x69, 0x76, 0x65, 0x6e, 0x2d, 0x73, 0x65, 0x65, 0x72, 0x2d, 0x32, 0x38, 0x37, 0x36, 0x30, 0x32, 0x2f, 0x6c, 0x6f, 0x63, 0x61,
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x75, 0x73, 0x2d, 0x63, 0x65, 0x6e, 0x74, 0x72, 0x61, 0x6c, 0x31, 0x2d, 0x66, 0x2f, 0x6e, 0x6f, 0x64, 0x65, 0x7
3, 0x2f, 0x69, 0x6e, 0x63, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x6c, 0x2d, 0x73, 0x63, 0x61, 0x6c, 0x65, 0x2d, 0x64, 0x65, 0x70, 0x74, 0x68,
0x2d, 0x32, 0x35, 0x32, 0x2d, 0x33, 0x2d, 0x32, 0x22, 0x2c, 0x22, 0x76, 0x65, 0x72, 0x62, 0x22, 0x3a, 0x22, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x2
2, 0x2c, 0x22, 0x63, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x65, 0x64, 0x22, 0x3a, 0x66, 0x61, 0x6c, 0x73, 0x65,
0x2c, 0x22, 0x61, 0x70, 0x69, 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x3a, 0x22, 0x76, 0x31, 0x61, 0x6c, 0x70, 0x68, 0x61, 0x31, 0x22, 0x7
d}, Name:"projects/driven-seer-287602/locations/us-central1-f/operations/operation-1626490461834-5c748d2354d77-2b857af8-1244efae", Response:googlea
pi.RawMessage(nil), ServerResponse:googleapi.ServerResponse{HTTPStatusCode:200, Header:http.Header{"Cache-Control":[]string{"private"}, "Content-Ty
pe":[]string{"application/json; charset=UTF-8"}, "Date":[]string{"Sat, 17 Jul 2021 02:54:42 GMT"}, "Server":[]string{"ESF"}, "Vary":[]string{"Origi
n", "X-Origin", "Referer"}, "X-Content-Type-Options":[]string{"nosniff"}, "X-Frame-Options":[]string{"SAMEORIGIN"}, "X-Xss-Protection":[]string{"0"
}}}, ForceSendFields:[]string(nil), NullFields:[]string(nil)}, op.Error: &tpu.Status{Code:3, Details:[]googleapi.RawMessage(nil), Message:"Cloud TP
U received an invalid argument. The 'CIDR Range' value \"10.240.1.120/29\" on network \"tp-networkdefault4153782072545391213\" conflicts with another subnet or object in the (peered) customer network. [EID: 0x317d02aa3a04d383]", ForceSendFields:[]string(nil), NullFields:[]string(nil)} 

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