Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
リブセンスインフラ概要 vol.2 #TechLunch
Search
Livesense Inc.
PRO
April 21, 2014
Technology
89
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
リブセンスインフラ概要 vol.2 #TechLunch
リブセンスインフラ概要 vol.2
2012/08/01 (水) @ Livesense TechLunch
発表者:鈴木 翔一郎
Livesense Inc.
PRO
April 21, 2014
More Decks by Livesense Inc.
See All by Livesense Inc.
Rubyはただの⾔語に⾮ず
livesense
PRO
0
530
28新卒_Webエンジニア職採用_会社説明資料
livesense
PRO
0
120
27新卒_総合職採用_会社説明資料
livesense
PRO
0
7.2k
27新卒_Webエンジニア職採用_会社説明資料
livesense
PRO
0
12k
株式会社リブセンス・転職会議 採用候補者様向け資料
livesense
PRO
0
540
株式会社リブセンス 会社説明資料(報道関係者様向け)
livesense
PRO
1
1.8k
データ基盤の負債解消のためのリプレイス
livesense
PRO
0
680
26新卒_総合職採用_会社説明資料
livesense
PRO
0
13k
株式会社リブセンス会社紹介資料 / Invent the next common.
livesense
PRO
2
75k
Other Decks in Technology
See All in Technology
Cloudflare Workers 向けアプリを C# で構築する ~WASM Native AOT への道~
nenonaninu
1
590
AgentCore Runtime上にAgentic Coding基盤を構築・展開する際の設計ポイントと限界点 / Design considerations and limitations when building an agentic coding platform on AgentCore Runtime
har1101
5
520
AIエージェントの一手は 誰も見ていない - Falco拡張OSS「Prempti」とeBPFで サーバーレス実行基盤を二層防御する
keitah
0
350
Railsのように考える: See through the Master
snoozer05
PRO
4
1.2k
顧客に向き合う開発組織へ。リアーキテクチャとフィーチャーチーム化で挑む組織改革
safie
0
2.1k
品質と信頼性を地続きにする
grimoh
2
830
Oracle Cloud Network Path Analyzerを試してみた/I Tried Out Oracle Cloud Network Path Analyzer
masakiokuda
1
110
30座EKS, 180次升級淬煉的EKS Upgrade Skill 的歷程
eric8230
0
200
Deployment の 先にある AI Agent 基盤 - kagent vNext、Agent Substrate、Hermes から読み解く Agent Runtime の現在地 / k8s-matsuri-2-ai-agent-platform-amsy810
masayaaoyama
4
680
AIを活用するために決めた "やらないこと" - 価値に注目する / Not betting on AI
soudai
PRO
3
560
ScotSecure West 2026 - Glasgow
raybugg
0
100
「守り」で活用するオンデバイスLLM 〜写ってはいけないを総力戦で防ぐ〜 / iOSDC Japan 2026
nakamuuu
0
180
Featured
See All Featured
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
Why Our Code Smells
bkeepers
PRO
340
58k
Easily Structure & Communicate Ideas using Wireframe
afnizarnur
194
17k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.6k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
700
Avoiding the “Bad Training, Faster” Trap in the Age of AI
tmiket
0
240
Everyday Curiosity
cassininazir
0
320
HTML-Aware ERB: The Path to Reactive Rendering @ RubyCon 2026, Rimini, Italy
marcoroth
5
700
How to Think Like a Performance Engineer
csswizardry
28
2.8k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.2k
For a Future-Friendly Web
brad_frost
183
10k
Transcript
リブセンスインフラ概要 vol 2 Database 負荷分散
RDBMS • Oracle – 実行計画など細かな事を意識しなくても、それほどクエリ に長い時間がかからない事が多い – アーカイブログを使用する事によってデータロスが起きづ らい仕組みを構築する事が可能 –
基幹システムなど堅牢なシステムに用いられる事が多い • MSSQL(SQL Server) – .NetなどのMicrosoft製品との親和性が非常に高い – Visual Studioを用いれば、実行計画を即座に可視化する 事も可能 – 謎のデッドロックが起きる事が多いとの噂あり
RDBMS • MySQL – OSS DB シェアNo1 – レプリケーションを用いる事で冗長化構成を取る 事が可能 • Firebird
– OSS DB シェアNo2 • Postgresql – OSS DBの中で、マルチバイト対応が一番早かっ たRDBMSであったため、日本国内ではシェアが 高い
Master DB • /etc/drbd.conf • /etc/ha.d/ha.cf lvs103 Master Active lvs104
Master Standby DRDB : データ同期 heartbeat : 仮想IP制御
Slave DB • show slave status; • show databases; (必要なくても全DBを収容する設計)
lvs103 Master Active lvs104 Master Standby lvs112 Slave API lvs113 Slave j-sen lvs114 Slave j-sen lvs115 Slave haken lvs116 Slave cron replication
Connect to Slave DB • /etc/keepalived/conf.d/db.conf lvs101 Load Balancer lvs102
Load Balancer Application Server lvs113 Slave j-sen lvs114 Slave haken Load Balance Direct Routing
Master DB Load balance • ジョブセンス系 – lvs103, lvs104 – 負荷が低く売上が高い媒体が収容される •
ジョブストック系 – lvs105, lvs106 – 負荷が高く売上が低い媒体が収容される • 負荷が高くなれば3台目のMaster Databaseを 構築する事によってスケールアウト実施 • show databases; (lvs53, lvs54)
Master DB Load balance • 1媒体1データベースでも負荷に耐えられなく なったら・・・ • 垂直分割 – テーブル毎に収容される筐体を変更
– 例 : image tableはDB1に収容 – 例 : image tableはDB2に収容 • 水平分割 – 同じテーブルを複数の筺体に分散させる – 例 : 会員番号1000番まではDB1に収容 – 例 : 会員番号2000番まではDB2に収容
Connect to Slave DB • ちなみに・・・
Connect to Slave DB • Job sense派遣はSlave Databaseが1台だけ であるのにも関わらず、わざわざLoad Balancerを経由
– 障害時にLoad Balancerの設定変更のみで復旧 可能 – 急激な負荷上昇時にLoad Balancer設定変更の みでスケールアウトが可能
一見、意味不明な設定でも 理由があってやってます 今後は理由を可視化するよう 頑張ります
次回は・・・ • インフラ屋さんの仕事は今回で最終回にする かもしれません(Task Force側で発表の機会 を下さい) • 次回以降は趣味に走るかも・・・ – vyatta – livesenseネットワーク
大改修計画