Slide 1

Slide 1 text

J20/Λࢧ͑Δ σʔλ෼ੳج൫ͱ#JH2VFSZ ͑ͼελWPM 7"4*-:!LZVOT

Slide 2

Slide 2 text

ࠓଜխ޾ !LZVOT 7"4*-: *OD औక໾$50$P'PVOEFS ೥ʹ:BIPP+"1"/ʹ৽ଔೖࣾ :BIPP'"4)*0/ɺ9#3"/%ͳͲͷϝσΟΞͷ্ཱͪ͛ ೥ʹಠཱɺ7"4*-:Λ૑ۀɺऔక໾$50ʹब೚ ޷͖ͳ੠༏͸ਫथಸʑ

Slide 3

Slide 3 text

ঁੑͷϑΝογϣϯϥΠϑΛΦγϟϨʹً͔ͤΔͨΊͷɺ ண͍ͨίʔσ͕ݟ͔ͭΔɺങ͑ΔɺஷΊΒΕΔϑΝογϣϯΞϓϦɻ ݱࡏສͷձһొ࿥ ٕज़ސ໰·ͭ΋ͱΏ͖ͻΖ

Slide 4

Slide 4 text

J20/ͷσʔλͱ͸ʁ

Slide 5

Slide 5 text

w ΞϓϦ಺Πϕϯτϩά w ϓογϡ௨஌ϩά w Ϛελʔσʔλ w ηʔϧεσʔλ શͯ#JH2VFSZʹ͍Εͨ

Slide 6

Slide 6 text

ͳͥσʔλΛूΊͨͷ͔ w ࣾ಺ͷ৭ʑͳσʔλ͕༷ʑͳετϨʔδʹ෼ࢄ ͍ͯ͠Δʢ.Z42- .POHP%# ֤छ4BB4ʜ w σʔλΛՕॴʹूΊͯޮ཰తʹ෼ੳ͍ͨ͠ w #*πʔϧͰΰϦΰϦ෼ੳ͍ͨ͠ w μογϡϘʔυ࡞Γ͍ͨ

Slide 7

Slide 7 text

ͳͥ#JH2VFSZͳͷ͔ʁ w JNQPSUͷܗ͕ࣜॊೈͰ͋Δ w #*πʔϧରԠ UBCMFBV w ਺ԯϨίʔυͰ΋ߴ଎ʹಈ͘ w qVFOUEͷQMVHJO͕ἧͬͯΔ w TUSFBNJOHJOTFSUʹରԠ͍ͯ͠Δ

Slide 8

Slide 8 text

w ΞϓϦ಺Πϕϯτϩά w ϓογϡ௨஌ϩά w Ϛελʔσʔλ w ηʔϧεσʔλ

Slide 9

Slide 9 text

ΞϓϦ಺ߦಈϩά ΞϓϦղੳπʔϧʮ-PDBMZUJDTʯͷੜσʔλ
 ϢʔβʔͷશΠϕϯτΛه࿥ͨ͠+40/ ԯߦ݄

Slide 10

Slide 10 text

ऩूΞʔΩςΫνϟ Amazon S3 "844 &$ (PPHMF$MPVE4UPSBHF #JH2VFSZ ΞϓϦ JNQPSUCBUDI -PDBMZUJDTͷTCVDLFU͔Β($4ܦ༝Ͱ#JH2VFSZʹDPQZ ଎౓ͷ໰୊ͰҰ౓(PPHMF$MPVE4UPSBHFʹDPQZͨ͠΄͏͕଎͍ ఆظతʹ#BUDIͰJNQPSU

Slide 11

Slide 11 text

w ΞϓϦ಺Πϕϯτϩά w ϓογϡ௨஌ϩά w Ϛελʔσʔλ w ηʔϧεσʔλ

Slide 12

Slide 12 text

ϓογϡ௨஌ϩά w ΞϓϦͷϓογϡ௨஌ͷϩά w શͯͷϓογϡͷૹ৴ɺ։෧ϩά ສRQT w ϓογϡͷ$53ޮՌݕূ΍λʔήςΟϯάΞϧ ΰϦζϜͳͲͷ࠷దԽʹར༻ w qVFOUE͕େ׆༂

Slide 13

Slide 13 text

ϩάϑΥʔϚοτ ͍ͭͲͷVTFSʹରͯ͠ͲΜͳϓογϡΛૹ͔ͬͨɺ։͍͔ͨ

Slide 14

Slide 14 text

ϓογϡϩάΞʔΩςΫνϟ #JH2VFSZ "1*4FSWFST qVFOUE "1/T ($. -PH4FSWFS qVFOUE qVFOUEܦ༝Ͱ#JH2VFSZʹ 4USFBNJOH*OTFSU qVFOUQMVHJOCJHRVFSZΛར༻ ΞϓϦ Amazon S3 "844 ૹ৴ϩά ΫϦοΫϩά ૹ৴ˍΫϦοΫϩά

Slide 15

Slide 15 text

type bigquery method insert auth_method private_key email [email protected] private_key_path /home/vasily/fluentd/XXXXXX.p12 buffer_type file flush_interval 0 try_flush_interval 0.05 queued_chunk_flush_interval 0.01 buffer_chunk_records_limit 250 buffer_chunk_limit 512k bugger_queue_limit 1024 retry_limit 5 retry_wait 0.5 num_threads 32 dataset app project iqon-data-mining auto_create_table true table event_notification_click_%Y%m schema_path /home/vasily/fluentd/schema_event_notification_click.json buffer_path /var/log/td-agent/buffer/bigquery/event.notification.click ສRQTҎ্ʹ଱͑ΔͨΊʹ CV⒎FS@UZQFΛpMFʹ͠ͳ͍ͱ͍͚ͳ͔ͬͨ

