ペパボにおけるOpenStackHacks!

 ペパボにおけるOpenStackHacks!

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

1b838da2065660793d5b26f2cdc32de7?s=128

Kazuhiko Yamashita

July 04, 2015
Tweet

Transcript

  1. 5.

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

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

    JUBNBF $JOEFS /PWB $PNQVUF /FVUSPO /PWB $PNQVUF /PWB $PNQVUF /PWB

    $PNQVUF ŠŠ ŠŠ ŠŠ ŠŠ ŠŠ ŠŠ ŠŠ ŠŠ ŠŠ (JUͰόʔδϣϯ؅ཧ OPWBDPOG ʜ OFVUSPODPOG ʜ DJOEFSDPOG ʜ TFSWJDFOPWBSFTUBSU TFSWJDFOFVUSPOSFTUBSU TFSWJDFDJOEFSSFTUBSU
  4. 21.
  5. 23.

    .BDLFSFM NBDLFSFM\ SPMFOZBIOFVUSPOOPEF  DPOG\ NPOJUPS< \ OBNFQMVHJODIFDLTOFVUSPOTFSWFS  DPNNBOEVTSMJCOBHJPTQMVHJOTDIFDL@QSPDTBOFVUSPOTFSWFSD

    ^  \ OBNFQMVHJODIFDLTOFVUSPO  DPNNBOEVTSMJCOBHJPTQMVHJOTDIFDL@UDQ)MPDBMIPTUQXD ^  ʜ > ^ ^
  6. 25.
  7. 28.
  8. 29.
  9. 40.

    LBOBNF ొ࿥಺༰ ,FZTUPOF QZBNB FNBJMlQZBNB!QFQBCPDPNl UFOBOUT NVVNVVlDJUZCPZ EFWFMPQlBENJOz UBOBLB FNBJMlUBOBLB!QFQBCPDPN

    UFOBOUT EFWFMPQNFOUNFNCFS (JU)VC13 ɹొ࿥಺༰ʹޡΓ͕ͳ͍͜ͱΛ
 ɹ֬ೝ͢Δ (JU)VCͰͷϨϏϡʔ׬ྃޙɺొ࿥
  10. 43.

    LBLJOF  ઃఆϑΝΠϧΛZBNMͰఆٛ  ઃఆϑΝΠϧΛ(JUʹू໿  ηΩϡϦςΟઃఆͷϨϏϡʔ͕ՄೳʹͳΓɺ
 ·ͨɺొ࿥ɺ੾Γ໭͠ͷख͕ؒେ෯ʹ࡟ݮ JOUFSOBM@QFSNJU SVMFT

    EJSFDUJPOJOHSFTT QSPUPDPM FUIFSUZQF*1W QPSU SFNPUF@JQ EFTDSJQUJPOΠϯλʔφϧઢͷ௨৴ΛશͯڐՄ
  11. 44.

    LBLJOF طଘઃఆͷऔಘɾฤूɾొ࿥ /PWB"QJ JOUFSOBM@QFSNJU SVMFT EJSFDUJPOJOHSFTT QSPUPDPM FUIFSUZQF*1W QPSU SFNPUF@JQ

    EFTDSJQUJPOΠϯλʔφϧઢͷ௨৴ΛશͯڐՄ ొ࿥͞Εͨ಺༰Λ൓ө ࠷৽ొ࿥಺༰Λ(JU؅ཧ /PWB$PNQVUF /PWB$PNQVUF /PWB$PNQVUF
  12. 46.
  13. 48.

    JNBHF  $FOU04   
 XJUIDIFGQVQQFU   6CVOUV

    
 XJUIDIFGQVQQFU   $PSF04ͳͲͳͲ
  14. 51.

    $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
  15. 52.

    /ZBI$MJ  (PͰ։ൃ͞Εͨ"1*ϥούʔίϚϯυ  ίϚϯυҰൃͰ7.Λىಈ  VTFSEBUBʹରԠ͍ͯ͠ΔͷͰ೚ҙͷઃఆ͕ىಈޙʹ
 ߦΘΕΔ  *1ΞυϨεઃఆΛࣗಈԽ

    VE[VSBOZBIDMJ 8SBQQFSPG/ZBIUIF8SBQQFSPG0QFO4UBDL OZBIJOTUBODFTUEFWOZBIa JDFOUPTOQZBNBUFTUQQZBNBQBTTa ŠOFUXPSLFYUOFUFYU JOUOZBIa GNTNBMMVTFSEBUBVTFSEBUBZNM
  16. 53.

    1FD  ઃఆϑΝΠϧʹج͖ͮෳ਺ͷ7.Λ
 Ұׅىಈɾఀࢭ  VTFSEBUBͷςϯϓϨʔτԽΛαϙʔτ QZBNBUFTU UFOBOUQFQBCP JNBHFDFOUPT@DIFG@QVQQFU qBWPSNTNBMM

    OFUXPSLT FUI CPPUQSPUPTUBUJD JQ@BEESFTT HBUFXBZ EOT TFDVSJUZ@HSPVQ EFGBVMU TTI UFNQMBUFT CBTFZBNM XFCTFSWFSZBNM
  17. 65.

    /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
  18. 66.
  19. 72.