弊社がAWSを使いはじめたきっかけ、運用のポイント等をまとめてあります。
また、第1特集の1、2章は弊社SREの石川が執筆してます。
こちらも弊社のAWS運用ノウハウをそのまま公開しています。
10月18日発売です!
Software Design (ソフトウェア デザイン) 2010年 11月号 [雑誌]
posted with amazlet at 10.10.13
技術評論社
mysql> delete from slow_log;
ERROR 1556 (HY000): You can't use locks with log tables.
mysql> truncate table slow_log;
ERROR 1044 (42000): Access denied for user 'xxxx'@'%' to database 'mysql'
mysql.rds_rotate_general_log
mysql.rds_rotate_slow_log
CALL mysql.rds_rotate_general_log;
CALL mysql.rds_rotate_slow_log;
mysql> show create procedure rds_rotate_slow_log \G
*************************** 1. row ***************************
Procedure: rds_rotate_slow_log
sql_mode:
Create Procedure: CREATE DEFINER=`rdsadmin`@`localhost` PROCEDURE `rds_rotate_slow_log`()
READS SQL DATA
DETERMINISTIC
BEGIN
CREATE TABLE IF NOT EXISTS mysql.slow_log2 LIKE mysql.slow_log;
DROP TABLE IF EXISTS mysql.slow_log_backup;
RENAME TABLE mysql.slow_log TO mysql.slow_log_backup, mysql.slow_log2 TO mysql.slow_log;
END
character_set_client: latin1
collation_connection: latin1_swedish_ci
Database Collation: latin1_swedish_ci
mysql.rds_kill
mysql.rds_kill_query
$ rds-version
Relational Database Service CLI version 1.1.004 (API 2010-01-01)
$ rds-modify-db-instance dbname --multi-az true
$ rds-restore-db-instance-to-point-in-time bar -s foo -l
$ rds-restore-db-instance-to-point-in-time bar -s foo -r 2010-05-04T09:20:00Z
$ rds-describe-db-instances --show-long --headers
DBINSTANCE,DBInstanceId,Created,Class,Engine,Storage,Master Username,Status,Endpoint Address,Port,AZ,Backup Retention,PendingBackupRetention,PendingClass,PendingCredentials,PendingStorage,DB Name,Mainte
nance Window,Backup Window,Latest Restorable Time
DBINSTANCE,foo,2010-02-22T10:07:04.933Z,db.m2.4xlarge,mysql5.1,20,owner,available,foo.xxxxxxx.us-east-1.rds.amazonaws.com,3306,us-east-1a,1,(nil),(nil),(nil),(nil),(nil),tue:05:00-mon:09:00,
19:00-21:00,2010-05-06T08:45:00Z