gcp ja night #28 ã«åå ãã¦ããã®ã§ãè²ã ã¾ã¨ãããã¼ãã¹ã©ã¤ãè³æãè¦ãã°ããããããªãã¨ã¯æ¸ããªãæ¹åã§ã
æ親ä¼ã®å ´ã§ãGoogler ã®ä½è¤ããã«ãåããæ°ã«ãªã£ã¦ããã¨ãããã¤ã質åã§ããã®ã§ããã®å 容ããã®ã¨ã³ããªã®æå¾ã«ã¡ã¢ã£ã¨ãã
ã¤ãã³ããã¼ã¸
å種ã¾ã¨ã
2014.09.16 gcp ja night #28 #gcpja - Togetter
gcp ja night #28 - 資料一覧 - connpass
Managed VMã®Docker対å¿ã¨Kubernetesææ°åå
- @briandorsey by Brian Dorsey, Developer Advocate, Google Inc.
- åã®è¦³æ¸¬ç¯å²ã§ã¯ãã¹ã©ã¤ãè³æã®å ¬éã¯ãªã
- GAE ãªã©ã®ãã㪠PaaS ã使ãã¤ã¤ãIaaS çãªãã®ã使ããããªã£ããã¨ããããããã¨ããã話
- PaaS ã«ã¯å¶ç´ãä»ãç©ãä¾ãã°ãã¡ã¤ã«ã®åºåãè¡ããªãã£ããã¨ã
- 1 request ãè¿ãã¾ã§ã®ã¿ã¤ã ãªãããããã£ããã ã¨ã
- ç¹å®ã®ã©ã¤ãã©ãªã使ããªãã£ããã¨ããä»æ¥ã¯ãã®åé¡ã®è§£æ¶ããã¢ã§ãã£ã¦ããã
- ããæ°ç¬ã®åé¡ãã¤ã¡ã¼ã¸ã§ä¸ããã¤ã¡ã¼ã¸ã®è§£æã MVMs ä¸ã§ã©ã¤ãã©ãªã使ã£ã¦å®æ½ãã
- ãããå¶ãã¦ãããã®ããManagement VMsï¼MVMsï¼
- GAE ã®ã¤ã³ã¹ã¿ã³ã¹ããGCE ä¸ã§åããã¦ããã
- GAE 㨠GCE ã¨ã®æ©æ¸¡ãã«ã¯ãï¼ä»æ¥ç´¹ä»ãããä¾ã ã¨ï¼Task Queue ã使ã
- GAE ã Task ã push / GCE ã Task ã pull...ã£ã¦ãã¨ãªã®ããªï¼
- GAE ã«ã¯ Module / Version ã¨ããèãæ¹ããããã©
- ãããã¸ãã«ã¤ãã¦ã¯ã GAE Managed VMs誕生までの歴史を振り返る | 株式会社トップゲート ãé常ã«ä¸å¯§ãã¤ãããããã
- ãã Module 丸ã ã²ã¨ã¤ã MVMs ã«ãªãã¤ã¡ã¼ã¸
- ããã³ãã¯ãªã¼ãã¹ã±ã¼ã«ãã GAE ã§ãã©ã¤ãã©ãªå¦çã®å¿
è¦ãªããã¯ã¨ã³ã㯠GCE ã§
- ããã¯ã¨ã³ãã®æ¹ããLA ããã¨ã«ãMVMs å´ã調ç¯ãã¦ããããããã
- MVMs ã¯ã¾ã Limited preview
Containerizing the Cloud
- Docker ã¨ãã³ã³ããã¨ãã®ã話ã
- å人çã«ãããã¸ãå¼±ãé¨åãªã®ã§ãã¡ã¢ãèªä¿¡ãªã(´ã»Ïã»ï½)
- ãªãã³ã³ããã¯å¬ãããï¼
- éçãªç°å¢ãç¨æã§ãã
- ãã¼ã¿ããªãã£
- ççµåã«ãªã
- Google ã§ã¯ã»ã¼ãã¹ã¦ãã³ã³ããåããã¦ã
- ã³ã¼ãã®ãªãã¸ããªã¯ã©ããã»ã¨ãã©åãï¼ï¼ï¼
- ä¾åæ§ãã²ã¨ã¤ã®ãã¤ããªã«å ¥ã£ã¦ã
Kubernetes
- çºé³ã
ãã°ãã¦ãã¼ã
ã£ã¦èãããããå¤åãã
- çºé³ã
- ä¾ãã°åä¸ãã¹ãä¸ã§åä½ãã2ã¤ã®ã³ã³ãããã常ã«ã»ããã§èµ·åãããã¨ã...
- Kubertes ã«ä¸¸æãã§ãããå¤ãã®ã³ã³ãã群ã Kubernetes ã§ç®¡çã§ãã
- role ã staging / production ãªã©ãè¨å®ã§ãã
- ã³ã³ããã®çµã¿åããã Pod ã¨å¼ãã§ã
- 4 Pods 欲ããã¨ãã¯ãã4 replicasã
- templates ã«ãããããã決ãã¦ãããã³ã³ããã®çµã¿åããå®ç¾©ãæå®ãã
#gcpja podã¯åä¸ãã¹ãä¸ã§åãã³ã³ããã®çµã¿åãã Replica Controller ã¯ããã®ç®¡ç人 podã®æ°ãã³ã³ããã¼ã«ãã Serviceã¯ãããã¯ã¼ãã³ã° LBã®å½¹å²ããã ã³ã³ããéã®ãããã¯ã¼ãã³ã°ãè¡ã
— ãã¼ã¯ã(ããã¨ãã¼) (@soundTricker318) 2014å¹´9æ16æ¥
#gcpja ä»è¦ã¦ããã¢ã¯k8sã«å ¥ã£ã¦ããã¢ã§ã ããâ https://t.co/gYUjhnT9wn
— ãã¼ã¯ã(ããã¨ãã¼) (@soundTricker318) 2014å¹´9æ16æ¥
Google BigQueryã®æ¦è¦³ã¨ã¦ã¼ã¹ã±ã¼ã¹
- by @naoya_ito
ä»æ¥ä½¿ç¨ãããã¹ã©ã¤ããã®ãã®ã¯è¦ã¤ãããªãã£ãã®ã ãã©ãå æ¥ã® YAPC ã¨ã»ã¨ãã©åãå 容ã ã¨ã®ãã¨å ¬éããã¾ããã®ã§å·®ãæ¿ãã¾ããï¼2014/09/17 17:33ï¼ããã¡ã -> Google BigQuery の話 #gcpja - Speaker Deck- 6ãã¼ã¸ç®ï¼BigQuery ã®ãã¬ã¤ã¯ã¹ã«ã¼ã®ä¸ã¤ã«ã¯ãStreaming Insert API ã使ããããã«ãªã£ããã¨ãæããããã
- 12ãã¼ã¸ç®ï¼ä¾¡æ ¼ãç°å¸¸ã«å®ãã®ãç¹è²ã®ä¸ã¤ã
- ããã«ãã¹ãã£ã³ãµã¤ãº 1TB/month ã¯ç¡æã
- 16ãã¼ã¸ç®ï¼ColumnIO ã®ãããã§ãã©ã³ãã ãªã¼ãã«ãªããã·ã¼ã±ã³ã·ã£ã«ãªã¼ãã¨ãªããå¬ããã
KAIZEN ã§ã®ã¤ããã©ãã
- 34ãã¼ã¸ç®ï¼æ£è¦åã¯ãã¾ãããªãã®ãã»ãªãªã¼ã
- 35ãã¼ã¸ç®ï¼å¤é¨ãã¼ã«ã¨ã®æ¥ç¶
- 38ãã¼ã¸ç®ï¼æ¨æºSQLã§ã¯ãªããã®ã§ã注æã¯ãã¡ããå¿ è¦ã ãã便å©ãªé¢æ°ã¨ããå¤ãã®ã§ãã²èª¿ã¹ã¦ã¿ã¦ã¯ãï¼2014/09/17 17:33 ãã¼ã¸æ°ä¿®æ£ï¼
- 38ãã¼ã¸ç®ï¼ã©ãããã«ã¹ãã£ã³ãã¦ãããã¨ããåæã«ç«ã¤ã¨ãè¦ãã¦ãããã®ãããï¼2014/09/17 17:33 ãã¼ã¸æ°ä¿®æ£ï¼
- 39ãã¼ã¸ç®ï¼ä¸å¿ è¦ãªã«ã©ã ã«ã¯ null ãã»ãããããã¨ã§ã容éé£ããªãããããã¨ãã§ããï¼2014/09/17 17:33 追å ï¼
- 40ãã¼ã¸ç®ï¼åæ¹å±±è©±ï¼2014/09/17 17:33 ãã¼ã¸æ°ä¿®æ£ï¼
BigQueryã«ã©ã åé¤åºæ¥ãªããã©ã追å ã¯ç°¡åãªã®ã§ã使ããªãã«ã©ã ã¯nullã«ãã¦ãæ°ããã«ã©ã å¢ããã¦ããã¨ä¾¿å©ã #gcpja
— ã¯ãããã (@harukasan) 2014å¹´9æ16æ¥
GAE/Goã¨Managed VM
- by @ymotongpoo
- ã¹ã©ã¤ãè³æ -> https://preso.ymotongpoo.com/gcpjanight28.slide
- Runtime ã®éçºã¯ã·ããã¼ã§ãã£ã¦ã
- GAE/Go ã¯ã GAE/PHP ãããã¦ã¼ã¶ã¼ãå°ãªã...
- ï¼ãã¼ã¸ç®ï¼ãã¬ã¼ã ã¯ã¼ã¯ã®è©±ãããã¯ã¤ã³ãããã¨ãã£ã¦è©±ã GAE/J ã¨ãã§ããèãããã©ã GAE/Go ã§ãåããªã®ï¼
- å
¨ç¶ãããªãã¨ãªãããã¨ããã®ãã9ã16ãã¼ã¸ã®éã§æ¸ããã¦ãã
- ãããããã¬ã¼ã ã¯ã¼ã¯ã使ãå¿ è¦ã¯ãå¿ ããããªããããã¨ãã話 :-p
- User ã¨ã Task Queue ã¨ãã® appengine ç¹æã®ããã±ã¼ã¸ããã£ãããmainé¢æ°ã¯å¿ è¦ãªãã£ãããDB ã« Datastore ã使ãå ´åã¯å¤å°ããã¯ã¤ã³ãã¡ãããã©ããã®ç¨åº¦
- å
¨ç¶ãããªãã¨ãªãããã¨ããã®ãã9ã16ãã¼ã¸ã®éã§æ¸ããã¦ãã
- ã¡ãªãã
- spin upãã¯ããï¼ã¹ãã¤ã¯ã«å¼·ã
- æå ã§åããã¦ããã¢ããªã±ã¼ã·ã§ã³ããã®æ¹ä¿®ãå°ããã¾ã¾ã«ç§»æ¤å¯è½
- çµè« ï¼ GAE/Go ã¯æå¼·ï¼
ã³ã³ããã40msã§ç«ã¡ä¸ããPaaSã£ã¦ä»ã«ãªãã ãã¼ãGoogleã³ã³ããã¾ããå¾æ #gcpja
— Kazunori Sato (@kazunori_279) 2014å¹´9æ16æ¥
BigQueryã¨ä¿ºã¨Fluentd
- by @tagomoris:
- ã¹ã©ã¤ãè³æ -> BigQuery, Fluentd and tagomoris #gcpja
- 8ãã¼ã¸ç®ï¼table sharding inserts
- ãã¼ãã«ãããã®ã¯ãªã¼ã¿ãå³ããã®ã§ãsharding ã«å¯¾å¿ãã
- ãã¼ã¿ãããã¤ãã®ãã¼ãã«ã«åæ£ãã¦å
¥ãã
- ãããªãã¨ããã¦ãã from å¥ã« table ãè¤æ°æ¸ããã®ã§åé¡ã«ãªããªã :)
- 17ãã¼ã¸ç®ï¼ããã©ã¼ãã³ã¹ã«ã¤ãã¦
- 大éã«ãã¼ã¿ãæ¸ãåºãå ´å㯠table sharding 使ãã¾ããã
- æ¸ãè¾¼ã¿é¨åã ããã¹ã¬ããåããæ©è½ã fluentd ã«ããããããæ´»ç¨ãã¦ãã
- I/Oå¾ ã¡é¨åã並ååã§ãã
- 18ãã¼ã¸ç®ï¼ç¹å¾´
- èªè¨¼ã«ã¤ãã¦
- ã¹ãã¼ãã«ã¤ãã¦
scheme_path
- ãã¡ã¤ã«ã«ã¹ãã¼ãæ
å ±ãjsonã§æ¸ãã¦ã
schema_path
ã§æå®
- ãã¡ã¤ã«ã«ã¹ãã¼ãæ
å ±ãjsonã§æ¸ãã¦ã
fetch_schema
- åèµ·åããã¿ã¤ãã³ã°ã§èªåã§èªã¿è¾¼ãã§ãããï¼
- 19ãã¼ã¸ç®ï¼API Quota
- ãã£ããå³ããã
- fluentd ã®æ¢åã®APIã§ã¯æ¤åºã§ããªãé¨åã§ã®å¶éãå¤ã
- 20ãã¼ã¸ç®ï¼ã¯ã©ã¦ããããã¡ãã«ãã¦éã¶ã®ã¯ãç°å¢ãæºåããå¿
è¦ããªãã®ã§è¯ã :)
- å¤ãªå¶ç´ããããã¨ãå¤ãã¦çããï½
terraform + GCE
- by @voluntas
- ã¹ã©ã¤ãè³æ -> Terraform 0.2.2 で GCE + Ansible を試してみた
- Cloud Formation ã GCE ã§ä½¿ãããã«ã§ãããã®ï¼
- ã¨ã¯ããããGCE å¨ããæä½éãµãã¼ããããç¨åº¦ãã¨ããå°è±¡ãæåã¯ãã°ã
plan
㧠dry-run çãªapply
ã§é©ç¨- ã¤ã³ã¹ã¿ã³ã¹ã管çã§ããã®ã¯é åãprovisioning ãã§ãã
local-exec
ã ã¤ã³ã¹ã¿ã³ã¹ãçæãã ã¾ã ã«ãä½ããããããã¨ãã§ããremote-exec
ã¯èµ·åå¾ã chef ã¨ã®çµã¿åããããããã
- providerãå ¨ç¶è¶³ãã¦ãªããããããã«æå¾
BigQueryã§å¤§è¦æ¨¡æ票ãµã¤ããä½ã£ã話
- by @a2c
- ã¹ã©ã¤ãè³æã観測ç¯å²ã§ã¯çºè¦ã§ããªãã£ã
- çæ³ã®æ票ã¯é¸æã®ã·ã¹ãã ããã¼ãã¯ç¡ç
- ãã®ã¬ãã«ã§ããå¿ è¦ã¯ãªãããã©ãç®æãã
- è²ã
対çãªã©ãèããçµæãã¨ããããããå¾å
ãããããå
¨é¨ã®ãªã¯ã¨ã¹ããå
¨é¨ BigQuery ã«é£ãããããã¨ã«ã
- BQ ãªãã DB ãã¹ãã¬ã¼ã¸ã¨ãã®ãã¨ãèããªãã¦è¯ãï¼
- æ©æ¢°çãªã®ããããç¨åº¦ã¯çµããã
- GASã§ã°ã©ãåãã¦ãªã¢ã«ã¿ã¤ã ã§ã¢ãã¿ãªã³ã°
- 大éã«æ¸ãè¾¼ã¿ã¤ã¤ãããã«å ¨éã«ã¦ã³ããåæ並è¡ã§å®è¡ã¨ããå¹³æ°ã§ã§ããããããBigQueryã
- GAã®å¤ãã³ã£ãããããããæ£ç¢ºããã¼ã¿ã«ã®å¤ã¯èª¤å·®æªæºã0.3%æªæºã¨ãã
ã¯ããã¦ã®BQ GAS
- by @hakobera
- ã¹ã©ã¤ãè³æ -> はじめての BQ GAS - Speaker Deck
- 14ãã¼ã¸ç®ï¼GASã«ã¯cronçã«ä½¿ããããªã¬ãããï¼
- ã1æã2æã®éããã¨ãã£ã¦ããããã£ããããæã
- ãã®ã¬ãã«ã§å ¨ç¶åé¡ãªãããè² è·çãªé åããè¦è¨ãã£ããã¨ãããã£ã¡ã§èããå¿ è¦ããªãï¼
- 21ãã¼ã¸ç®ï¼æ¥æã¬ãã¼ãå®ç¾©ã·ã¼ããä½æã
- ãã®ã·ã¼ããåç §ãã¦ã¯ã¨ãªå®è¡ -> éç¥ãã¨ããä»çµã¿ã«ãã¦ããã°ãã¨ã³ã¸ãã¢å¯¾å¿ãªãã«ã¬ãã¼ãã®è¿½å ãã§ããï¼
ã¾ãããªè©±ãPM ãã BigQuery ã«ããã㧠SQL å®æçã«å®è¡ãã¦ã¬ãã¼ãåãåããããã ãã©ã£ã¦è©±ãã£ããã© GAS ã§ãµã¼ãã¼ã¬ã¹ã§è§£æ±ºã§ãããã ãªãããããã #gcpja
— Naoya Ito (@naoya_ito) 2014å¹´9æ16æ¥
Googler ã«è³ªåãããã¨
BigQuery ã§ã®ãã¹ãã£ã³ãµã¤ãºãã®è¦ç©ãæ¹ã«ã¤ãã¦
Qï¼ ãã«ã¹ãã£ã³ã ãããæå ¥ãµã¤ãºï¼ã¹ãã£ã³ãµã¤ãºãã¨è¦ã¦è¯ããã
Aï¼ è¯ããï¼
UDFã«ã¤ãã¦
Qï¼ ã¶ã£ã¡ãããUDF ã£ã¦ãã¤ãããã§ããããï¼
Aï¼ å¹´å ã«ã¯åºãããããªãã§ãããããå é¨çã«ã¯ããæ®éã«ä½¿ã£ã¦ããã®ã§ï¼
BigQuery ã«ãããã Temporary Table ã®å°æãããµã¤ãºã«ã¤ãã¦
Qï¼ BigQuery ã«å¯¾ãã¦æãããã¹ã¦ã®ã¯ã¨ãªã®çµæã¯ãdestination table ãæå®ããªãå ´å㯠24æéã§æ¶ãã temporary table ã«åºåãããã¨ãããã¨ã§ããï¼åèï¼ããã® temporary table ã®å°æãããµã¤ãºãã使ç¨æã®å¯¾è±¡ã«ãªãã¾ããï¼
Aï¼ Good Question ã§ããï¼ãã²ã15,000åã®ææãµãã¼ãã«å ¥ã£ã¦ãããã§åãåããã¦ä¸ããï¼ :)
質åãããã Googler ã¯ã¨ã£ã¦ãå売ä¸æã ã£ã...ã(ï½ï¼Ïï¼Â´)
ï¼ 2014/09/17 追è¨ï¼ãã®ä»¶ã«ã¤ãã¦ãå¥ã¨ã³ããªã«èµ·ããã¾ãããBigQuery へのクエリの投げすぎに注意しよう(2014/09/18 追記しました) #gcpja - えいのうにっき ï¼
ï¼ã¾ã¨ãã®å 容ã¯éæ追è¨ããããããã¾ãããï¼