2013-01-01ãã1å¹´éã®è¨äºä¸è¦§
Cassandraã¨ã¯ ãªã¼ãã³ã½ã¼ã¹ã®åæ£ãã¼ã¿ãã¼ã¹ã å ã Facebook社ãéçºããç¾å¨ã¯Apache Software Foundationãéçºä¸ã§ã2013å¹´12æç¾å¨ã®ææ°çã¯2.0.3ã§ãããã¼ããP2Péä¿¡ã§ã¯ã©ã¹ã¿ãçµãéä¸å¤®ç®¡çåã®ã·ã¹ãã ã§ããã ã¹ã±ã¼ã©ããªãã£ãé«å¯ç¨â¦
MySQL5.1ããdumpãããã¼ã¿ãMySQL5.5ã«å ¥ãã¦ã¬ããªãçµãã§ã試ãã«æ´æ°ã¯ã¨ãªæµãããã¹ã¬ã¼ããæ»ã«ã¾ããã Last_SQL_Error: Query caused different errors on master and slave. Error on master: message (format)='Cannot load from mysql.%s. Theâ¦
ãµã¼ãã¹éç¨ãã¦ããæã«ã¬ããªã±ã¼ã·ã§ã³é 延ãçºçãã¦ã¢ããªã±ã¼ã·ã§ã³ããã°ã£ãã ã¨ããäºæ ã«ãªããªãããã«ãéçºç°å¢ã®DBã¯é 延ãçºçããã¦ãé 延ãèæ ®ããã¢ããªã±ã¼ã·ã§ã³ãéçºã§ããããã«ãã¾ããâ»MySQL5.6ã®å ´åã¯âãããã ãã§ãã STOP â¦
æ®æ®µã¯ã¾ã£ããSQLæ¸ããªããã§ãããã¡ãã£ã¨å¿ è¦ãªã¿ã¹ã¯ãã§ããã®ã§æ¸ãã¾ããã è¦ä»¶ã¯ä¸è¨ã ã»æ¿å ¥ãã¼ã¿ã®PRIMARY KEYãéè¤ãã¦ããªããã°INSERTï¼æ°è¦è¿½å ï¼ ã»PRIMARY KEYãéè¤ãã¦ããã°UPDATEï¼ä»¥ä¸æ¡ä»¶ã®ã¨ãã®ã¿ï¼ ã»æ¡ä»¶ï¼æ¿å ¥ãã¼ã¿ã®æ´æ°â¦
mysql5.6ããdumpã㦠mysqldump -uroot --all-databases > /tmp/20131031.dumpmysql5.5ã«ãªã¹ãã¢ããã mysql -uroot < /tmp/20131031.dumpSTATS_PERSISTENT=0ããªãã¨ãããã¨ãï¼ã£ã¦ããã¨ã©ã¼ãåºã¦ãã¾ãã 5.5ã«ã¯ãã®ãã©ã¡ã¼ã¿ããªãã®ã§ãå¤ãã¦â¦
Webãµã¼ãã¹ãéç¨ãã¦ããã¨ãã¡ã³ããã³ã¹æã«DBãµã¼ãã®åèµ·åãå¿ è¦ã«ãªãã±ã¼ã¹ããã¤ãåºã¦ãã¾ãã ãã®éãåèµ·åå¾ãã®ã¾ã¾ã®ç¶æ ã§DBãµã¼ãããµã¼ãã¹ã¤ã³ãã¦ãã¾ãã¨é害ãèµ·ãã¦ãã¾ããã¨ãããã®ã§ã ãã®å¯¾å¦æ³ãã¡ã¢ãã¦ããã¾ããï¼InnoDBâ¦
åç §ãå¤ããDBããªãç¶æ ã§ãMySQLã®ã¹ã¬ã¼ããå¢ããããã¨ã㯠以ä¸ã®ã³ãã³ãã§dumpãåå¾ããã mysqldump -uroot --single-transaction --master-data=2 --all-databases\--single-transaction㯠dumpæã«snapã·ã§ãããåå¾ãã¦ããããã¼ã¿ãåå¾ãâ¦
æ¬çªDBãµã¼ãæ§ç¯ä¸ã§ãä¸ãä¸ä»ã®ãµã¼ãããåç §ããããå°ããããªæã«ã¯ã iptablesã§ä»ãµã¼ãããã®æ¥ç¶ãé®æãã¦ããã¾ããã vim /etc/sysconfig/iptables *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -s 127.â¦
PUTã¨ãDELETEã¨ãã¾ãæ®é使ããªãããã¨ããããé²ãã§ãããã <Limit PUT DELETE> Order deny,allow Deny from all </Limit>ãã¼ãã£ã«ãã¹ãåã£ã¦ããããããªæãã«Locationã®ä¸ã¸ <Location /> <Limit PUT DELETE> Order deny,allow Deny from all </Limit> </Location>確èªæ¹æ³ libwww-perlã使ãã®ã§ã¤ã³ã¹ãã¼ã« yum -y instalâ¦
MySQL5.6GAãåºã¦ãã大åçµã£ã¡ããã¾ãããã çæ§ãããã¯ãç°å¢ã§ã¬ã³ã¬ã³ä½¿ã£ã¦ããã¾ãã§ãããããä»æ´ãªããæé ãæ´çããã®ã§è¨è¿°ãã¦ããã¾ããâ GTIDã¨ã¯ Global Transaction Identifiers ä»ã¾ã§ã®MySQLã®ã¬ããªã±ã¼ã·ã§ã³ã§è¡ãªã£ã¦ããããMastâ¦
表é¡ã©ãããªãã§ããã VMãç«ã¡ä¸ãããã¨ãããã ãVMware Authorization Serviceãèµ·åãã¦ãã¾ããã ã¨è¡¨ç¤ºããç«ã¡ä¸ããã¾ããã§ãããã°ã°ã£ãããæé ãã§ã¦ããã®ã§ã¾ã¨ãã¦ããã¾ãã ï¼ï¼ï¼ã¹ã¿ã¼ãã¡ãã¥ã¼ãèµ·åããããã°ã©ã ã¨ãã¡ã¤ã«æ¤â¦
å æ¥ãmonã§ãããããã¯æ¤ç¥ãããè¨äºãæ¸ãã¾ãããmonã«ããMySQLã®ãããããã¯æ¤ç¥ã¨ãã®ã³ã° ã¡ãã£ã¨ã¹ã¯ãªããã®å 容ãæ¹ä¿®ãã¦ã ã¯ã¨ãªã«ããããã¯ã®ç§æ°ããç§è¶ ãããã¢ã©ã¼ãæ¤ç¥ããã¨ãããã¨ãã§ããããã«ãã¾ããã åºæ¬çãªæºåã¨ãã¯ââ¦
ã¾ãã¯ãã¼ãã«ã®ãã¼ã¿ãµã¤ãºç¢ºèªã mysql >show table status like 'ãã¼ãã«å' \G; *************************** 1. row *************************** Name: ãã¼ãã«å Engine: InnoDB Version: 10 Row_format: Compact Rows: 798021 Avg_row_length: 1â¦
ããå¿ããã mysql> set sql_log_bin=0; mysql > #ã¬ããªããããªãã¯ã¨ãªï¼ã¦ã¼ã¶è¿½å ã¨ãï¼ mysql> set sql_log_bin=1;
æ´æ°ãæ¿ããDBï¼MySQL)ã§InnoDBã®ããã¯ç«¶åãçºçããã¢ããªã±ã¼ã·ã§ã³ãµã¼ããè©°ã¾ãç¶æ³ãçºçãã¦ãã¾ãã¾ããã é害ç£è¦ã¯monã¨ããã¢ããªã±ã¼ã·ã§ã³ã§è¡ãªã£ã¦ããã®ã§ããã ä»åã¯ãã®monã使ã£ã¦MySQLãããããã¯ã®æ¤ç¥ã¨ãã®ã³ã°ãè¡ãããã¨æâ¦
ãµã¯ãã¨ã # dmesg | grep -i virtual hdc: VMware Virtual IDE CDROM Drive, ATAPI CD/DVD-ROM drive Vendor: VMware Model: Virtual disk Rev: 1.0 VMware vmxnet virtual NIC driver VMware vmxnet3 virtual NIC driver - version 1.0.10.0-NAPI便å©ã¼ã§â¦
ç°å¢ï¼CentOS6.2å ¥ãããã® apache 2.2.22-1 jdk1.7 scala2.10 playframework2.1.0 apacheã¨JDKãå ã«ããã¦ãã ï¼yum ã§ããªãã§ãããã®ã§ï¼playãåããã¦ã¼ã¶ã¤ãã£ã¦ãã groupadd -g 30000 play useradd -u 30000 -d /home/play -g play -s /bin/bashâ¦
ãã¼ãã«ã大éã«ããDBã®éç¨ã§mysqldumpãããéã«ã mysqldump -uroot hoge > /tmp/hoge_20130227.dump mysqldump: Got error: 1105: File './hoge/hoge80_201304.MYD' not found (Errcode: 24) when using LOCK TABLESã®ãããªã¨ã©ã¼ã¡ãã»ã¼ã¸ã表示ãâ¦