Slide 16

Slide 16 text

w ΞϓϦ಺Πϕϯτϩά w ϓογϡ௨஌ϩά w Ϛελʔσʔλ w ηʔϧεσʔλ

Slide 17

Slide 17 text

Ϛελʔσʔλ w .Z42- 3%4 ʹ͋ΔJ20/ͷதͷϚελʔσʔλ
 6TFST *UFNT 4FUT #SBOET 4IPQʜFUD
 w ϢʔβʔͷΞΫςΟϏςΟσʔλ
 ΞΠςϜ-*,& ίʔσ-*,& ϑΥϩʔʜFUD
 ԯϨίʔυͱ͔͋Δςʔϒϧୡ w "84্ͷ3%4ʹ֨ೲ͞Ε͍ͯΔ΋ͷΛ#JH2VFSZʹ 4ZOD

Slide 18

Slide 18 text

TZODํ๏ w ಠࣗεΫϦϓτͰҰׅJNQPSU w .Z42-ͷςʔϒϧఆ͔ٛΒࣗಈతʹ#JH2VFSZ ͷ4DIFNBΛੜ੒ w ·Δ͝ͱςʔϒϧΛEVNQͯ͠·Δ͝ͱDPQZ w ਺ઍສϨίʔυͰ΋ͦΜͳʹ͔͔࣌ؒΒͳ͍ ෼ఔ౓

Slide 19

Slide 19 text

3%4UP#JH2VFSZ "843%4 &$ (PPHMF$MPVE4UPSBHF #JH2VFSZ JNQPSUCBUDI EFTDUBCMF@OBNFͨ͠಺༰͔Β#JH2VFSZͷTDIFNBKTPOΛੜ੒ TFMFDUGSPNUBCMF@OBNFUBCMFUTWͨ͠಺༰Λ($4ʹVQMPBEͨ͠ޙɺ #JH2VFSZʹλϒ۠੾ΓUTWͱͯ͠DPQZΧϯϚ۠੾ΓͷσʔλʹରԠ͢ΔͨΊ bq load --max_bad_record=1000 --project_id=iqon-data-mining —source_format=CSV --field_delimiter='\t' --skip_leading_rows=1 iqon-data- mining:app.#{@table_name} gs://iqon-rds/#{@table_name}.tsv schema_#{@table_name}.json

Slide 20

Slide 20 text

w ΞϓϦ಺Πϕϯτϩά w ϓογϡ௨஌ϩά w Ϛελʔσʔλ w ηʔϧεσʔλ

Slide 21

Slide 21 text

ηʔϧεσʔλ w ΞΠςϜͷߪೖΫϦοΫɺߪೖ׬ྃσʔλ w ֨ೲઌ͸.POHP%# w ͱͯ΋େ͖͍ίϨΫγϣϯʢ਺े( w NPOHPCRΛ༻͍ͯ#JH2VFSZʹҰׅJNQPSU
 !IBLPCFSB IUUQTHJUIVCDPNIBLPCFSBNPOHPCR

Slide 22

Slide 22 text

.POHP%#UP#JH2VFSZ &$ (PPHMF$MPVE4UPSBHF #JH2VFSZ JNQPSUCBUDI NPOHPCRίϚϯυΛ༻͍ͯTUSFBNͰॲཧͯ͘͠ΕΔ TDIFNBࣗಈ൑ఆػೳ΋͋Δ͕ɺಠࣗͰTDIFNBΛࢦఆ΋Ͱ͖Δ ࢦఆ͢ΔLFZpMF͸QͰ͸ͳ͘KTPOܗࣜͷ΋ͷͳͷͰ஫ҙ mongobq --host mongo02c --port 27017 --database iqon_conversion --collection click_log -q '{"date": "#{date}"}' --project iqon-data-mining --dataset app --keyfile /home/vasily/XXXX.json -B iqon-mongo -T click_log_test --schema ./ schema_mongo_iqon_conversion_click_log.json --autoclean

Slide 23

Slide 23 text

ΞΫηεσʔλ ൪֎ฤ w (PPHMF"OBMZUJDTͷσʔλ͸ (PPHMF"OBMZUJDTϓϨϛΞϜͳΒ#JH2VFSZʹ ੜσʔλΛࣗಈతʹJNQPSUͯ͘͠ΕΔ w ສԁ݄͙Β͍ͱ͍͏ᷚ

Slide 24

Slide 24 text

·ͱΊ w શͯͷσʔλ΍ϩάΛ#JH2VFSZՕॴʹूΊͨ ͓͔͛Ͱ෼ੳ͕֨ஈʹޮ཰తʹͳͬͨ
 ϚελʔσʔλͱϩάσʔλΛ+0*/ͯ͠෼ੳ w #JH2VFSZ҆ͯ͘͏·͍
 5#ετϨʔδ࢖ͬͯ΋݄ ԁఔ౓
 εΩϟϯྉ͕5#͋ͨΓ݄ԁఔ౓ ݱࡏ

Slide 25

Slide 25 text

8F`SF)JSJOH J20/͸೔ຊͰҰ൪ϑΝογϣϯʹ ؔ͢Δσʔλ͕ू·Δ৔ॴͰ͢ɻ σʔλΛ࢖ͬͯνϟϨϯδͯ͠Έ͍ͨਓΛ ͓଴͓ͪͯ͠Γ·͢ɻ JOGP!WBTJMZKQ