{"id":267,"date":"2020-04-27T21:36:38","date_gmt":"2020-04-27T12:36:38","guid":{"rendered":"http:\/\/localhost:8000\/?p=267"},"modified":"2021-01-16T21:37:20","modified_gmt":"2021-01-16T12:37:20","slug":"gcp-cost-estimate","status":"publish","type":"post","link":"http:\/\/localhost:8000\/2020\/04\/gcp-cost-estimate.html","title":{"rendered":"GCP\u306e\u30b3\u30b9\u30c8\u898b\u7a4d\u3082\u308a"},"content":{"rendered":"
GCP\u3092\u5229\u7528\u3057\u3066\u3044\u3066\u30b3\u30b9\u30c8\u898b\u7a4d\u3082\u308a\u3092\u5b9f\u884c\u3059\u308b\u306b\u3042\u305f\u3063\u3066\u306e\u30e1\u30e2\u3092\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n
\u57fa\u672c\u7684\u306b\u306f\u3053\u3061\u3089\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002 GCE\u306b\u95a2\u3057\u3066\u306f\u3001\u4e0a\u8a18\u3088\u308a\u3082\u5b9f\u969b\u306bVM\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u9014\u4e2d\u307e\u3067\u4f5c\u6210\u3059\u308b\u306e\u304c\u4e00\u756a\u78ba\u5b9f\u3067\u3059\u3002<\/p>\n \u30b3\u30f3\u30bd\u30fc\u30eb<\/a> \u3092\u958b\u3044\u3066\u3001\u30e1\u30cb\u30e5\u30fc\u304b\u3089 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4f5c\u6210\u753b\u9762\u304c\u958b\u304b\u308c\u307e\u3059\u306e\u3067\u3001\u3042\u3068\u306f\u3001 \u6599\u91d1\u4f53\u7cfb\u306f\u3053\u3061\u3089<\/a>\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306e3\u3064\u306f\u5c11\u306a\u304f\u3068\u3082\u6c17\u306b\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n \u30b9\u30c8\u30ec\u30fc\u30b8\u30b3\u30b9\u30c8\u306f \u30af\u30a8\u30ea\u30b3\u30b9\u30c8\u3082\u57fa\u672c\u306f\u540c\u69d8\u306b\u30c6\u30fc\u30d6\u30eb\u30b5\u30a4\u30ba\u304b\u3089\u3056\u3063\u304f\u308a\u628a\u63e1\u3057\u3066\u304a\u304d\u3001\u3068\u3066\u3082\u5927\u304d\u306a\u30c6\u30fc\u30d6\u30eb\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3068\u304d\u4ee5\u5916\u306f\u3042\u307e\u308a\u6c17\u306b\u3057\u3066\u306a\u3044\u3067\u3059\u304c\u3001\u3061\u3083\u3093\u3068\u78ba\u8a8d\u3059\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3044\u305a\u308c\u304b\u306e\u65b9\u6cd5\u3092\u53d6\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n \u4e00\u3064\u76ee\u306f\u3001 \u4e8c\u3064\u76ee\u306f\u3001BigQuery\u306e\u30b3\u30f3\u30bd\u30fc\u30eb\u753b\u9762\u304b\u3089\u30af\u30a8\u30ea\u306e\u30b3\u30b9\u30c8\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002SQL\u3092\u5165\u529b\u3057\u3066\u3044\u304f\u3068\u5b9f\u884c\u524d\u306b\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u30a2\u30af\u30bb\u30b9\u3059\u308b\u30d0\u30a4\u30c8\u6570\u3092\u8868\u793a\u3057\u3066\u304f\u308c\u307e\u3059\u3002 GCP\u3092\u5229\u7528\u3057\u3066\u3044\u3066\u30b3\u30b9\u30c8\u898b\u7a4d\u3082\u308a\u3092\u5b9f\u884c\u3059\u308b\u306b\u3042\u305f\u3063\u3066\u306e\u30e1\u30e2\u3092\u8a18\u8f09\u3057\u3066\u304a\u304d\u307e\u3059\u3002 \u57fa\u672c \u57fa\u672c\u7684\u306b\u306f\u3053\u3061\u3089\u3092\u5229\u7528\u3059\u308b\u3053\u3068\u306b\u306a\u308b\u3068\u601d\u3044\u307e\u3059\u3002 Google Cloud Platform \u6599\u91d1\u8a08\u7b97\u30c4\u30fc\u30eb GCE GCE\u306b\u95a2\u3057\u3066\u306f\u3001\u4e0a\u8a18\u3088\u308a\u3082\u5b9f\u969b\u306bVM\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u9014\u4e2d\u307e\u3067\u4f5c\u6210\u3059\u308b\u306e\u304c\u4e00\u756a\u78ba\u5b9f\u3067\u3059\u3002 \u30b3\u30f3\u30bd\u30fc\u30eb \u3092\u958b\u3044\u3066\u3001\u30e1\u30cb\u30e5\u30fc\u304b\u3089Compute Engine -> VM\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u958b\u304d\u3001\u4f5c\u6210\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002 \u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u4f5c\u6210\u753b\u9762\u304c\u958b\u304b\u308c\u307e\u3059\u306e\u3067\u3001\u3042\u3068\u306f\u3001\u30ea\u30fc\u30b8\u30e7\u30f3 \u30de\u30b7\u30f3\u306e\u69cb\u6210 GPU\u306e\u6709\u7121 \u8ffd\u52a0\u30c7\u30a3\u30b9\u30af\u306e\u6709\u7121\u306a\u3069\u3001\u8272\u3005\u8a2d\u5b9a\u3092\u5909\u3048\u306a\u304c\u3089\u753b\u9762\u53f3\u4e0a\u306b\u8868\u793a\u3055\u308c\u308b\u30b3\u30b9\u30c8\u3092\u78ba\u8a8d\u3059\u308b\u3060\u3051\u3067\u3059\u3002 BigQuery \u6599\u91d1\u4f53\u7cfb\u306f\u3053\u3061\u3089\u306b\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4ee5\u4e0b\u306e3\u3064\u306f\u5c11\u306a\u304f\u3068\u3082\u6c17\u306b\u3057\u3066\u3044\u307e\u3059\u3002 \u30a2\u30af\u30c6\u30a3\u30d6\u30b9\u30c8\u30ec\u30fc\u30b8\u30b3\u30b9\u30c8: $0.020 per GB per month \u4f8b) 1TB\u30921\u30f5\u6708\u4fdd\u5b58\u3059 <\/span>Continue Reading<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[14],"tags":[],"_links":{"self":[{"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/posts\/267"}],"collection":[{"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/comments?post=267"}],"version-history":[{"count":1,"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/posts\/267\/revisions"}],"predecessor-version":[{"id":270,"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/posts\/267\/revisions\/270"}],"wp:attachment":[{"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/media?parent=267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/categories?post=267"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/localhost:8000\/wp-json\/wp\/v2\/tags?post=267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\nGoogle Cloud Platform \u6599\u91d1\u8a08\u7b97\u30c4\u30fc\u30eb<\/a><\/p>\nGCE<\/h1>\n
Compute Engine -> VM\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9<\/code>\u3092\u958b\u304d\u3001
\u4f5c\u6210<\/code>\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n
\u30ea\u30fc\u30b8\u30e7\u30f3<\/code>
\u30de\u30b7\u30f3\u306e\u69cb\u6210<\/code>
GPU\u306e\u6709\u7121<\/code>
\u8ffd\u52a0\u30c7\u30a3\u30b9\u30af\u306e\u6709\u7121<\/code>\u306a\u3069\u3001\u8272\u3005\u8a2d\u5b9a\u3092\u5909\u3048\u306a\u304c\u3089\u753b\u9762\u53f3\u4e0a\u306b\u8868\u793a\u3055\u308c\u308b\u30b3\u30b9\u30c8\u3092\u78ba\u8a8d\u3059\u308b\u3060\u3051\u3067\u3059\u3002
\n<\/p>\nBigQuery<\/h1>\n
\n
\n
\n
\n
bq show dataset.tablename<\/code>\u3067\u30c6\u30fc\u30d6\u30eb\u306e\u30b5\u30a4\u30ba\uff08Total Bytes\uff09\u3092\u78ba\u8a8d\u3057\u3066\u307e\u3059\u3002<\/p>\n
$ bq show dataset.tablename\nTable project.dataset.tablename\n Last modified Schema Total Rows Total Bytes Expiration Time Partitioning Clustered Fields Labels\n ----------------- -------------------------- --------- ------------ ------------- ------------ ------------------- ------------------ -------- \n 15 Apr 10:45:04 |- id: integer (required) 49694562 2073491286\n |- name_en: string\n |- created_at: timestamp\n |- updated_at: timestamp<\/code><\/pre>\n
bq query --dry_run<\/code>\u3067\u30d0\u30a4\u30c8\u6570\u3092\u78ba\u8a8d\u3057\u3066\u3001\u30b3\u30b9\u30c8\u3092\u8a08\u7b97\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n
$ bq query --dry_run "select * from dataset.tablename"\nQuery successfully validated. \nAssuming the tables are not modified, \nrunning this query will process 2073491286 bytes of data.<\/code><\/pre>\n
\n<\/p>\n","protected":false},"excerpt":{"rendered":"