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
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
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
Transcript
12 slides
リブセンスインフラ概要 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ネットワーク
大改修計画
More Decks by Livesense Inc.
See All by Livesense Inc.
新規商品の開発におけるAIの活用 〜挑戦は人間にしかできない〜
livesense
PRO
0
34
味覇で作るパスタが美味い - 20261001_yabaubuki.dev
livesense
PRO
0
210
Rubyはただの⾔語に⾮ず
livesense
PRO
0
620
28新卒_Webエンジニア職採用_会社説明資料
livesense
PRO
0
190
27新卒_総合職採用_会社説明資料
livesense
PRO
0
7.9k
27新卒_Webエンジニア職採用_会社説明資料
livesense
PRO
0
13k
株式会社リブセンス・転職会議 採用候補者様向け資料
livesense
PRO
0
620
株式会社リブセンス 会社説明資料(報道関係者様向け)
livesense
PRO
1
1.8k
データ基盤の負債解消のためのリプレイス
livesense
PRO
0
750
Other Decks in Technology
See All in Technology
エンタープライズIAMについて - ID・権限をどう統制するか
oidfj
1
310
ノードが消える前提で設計する!Karpenterで金融システムを止めないためのノウハウ大全
daitak
1
240
さようならSSH鍵、こんにちはゼロトラスト ― AIフレンドリーで快適な自宅鯖SSH
atalie2m
14
7.5k
認知の質も文化醸成も。数年取り組んで見えてきた技術広報のKPI設計 / Tech PR KPIs: Lessons on Awareness Quality and Culture After Several Years
bitkey
PRO
0
210
データから見る AI時代のエンジニア転職と採用
junya_okura
4
1.3k
AWS DevOps Agentの構造から読み解く運用 AI エージェントの設計原則/aws-devops-agent-design-principles
tomoki10
0
270
From vibe coding to reliable (agentic) development
jcabot
0
230
攻撃と守りは何が変わり、何が変わらないのか~最近の不正アクセスから考える、リスク評価と標準の使いどころ
oidfj
2
320
OCI Artifact による自動運転タクシーに向けた OTA 基盤の構築
biwashi
1
300
IP重複は"ランディングVPC"で受け止める ― PrivateLink と Transit Gatewayによるマルチテナント接続基盤の設計
hatahata021
3
260
自動計装なしでECSサービスをApplication Signalsに載せるまで
ota1022
2
470
成長するID管理基盤における運用もコストも犠牲にしないオブザーバビリティ向上の実践 / Improving Observability for a Growing Identity Platform Without Adding Operational Burden or Cost
kaminashi
1
120
Featured
See All Featured
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
PRO
203
77k
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.7k
Are puppies a ranking factor?
jonoalderson
2
4.2k
Game over? The fight for quality and originality in the time of robots
wayneb77
1
340
The World Runs on Bad Software
bkeepers
PRO
72
12k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.3k
30 Presentation Tips
portentint
PRO
1
480
How to make the Groovebox
asonas
2
2.6k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
490
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
1
310
Leo the Paperboy
mayatellez
11
2.5k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k