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

負荷分散技術を選ぶときに考えること

 負荷分散技術を選ぶときに考えること

ペパボはてな技術大会(京都)発表資料

masayoshi

July 04, 2016
Tweet

More Decks by masayoshi

Other Decks in Technology

Transcript

  1. • େֶ • ωοτϫʔΫܥͷݚڀ • SDN(Software-Defined Networking) • ΞϧόΠτͰαʔό؂ࢹۀ຿ •

    ࢓ࣄ • ωοτϫʔΫ͕த৺ • αʔϏε͕Քಇ͍ͯ͠Δαʔό΋ݟΔ
  2. ϓϩηε εϨου ϓϩηε GPSL DMPOF ϓϩηε TFMFDU • fork(), clone()

    • task_tܕߏ଄ମΛෳ੡͢Δ • task_tܕߏ଄ମΛεέδϡʔϦϯάͯ͠CPUʹׂ౰ • select(), epoll() • ϑΝΠϧσΟεΫϦϓλ(fd)Λ؂ࢹ͢Δ(IOଟॏԽ) • ಡΈॻ͖Ͱ͖Δfd͕͋Ε͹fdΛฦ͢
  3. Α͋͘Δ͜ͱ top - 13:41:45 up 88 days, 15:26, 1 user,

    load average: 0.79, 0.78, 0.77 Tasks: 117 total, 2 running, 115 sleeping, 0 stopped, 0 zombie %Cpu0 : 95.9 us, 0.0 sy, 0.0 ni, 3.1 id, 0.0 wa, 0.0 hi, 1.0 si, 0.0 st %Cpu1 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu2 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu3 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu4 : 0.0 us, 1.0 sy, 0.0 ni, 99.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu5 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu6 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st %Cpu7 : 0.0 us, 0.0 sy, 0.0 ni,100.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
  4. • ن໛ಁաੑ • εέʔϥϏϦςΟ • Ґஔಁաੑ • Ϧιʔεͷ৔ॴΛҙࣝͤͣಉ͡ํ๏ͰΞΫηε • Կ͔͠Βͷ໊લղܾͷ࢓૊Έ͕ඞཁ

    • ো֐ಁաੑ • ো֐͕ൃੜͯ͠΋มΘΓͳ͘ΞΫηεՄೳ • ো֐Λݕ஌͢Δ࢓૊Έ͕ඞཁ
  5. ϔϧενΣοΫ೉͍͠໰୊ • Ԡ౴͸ਖ਼͍͠ͷ͔? • OKͱฦ͍ͯ͠Δϊʔυ͸ຊ౰ʹOK͔ʁԠ౴͸ਖ਼ ͍͠ͷ͔ʁ • Ϗβϯνϯক܉໰୊ • Gossip

    Protocol • ϥϯμϜʹྡ઀ϊʔυΛબͼ৘ใΛ఻͑Δ • ϥϯμϜʹબΜͩෳ਺ϊʔυ͔ΒϔϧενΣοΫ
  6. ෛՙ෼ࢄٕज़͸૊Έ߹Θͤͯ࢖͏ • αʔόෛՙ෼ࢄٕज़ • LBΛಋೖ͢Δ • Ґஔಁաੑͷ֬อ • DNS •

    ো֐ಁաੑͷ֬อ • Gossip ProrocolͰϔϧενΣοΫͱϊʔυ؅ཧ • ίϯηϯαεΞϧΰϦζϜͰϦʔμબग़