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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Livesense Inc.
PRO
April 21, 2014
Technology
90
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.
新規商品の開発におけるAIの活用 〜挑戦は人間にしかできない〜
livesense
PRO
0
26
味覇で作るパスタが美味い - 20261001_yabaubuki.dev
livesense
PRO
0
180
Rubyはただの⾔語に⾮ず
livesense
PRO
0
600
28新卒_Webエンジニア職採用_会社説明資料
livesense
PRO
0
180
27新卒_総合職採用_会社説明資料
livesense
PRO
0
7.8k
27新卒_Webエンジニア職採用_会社説明資料
livesense
PRO
0
13k
株式会社リブセンス・転職会議 採用候補者様向け資料
livesense
PRO
0
610
株式会社リブセンス 会社説明資料(報道関係者様向け)
livesense
PRO
1
1.8k
データ基盤の負債解消のためのリプレイス
livesense
PRO
0
740
Other Decks in Technology
See All in Technology
AX時代の自治体支援リソース再配分と役割分担の再構成:戦略とロードマップ(概要)
sishi2026
0
190
Don't write the architecture only in the prompt.
neohsu
0
310
AWSを利用する上で知っておきたい名前解決の話 2026
nagisa53
2
360
SLOを阻む不安
sraku2159
0
220
リアクションエンジニア ― 小さなリアクションから、話しかけやすい組織をつくる ―
ryuguyana
1
130
レガシーコードに対する loop engineering的なAI開発プロセス導入について
kubell_hr
0
200
デザインレビューは自動化できるのか?─ Flutter × Figma で UI 品質保証を考える
techiro
2
790
[JAWS Festa 2026]一番いい仕事は、請求書に現れない / jawsfesta2026
sh_fk2
2
110
kaonavi Tech Night#2
kaonavi
0
110
詳解 never 型 - ボトム型の性質を深掘り
nealle
0
150
kintoneで在庫管理システムを作るときの要件定義・設計ポイント
kai0707
0
230
分析作業をどこまで任せるか自分で決められる AIネイティブBI『Golden Analytics』が 良さげな話 /golden-analytics-is-ai-native-bi
shinyaa31
0
110
Featured
See All Featured
Lessons Learnt from Crawling 1000+ Websites
charlesmeaden
PRO
1
1.7k
ラッコキーワード サービス紹介資料
rakko
5
5.7M
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
550
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
230
23k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
560
WCS-LA-2024
lcolladotor
0
970
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
35
2.9k
The Invisible Side of Design
smashingmag
301
52k
Testing 201, or: Great Expectations
jmmastey
46
8.4k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
600
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.4k
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ネットワーク
大改修計画