19. 構成
PC mobile PC mobile
CMS APP CMS APP APP APP
Spam
STF Analyzer
Filter
Job Main Clustered
memcached
Queue DB DB
コア 画像 ログ スパム
20. Database Sharding
SELECT node
from blog
where
id = 941
App
① ②
Mapping Cluster Cluster Cluster Cluster Cluster
(Main DB) 1 2 3 4 5
すごく.. 古典的です..///
55. mysqldump (4.0.x)
“$ mysqldump --master-data”
blocks update query
MySQL 5.1.x MySQL 4.0.x
FLUSH LOCAL TABLES FLUSH TABLES WITH READ LOCK
FLUSH TABLES WITH READ LOCK BEGIN
SET SESSION TRANSACTION ISOLATION DB選択
LEVEL REPEATABLE READ テーブルからデータの読み込み
START TRANSACTION WITH
CONSISTENT SNAPSHOT COMMIT;
SHOW MASTER STATUS SHOW MASTER STATUS
UNLOCK TABLES UNLOCK TABLES;
DB選択
テーブルからデータの読み込み
65. Uptime監視
OK∼ OK∼ OK∼
Nagios Nagios Nagios
5min 5min
t
DOWN UP
MySQL 4.0.xの再起動は速い
66. Uptime監視
> 5min < 5min > 5min
OK∼ NG!!1 OK∼
Nagios Nagios Nagios
show status like show status like show status like
'Uptime' 'Uptime' 'Uptime'
5min 5min
t
DOWN UP