Upgrade to Pro — share decks privately, control downloads, hide ads and more …

/fastly-meetup-3

5292dd0924f5e440a4b7ff40b165a0b4?s=47 tkuchiki
October 31, 2019

 /fastly-meetup-3

5292dd0924f5e440a4b7ff40b165a0b4?s=128

tkuchiki

October 31, 2019
Tweet

Transcript

  1. 'BTUMZͷ$VTUPN7$- ΛDPOpHUFTU͢Δ 'BTUMZNFFUVQ !ULVDIJLJ 1

  2. 8)0".*  w!ULVDIJLJ w43&BU.FSQBZ

  3. "HFOEB w7BSOJTIͷDPOpHUFTUʹ͍ͭͯ wDPOpHUFTU͍ͨ͠Ϟνϕʔγϣϯ w'BTUMZ7$-ʹ͍ͭͯ w'BTUMZ7$-ΛDPOpHUFTU͢ΔͨΊʹ΍ͬͨ͜ͱ w·ͱΊ

  4. 8IBUJTDPOpHUFTU w$POpHϑΝΠϧͷߏจνΣοΫίϚϯυ wFH w OHJOYU w IUUQEU w7BSOJTIʹ΋͋Γ·͢ wWBSOJTIE$GQBUIUPWDMpMF wIUUQTWBSOJTIDBDIFPSHEPDTSFGFSFODFWBSOJTIEIUNM

  5. DPOpHUFTUGBJMFE $ varnishd -C -f /path/to/custom.vcl Message from VCC-compiler: Unknown

    variable 'req.foo' At: (input Line 3 Pos 7) if (req.foo == "bar") { ------#######------------ Running VCC-compiler failed, exit 1
  6. DPOpHUFTUTVDDFTTGVM w$ͷઆ໌ʹॻ͍ͯ͋Δͱ͓Γɺ$ͷίʔυ͕දࣔ͞ΕΔ w༨ஊ wDPOpHUFTU͸੒ޭࣦഊʹؔΘΒͣFYJUDPEFΛฦ͢ w 3VOOJOH7$$DPNQJMFSGBJMFE FYJUΛHSFQW͠ͳ͍ͱͩΊͦ͏ 

  7. DPOpHUFTU͍ͨ͠Ϟνϕʔγϣϯ w5FSSBGPSNͰGBTUMZͷઃఆΛ؅ཧ͍ͯ͠ΔͱUFSSBGPSN BQQMZͰมߋΛద༻Ͱ͖Δ wUFSSBGPSNQMBOͰࠩ෼ΛݟΒΕΔ w͕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WDMCPJMFSQMBUF

  20. None
  21. 7BSOJTI EPDLFSSVOW QXE DVTUPNWDMQBUIUPDVTUPNWDMUULVDIJLJ WBSOJTI$GQBUIUPDVTUPNWDM .FTTBHFGSPN7$$DPNQJMFS 6OLOPXOWBSJBCMFSFRNFUIPE "U JOQVU-JOF1PT 

    JG SFRNFUIPE)&"%SFRNFUIPE(&5 SFRNFUIPE'"45-:163(& \  3VOOJOH7$$DPNQJMFSGBJMFE FYJU
  22. վ଄ͨ͠7BSOJTI EPDLFSSVOW QXE DVTUPNWDMQBUIUPDVTUPNWDMUULVDIJLJ GWDMDPOpHUFTU$GQBUIUPDVTUPNWDM  GFUDI@GVOD7($@GVODUJPO@WDM@GFUDI  EFMJWFS@GVOD7($@GVODUJPO@WDM@EFMJWFS 

    FSSPS@GVOD7($@GVODUJPO@WDM@FSSPS  MPH@GVOD7($@GVODUJPO@WDM@MPH  ^ $ͷίʔυ͕ग़ྗ͞Ε͍ͯΔͷͰ௨͍ͬͯΔʂ
  23. ࠓճ΍ͬͨ͜ͱ w7$-Ͱ࢖͑Δม਺Λ'BTUMZͷυΩϡϝϯτʹԊͬͯશ෦௥Ճ wม਺ͷܕΛἧ͚͑ͨͩͰத਎͸࣮૷͍ͯ͠ͳ͍ͷͰɺ7BSOJTIͱͯ͠ ͸ಈ࡞͠ͳ͍ wdରԠ wۭͷWDM@MPHͳΒDPOpHUFTU͕௨ΔΑ͏ʹͨ͠

  24. ࠓճ΍ͬͨ͜ͱ wEJSFDUPSTͱCBDLFOEͷϓϩύςΟΛ௥Ճ wલड़ͷRVPSVN΍TTM  w TTMͱTTM@DIFDL@DFSU͸CPPMFBOʹͳ͍ͬͯΔ͕ɺCBDLFOEͰCPPMFBO Λ࢖͏ϓϩύςΟ͕ͳ͔ͬͨͷͰɺಠࣗʹϧʔϧΛهड़ w TTM@DIFDL@DFSU͸BMXBZTͱ͍͏ಛघͳ஋΋ڐ༰͞Ε͍ͯΔͨΊɺ͜Ε΋ର Ԡ

    w RVPSVNʹ͸͕͸͍ΔͷͰͦΕʹ΋ରԠ w σϑΥϧτͰLC NCΈ͍ͨͳόΠτ਺ͷ୯Ґʹ͸ରԠ͍ͯ͠Δ͕ɺˋ༻ͷίʔυ͕ଘ ࡏ͠ͳ͍
  25. ·ͩग़དྷ͍ͯͳ͍͜ͱ wؔ਺ͷ௥Ճ wWDM@MPH΁ͷͪΌΜͱͨ͠ରԠ w$VTUPN7$-ʹ͸ॻ͍͍ͯͳ͍SFTPVSDFΛ࢖༻͍ͯ͠Δ͹͋ ͍΁ͷରԠ wྫ͑͹ɺUFSSBGPSNGBTUMZQSPWJEFSͰCBDLFOE΍EJSFDUPSΛఆٛ ͯ͠ɺͦΕΛࢀর͢Δέʔε w͜Ε͕Ͱ͖ͳ͍ͱɺຊདྷͷ໨తͷUFSSBGPSNBQQMZલʹTZOUBY FSSPSʹؾ͕ͭ͘ɺ͕ୡ੒Ͱ͖ͳ͍

  26. 7BSOJTIΛॻ͖׵͑ͯΈͯͷײ૝ wιʔείʔυδΣωϨʔλʔʹ5$-Λ࢖͍͍ͬͯͯ͢͝ wॳΊͯUDMTIίϚϯυΛ࢖͍·ͨ͠ wYͰ͸QZUIPOʹͳ͍ͬͯ·ͨ͠ w7$-Λύʔεͯ͠$ͷίʔυʹม׵͢ΔϓϩάϥϜͳͷͰɺॲ ཧ͕ෳࡶ w׳ΕΔͷʹ͕͔͔࣌ؒΔ wؔ਺ͷఆٛՕॴ͕ະͩʹΑ͘Θ͔͍ͬͯͳ͍ wͷͰɺࠓճͷൃද·ͰʹରԠͰ͖·ͤΜͰͨ͠

  27. ·ͱΊ w'BTUMZ7$-͸ؤுΕ͹DPOpHUFTUͰ͖Δ͚Ͳɺ͔ͳΓؤுΒ ͳ͍ͱͰ͖ͳ͍ wศརͳػೳ͕৭ʑ࢖͑ΔͷͰ'BTUMZ͸͍͢͝