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

ペパボにおけるOpenStackHacks!

 ペパボにおけるOpenStackHacks!

GMO Pepabo.incのOpenStack運用事例です。

Kazuhiko Yamashita

July 04, 2015
Tweet

More Decks by Kazuhiko Yamashita

Other Decks in Technology

Transcript

  1. ߏ੒ਤ /PWB"1* )PSJ[PO ,FZTUPOF /PWB$PNQVUF ෺ཧϗετ /FVUSPO $JOEFS HMBODF ͜Μͳ7.࡞Γ͍ͨ

    ͜ͷϢʔβʔݖݶ ͋Δʁ ࢖༻͢ΔΠϝʔδ 04͸͜Ε σΟεΫ͸͜͜Λ ࢖͏ $16ɼϝϞϦ͸ ͜Ε ࢖༻͢ΔωοτϫʔΫ͸͜Ε ΦϨΦϨʂԶͩΑʂ
  2. JUBNBF $JOEFS /PWB $PNQVUF /FVUSPO /PWB $PNQVUF /PWB $PNQVUF /PWB

    $PNQVUF ŠŠ ŠŠ ŠŠ ŠŠ ŠŠ ŠŠ ŠŠ ŠŠ ŠŠ (JUͰόʔδϣϯ؅ཧ OPWBDPOG ʜ OFVUSPODPOG ʜ DJOEFSDPOG ʜ TFSWJDFOPWBSFTUBSU TFSWJDFOFVUSPOSFTUBSU TFSWJDFDJOEFSSFTUBSU
  3. .BDLFSFM NBDLFSFM\ SPMFOZBIOFVUSPOOPEF  DPOG\ NPOJUPS< \ OBNFQMVHJODIFDLTOFVUSPOTFSWFS  DPNNBOEVTSMJCOBHJPTQMVHJOTDIFDL@QSPDTBOFVUSPOTFSWFSD

    ^  \ OBNFQMVHJODIFDLTOFVUSPO  DPNNBOEVTSMJCOBHJPTQMVHJOTDIFDL@UDQ)MPDBMIPTUQXD ^  ʜ > ^ ^
  4. LBOBNF ొ࿥಺༰ ,FZTUPOF QZBNB FNBJMlQZBNB!QFQBCPDPNl UFOBOUT NVVNVVlDJUZCPZ EFWFMPQlBENJOz UBOBLB FNBJMlUBOBLB!QFQBCPDPN

    UFOBOUT EFWFMPQNFOUNFNCFS (JU)VC13 ɹొ࿥಺༰ʹޡΓ͕ͳ͍͜ͱΛ
 ɹ֬ೝ͢Δ (JU)VCͰͷϨϏϡʔ׬ྃޙɺొ࿥
  5. LBLJOF  ઃఆϑΝΠϧΛZBNMͰఆٛ  ઃఆϑΝΠϧΛ(JUʹू໿  ηΩϡϦςΟઃఆͷϨϏϡʔ͕ՄೳʹͳΓɺ
 ·ͨɺొ࿥ɺ੾Γ໭͠ͷख͕ؒେ෯ʹ࡟ݮ JOUFSOBM@QFSNJU SVMFT

    EJSFDUJPOJOHSFTT QSPUPDPM FUIFSUZQF*1W QPSU SFNPUF@JQ EFTDSJQUJPOΠϯλʔφϧઢͷ௨৴ΛશͯڐՄ
  6. LBLJOF طଘઃఆͷऔಘɾฤूɾొ࿥ /PWB"QJ JOUFSOBM@QFSNJU SVMFT EJSFDUJPOJOHSFTT QSPUPDPM FUIFSUZQF*1W QPSU SFNPUF@JQ

    EFTDSJQUJPOΠϯλʔφϧઢͷ௨৴ΛશͯڐՄ ొ࿥͞Εͨ಺༰Λ൓ө ࠷৽ొ࿥಺༰Λ(JU؅ཧ /PWB$PNQVUF /PWB$PNQVUF /PWB$PNQVUF
  7. JNBHF  $FOU04   
 XJUIDIFGQVQQFU   6CVOUV

    
 XJUIDIFGQVQQFU   $PSF04ͳͲͳͲ
  8. $MPVE*OJU IPTUOBNFQZBNBEFNP GREOQZBNBEFNPDPN SFQP@SFMFBTFWFS VTFST OBNFQZBNB HSPVQTQZBNB TIFMMCJOCBTI TVEP<"-- "--

    /01"448%"--> TTIBVUIPSJ[FELFZT TTISTB'%"%'"%#/[B$ZD&GEMGKBTE&"R6+WTW,H)3.)E CPPUDNE FDIPSPPUQZBNBcDIQBTTXE
  9. /ZBI$MJ  (PͰ։ൃ͞Εͨ"1*ϥούʔίϚϯυ  ίϚϯυҰൃͰ7.Λىಈ  VTFSEBUBʹରԠ͍ͯ͠ΔͷͰ೚ҙͷઃఆ͕ىಈޙʹ
 ߦΘΕΔ  *1ΞυϨεઃఆΛࣗಈԽ

    VE[VSBOZBIDMJ 8SBQQFSPG/ZBIUIF8SBQQFSPG0QFO4UBDL OZBIJOTUBODFTUEFWOZBIa JDFOUPTOQZBNBUFTUQQZBNBQBTTa ŠOFUXPSLFYUOFUFYU JOUOZBIa GNTNBMMVTFSEBUBVTFSEBUBZNM
  10. 1FD  ઃఆϑΝΠϧʹج͖ͮෳ਺ͷ7.Λ
 Ұׅىಈɾఀࢭ  VTFSEBUBͷςϯϓϨʔτԽΛαϙʔτ QZBNBUFTU UFOBOUQFQBCP JNBHFDFOUPT@DIFG@QVQQFU qBWPSNTNBMM

    OFUXPSLT FUI CPPUQSPUPTUBUJD JQ@BEESFTT HBUFXBZ EOT TFDVSJUZ@HSPVQ EFGBVMU TTI UFNQMBUFT CBTFZBNM XFCTFSWFSZBNM
  11. /BNJOPSJ  4FSG -WTͷϥΠϒϥϦ  αʔϏεͷϔϧενΣοΫ΋Ͱ͖Δ  ϝϯόʔͷ௥Ճ΍࡟আΛ4MBDL௨஌ #! /usr/bin/env

    ruby require 'rubygems' require 'naminori' Naminori::Notifier::Configure.instance.set({ webhook_url: "https://hooks.slack.com/services/XXXXXX", channel: "#pyama", user: "#naminori" }) service_options = { vip:"192.168.77.9" } case when Naminori::Serf.role?("dns") Naminori::Service.event("dns", "lvs", service_options) when Naminori::Serf.role?("lb") Naminori::Lb.health_check("dns", "lvs",service_options) end