<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6014367516862219677</id><updated>2024-09-02T10:54:54.990+09:00</updated><category term="AWS"/><category term="mysql"/><category term="database"/><category term="3min Cooking"/><category term="RDS"/><category term="system engineer"/><category term="bench"/><category term="mysql5.6"/><category term="Apache"/><category term="EC2"/><category term="battle"/><category term="beginner"/><category term="Ansible"/><category term="Aurora"/><category term="Linux"/><category term="install"/><category term="mysql-mha"/><category term="APC"/><category term="BIND10"/><category term="DNS"/><category term="Docker"/><category term="EFS"/><category term="MariaDB"/><category term="NAT gateway"/><category term="Redis"/><category term="Redshift"/><category term="Route53"/><category term="Timezone"/><category term="VPC"/><category term="Webservice"/><category term="WordPress"/><category term="fluentd"/><category term="git"/><category term="http server"/><category term="mysql8.0"/><category term="network"/><category term="openssl"/><category term="php"/><category term="squid"/><category term="swfmill"/><category term="systemd"/><category term="update"/><title type='text'>技術者の備忘録</title><subtitle type='html'>検証したものや動画の補足資料をのせたりする場所</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>31</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-2898029836625666146</id><published>2020-02-24T00:47:00.002+09:00</published><updated>2020-02-26T10:02:18.405+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="3min Cooking"/><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="WordPress"/><title type='text'>【ゆっくり】WordPress構築動画【AWS】</title><content type='html'>&lt;h2&gt;
動画で使ったコマンドの流れ&lt;/h2&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;270&quot; src=&quot;https://www.youtube.com/embed/wYDCUfOprss&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;

&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
注意：動画の中で作成したEC2インスタンスはインターネットに面した構成になっています。&lt;/div&gt;
&lt;div&gt;
セキュリティグループで制限を掛けたとは言え、何があるか分からないので、&lt;/div&gt;
&lt;div&gt;
ひとしきり楽しんだ後は忘れずに停止or終了することを心がけてください。&lt;/div&gt;
&lt;h3&gt;
1,既存パッケージのアップデート&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ sudo su -&lt;br /&gt;
# yum update&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
2,Apacheのインストール&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# yum install httpd&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
3,PHP7.3のインストール&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# amazon-linux-extras install php7.3&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
4,mariadbのインストール&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# yum search mariadb | more&lt;br /&gt;
# yum install mariadb.x86_64 mariadb-server.x86_64 mariadb-devel.x86_64 mariadb-libs.x86_64&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
5,Apacheとmariadbの起動&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# systemctl start httpd&lt;br /&gt;
# systemctl start mariadb&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
6,mariadb上の作業&lt;/h3&gt;
&lt;h4&gt;
6-1,ログイン&lt;/h4&gt;
# mysql -uroot -p&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
6-2,データベース作成&lt;/h4&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
mysql&amp;gt; create database wordpress;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h4&gt;
6-3,ユーザー作成＆確認&lt;/h4&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
mysql&amp;gt; grant all on *.* to wpuser@localhost identified by &#39;wppasswd&#39;;&lt;br /&gt;
mysql&amp;gt; select user, host from mysql.user;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h4&gt;
6-4,ユーザー権限の適用&lt;/h4&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
mysql&amp;gt; flush privileges;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h4&gt;
6-5,作成したデータベースの確認&lt;/h4&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
mysql&amp;gt; show databases;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
7,wordpress用ユーザーとパスワードでのDB接続確認&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# mysql -uwpuser -pwppasswd&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
8,WordPressの解凍と設置&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# mv /var/www/html{,_old}&lt;br /&gt;
# cd ~ec2-user/&lt;br /&gt;
# tar zxf wordpress-5.3.2-ja.tar.gz&lt;br /&gt;
# mv wordpress /var/www/html&lt;br /&gt;
# chown apache:apache -R html&lt;/blockquote&gt;
&lt;br /&gt;
以上です。</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/2898029836625666146/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2020/02/wordpressaws_24.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/2898029836625666146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/2898029836625666146'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2020/02/wordpressaws_24.html' title='【ゆっくり】WordPress構築動画【AWS】'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/wYDCUfOprss/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-2436776567676022057</id><published>2018-11-16T19:47:00.003+09:00</published><updated>2019-04-01T19:10:20.128+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="bench"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql5.6"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql8.0"/><category scheme="http://www.blogger.com/atom/ns#" term="RDS"/><title type='text'>MySQL8 vs MySQL5.6</title><content type='html'>&lt;h2&gt;
やりたいこと&lt;/h2&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
MySQL5.6.40 vs MySQL8.0.11 の兄弟対決。&lt;br /&gt;
遅れ馳せながらMySQL8をベンチマークする。&lt;br /&gt;
RDSで選択可能な8.0.11に対するは、RDSのデフォルトでカーソルが合わさっている5.6.40。&lt;br /&gt;
セキュリティアップデート諸々含めて、5.6系では5.6.36の次に多いのではないかと勝手に想像して、このバージョンで戦っていきたいと思います。&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
検証環境&lt;/h3&gt;
A,負荷試験をかける側&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;EC2&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;t2.micro&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;OS&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;AmazonLinux1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;ツール&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;sysbench&amp;nbsp;1.0.15&lt;/span&gt;&lt;/blockquote&gt;
B,負荷試験をかけられる側１&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;RDS&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;db.t2.medium&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;MySQL&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;MySQL5.6.40(RDSデフォルトバージョン)&lt;/span&gt;&lt;/blockquote&gt;
C,負荷試験をかけられる側２&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;RDS&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;db.t2.medium&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;MySQL&lt;span style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;MySQL8.0.11&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
お手軽環境準備&lt;/h3&gt;
1,負荷試験をかける側の環境構築(MySQL5.6.40用)&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;epelを入れて&lt;br /&gt;# yum -y install epel-release.noarch&lt;/span&gt;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;mysqlクライアントと、sysbenchのインスト―ル&lt;br /&gt;# yum -y install sysbench mysql56.x86_64&lt;br /&gt;※AmazonLinux2の場合、MySQLライブラリの影響でsysbenchがyumですんなりインストールできないため、1を採用してます&amp;nbsp;&lt;/span&gt;&lt;/blockquote&gt;
2,負荷試験をかける側の環境構築(MySQL8.0.11用)&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# cd /usr/local/src&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# wget http://repo.mysql.com/yum/mysql-8.0-community/el/6/x86_64/mysql-community-client-8.0.13-1.el6.x86_64.rpm&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# wget http://repo.mysql.com/yum/mysql-8.0-community/el/6/x86_64/mysql-community-common-8.0.13-1.el6.x86_64.rpm&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# wget http://repo.mysql.com/yum/mysql-8.0-community/el/6/x86_64/mysql-community-libs-8.0.13-1.el6.x86_64.rpm&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# yum install mysql-*.rpm&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# mysql --version&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;mysql&amp;nbsp; Ver 8.0.13 for Linux on x86_64 (MySQL Community Server - GPL)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;※せっかくなので、MySQLClientも5.6→8.0に変更する&lt;/span&gt;&lt;/blockquote&gt;
&lt;h3&gt;
負荷試験をかけられる側の環境構築&lt;/h3&gt;
1,RDSコンソールからMySQL5.6.40を起動&lt;br /&gt;
&lt;br /&gt;
2,RDSコンソールからMySQL8.0.11を起動&lt;br /&gt;
&lt;br /&gt;
3,RDSに接続&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# mysql -uroot -p -h&amp;lt;RDS エンドポイント&amp;gt;&lt;br /&gt;password:&amp;lt;自分で決めた任意のpassword&amp;gt;&lt;br /&gt;※RDSのセキュリティグループの仕組みが変わり、セキュリティグループを接続元のセキュリティグループに割り当てる事ができるようになってました。&lt;br /&gt;　EC2側の負荷試験を賭ける側のサーバのセキュリティグループからの3306を許可してあげてください。&lt;/span&gt;&lt;/blockquote&gt;
4,DB作成・ユーザー作成・権限付与&lt;br /&gt;
※5.6系と8系でユーザー管理方法が若干変わったため、以下手順を併記&lt;br /&gt;
&lt;br /&gt;
4-1,MySQL5.6.40用のコマンド&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;mysql&amp;gt; CREATE DATABASE sbtest;&lt;br /&gt;mysql&amp;gt; GRANT ALL ON sbtest.* TO &#39;sbtest&#39;@&#39;%&#39; IDENTIFIED BY &#39;sbtest&#39;;&lt;br /&gt;mysql&amp;gt; exit&lt;br /&gt;※sysbenchテスト用のユーザー・パスワードをsbtest:sbtestとしました。&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
4-2,MySQL8.0.11用のコマンド&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;mysql&amp;gt; CREATE DATABASE sbtest;&lt;br /&gt;mysql&amp;gt; create user &#39;sbtest&#39;@&#39;%&#39; identified by &#39;sbtest&#39;;&lt;br /&gt;mysql&amp;gt; grant all privileges on sbtest.* to &#39;sbtest&#39;@&#39;%&#39;;&lt;br /&gt;※ユーザーと権限付与を同時にできなくなったため、最初にユーザーを作成し、その後権限を付与するという流れになったようです。&lt;br /&gt;※sysbenchテスト用のユーザー・パスワードをsbtest:sbtestとしました。&lt;/span&gt;&lt;/blockquote&gt;
&lt;h3&gt;
負荷試験用のテーブルを作成する&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# sysbench /usr/share/sysbench/oltp_read_write.lua \&lt;br /&gt;--db-driver=mysql \&lt;br /&gt;--table-size=1000000 \&lt;br /&gt;--mysql-host=&amp;lt;RDS エンドポイント&amp;gt; \&lt;br /&gt;--mysql-password=sbtest \&lt;br /&gt;--time=60 \&lt;br /&gt;--db-ps-mode=disable \&lt;br /&gt;prepare&lt;br /&gt;※table-sizeは1,000,000レコード想定という意味らしく、容量ではない模様&lt;/span&gt;&lt;/blockquote&gt;
&lt;h3&gt;
負荷試験実施&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;# sysbench /usr/share/sysbench/oltp_read_write.lua \&lt;br /&gt;--db-driver=mysql \&lt;br /&gt;--table-size=1000000 \&lt;br /&gt;--mysql-host=&amp;lt;RDS エンドポイント&amp;gt; \&lt;br /&gt;--mysql-password=sbtest \&lt;br /&gt;--time=60 \&lt;br /&gt;--db-ps-mode=disable \&lt;br /&gt;--threads=[同時処理数] \&lt;br /&gt;run&lt;br /&gt;※threadsの値を1,2,4,8,16,32と変更して実施&lt;/span&gt;&lt;/blockquote&gt;
&lt;h3&gt;
結果&lt;/h3&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaGcgjxuwk0Wiz6xfpdsN_HxWwyVCqhW0WPxRJnlZ33KLkfw9fCjda6IGfoR3gnxfOwcYFT9FBjFFo_vF8ACPkBKeJmL2D96-pSP2gmhkI9oBMOuScN5_WeLQ7KOviQl-9Q34ol1rM4_94/s1600/latency.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;355&quot; data-original-width=&quot;740&quot; height=&quot;305&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaGcgjxuwk0Wiz6xfpdsN_HxWwyVCqhW0WPxRJnlZ33KLkfw9fCjda6IGfoR3gnxfOwcYFT9FBjFFo_vF8ACPkBKeJmL2D96-pSP2gmhkI9oBMOuScN5_WeLQ7KOviQl-9Q34ol1rM4_94/s640/latency.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;レイテンシーを95パーセンタイルで集計した際の数値&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3zky0fWF5CQUstmBnvn-d0C0DTmGwfSRvUiM99E742I3EP374jnPRipTi8mFfkYquZErBLbV6biRWymyOUj6VQ91J581J8Oxpq0vJdyKe1Esp2XgNyx-b6iHonOjVEYrYhtKA-oR54LPY/s1600/transaction.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;355&quot; data-original-width=&quot;740&quot; height=&quot;306&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg3zky0fWF5CQUstmBnvn-d0C0DTmGwfSRvUiM99E742I3EP374jnPRipTi8mFfkYquZErBLbV6biRWymyOUj6VQ91J581J8Oxpq0vJdyKe1Esp2XgNyx-b6iHonOjVEYrYhtKA-oR54LPY/s640/transaction.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;60秒で処理したトランザクション数&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;h3&gt;
所感&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;過去4系→5系の時も伝統的にそうですが、バージョンを上げるとパフォーマンスが落ちる傾向がありますね。&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;今回はRDSの吊るしの設定のままなので、チューニングをすることで結果が覆る可能性も大いにあります。&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;旧バージョンのMySQLのセキュリティアップデートスケジュールとの兼ね合いで、バージョンアップもしくは、&lt;/span&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;別のRDBエンジンを選定していった方がいいと思いました。&lt;/span&gt;&lt;/blockquote&gt;
おわり。</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/2436776567676022057/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2018/11/mysql8-vs-mysql56.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/2436776567676022057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/2436776567676022057'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2018/11/mysql8-vs-mysql56.html' title='MySQL8 vs MySQL5.6'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjaGcgjxuwk0Wiz6xfpdsN_HxWwyVCqhW0WPxRJnlZ33KLkfw9fCjda6IGfoR3gnxfOwcYFT9FBjFFo_vF8ACPkBKeJmL2D96-pSP2gmhkI9oBMOuScN5_WeLQ7KOviQl-9Q34ol1rM4_94/s72-c/latency.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-7264360081969794289</id><published>2018-11-12T12:49:00.002+09:00</published><updated>2018-11-12T12:50:49.499+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="EFS"/><title type='text'>EFS導入で夢が広がると思ったら、現実を突き付けられた話</title><content type='html'>&lt;b&gt;&lt;u&gt;EFS導入で夢が広がると思ったら、現実を突き付けられた話(※小規模構成に限る？)&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
** やりたかったこと&lt;br /&gt;
-- 今の構成の問題点&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
1,コンテンツの更新がそこそこ頻繁なため過去のAMIが使えず、負荷が上昇してからAMIを取得しているとバーストに対応できない&lt;br /&gt;
2,WEBの台数が多いサービスのコンテンツ更新の度にリポジトリサーバが高負荷になり、サーバごとに遅延が発生する。&lt;/blockquote&gt;
&lt;br /&gt;
-- EFS導入で期待したこと&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;1,上記問題点を解決できる。&lt;br /&gt;
&amp;nbsp;2,念願の簡単な手順でのオートスケーリングが実現する。&lt;/blockquote&gt;
&lt;br /&gt;
** できなかった理由&lt;br /&gt;
-- EFSが遅い&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
コンテンツの更新にものすごい時間がかかるため、突発的なメンテナンスやバグ対応に支障をきたす。&lt;br /&gt;
※下記結果参照&lt;/blockquote&gt;
&lt;br /&gt;
-- EBSの場合&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;$ time svn st /ebs_content_dir&lt;br /&gt;
&amp;nbsp;============================================&lt;br /&gt;
&amp;nbsp;real&amp;nbsp; &amp;nbsp; 0m0.331s&lt;br /&gt;
&amp;nbsp;user&amp;nbsp; &amp;nbsp; 0m0.207s&lt;br /&gt;
&amp;nbsp;sys&amp;nbsp; &amp;nbsp; &amp;nbsp;0m0.100s&lt;br /&gt;
&amp;nbsp;→はやい&lt;br /&gt;
&amp;nbsp;============================================&lt;/blockquote&gt;
&lt;br /&gt;
-- EFSの場合&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;$ time svn st /efs_content_dir&lt;br /&gt;
&amp;nbsp;============================================&lt;br /&gt;
&amp;nbsp;real&amp;nbsp; &amp;nbsp; 2m59.950s&lt;br /&gt;
&amp;nbsp;user&amp;nbsp; &amp;nbsp; 0m0.902s&lt;br /&gt;
&amp;nbsp;sys&amp;nbsp; &amp;nbsp; &amp;nbsp;0m2.189s&lt;br /&gt;
&amp;nbsp;→えぇ……。&lt;br /&gt;
&amp;nbsp;フォーラムを確認してみたところ、fs-cacheをインストールしてマウントオプションに追加しろとの書き込みを発見&lt;br /&gt;
&amp;nbsp;============================================&lt;/blockquote&gt;
&lt;br /&gt;
-- EFSの場合 with fs-cache有効化&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;$ time svn st dev_gm_shq_geso&lt;br /&gt;
&amp;nbsp;============================================&lt;br /&gt;
&amp;nbsp;real&amp;nbsp; &amp;nbsp; 1m38.342s&lt;br /&gt;
&amp;nbsp;user&amp;nbsp; &amp;nbsp; 0m0.584s&lt;br /&gt;
&amp;nbsp;sys&amp;nbsp; &amp;nbsp; &amp;nbsp;0m1.496s&lt;br /&gt;
&amp;nbsp;→すごい！二倍早くなった！ってなるかい&lt;br /&gt;
&amp;nbsp;============================================&lt;/blockquote&gt;
&lt;br /&gt;
-- その他フォーラムで情報を漁るものの……(意訳)&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;Aさん -- Nginx+WordpressでドキュメントルートをEFSにしたけどEBSに比べて2-7秒遅延するのだが？&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #cfe2f3;&quot;&gt;Bさん -- おれも1-2秒は遅延してるわ。この遅延は最も優先すべき課題なので解決しない限り使うべきではないな。&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;Cさん -- 容量によって書込速度が変わるから、1TBのダミーファイル置くといいよ。金かかるけど。&lt;/span&gt;&lt;br /&gt;
2016年の北アメリカリージョンのサービス開始時に建てられたフォーラムスレッドが今もやり取りを続けている模様&lt;/blockquote&gt;
** まとめ&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
1, サービス紹介のような最小構成でEFSを利用する場合は、コンテンツ配布およびWEBアクセスで数秒以上の遅延は覚悟する必要があります。&lt;br /&gt;
2, 大容量のNFSを利用する大規模顧客で、EC2+NFSで冗長性が不安だと思っている人向けのサービスみたいです。&lt;br /&gt;
3, もしくはあまりコンテンツの更新がなく、アクセスが遅くとも問題の無いサービス向けかと。&lt;/blockquote&gt;
</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/7264360081969794289/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2018/11/efs.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/7264360081969794289'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/7264360081969794289'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2018/11/efs.html' title='EFS導入で夢が広がると思ったら、現実を突き付けられた話'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-9111499441383614180</id><published>2018-09-10T18:29:00.000+09:00</published><updated>2018-09-10T18:30:54.463+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="3min Cooking"/><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><title type='text'>xtrabackupをつかったダンプリストア</title><content type='html'>&lt;b&gt;&lt;u&gt;xtrabackupをつかったダンプリストア&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
** バックアップ方針&lt;br /&gt;
&lt;br /&gt;
以下のファイルのダンプレストアを実施すると過程します&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;DBUser：root&lt;br /&gt;
&amp;nbsp;DBPass：なし&lt;br /&gt;
&amp;nbsp;DBHost：localhost&lt;br /&gt;
&amp;nbsp;フルダンプ:/home/taterole/fulldump/2018-01-01-1&lt;br /&gt;
&amp;nbsp;差分ダンプ:/home/taterole/increment/2018-01-02-1&lt;br /&gt;
&amp;nbsp;差分ダンプ:/home/taterole/increment/2018-01-03-1&lt;br /&gt;
&amp;nbsp;差分ダンプ:/home/taterole/increment/2018-01-04-1&lt;br /&gt;
&amp;nbsp;差分ダンプ:/home/taterole/increment/2018-01-05-1&lt;br /&gt;
&amp;nbsp;差分ダンプ:/home/taterole/increment/2018-01-06-1&lt;/blockquote&gt;
** 事前に確認&lt;br /&gt;
- openfilesの確認をしておく&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# ulimit -n&lt;br /&gt;
&amp;nbsp;======================================================&lt;br /&gt;
&amp;nbsp;1024&lt;br /&gt;
&amp;nbsp;======================================================&lt;br /&gt;
&amp;nbsp;■DB数がすると、デフォの1024では&quot;too many open files&quot;が出るかも&lt;/blockquote&gt;
- /etc/security/limits.confに追記&lt;br /&gt;
-- バックアップ&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# cp -pi /etc/security/limits.conf{,.`date +%Y%m%d`}&lt;/blockquote&gt;
-- ２行追記&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# sed -i \&lt;br /&gt;
&amp;nbsp;-e &#39;/student&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;maxlogins/a&amp;nbsp; *\t\tsoft\tnofile\t\t8192&#39; \&lt;br /&gt;
&amp;nbsp;-e &#39;/student&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;maxlogins/a&amp;nbsp; *\t\thard\tnofile\t\t8192&#39; \&lt;br /&gt;
&amp;nbsp;limits.conf&lt;br /&gt;
&amp;nbsp;======================================================&lt;br /&gt;
&amp;nbsp;#ftp&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;hard&amp;nbsp; &amp;nbsp; nproc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;br /&gt;
&amp;nbsp;#@student&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;maxlogins&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&amp;nbsp; &amp;nbsp; ←&amp;nbsp; この行の下に&lt;br /&gt;
&amp;nbsp;*&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;soft&amp;nbsp; &amp;nbsp; nofile&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8192&amp;nbsp; ←&amp;nbsp; ソフトリミット8192&lt;br /&gt;
&amp;nbsp;*&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;hard&amp;nbsp; &amp;nbsp; nofile&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8192&amp;nbsp; ←&amp;nbsp; ハードリミット8192&lt;br /&gt;
&amp;nbsp;======================================================&lt;/blockquote&gt;
-- 差分&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# diff /etc/security/limits.conf{.`date +%Y%m%d`,}&lt;br /&gt;
&amp;nbsp;======================================================&lt;br /&gt;
&amp;nbsp;--- /etc/security/limits.conf.YYYYMMDD&amp;nbsp; YYYY-MM-DD XX:XX:XX.000000000 +0900&lt;br /&gt;
&amp;nbsp;+++ /etc/security/limits.conf&amp;nbsp; &amp;nbsp;YYYY-MM-DD XX:XX:XX.000000000 +0900&lt;br /&gt;
&amp;nbsp;@@ -57,5 +57,7 @@&lt;br /&gt;
&amp;nbsp; #@faculty&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hard&amp;nbsp; &amp;nbsp; nproc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50&lt;br /&gt;
&amp;nbsp; #ftp&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;hard&amp;nbsp; &amp;nbsp; nproc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;br /&gt;
&amp;nbsp; #@student&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;maxlogins&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4&lt;br /&gt;
&amp;nbsp;+*&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; soft&amp;nbsp; &amp;nbsp; nofile&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8192&lt;br /&gt;
&amp;nbsp;+*&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; hard&amp;nbsp; &amp;nbsp; nofile&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8192&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; # End of file&lt;br /&gt;
&amp;nbsp;======================================================&lt;br /&gt;
&amp;nbsp;■こんな感じで2行追記されてるはず&lt;/blockquote&gt;
** バックアップ方法&lt;br /&gt;
- フルダンプ&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# xtrabackup --user=root --backup --galera-info --target-dir=/home/taterole/fulldump/2018-01-01-1 --no-lock&lt;/blockquote&gt;
- 差分バックアップ(初回)&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# xtrabackup --user=root --backup --galera-info --target-dir=/home/taterole/increment/2018-01-02-1 --incremental-basedir=/home/taterole/fulldump/2018-01-01-1 --no-lock&lt;br /&gt;
&amp;nbsp;■初回差分バックアップは、--incremental-basedirにフルダンプの取得先を指定&lt;/blockquote&gt;
- 差分バックアップ(二回目以降)&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# xtrabackup --user=root --backup --galera-info \&lt;br /&gt;
--target-dir=/home/taterole/increment/2018-01-03-1 \&lt;br /&gt;
--incremental-basedir=/home/taterole/increment/2018-01-02-1 --no-lock&lt;br /&gt;
&amp;nbsp;# xtrabackup --user=root --backup --galera-info \&lt;br /&gt;
--target-dir=/home/taterole/increment/2018-01-04-1 \&lt;br /&gt;
--incremental-basedir=/home/taterole/increment/2018-01-03-1 --no-lock&lt;br /&gt;
&amp;nbsp;# xtrabackup --user=root --backup --galera-info \&lt;br /&gt;
--target-dir=/home/taterole/increment/2018-01-05-1 \&lt;br /&gt;
--incremental-basedir=/home/taterole/increment/2018-01-04-1 --no-lock&lt;br /&gt;
&amp;nbsp;# xtrabackup --user=root --backup --galera-info \&lt;br /&gt;
--target-dir=/home/taterole/increment/2018-01-06-1 \&lt;br /&gt;
--incremental-basedir=/home/taterole/increment/2018-01-05-1 --no-lock&lt;br /&gt;
&amp;nbsp;■二回目移行の差分バックアップは、--incremental-basedirに前回の差分バックアップの取得先を指定する&lt;/blockquote&gt;
** 復旧データの結合作業&lt;br /&gt;
- ベースダンプファイルのプリペア&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# xtrabackup --user=root --prepare --apply-log-only --target-dir=/home/taterole/fulldump/2018-01-01-1&lt;/blockquote&gt;
- ベースダンプファイルに差分ダンプを結合しプリペア(ベースにどんどん古い順から結合を行っていきます)&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# xtrabackup --user=root --prepare --apply-log-only \&lt;br /&gt;
&amp;nbsp;--target-dir=/home/taterole/fulldump/2018-01-01-1 \&lt;br /&gt;
&amp;nbsp;--incremental-dir=/home/taterole/increment/2018-01-02-1&lt;br /&gt;
&amp;nbsp;# xtrabackup --user=root --prepare --apply-log-only \&lt;br /&gt;
&amp;nbsp;--target-dir=/home/taterole/fulldump/2018-01-01-1 \&lt;br /&gt;
&amp;nbsp;--incremental-dir=/home/taterole/increment/2018-01-03-1&lt;br /&gt;
&amp;nbsp;# xtrabackup --user=root --prepare --apply-log-only \&lt;br /&gt;
&amp;nbsp;--target-dir=/home/taterole/fulldump/2018-01-01-1 \&lt;br /&gt;
&amp;nbsp;--incremental-dir=/home/taterole/increment/2018-01-04-1&lt;br /&gt;
&amp;nbsp;# xtrabackup --user=root --prepare --apply-log-only \&lt;br /&gt;
&amp;nbsp;--target-dir=/home/taterole/fulldump/2018-01-01-1 \&lt;br /&gt;
&amp;nbsp;--incremental-dir=/home/taterole/increment/2018-01-05-1&lt;br /&gt;
&amp;nbsp;# xtrabackup --user=root --prepare --apply-log-only \&lt;br /&gt;
&amp;nbsp;--target-dir=/home/taterole/fulldump/2018-01-01-1 \&lt;br /&gt;
&amp;nbsp;--incremental-dir=/home/taterole/increment/2018-01-06-1&lt;br /&gt;
&amp;nbsp;■差分ファイルが複数ある場合は、古い順に結合を実施&lt;/blockquote&gt;
** 全体リストア(MySQLの停止が必要)&lt;br /&gt;
- MySQLの停止&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# service mysql stop&lt;/blockquote&gt;
- MySQLディレクトリをリネーム&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# mv /var/lib/mysql{,_bkup}&lt;/blockquote&gt;
- 結合済みのディレクトリをMySQLディレクトリに戻す&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# xtrabackup --copy-back --target-dir=/home/taterole/fulldump/2018-01-01-1&lt;/blockquote&gt;
- 所有者の変更&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# chown -R mysql:mysql /var/lib/mysql&lt;/blockquote&gt;
- MySQLの起動&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# service mysql start&lt;/blockquote&gt;
&lt;br /&gt;
** データベース個別リストア(データベースへの書き込みがないことを確認した後に作業を行う) [#w56ddd8d]&lt;br /&gt;
- MySQLの停止(絶対にアクセスが無い自信があればオンラインで可能でした)&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# service mysql stop&lt;/blockquote&gt;
- 既存のデータベースファイル格納ディレクトリを移動&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# mv /var/lib/mysql/cool_ranko_db /tmp/cool_ranko_db&lt;/blockquote&gt;
- 結合済みのバックアップファイルから対象のデータベースディレクトリを、mysqlのディレクリに移動&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# rsync -av /home/taterole/fulldump/2018-01-01-1/cool_ranko_db /var/lib/mysql/&lt;/blockquote&gt;
- 権限及びパーミッションの変更を行う&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# chown -R mysql:mysql /var/lib/mysql/cool_ranko_db &amp;amp;&amp;amp; chmod 700 cool_ranko_db&lt;/blockquote&gt;
- MySQLの起動&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# service mysql start&lt;/blockquote&gt;
&lt;br /&gt;
** 補足&lt;br /&gt;
- フルと差分どっちがいいのか&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;大量のデータベースをダンプする場合、&lt;br /&gt;
&amp;nbsp;時間：差分ダンプ＞フルダンプ&lt;br /&gt;
&amp;nbsp;容量：フルダンプ＞差分ダンプ&lt;br /&gt;
&amp;nbsp;となります。&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;リストアする場合は、結合等の手間を含めると当然&lt;br /&gt;
&amp;nbsp;時間：フルダンプ＞差分ダンプ&lt;br /&gt;
&amp;nbsp;となりますので、容量が許すのであればフルダンプで都度取得しておくのがいいかもしれません。&lt;/blockquote&gt;
- なぜinnobackupexを使わずxtrabackupを使うのか&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;バージョンアップした際にラッピングされたコマンドは、変更点がわかりにくいという欠点があるためです&lt;br /&gt;
&amp;nbsp;それとどこかのアメリカ語のコミュニティで未来のバージョンでinnodbbackupexはなくなるよ。的な&lt;br /&gt;
&amp;nbsp;発言を見た気がするからです(ソース失念…夢かも)&lt;/blockquote&gt;
** おわり</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/9111499441383614180/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2018/09/xtrabackup.html#comment-form' title='2 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/9111499441383614180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/9111499441383614180'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2018/09/xtrabackup.html' title='xtrabackupをつかったダンプリストア'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-3442065558119105661</id><published>2018-08-13T13:48:00.002+09:00</published><updated>2018-08-13T13:51:04.710+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="3min Cooking"/><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="systemd"/><title type='text'>再起動後にCentOS7でHTTPD2.4が起動しなくなる問題</title><content type='html'>&lt;b&gt;&lt;u&gt;起こる事象&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
自動起動を設定したはずなのに、サーバ再起動後にHTTPD2.4が起動しない&lt;br /&gt;
ジャーナルを確認しても権限？何の？という状態に陥る&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;-- Unit httpd.service has failed.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;--&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;-- The result is failed.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;8月 13 12:00:26 azitovb56.azito.co.jp systemd[1]: Unit httpd.service entered failed state.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;8月 13 12:00:26 azitovb56.azito.co.jp systemd[1]: httpd.service failed.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;8月 13 12:00:26 azitovb56.azito.co.jp polkitd[606]: Unregistered Authentication Agent for unix-proclines 2160-2173/2173&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;8月 13 12:00:26 azitovb56.azito.co.jp systemd[1]: httpd.service: main process exited, code=exited,&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;8月 13 12:00:26 azitovb56.azito.co.jp kill[1490]: kill: cannot find process &quot;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;8月 13 12:00:26 azitovb56.azito.co.jp systemd[1]: httpd.service: control process exited, code=exite&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;nbsp;8月 13 12:00:26 azitovb56.azito.co.jp systemd[1]: Failed to start The Apache HTTP Server.&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;原因&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
systemdにて/var/run配下がtmpfsになったことが原因&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;再発試験&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;yumからHTTPD2.4をインストール&lt;/li&gt;
&lt;li&gt;インストール過程で/var/run/httpdが作成される&lt;/li&gt;
&lt;li&gt;HTTPD2.4を起動すると、/var/run/httpdの下にPIDが作成される&lt;/li&gt;
&lt;li&gt;無事起動して気分良く動作確認する&lt;/li&gt;
&lt;li&gt;サーバ再起動する&lt;/li&gt;
&lt;li&gt;再起動時に/var/run/httpdが削除される&lt;/li&gt;
&lt;li&gt;PIDが作成できなくなり、自動でも手動でも起動できなくなて慌てる&lt;/li&gt;
&lt;/ol&gt;
&lt;b&gt;&lt;u&gt;解決法&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
/usr/lib/tmpfiles.d/httpd.conf の内容を書き換えることで、再起動時にディレクトリが&lt;br /&gt;
&lt;br /&gt;
任意の権限で作成され、HTTPD2.4が起動するようになる。&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
書き換え前&lt;br /&gt;
d /run/httpd&amp;nbsp; &amp;nbsp;710 root apache&lt;br /&gt;
d /run/httpd/htcacheclean&amp;nbsp; &amp;nbsp;700 apache apache&lt;br /&gt;
書き換え後&lt;br /&gt;
d /var/run/httpd&amp;nbsp; &amp;nbsp;710 root apache&lt;br /&gt;
d /var/run/httpd/htcacheclean&amp;nbsp; &amp;nbsp;700 apache apache&amp;nbsp;&lt;/blockquote&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
以前に一度同じハマりをした記憶があったのに、まんまと同じハマり方をしてしまったので、備忘を兼ねて公開いたします。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
おわり&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/3442065558119105661/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2018/08/centos7httpd24.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/3442065558119105661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/3442065558119105661'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2018/08/centos7httpd24.html' title='再起動後にCentOS7でHTTPD2.4が起動しなくなる問題'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-3462027812235955579</id><published>2017-12-25T22:32:00.003+09:00</published><updated>2017-12-26T10:34:10.611+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="RDS"/><category scheme="http://www.blogger.com/atom/ns#" term="Timezone"/><title type='text'>年末RDSメンテナンスでハマった件</title><content type='html'>&lt;div class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;u&gt;12/13～1/4で予定されているRDSのメンテナンスについてです&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;tr_bq&quot;&gt;
余計な事をした結果なのか、サンタさんからのプレゼントなのか判断できませんが、&lt;/div&gt;
&lt;div class=&quot;tr_bq&quot;&gt;
がっちりハマったのでログを残します。&lt;/div&gt;
&lt;div class=&quot;tr_bq&quot;&gt;
久しぶりの更新で心が痛い。&lt;/div&gt;
&lt;div class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;u&gt;やりたかったこと：&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
年末年始にRDSのメンテナンスが予定されて居たため、コレを機にMySQLのマイナーバージョンアップと、Timezoneをスマートにする&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;できたこと：&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
MySQLのマイナーバージョンアップ(5.6.37になりました)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;できなかったこと：&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
Timezoneをスマートにできなかった&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;何があったのか：&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
メンテナンスウインドウによる自動アップデートではなく、事前にメンテナンス時間を決めて、対応を行いたかったので、どうすればいいのかサポートに問い合わせたところ、&lt;br /&gt;
「インスタンスタイプを変更すれば今回のメンテナンス要件を満たせますよ。リブートだけじゃダメ。」&lt;br /&gt;
との提案をいただきました。&lt;br /&gt;
&lt;br /&gt;
上記対応を完了し、少人数で動作確認を実施しサービスイン。&lt;br /&gt;
10分後くらいに凄まじくConnectionが滞留し、インスタンスが再起動を頻発しサービス停止・・・。&lt;br /&gt;
&lt;br /&gt;
何が原因なのかサポートに問い合わせるも、いまいち原因がつかめないため、MySQLのバージョンアップ以外の要素を切り戻し、様子見すると負荷が落ち着いている。&lt;br /&gt;
&lt;br /&gt;
ということで、Timezoneをストアド・プロシージャで設定する旧来の方法と、パラメータグループで設定するスマートな方法を比較して見ることにしました。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;sysbenchで負荷試験を掛けてみる：&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
以下の3パターン&lt;br /&gt;
1,ストアド・プロシージャ設定有り(init_connect有り＋プロシージャ残し)＋Timezone設定無し&lt;br /&gt;
2,ストアド・プロシージャ設定有り(init_connect無し＋プロシージャ残し)＋Timezone設定Asia/Tokyo&lt;br /&gt;
3,ストアド・プロシージャ設定無し(init_connect無し＋プロシージャ削除)＋Timezone設定Asia/Tokyo&lt;br /&gt;
基本的には、パラメータグループのinit_connectの設定で、ストアド・プロシージャを呼ばないはずなので、2と３はほぼおなじ結果になるはず。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;結果：&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
1のパターン：&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: #cfe2f3;&quot;&gt;SQL statistics:&lt;br /&gt;&amp;nbsp; &amp;nbsp; queries performed:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; read:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 13818&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; write:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3948&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; other:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1974&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; total:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;19740&lt;/span&gt;&lt;/blockquote&gt;
2,3のパターン：&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;&amp;nbsp; &amp;nbsp; Initializing worker threads...&lt;br /&gt;&amp;nbsp; &amp;nbsp; FATAL: Worker threads failed to initialize within 30 seconds!&lt;/span&gt;&lt;/blockquote&gt;
ということで、Timezoneの設定をパラメーターグループに任せた場合なぜかパフォーマンスが落ちました。&lt;br /&gt;
&lt;br /&gt;
サポートにベンチ結果を含めて緊急障害でアラートを上げていますが、多分次回メンテには間に合わない気がする…。&lt;br /&gt;
&lt;br /&gt;
あまり居ないとは思いますが、同じように色々と一緒に対応しようとしている人は気をつけてください。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;おまけ：&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
今回のRDSメンテナンスでAWS側がやった作業&lt;br /&gt;
&lt;blockquote&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 Looking for &#39;mysql&#39; as: /rdsdbbin/mysql/bin/mysql&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 Looking for &#39;mysqlcheck&#39; as: /rdsdbbin/mysql/bin/mysqlcheck&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 Running &#39;mysqlcheck&#39; with connection arguments: &#39;--port=3306&#39; &#39;--socket=/tmp/mysql.sock&#39; &#39;--socket=/tmp/mysql.sock&#39;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 Running &#39;mysqlcheck&#39; with connection arguments: &#39;--port=3306&#39; &#39;--socket=/tmp/mysql.sock&#39; &#39;--socket=/tmp/mysql.sock&#39;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.columns_priv&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.db&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.event&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.func&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.general_log&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.general_log_backup&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.help_category&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.help_keyword&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.help_relation&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.help_topic&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.host&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.innodb_index_stats&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.innodb_table_stats&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.ndb_binlog_index&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.plugin&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.proc&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.procs_priv&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.proxies_priv&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.rds_configuration&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.rds_global_status_history&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.rds_global_status_history_old&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.rds_heartbeat2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.rds_history&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.rds_replication_status&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.rds_sysinfo&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.servers&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.slave_master_info&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.slave_relay_log_info&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.slave_worker_info&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.slow_log&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.slow_log_backup&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.tables_priv&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.time_zone&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.time_zone_leap_second&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.time_zone_name&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.time_zone_transition&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.time_zone_transition_type&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 mysql.user&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;2017-12-25 04:17:02 Running &#39;mysql_fix_privilege_tables&#39;...&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;div&gt;
こういう事が「12月 25 1:19 午後 Database instance patched」の中で行われていたみたいです。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
内容が全くかかれていなかったため、気になるかたはチェックしてみてください。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
サポートからの連絡を待ちつつ、&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;メリークリスマス&lt;/span&gt;。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;2017/12/26追記：&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
MySQL5.6.34で「3,ストアド・プロシージャ設定無し(init_connect無し＋プロシージャ削除)＋Timezone設定Asia/Tokyo」のベンチも取得してみた。&lt;br /&gt;
Timeoutにならず、ベンチが普通に完了。&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
SQL statistics:&lt;br /&gt;&amp;nbsp; &amp;nbsp; queries performed:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; read:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8540&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; write:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2440&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; other:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1220&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; total:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12200&lt;/blockquote&gt;
・・・・・・MySQL5.6.37とTimezoneのあわせ技が原因・・・？&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/3462027812235955579/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2017/12/rds.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/3462027812235955579'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/3462027812235955579'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2017/12/rds.html' title='年末RDSメンテナンスでハマった件'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-8493485582281733269</id><published>2015-12-24T17:49:00.003+09:00</published><updated>2015-12-24T17:49:55.179+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="EC2"/><category scheme="http://www.blogger.com/atom/ns#" term="NAT gateway"/><category scheme="http://www.blogger.com/atom/ns#" term="network"/><category scheme="http://www.blogger.com/atom/ns#" term="VPC"/><title type='text'>AWS NAT Gatewayがつながらなくて嵌った件</title><content type='html'>&lt;b&gt;&lt;span style=&quot;background-color: #073763; color: #6fa8dc;&quot;&gt;AWS NAT Gatewayのリリース&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
これでNATサーバが不要になってコスト削減も楽勝とウキウキしていたが・・・&lt;br /&gt;結果ネットワーク設定の段で結構嵌ったので、設定内容の備忘録的な感じで&lt;/blockquote&gt;
** 資料&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
slideshareを使ってみました。&lt;br /&gt;詳細は以下をみてください。&lt;br /&gt;&lt;a href=&quot;http://www.slideshare.net/laporz/aws-nat-gateway-testjapanese&quot;&gt;http://www.slideshare.net/laporz/aws-nat-gateway-testjapanese&lt;/a&gt;&lt;/blockquote&gt;
----&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;かきたいことは上記に全部書いたので、おしまい・・・</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/8493485582281733269/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2015/12/aws-nat-gateway.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/8493485582281733269'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/8493485582281733269'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2015/12/aws-nat-gateway.html' title='AWS NAT Gatewayがつながらなくて嵌った件'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-1522548292437411384</id><published>2015-08-12T20:33:00.005+09:00</published><updated>2015-08-12T20:33:55.215+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Aurora"/><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="bench"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="RDS"/><title type='text'>ベンチマークシリーズ Aurora vs MySQL 結果まとめ</title><content type='html'>&lt;b&gt;&lt;u&gt;* ベンチマークシリーズ Aurora vs MySQL 結果まとめ&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** 結果比較&lt;/span&gt;&lt;br /&gt;
- Connection数別トランザクション/分&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Conn&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Aurora&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;MySQL&lt;br /&gt;20&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;6279.833 TpmC&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;6829.467&lt;/span&gt; TpmC&lt;br /&gt;30&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;8390.400&lt;/span&gt; TpmC&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;1374.767 TpmC&lt;br /&gt;50&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;11216.900&lt;/span&gt; TpmC&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;1913.100 TpmC&lt;br /&gt;70&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;14481.650&lt;/span&gt; TpmC&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;2498.600 TpmC&lt;br /&gt;100&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;14155.450 &lt;/span&gt;TpmC&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;2253.400 TpmC (詳細結果紛失&lt;br /&gt;200&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;14932.350 &lt;/span&gt;TpmC&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;------- &amp;nbsp;TpmC&lt;/blockquote&gt;
&lt;br /&gt;
- 所感&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;データ投入や20Connくらいの接続数の場合、MySQLの方に分があったけれど、Conn数を増やしていくと、&lt;br /&gt;&amp;nbsp;Auroraがリニアにスコアを伸ばし、限界値が高いようです&lt;br /&gt;&amp;nbsp;※両方パラメータは吊るしの状態なためチューニングすればまた違った結果になると思われます。&lt;/blockquote&gt;
&lt;br /&gt;
- 気になった点&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;・初期データ投入がMySQLは8時間で終了したところ、Auroraは15時間必要だった&lt;br /&gt;&amp;nbsp;・MySQL側のRDSインスタンスが、30Conn以上の時にCPU使用率が15%くらいで頭打ち、スペックを活かせていないようだった&lt;/blockquote&gt;
&lt;br /&gt;
- さいごに&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;本番想定のベンチマークを行ったため、生かしておくとお金が吸い取られるので&lt;br /&gt;&amp;nbsp;一旦バックアップを取ってココで終了。。。&lt;/blockquote&gt;
----&lt;br /&gt;
以下は見たい人用の細々したやつです&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** MySQLの結果&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;# ./tpcc_start -h 172.30.1.123 -P 3306 -d tpcc -u root -p coingame -w 50 -c 20 -r 180 -l 3600 -f ./mysql_tpcc.log&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;=================================================&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:409768 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:409661 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:40977 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:40973 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:40980 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; in 3600 sec.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results2(sum ver.)&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:409774 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:409766 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:40977 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:40973 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:40980 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Constraint Check&amp;gt; (all must be [OK])&lt;br /&gt;&amp;nbsp; [transaction percentage]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 43.47% (&amp;gt;=43.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; [response time (at least 90% passed)]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;New-Order: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;TpmC&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6829.467 TpmC&lt;br /&gt;&amp;nbsp;=================================================&lt;/blockquote&gt;
&lt;br /&gt;
&amp;nbsp;# ./tpcc_start -h 172.30.1.123 -P 3306 -d tpcc -u root -p coingame -w 50 -c 30 -r 180 -l 3600 -f ./mysql_tpcc_30.log&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;=================================================&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:82486 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:82299 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:8249 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:8247 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:8249 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; in 3600 sec.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results2(sum ver.)&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:82486 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:82487 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:8249 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:8248 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:8249 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Constraint Check&amp;gt; (all must be [OK])&lt;br /&gt;&amp;nbsp; [transaction percentage]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 43.42% (&amp;gt;=43.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; [response time (at least 90% passed)]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;New-Order: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;TpmC&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1374.767 TpmC&lt;br /&gt;&amp;nbsp;=================================================&lt;/blockquote&gt;
&lt;br /&gt;
&amp;nbsp;# ./tpcc_start -h 172.30.1.123 -P 3306 -d tpcc -u root -p coingame -w 50 -c 50 -r 180 -l 3600 -f ./mysql_tpcc_50.log&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;=================================================&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:114786 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:114741 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:11479 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:11478 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:11479 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; in 3600 sec.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results2(sum ver.)&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:114788 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:114791 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:11479 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:11478 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:11479 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Constraint Check&amp;gt; (all must be [OK])&lt;br /&gt;&amp;nbsp; [transaction percentage]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 43.47% (&amp;gt;=43.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; [response time (at least 90% passed)]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;New-Order: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;TpmC&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1913.100 TpmC&lt;br /&gt;&amp;nbsp;=================================================&lt;/blockquote&gt;
&lt;br /&gt;
&amp;nbsp;# ./tpcc_start -h 172.30.1.123 -P 3306 -d tpcc -u root -p coingame -w 50 -c 75 -r 180 -l 3600 -f ./mysql_tpcc_75.log&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;=================================================&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:149916 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:149867 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:14991 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:14990 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:14989 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; in 3600 sec.&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results2(sum ver.)&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:149916 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:149914 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:14991 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:14991 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:14990 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp;&amp;lt;Constraint Check&amp;gt; (all must be [OK])&lt;br /&gt;&amp;nbsp; [transaction percentage]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 43.47% (&amp;gt;=43.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; [response time (at least 90% passed)]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;New-Order: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp;&amp;lt;TpmC&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2498.600 TpmC&lt;br /&gt;&amp;nbsp;=================================================&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** Auroraの結果&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;# ./tpcc_start -h 172.30.2.234 -P 3306 -d tpcc -u root -p coingame -w 50 -c 20 -r 180 -l 3600 -f &amp;nbsp;./aurora_tpcc_20.log&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;=================================================&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:376790 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:376635 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:37679 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:37679 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:37679 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; in 3600 sec.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results2(sum ver.)&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:376801 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:376801 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:37679 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:37681 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:37679 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Constraint Check&amp;gt; (all must be [OK])&lt;br /&gt;&amp;nbsp; [transaction percentage]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 43.47% (&amp;gt;=43.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; [response time (at least 90% passed)]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;New-Order: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;TpmC&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6279.833 TpmC&lt;br /&gt;&amp;nbsp;=================================================&lt;/blockquote&gt;
&lt;br /&gt;
&amp;nbsp;# ./tpcc_start -h 172.30.2.234 -P 3306 -d tpcc -u root -p coingame -w 50 -c 30 -r 180 -l 3600 -f &amp;nbsp;./aurora_tpcc_30.log&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;=================================================&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:503424 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:503208 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:50343 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:50342 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:50342 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; in 3600 sec.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results2(sum ver.)&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:503431 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:503427 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:50343 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:50342 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:50344 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Constraint Check&amp;gt; (all must be [OK])&lt;br /&gt;&amp;nbsp; [transaction percentage]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 43.47% (&amp;gt;=43.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; [response time (at least 90% passed)]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;New-Order: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;TpmC&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8390.400 TpmC&lt;br /&gt;&amp;nbsp;=================================================&lt;/blockquote&gt;
&lt;br /&gt;
&amp;nbsp;# ./tpcc_start -h 172.30.2.234 -P 3306 -d tpcc -u root -p coingame -w 50 -c 50 -r 180 -l 3600 -f &amp;nbsp;./aurora_tpcc_50.log&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;=================================================&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:673014 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:672842 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:67302 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:67302 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:67303 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; in 3600 sec.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results2(sum ver.)&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:673032 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:673029 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:67303 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:67303 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:67304 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Constraint Check&amp;gt; (all must be [OK])&lt;br /&gt;&amp;nbsp; [transaction percentage]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 43.47% (&amp;gt;=43.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; [response time (at least 90% passed)]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;New-Order: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;TpmC&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11216.900 TpmC&lt;br /&gt;&amp;nbsp;=================================================&lt;/blockquote&gt;
&lt;br /&gt;
&amp;nbsp;# ./tpcc_start -h 172.30.2.234 -P 3306 -d tpcc -u root -p coingame -w 50 -c 75 -r 180 -l 3600 -f &amp;nbsp;./aurora_tpcc_75.log&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;=================================================&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:868899 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:868770 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:86890 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:86884 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:86893 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; in 3600 sec.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results2(sum ver.)&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:868917 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:868916 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:86892 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:86893 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:86893 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Constraint Check&amp;gt; (all must be [OK])&lt;br /&gt;&amp;nbsp; [transaction percentage]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 43.47% (&amp;gt;=43.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; [response time (at least 90% passed)]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;New-Order: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;TpmC&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 14481.650 TpmC&lt;br /&gt;&amp;nbsp;=================================================&lt;/blockquote&gt;
&lt;br /&gt;
&amp;nbsp;# ./tpcc_start -h 172.30.2.234 -P 3306 -d tpcc -u root -p coingame -w 50 -c 100 -r 180 -l 3600 -f ./aurora_tpcc_100.log&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;=================================================&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:849327 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:849158 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:84932 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:84932 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:84932 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; in 3600 sec.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results2(sum ver.)&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:849331 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:849340 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:84932 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:84935 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:84932 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Constraint Check&amp;gt; (all must be [OK])&lt;br /&gt;&amp;nbsp; [transaction percentage]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 43.47% (&amp;gt;=43.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; [response time (at least 90% passed)]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;New-Order: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;TpmC&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 14155.450 TpmC&lt;br /&gt;&amp;nbsp;=================================================&lt;/blockquote&gt;
&lt;br /&gt;
&amp;nbsp;# ./tpcc_start -h 172.30.2.234 -P 3306 -d tpcc -u root -p coingame -w 50 -c 200 -r 180 -l 3600 -f ./aurora_tpcc_200.log&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;=================================================&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:895941 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:895836 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:89595 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:89594 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:89588 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; in 3600 sec.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Raw Results2(sum ver.)&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp;[0] sc:895942 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[1] sc:895982 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[2] sc:89596 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[3] sc:89600 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&amp;nbsp; &amp;nbsp;[4] sc:89590 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;Constraint Check&amp;gt; (all must be [OK])&lt;br /&gt;&amp;nbsp; [transaction percentage]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 43.48% (&amp;gt;=43.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;&amp;nbsp; [response time (at least 90% passed)]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;New-Order: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; Order-Status: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 100.00% &amp;nbsp;[OK]&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;lt;TpmC&amp;gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 14932.350 TpmC&lt;br /&gt;&amp;nbsp;=================================================&lt;/blockquote&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
おわり</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/1522548292437411384/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2015/08/aurora-vs-mysql_12.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/1522548292437411384'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/1522548292437411384'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2015/08/aurora-vs-mysql_12.html' title='ベンチマークシリーズ Aurora vs MySQL 結果まとめ'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-1105793603108374566</id><published>2015-08-12T10:07:00.000+09:00</published><updated>2015-08-12T10:42:37.718+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Aurora"/><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="bench"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql5.6"/><category scheme="http://www.blogger.com/atom/ns#" term="RDS"/><title type='text'>ベンチマークシリーズ Aurora vs MySQL</title><content type='html'>&lt;b&gt;&lt;u&gt;* AmazonAuroraをベンチマークしてみる&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** やりたいこと&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;以下ベンチマークで比較する&lt;br /&gt;
&amp;nbsp;・RDS MySQL5.6&lt;br /&gt;
&amp;nbsp;・RDS Aurora&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** つかうもの&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
- メリケンのEC2&lt;br /&gt;
&amp;nbsp;N.Virginiaのやつ&lt;br /&gt;
- tpcc-mysql&lt;br /&gt;
&amp;nbsp;ベンチマークツール&lt;br /&gt;
&amp;nbsp;以前MySQLとMariaDBを比較した際に、mysqlbenchはフェアではない！と或る方から叱られたため、より実践的なテストを実施する目論見&lt;br /&gt;
- bzr&lt;br /&gt;
&amp;nbsp;上のやつを取ってくるのに使うPythonのバージョン管理ツール&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** まずはtpcc-mysqlを入れる&lt;/span&gt;&lt;br /&gt;
- yumで入れる&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;$ sudo su -&lt;br /&gt;
&amp;nbsp;# yum install bzr&lt;/blockquote&gt;
&lt;br /&gt;
- 作業ディレクトリの作成と下準備&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# mkdir ~/bazaar&lt;br /&gt;
&amp;nbsp;# bzr init&lt;br /&gt;
&amp;nbsp;# ls -la&lt;br /&gt;
&amp;nbsp;■.bzrディレクトリが作成されていることを確認&lt;/blockquote&gt;
&lt;br /&gt;
- tpccmysqlを引っ張ってくる&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# bzr branch lp:~percona-dev/perconatools/tpcc-mysql&lt;br /&gt;
&amp;nbsp;■失敗します&lt;br /&gt;
&amp;nbsp;→AmazonLinuxのpyton2.7とbzrのバージョンがマッチしておらず、initは成功するがそれ以外の動作がおかしい&lt;/blockquote&gt;
&lt;br /&gt;
- bzrを削除して仕切り直し&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# yum remove bzr&lt;/blockquote&gt;
&lt;br /&gt;
- bazaar公式から最新の2.6.0のソースを持ってくる&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# cd ~&lt;br /&gt;
&amp;nbsp;# wget https://launchpad.net/bzr/2.6/2.6.0/+download/bzr-2.6.0.tar.gz&lt;/blockquote&gt;
&lt;br /&gt;
- 解凍とインストール&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# tar zxf bzr-2.6.0.tar.gz&lt;br /&gt;
&amp;nbsp;# cd bzr-2.6.0&lt;br /&gt;
&amp;nbsp;# python setup.py install&lt;br /&gt;
&amp;nbsp;■問題なく完了&lt;/blockquote&gt;
&lt;br /&gt;
- 初期設定仕切り直し&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# cd ~/bazaar&lt;br /&gt;
&amp;nbsp;# bzr init&lt;/blockquote&gt;
&lt;br /&gt;
- ひっぱってくる&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# bzr branch lp:~percona-dev/perconatools/tpcc-mysql&lt;br /&gt;
&amp;nbsp;■さすが最新エラー無しで完了&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** tpcc、tpccをつかう&lt;/span&gt;&lt;br /&gt;
- tpccを使うためのDBの下準備&lt;br /&gt;
-- 試験用のDBをつくる&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# mysql -uroot -p&lt;br /&gt;
&amp;nbsp;mysql&amp;gt; create database tpcc;&lt;br /&gt;
&amp;nbsp;mysql&amp;gt; exit&lt;/blockquote&gt;
&lt;br /&gt;
-- テスト準備用のSQLを流し込む&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# cd tpcc-mysql&lt;br /&gt;
&amp;nbsp;# mysql -uroot -p tpcc &amp;lt; create_table.sql&lt;br /&gt;
&amp;nbsp;# mysql -uroot -p tpcc &amp;lt; add_fkey_idx.sql&lt;/blockquote&gt;
&lt;br /&gt;
- tpcc-mysql側の準備&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# cd src&lt;br /&gt;
&amp;nbsp;■READMEがscrになっているのはご愛嬌&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;# make&lt;br /&gt;
&amp;nbsp;================================================================================&lt;br /&gt;
&amp;nbsp;cc -w -O2 -g -I. `mysql_config --include` &amp;nbsp;-c load.c&lt;br /&gt;
&amp;nbsp;cc -w -O2 -g -I. `mysql_config --include` &amp;nbsp;-c support.c&lt;br /&gt;
&amp;nbsp;cc load.o support.o `mysql_config --libs_r` -lrt -o ../tpcc_load&lt;br /&gt;
&amp;nbsp;cc -w -O2 -g -I. `mysql_config --include` &amp;nbsp;-c main.c&lt;br /&gt;
&amp;nbsp;cc -w -O2 -g -I. `mysql_config --include` &amp;nbsp;-c spt_proc.c&lt;br /&gt;
&amp;nbsp;cc -w -O2 -g -I. `mysql_config --include` &amp;nbsp;-c driver.c&lt;br /&gt;
&amp;nbsp;cc -w -O2 -g -I. `mysql_config --include` &amp;nbsp;-c sequence.c&lt;br /&gt;
&amp;nbsp;cc -w -O2 -g -I. `mysql_config --include` &amp;nbsp;-c rthist.c&lt;br /&gt;
&amp;nbsp;cc -w -O2 -g -I. `mysql_config --include` &amp;nbsp;-c neword.c&lt;br /&gt;
&amp;nbsp;cc -w -O2 -g -I. `mysql_config --include` &amp;nbsp;-c payment.c&lt;br /&gt;
&amp;nbsp;cc -w -O2 -g -I. `mysql_config --include` &amp;nbsp;-c ordstat.c&lt;br /&gt;
&amp;nbsp;cc -w -O2 -g -I. `mysql_config --include` &amp;nbsp;-c delivery.c&lt;br /&gt;
&amp;nbsp;cc -w -O2 -g -I. `mysql_config --include` &amp;nbsp;-c slev.c&lt;br /&gt;
&amp;nbsp;cc main.o spt_proc.o driver.o support.o sequence.o rthist.o neword.o payment.o ordstat.o delivery.o slev.o `mysql_config --libs_r` -lrt -o ../tpcc_start&lt;br /&gt;
&amp;nbsp;================================================================================&lt;/blockquote&gt;
&lt;br /&gt;
- かくにん&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# cd ..&lt;br /&gt;
&amp;nbsp;# ls -l&lt;br /&gt;
&amp;nbsp;================================================================================&lt;br /&gt;
&amp;nbsp;-rw-rw-r-- 1 root &amp;nbsp;root &amp;nbsp; &amp;nbsp;1506 &amp;nbsp;8月 11 11:22 add_fkey_idx.sql&lt;br /&gt;
&amp;nbsp;-rw-rw-r-- 1 root &amp;nbsp;root &amp;nbsp; &amp;nbsp; 317 &amp;nbsp;8月 11 11:22 count.sql&lt;br /&gt;
&amp;nbsp;-rw-rw-r-- 1 root &amp;nbsp;root &amp;nbsp; &amp;nbsp;3485 &amp;nbsp;8月 11 11:22 create_table.sql&lt;br /&gt;
&amp;nbsp;-rw-rw-r-- 1 root &amp;nbsp;root &amp;nbsp; &amp;nbsp; 763 &amp;nbsp;8月 11 11:22 drop_cons.sql&lt;br /&gt;
&amp;nbsp;drwxrwxr-x 2 root &amp;nbsp;root &amp;nbsp; &amp;nbsp;4096 &amp;nbsp;8月 11 11:24 src&lt;br /&gt;
&amp;nbsp;-rwxrwxr-x 1 root &amp;nbsp;root &amp;nbsp; 47381 &amp;nbsp;8月 11 11:24 tpcc_load &amp;nbsp; ←これが出来上がる&lt;br /&gt;
&amp;nbsp;-rwxrwxr-x 1 root &amp;nbsp;root &amp;nbsp;137049 &amp;nbsp;8月 11 11:24 tpcc_start &amp;nbsp;←これが出来上がる&lt;br /&gt;
&amp;nbsp;================================================================================&lt;/blockquote&gt;
&lt;br /&gt;
- tpcc_load の実行&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# ./tpcc_load 127.0.0.1:3306 tpcc root &quot;&quot; 50&lt;br /&gt;
&amp;nbsp;■ 書式&lt;br /&gt;
&amp;nbsp;$ ./tpcc_load [DBのIPorHostname]:[port] [DBname] [Username] [Password] [WAREHOUSE]&lt;br /&gt;
&amp;nbsp;■ WAREHOUSEとはなんぞや？&lt;br /&gt;
&amp;nbsp;そのままwarehouse表のレコード数になるとのこと&lt;br /&gt;
&amp;nbsp;負荷をかけたいところや目的に応じて数字を変更するようです※要調査&lt;/blockquote&gt;
&lt;br /&gt;
- DBのバックアップを取る&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# mysqldump -uroot -p tpcc | gzip &amp;gt; tpcc.sql.gz&lt;br /&gt;
&amp;nbsp;■テスト中にDBに変更を加わるため、まっさらな状態でテストするにはいちいちtpcc_loadで&lt;br /&gt;
&amp;nbsp;　時間を取られるので、バックアップを取ると吉&lt;/blockquote&gt;
&lt;br /&gt;
- ようやっと試験実施&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# ./tpcc_start -h 127.0.0.1 -P 3306 -d tpcc -u root -p &quot;&quot; -w 50 -c 5 -r 180 -l 1800 -f ./tpcc_`date +%Y%m%d%H%M`.log&lt;br /&gt;
&amp;nbsp;■ 書式&lt;br /&gt;
&amp;nbsp;$ ./tpcc_start -h server_host -P port -d database_name -u mysql_user -p mysql_password -w warehouses -c connections -r warmup_time -l running_time -i report_interval -f report_file&lt;br /&gt;
&amp;nbsp;→同時コネクション数はそのままの意味&lt;br /&gt;
&amp;nbsp;→warmupは助走時間の設定(大体300秒程度あればいいようです&lt;br /&gt;
&amp;nbsp;→running_timeそのままの意味(大体2時間～4時間で測定値にブレがなくなる模樣&lt;/blockquote&gt;
&lt;br /&gt;
- 結果を見る&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;===========================================================&lt;br /&gt;
&amp;nbsp;&amp;lt;Raw Results&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;[0] sc:86074 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;
&amp;nbsp; &amp;nbsp;[1] sc:86060 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;
&amp;nbsp; &amp;nbsp;[2] sc:8607 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;
&amp;nbsp; &amp;nbsp;[3] sc:8607 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;
&amp;nbsp; &amp;nbsp;[4] sc:8607 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;
&amp;nbsp; in 1800 sec.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;lt;Raw Results2(sum ver.)&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;[0] sc:86074 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;
&amp;nbsp; &amp;nbsp;[1] sc:86071 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;
&amp;nbsp; &amp;nbsp;[2] sc:8607 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;
&amp;nbsp; &amp;nbsp;[3] sc:8607 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;
&amp;nbsp; &amp;nbsp;[4] sc:8607 &amp;nbsp;lt:0 &amp;nbsp;rt:0 &amp;nbsp;fl:0&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;lt;Constraint Check&amp;gt; (all must be [OK])&lt;br /&gt;
&amp;nbsp; [transaction percentage]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 43.47% (&amp;gt;=43.0%) [OK]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Order-Status: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 4.35% (&amp;gt;= 4.0%) [OK]&lt;br /&gt;
&amp;nbsp; [response time (at least 90% passed)]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;New-Order: 100.00% &amp;nbsp;[OK]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Payment: 100.00% &amp;nbsp;[OK]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Order-Status: 100.00% &amp;nbsp;[OK]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Delivery: 100.00% &amp;nbsp;[OK]&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp;Stock-Level: 100.00% &amp;nbsp;[OK]&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;lt;TpmC&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2869.133 TpmC (一分間に処理したトランザクション数)&lt;br /&gt;
&amp;nbsp;===========================================================&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** ここでやっとベンチマーク用のRDSの準備&lt;/span&gt;&lt;br /&gt;
- スペック&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;db.r3.xlarge(4core 30GB)で合わせる&lt;br /&gt;
&amp;nbsp;→あるていど強くサービスで使いそうなスペックだから&lt;/blockquote&gt;
&lt;br /&gt;
- コンソールでMySQLとAuroraのインスタンスを作成&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;■Auroraに合わせ新規で北米にRDSを構築したため、セキュリティグループの設定を忘れて接続出来ずに小一時間ハマったのは内緒&lt;/blockquote&gt;
&lt;br /&gt;
- セキュリティグループを設定してEC2からアクセス出来るように！&lt;br /&gt;
&lt;br /&gt;
- データ準備&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# host nyowa-cluster.cluster-cr3an1vu6snd.us-east-1.rds.amazonaws.com&lt;br /&gt;
&amp;nbsp;nyowa-cluster.cluster-cr3an1vu6snd.us-east-1.rds.amazonaws.com is an alias for nyowa.cr3an1vu6snd.us-east-1.rds.amazonaws.com.&lt;br /&gt;
&amp;nbsp;nyowa.cr3an1vu6snd.us-east-1.rds.amazonaws.com has address 172.30.20.128&lt;br /&gt;
&amp;nbsp;# host mikunyan-cluster.cluster-cr3an1vu6snd.us-east-1.rds.amazonaws.com&lt;br /&gt;
&amp;nbsp;mikunyan-cluster.cluster-cr3an1vu6snd.us-east-1.rds.amazonaws.com is an alias for mikunyan.cr3an1vu6snd.us-east-1.rds.amazonaws.com.&lt;br /&gt;
&amp;nbsp;mikunyan.cr3an1vu6snd.us-east-1.rds.amazonaws.com has address 172.30.20.198&lt;br /&gt;
&amp;nbsp;■tpcc-mysqlにhostnameが長すぎると怒られるため、IPを確認(IPは適当)&lt;/blockquote&gt;
&lt;br /&gt;
- データの投入開始&lt;br /&gt;
-- Aurora&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# ./tpcc_load 172.30.20.128 tpcc root PASSWORD 50&lt;/blockquote&gt;
-- MySQL&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# ./tpcc_load 172.30.20.198 tpcc root PASSWORD 50&lt;br /&gt;
&amp;nbsp;■Auroraのデータ作成の遅さに嫌な予感がする&lt;br /&gt;
&amp;nbsp;■結局MySQLの二倍くらい時間がかかった・・・&lt;/blockquote&gt;
&lt;br /&gt;
- バックアップ取得&lt;br /&gt;
-- Aurora&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# mysqldump -uroot -p -h 172.30.2.128 tpcc | gzip &amp;gt; tpcc_aurora.sql.gz&lt;br /&gt;
&amp;nbsp;■ディスク容量に注意&lt;/blockquote&gt;
-- MySQL&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# mysqldump -uroot -p -h 172.30.20.198 tpcc | gzip &amp;gt; tpcc_mysql.sql.gz&lt;br /&gt;
&amp;nbsp;■ディスク容量に注意&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** いよいよテスト&lt;/span&gt;&lt;br /&gt;
- テスト&lt;br /&gt;
-- Aurora&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# ./tpcc_start -h 172.30.20.128 -P 3306 -d tpcc -u root -p [password] -w 50 -c 20 -r 180 -l 3600 -f ./aurora_tpcc.log&lt;/blockquote&gt;
-- MySQL&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;# ./tpcc_start -h 172.30.20.198 -P 3306 -d tpcc -u root -p [password] -w 50 -c 20 -r 180 -l 3600 -f ./mysql_tpcc.log&lt;br /&gt;
&amp;nbsp;■connectionの数値を変えつつ 20→30→50→75→100 くらいでパフォーマンスを確認していく&lt;/blockquote&gt;
&lt;br /&gt;
という感じで進めています&lt;br /&gt;
結果は来週のこの時間&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
おわり&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/1105793603108374566/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2015/08/aurora-vs-mysql.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/1105793603108374566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/1105793603108374566'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2015/08/aurora-vs-mysql.html' title='ベンチマークシリーズ Aurora vs MySQL'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-6095918355198194691</id><published>2015-06-24T17:55:00.000+09:00</published><updated>2015-06-24T17:55:26.609+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="3min Cooking"/><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="squid"/><title type='text'>備忘録：gitをプロキシ環境下で使う方法</title><content type='html'>久しぶりなのに、お手軽更新で恐縮です&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u style=&quot;background-color: #fce5cd;&quot;&gt;- なにがしたいの？&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
NATサーバがないPrivateVPCのEC2みたいな環境からgit cloneしたい。とかいうやつ&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u style=&quot;background-color: #fce5cd;&quot;&gt;- 環境&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;Server1：squidなんかで立てているproxyサーバ(100.100.100.1:3128)&lt;br /&gt;Server2：PrivateVPCにある箱入りサーバ(192.168.1.1)&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u style=&quot;background-color: #fce5cd;&quot;&gt;- 手順&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;-- HTTPS通信のプロキシ登録&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;$ git config --global https.proxy http://100.100.100.1:3128&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;-- 行頭のgitをhttpsに読み替える的なやつ&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;$ git config --global url.&quot;https://&quot;.insteadOf git://&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;-- 満を持してclone&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;$ git clone git://github.com/hogehoge/fugafga.git&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
おしまい</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/6095918355198194691/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2015/06/git.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/6095918355198194691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/6095918355198194691'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2015/06/git.html' title='備忘録：gitをプロキシ環境下で使う方法'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-7426031224632026977</id><published>2015-04-22T20:05:00.001+09:00</published><updated>2015-04-22T20:05:04.192+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="3min Cooking"/><category scheme="http://www.blogger.com/atom/ns#" term="Ansible"/><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="EC2"/><title type='text'>ansible で playbook を使ってみる</title><content type='html'>&lt;h2&gt;
ansibleを使ってみた&lt;/h2&gt;
&lt;br /&gt;
&lt;h3&gt;
NTPパッケージをアップデートしてみる&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
以下の構成で検証&lt;br /&gt;管理サーバ：sigure&lt;br /&gt;対象サーバ：yuzuki&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
前提条件&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
今回ansibleユーザーで通信し、rootにsudoを行って、update作業を行うます。&lt;br /&gt;上記から分かる通り、&lt;br /&gt;・ansibleユーザでのログイン&lt;br /&gt;・ansible→rootへのsudo&lt;br /&gt;の権限が必要となります。&lt;br /&gt;事前に、SSHのノンパスログインと、sudoコマンドもNOPASSWDを付けておきます。&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
hostsをつくる&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ cd /etc/ansible&lt;br /&gt;$ cp -pi hosts{,.org}&lt;br /&gt;$ cat &amp;lt;&amp;lt; EOF &amp;gt; hosts&lt;br /&gt;[testserver]&lt;br /&gt;yuzuki.fr.taterole.net&lt;br /&gt;EOF&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
playbookをつくる&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ mkdir playbook&lt;br /&gt;$ cat &amp;lt;&amp;lt; EOF &amp;gt; test.yml&lt;br /&gt;- name: ntp update&lt;br /&gt;&amp;nbsp; hosts: testserver&lt;br /&gt;&amp;nbsp; remote_user: ansible&lt;br /&gt;&amp;nbsp; sudo: yes&lt;br /&gt;&amp;nbsp; vars:&lt;br /&gt;&amp;nbsp; &amp;nbsp; pkg: ntp&lt;br /&gt;&amp;nbsp; tasks:&lt;br /&gt;&amp;nbsp; &amp;nbsp; - name: yum clean&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; shell: yum clean all&lt;br /&gt;&amp;nbsp; &amp;nbsp; - name: before-check&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; shell: yum list &quot;{{pkg}}&quot;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; register: before_check&lt;br /&gt;&amp;nbsp; &amp;nbsp; - debug: msg=&quot;{{before_check.stdout_lines}}&quot;&lt;br /&gt;&amp;nbsp; &amp;nbsp; - name: update &quot;{{pkg}}&quot;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; yum: name=&quot;{{pkg}}&quot; state=latest&lt;br /&gt;&amp;nbsp; &amp;nbsp; - name: Check again&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; shell: yum list &quot;{{pkg}}&quot;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; register: after_check&lt;br /&gt;&amp;nbsp; &amp;nbsp; - debug: msg=&quot;{{after_check.stdout_lines}}&quot;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
実行してみる&lt;/h3&gt;
$ pwd&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
================================================================================&lt;br /&gt;/etc/ansible&lt;br /&gt;================================================================================&lt;/blockquote&gt;
&lt;br /&gt;
$ ansible-playbook -i hosts playbook/test.yml&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
================================================================================&lt;br /&gt;&amp;nbsp;[WARNING]: The version of gmp you have installed has a known issue regarding&lt;br /&gt;timing vulnerabilities when used with pycrypto. If possible, you should update&lt;br /&gt;it (i.e. yum update gmp).&lt;br /&gt;&lt;br /&gt;PLAY [ntp update] *************************************************************&lt;br /&gt;GATHERING FACTS ***************************************************************&lt;br /&gt;ok: [yuzuki.fr.taterole.net]&lt;br /&gt;TASK: [yum clean] *************************************************************&lt;br /&gt;changed: [yuzuki.fr.taterole.net]&lt;br /&gt;TASK: [before-check] **********************************************************&lt;br /&gt;changed: [yuzuki.fr.taterole.net]&lt;br /&gt;TASK: [debug msg=&quot;{{before_check.stdout_lines}}&quot;] *****************************&lt;br /&gt;ok: [yuzuki.fr.taterole.net] =&amp;gt; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &quot;msg&quot;: &quot;[&#39;Loaded plugins: priorities, update-motd, upgrade-helper&#39;, &#39;Installed Packages&#39;, &#39;ntp.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4.2.6p5-27.23.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; installed&#39;]&quot;&lt;br /&gt;}&lt;br /&gt;TASK: [update &quot;{{pkg}}&quot;] ******************************************************&lt;br /&gt;ok: [yuzuki.fr.taterole.net]&lt;br /&gt;TASK: [Check again] ***********************************************************&lt;br /&gt;changed: [yuzuki.fr.taterole.net]&lt;br /&gt;TASK: [debug msg=&quot;{{after_check.stdout_lines}}&quot;] ******************************&lt;br /&gt;ok: [yuzuki.fr.taterole.net] =&amp;gt; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &quot;msg&quot;: &quot;[&#39;Loaded plugins: priorities, update-motd, upgrade-helper&#39;, &#39;Installed Packages&#39;, &#39;ntp.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4.2.6p5-27.23.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; installed&#39;]&quot;&lt;br /&gt;}&lt;br /&gt;PLAY RECAP *****************************************************************&lt;br /&gt;================================================================================&lt;br /&gt;こんな感じで実行される。(例によって冒頭のWARNINGはシカトしてください)&lt;/blockquote&gt;
&lt;br /&gt;
----&lt;br /&gt;
おわり</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/7426031224632026977/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2015/04/ansible-playbook.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/7426031224632026977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/7426031224632026977'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2015/04/ansible-playbook.html' title='ansible で playbook を使ってみる'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-7214452820990487364</id><published>2015-04-22T19:28:00.003+09:00</published><updated>2015-04-22T19:31:04.621+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ansible"/><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>ansible insall error (ImportError: No module named ansible.runner)</title><content type='html'>&lt;h2&gt;
ansibleを触ってみる&lt;/h2&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
chef使っているけれど、やっぱりpush型のほうが便利かもと思うことがあるので、&lt;br /&gt;
ansibleを検証してみるテスト。&lt;br /&gt;
が、インストールはしたものの以下のエラーが出たので、困ったというお話。&lt;br /&gt;
結構ありがちでは？と思うので共有。&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
こんなエラー&lt;/h3&gt;
# ansible --help&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
============================================================&lt;br /&gt;
Traceback (most recent call last):&lt;br /&gt;
&amp;nbsp; File &quot;/usr/bin/ansible&quot;, line 36, in &amp;lt;module&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; from ansible.runner import Runner&lt;br /&gt;
ImportError: No module named ansible.runner&lt;br /&gt;
============================================================&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
インストールしたときの記憶&lt;/h3&gt;
# yum install --enablerepo=epel ansible&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
====================================================================================================&lt;br /&gt;
&amp;nbsp;Package &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Arch &amp;nbsp; &amp;nbsp; &amp;nbsp; Version &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Repository &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size&lt;br /&gt;
====================================================================================================&lt;br /&gt;
Installing:&lt;br /&gt;
&amp;nbsp;ansible &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; noarch &amp;nbsp; &amp;nbsp; 1.9.0.1-2.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;epel &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.7 M&lt;br /&gt;
Installing for dependencies:&lt;br /&gt;
&amp;nbsp;python-crypto2.6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x86_64 &amp;nbsp; &amp;nbsp; 2.6.1-2.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;epel &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 513 k&lt;br /&gt;
&amp;nbsp;python-keyczar &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;noarch &amp;nbsp; &amp;nbsp; 0.71c-1.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;epel &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 219 k&lt;br /&gt;
&amp;nbsp;python26 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x86_64 &amp;nbsp; &amp;nbsp; 2.6.9-1.80.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-updates &amp;nbsp; &amp;nbsp; 5.7 M&lt;br /&gt;
&amp;nbsp;python26-PyYAML &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x86_64 &amp;nbsp; &amp;nbsp; 3.10-3.10.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;amzn-main &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;186 k&lt;br /&gt;
&amp;nbsp;python26-babel &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;noarch &amp;nbsp; &amp;nbsp; 0.9.4-5.1.8.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp;amzn-main &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.8 M&lt;br /&gt;
&amp;nbsp;python26-backports &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x86_64 &amp;nbsp; &amp;nbsp; 1.0-3.14.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-main &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.2 k&lt;br /&gt;
&amp;nbsp;python26-backports-ssl_match_hostname &amp;nbsp; &amp;nbsp; noarch &amp;nbsp; &amp;nbsp; 3.4.0.2-1.12.amzn1 &amp;nbsp; &amp;nbsp; amzn-main &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12 k&lt;br /&gt;
&amp;nbsp;python26-crypto &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x86_64 &amp;nbsp; &amp;nbsp; 2.6.1-1.10.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-main &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;697 k&lt;br /&gt;
&amp;nbsp;python26-ecdsa &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;noarch &amp;nbsp; &amp;nbsp; 0.11-3.3.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-main &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 77 k&lt;br /&gt;
&amp;nbsp;python26-httplib2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; noarch &amp;nbsp; &amp;nbsp; 0.7.7-1.5.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;amzn-main &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 81 k&lt;br /&gt;
&amp;nbsp;python26-jinja2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; noarch &amp;nbsp; &amp;nbsp; 2.7.2-2.15.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-main &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;899 k&lt;br /&gt;
&amp;nbsp;python26-libs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x86_64 &amp;nbsp; &amp;nbsp; 2.6.9-1.80.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-updates &amp;nbsp; &amp;nbsp; 692 k&lt;br /&gt;
&amp;nbsp;python26-markupsafe &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x86_64 &amp;nbsp; &amp;nbsp; 0.11-4.6.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-main &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 27 k&lt;br /&gt;
&amp;nbsp;python26-paramiko &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; noarch &amp;nbsp; &amp;nbsp; 1.15.1-1.5.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-main &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.3 M&lt;br /&gt;
&amp;nbsp;python26-pyasn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; noarch &amp;nbsp; &amp;nbsp; 0.1.7-2.7.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;amzn-main &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;174 k&lt;br /&gt;
&amp;nbsp;python26-setuptools &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; noarch &amp;nbsp; &amp;nbsp; 12.2-1.30.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;amzn-updates &amp;nbsp; &amp;nbsp; 582 k&lt;br /&gt;
&amp;nbsp;python26-simplejson &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x86_64 &amp;nbsp; &amp;nbsp; 3.6.5-1.12.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-main &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;210 k&lt;br /&gt;
&amp;nbsp;python26-six &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;noarch &amp;nbsp; &amp;nbsp; 1.8.0-1.23.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-main &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 31 k&lt;br /&gt;
Transaction Summary&lt;br /&gt;
====================================================================================================&lt;br /&gt;
Install &amp;nbsp;1 Package (+18 Dependent packages)&lt;br /&gt;
Total download size: 15 M&lt;br /&gt;
Installed size: 50 M&lt;br /&gt;
Is this ok [y/d/N]: y&lt;/blockquote&gt;
&lt;br /&gt;
ansibleはpython2.6でないと稼働しません。が、&lt;br /&gt;
AmazonLinuxではデフォルトでpython2.7がインストールされています。&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
確認&lt;/h3&gt;
# python --version&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Python 2.7.9&lt;/blockquote&gt;
こんな感じ。&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
python26にパッケージ切替&lt;/h3&gt;
&lt;div&gt;
インストール時に2.6が入った事を思い出したので、切替をしていく。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
# alternatives --config python&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
======================================================================&lt;br /&gt;
There are 2 programs which provide &#39;python&#39;.&lt;br /&gt;
&amp;nbsp; Selection &amp;nbsp; &amp;nbsp;Command&lt;br /&gt;
-----------------------------------------------&lt;br /&gt;
*+ 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /usr/bin/python2.7 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;←&quot;+&quot;が付いているのが今使っているバージョン&lt;br /&gt;
&amp;nbsp; &amp;nbsp;2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /usr/bin/python2.6&lt;br /&gt;
Enter to keep the current selection[+], or type selection number: 2&lt;br /&gt;
======================================================================&lt;br /&gt;
2番を使いたいので、2を入力してENTERで抜ける。&lt;/blockquote&gt;
&lt;br /&gt;
# python --version&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
======================================================================&lt;br /&gt;
Python 2.6.9&lt;br /&gt;
======================================================================&lt;br /&gt;
このように表示されれば切替完了。&lt;/blockquote&gt;
&lt;br /&gt;
# ansible 127.0.0.1 -m ping&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
======================================================================&lt;br /&gt;
&amp;nbsp;[WARNING]: The version of gmp you have installed has a known issue regarding&lt;br /&gt;
timing vulnerabilities when used with pycrypto. If possible, you should update&lt;br /&gt;
it (i.e. yum update gmp).&lt;br /&gt;
127.0.0.1 | success &amp;gt;&amp;gt; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &quot;changed&quot;: false,&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &quot;ping&quot;: &quot;pong&quot;&lt;br /&gt;
}&lt;br /&gt;
======================================================================&lt;br /&gt;
というように表示されればOK&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h3&gt;
エラー解消&lt;/h3&gt;
&lt;div&gt;
以下のエラーに関してはgmpパッケージのバージョンが古いですよ。という警告&lt;/div&gt;
&lt;div&gt;
現在AWSリポジトリの最新バージョンでも出てしまいます。&lt;/div&gt;
&lt;div&gt;
特に影響はないので、放置でも問題ありません。&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
======================================================================&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.6000003814697px; text-align: justify;&quot;&gt;&amp;nbsp;[WARNING]: The version of gmp you have installed has a known issue regarding&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.6000003814697px; text-align: justify;&quot;&gt;timing vulnerabilities when used with pycrypto. If possible, you should update&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Helvetica Neue Light&#39;, HelveticaNeue-Light, &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 19.6000003814697px; text-align: justify;&quot;&gt;it (i.e. yum update gmp).&lt;/span&gt;======================================================================&lt;/blockquote&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
おわり</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/7214452820990487364/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2015/04/ansible-insall-error-importerror-no.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/7214452820990487364'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/7214452820990487364'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2015/04/ansible-insall-error-importerror-no.html' title='ansible insall error (ImportError: No module named ansible.runner)'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-3202490564523665158</id><published>2015-01-22T20:54:00.002+09:00</published><updated>2015-01-22T20:54:39.119+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="battle"/><category scheme="http://www.blogger.com/atom/ns#" term="EC2"/><title type='text'>c3.2xlarge vs c4.2xlarge</title><content type='html'>AWSで新世代インスタンスが発表されたたので試してみる&lt;br /&gt;
&lt;br /&gt;
* 前置き&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;-- スペックなんかの違い&lt;/span&gt;&lt;br /&gt;
Instance&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;vCPU&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;ECU&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;メモリ（GiB）&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;インスタンスストレージ（GB）&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Linux/UNIX 料金&lt;br /&gt;
c3.2xlarge&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;8&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;28&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;15&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;2 x 80 SSD&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;$0.511 /1 時間&lt;br /&gt;
c4.2xlarge&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;8&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;31&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;15&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;EBS のみ&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;$0.588 /1 時間&lt;br /&gt;
&lt;br /&gt;
このインスタンスを比較対象にしたのは、サービスでc3.2xlargeを使っているからです(安易)&lt;br /&gt;
ということで、テストインスタンスでベンチマークを取ってみます。&lt;br /&gt;
以下の3点がc3→c4に変わった際の売りになっているそうです&lt;br /&gt;
・CPUの世代がHaswellになってクロック数も上がりましたよ。&lt;br /&gt;
・ネットワークが最適化されて早くなりましたよ&lt;br /&gt;
・ディスク領域がEBSに最適化されて早くなりましたよ&lt;br /&gt;
&lt;br /&gt;
-- お値段&lt;br /&gt;
気になるのは料金が結構上がっていることでして、たった$0.77と思うなかれ&lt;br /&gt;
安定運用していて1ヶ月単価になると結構な差がでてきます。&lt;br /&gt;
・c3.2xlarge：$367.92&lt;br /&gt;
・c4.2xlarge：$423.36&lt;br /&gt;
$55.44の差額です。たかい。&lt;br /&gt;
&lt;br /&gt;
* ベンチ開始&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;-- ApacheBench&lt;/span&gt;&lt;br /&gt;
総アクセス100万&lt;br /&gt;
同時connection数がどこまでエラーなくレスポンスを返せるか。&lt;br /&gt;
&lt;br /&gt;
5回同じ項目テストして、エラーが出なかったらOk扱いということで・・・&lt;br /&gt;
# ab -n 1000000 -c $cnt http://&amp;lt;hostname&amp;gt;/&lt;br /&gt;
→Apacheデフォルトの静的コンテンツ(5.4kb)&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
- c3.2xlarge&lt;br /&gt;・同時接続370で挫ける&lt;br /&gt;・さばいた秒間リクエスト数の最大は7284.85回/sec&lt;br /&gt;・テスト所要時間は130秒前後&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
- c4.2xlarge&lt;br /&gt;・同じく同時接続370で挫ける&lt;br /&gt;・さばいた秒間リクエスト数の最大は19130.87回/sec&lt;br /&gt;・テスト所要時間は50秒前後&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;--ApacheBench総評&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;・c4.2xlargeが圧勝しました。&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;-- UnixBench&lt;/span&gt;&lt;br /&gt;
- c4.2xlarge&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# ./Run&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;Benchmark Run: Thu Jan 22 2015 09:53:19 - 10:21:26&lt;br /&gt;8 CPUs in system; running 1 parallel copy of tests&lt;br /&gt;Dhrystone 2 using register variables &amp;nbsp; &amp;nbsp; &amp;nbsp; 38182137.1 lps &amp;nbsp; (10.0 s, 7 samples)&lt;br /&gt;Double-Precision Whetstone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4571.3 MWIPS (10.2 s, 7 samples)&lt;br /&gt;Execl Throughput &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4164.7 lps &amp;nbsp; (30.0 s, 2 samples)&lt;br /&gt;File Copy 1024 bufsize 2000 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; 1131344.2 KBps &amp;nbsp;(30.0 s, 2 samples)&lt;br /&gt;File Copy 256 bufsize 500 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;298746.9 KBps &amp;nbsp;(30.0 s, 2 samples)&lt;br /&gt;File Copy 4096 bufsize 8000 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; 3547221.1 KBps &amp;nbsp;(30.0 s, 2 samples)&lt;br /&gt;Pipe Throughput &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1996255.2 lps &amp;nbsp; (10.0 s, 7 samples)&lt;br /&gt;Pipe-based Context Switching &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;52031.5 lps &amp;nbsp; (10.0 s, 7 samples)&lt;br /&gt;Process Creation &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11620.3 lps &amp;nbsp; (30.0 s, 2 samples)&lt;br /&gt;Shell Scripts (1 concurrent) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9885.9 lpm &amp;nbsp; (60.0 s, 2 samples)&lt;br /&gt;Shell Scripts (8 concurrent) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4096.4 lpm &amp;nbsp; (60.0 s, 2 samples)&lt;br /&gt;System Call Overhead &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2905706.4 lps &amp;nbsp; (10.0 s, 7 samples)&lt;br /&gt;System Benchmarks Index Values &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BASELINE &amp;nbsp; &amp;nbsp; &amp;nbsp; RESULT &amp;nbsp; &amp;nbsp;INDEX&lt;br /&gt;Dhrystone 2 using register variables &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 116700.0 &amp;nbsp; 38182137.1 &amp;nbsp; 3271.8&lt;br /&gt;Double-Precision Whetstone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 55.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 4571.3 &amp;nbsp; &amp;nbsp;831.1&lt;br /&gt;Execl Throughput &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 43.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 4164.7 &amp;nbsp; &amp;nbsp;968.5&lt;br /&gt;File Copy 1024 bufsize 2000 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3960.0 &amp;nbsp; &amp;nbsp;1131344.2 &amp;nbsp; 2856.9&lt;br /&gt;File Copy 256 bufsize 500 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1655.0 &amp;nbsp; &amp;nbsp; 298746.9 &amp;nbsp; 1805.1&lt;br /&gt;File Copy 4096 bufsize 8000 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5800.0 &amp;nbsp; &amp;nbsp;3547221.1 &amp;nbsp; 6115.9&lt;br /&gt;Pipe Throughput &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12440.0 &amp;nbsp; &amp;nbsp;1996255.2 &amp;nbsp; 1604.7&lt;br /&gt;Pipe-based Context Switching &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4000.0 &amp;nbsp; &amp;nbsp; &amp;nbsp;52031.5 &amp;nbsp; &amp;nbsp;130.1&lt;br /&gt;Process Creation &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;126.0 &amp;nbsp; &amp;nbsp; &amp;nbsp;11620.3 &amp;nbsp; &amp;nbsp;922.2&lt;br /&gt;Shell Scripts (1 concurrent) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 42.4 &amp;nbsp; &amp;nbsp; &amp;nbsp; 9885.9 &amp;nbsp; 2331.6&lt;br /&gt;Shell Scripts (8 concurrent) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 4096.4 &amp;nbsp; 6827.4&lt;br /&gt;System Call Overhead &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15000.0 &amp;nbsp; &amp;nbsp;2905706.4 &amp;nbsp; 1937.1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;========&lt;br /&gt;System Benchmarks Index Score &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;background-color: #fce5cd; color: red;&quot;&gt;1676.5&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;Benchmark Run: Thu Jan 22 2015 10:21:26 - 10:49:35&lt;br /&gt;8 CPUs in system; running 8 parallel copies of tests&lt;br /&gt;Dhrystone 2 using register variables &amp;nbsp; &amp;nbsp; &amp;nbsp;176334699.4 lps &amp;nbsp; (10.0 s, 7 samples)&lt;br /&gt;Double-Precision Whetstone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;32053.7 MWIPS (10.0 s, 7 samples)&lt;br /&gt;Execl Throughput &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;23787.5 lps &amp;nbsp; (30.0 s, 2 samples)&lt;br /&gt;File Copy 1024 bufsize 2000 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; 1011008.1 KBps &amp;nbsp;(30.0 s, 2 samples)&lt;br /&gt;File Copy 256 bufsize 500 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;262963.6 KBps &amp;nbsp;(30.0 s, 2 samples)&lt;br /&gt;File Copy 4096 bufsize 8000 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; 3250921.8 KBps &amp;nbsp;(30.0 s, 2 samples)&lt;br /&gt;Pipe Throughput &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9439625.3 lps &amp;nbsp; (10.0 s, 7 samples)&lt;br /&gt;Pipe-based Context Switching &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1686610.1 lps &amp;nbsp; (10.0 s, 7 samples)&lt;br /&gt;Process Creation &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;66159.9 lps &amp;nbsp; (30.0 s, 2 samples)&lt;br /&gt;Shell Scripts (1 concurrent) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;38267.9 lpm &amp;nbsp; (60.0 s, 2 samples)&lt;br /&gt;Shell Scripts (8 concurrent) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5348.4 lpm &amp;nbsp; (60.0 s, 2 samples)&lt;br /&gt;System Call Overhead &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9603210.3 lps &amp;nbsp; (10.0 s, 7 samples)&lt;br /&gt;System Benchmarks Index Values &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BASELINE &amp;nbsp; &amp;nbsp; &amp;nbsp; RESULT &amp;nbsp; &amp;nbsp;INDEX&lt;br /&gt;Dhrystone 2 using register variables &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 116700.0 &amp;nbsp;176334699.4 &amp;nbsp;15110.1&lt;br /&gt;Double-Precision Whetstone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 55.0 &amp;nbsp; &amp;nbsp; &amp;nbsp;32053.7 &amp;nbsp; 5827.9&lt;br /&gt;Execl Throughput &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 43.0 &amp;nbsp; &amp;nbsp; &amp;nbsp;23787.5 &amp;nbsp; 5532.0&lt;br /&gt;File Copy 1024 bufsize 2000 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3960.0 &amp;nbsp; &amp;nbsp;1011008.1 &amp;nbsp; 2553.1&lt;br /&gt;File Copy 256 bufsize 500 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1655.0 &amp;nbsp; &amp;nbsp; 262963.6 &amp;nbsp; 1588.9&lt;br /&gt;File Copy 4096 bufsize 8000 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5800.0 &amp;nbsp; &amp;nbsp;3250921.8 &amp;nbsp; 5605.0&lt;br /&gt;Pipe Throughput &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12440.0 &amp;nbsp; &amp;nbsp;9439625.3 &amp;nbsp; 7588.1&lt;br /&gt;Pipe-based Context Switching &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4000.0 &amp;nbsp; &amp;nbsp;1686610.1 &amp;nbsp; 4216.5&lt;br /&gt;Process Creation &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;126.0 &amp;nbsp; &amp;nbsp; &amp;nbsp;66159.9 &amp;nbsp; 5250.8&lt;br /&gt;Shell Scripts (1 concurrent) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 42.4 &amp;nbsp; &amp;nbsp; &amp;nbsp;38267.9 &amp;nbsp; 9025.4&lt;br /&gt;Shell Scripts (8 concurrent) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 5348.4 &amp;nbsp; 8914.0&lt;br /&gt;System Call Overhead &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15000.0 &amp;nbsp; &amp;nbsp;9603210.3 &amp;nbsp; 6402.1&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;========&lt;br /&gt;System Benchmarks Index Score &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;background-color: #fce5cd; color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;5603.6&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/blockquote&gt;
- c3.2xlarge&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# ./Run&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;Benchmark Run: Thu Jan 22 2015 06:29:18 - 06:57:23&lt;br /&gt;8 CPUs in system; running 1 parallel copy of tests&lt;br /&gt;Dhrystone 2 using register variables &amp;nbsp; &amp;nbsp; &amp;nbsp; 35890021.0 lps &amp;nbsp; (10.0 s, 7 samples)&lt;br /&gt;Double-Precision Whetstone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4399.9 MWIPS (9.9 s, 7 samples)&lt;br /&gt;Execl Throughput &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4173.9 lps &amp;nbsp; (30.0 s, 2 samples)&lt;br /&gt;File Copy 1024 bufsize 2000 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; 1030714.9 KBps &amp;nbsp;(30.0 s, 2 samples)&lt;br /&gt;File Copy 256 bufsize 500 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;277165.0 KBps &amp;nbsp;(30.0 s, 2 samples)&lt;br /&gt;File Copy 4096 bufsize 8000 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; 3078109.2 KBps &amp;nbsp;(30.0 s, 2 samples)&lt;br /&gt;Pipe Throughput &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1755376.0 lps &amp;nbsp; (10.0 s, 7 samples)&lt;br /&gt;Pipe-based Context Switching &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;45995.4 lps &amp;nbsp; (10.0 s, 7 samples)&lt;br /&gt;Process Creation &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11708.5 lps &amp;nbsp; (30.0 s, 2 samples)&lt;br /&gt;Shell Scripts (1 concurrent) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8682.1 lpm &amp;nbsp; (60.0 s, 2 samples)&lt;br /&gt;Shell Scripts (8 concurrent) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3581.8 lpm &amp;nbsp; (60.0 s, 2 samples)&lt;br /&gt;System Call Overhead &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2423669.1 lps &amp;nbsp; (10.0 s, 7 samples)&lt;br /&gt;System Benchmarks Index Values &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BASELINE &amp;nbsp; &amp;nbsp; &amp;nbsp; RESULT &amp;nbsp; &amp;nbsp;INDEX&lt;br /&gt;Dhrystone 2 using register variables &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 116700.0 &amp;nbsp; 35890021.0 &amp;nbsp; 3075.4&lt;br /&gt;Double-Precision Whetstone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 55.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 4399.9 &amp;nbsp; &amp;nbsp;800.0&lt;br /&gt;Execl Throughput &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 43.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 4173.9 &amp;nbsp; &amp;nbsp;970.7&lt;br /&gt;File Copy 1024 bufsize 2000 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3960.0 &amp;nbsp; &amp;nbsp;1030714.9 &amp;nbsp; 2602.8&lt;br /&gt;File Copy 256 bufsize 500 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1655.0 &amp;nbsp; &amp;nbsp; 277165.0 &amp;nbsp; 1674.7&lt;br /&gt;File Copy 4096 bufsize 8000 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5800.0 &amp;nbsp; &amp;nbsp;3078109.2 &amp;nbsp; 5307.1&lt;br /&gt;Pipe Throughput &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12440.0 &amp;nbsp; &amp;nbsp;1755376.0 &amp;nbsp; 1411.1&lt;br /&gt;Pipe-based Context Switching &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4000.0 &amp;nbsp; &amp;nbsp; &amp;nbsp;45995.4 &amp;nbsp; &amp;nbsp;115.0&lt;br /&gt;Process Creation &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;126.0 &amp;nbsp; &amp;nbsp; &amp;nbsp;11708.5 &amp;nbsp; &amp;nbsp;929.2&lt;br /&gt;Shell Scripts (1 concurrent) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 42.4 &amp;nbsp; &amp;nbsp; &amp;nbsp; 8682.1 &amp;nbsp; 2047.7&lt;br /&gt;Shell Scripts (8 concurrent) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 3581.8 &amp;nbsp; 5969.7&lt;br /&gt;System Call Overhead &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15000.0 &amp;nbsp; &amp;nbsp;2423669.1 &amp;nbsp; 1615.8&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;========&lt;br /&gt;System Benchmarks Index Score &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;background-color: #fce5cd; color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;1530.0&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;------------------------------------------------------------------------&lt;br /&gt;Benchmark Run: Thu Jan 22 2015 06:57:23 - 07:25:33&lt;br /&gt;8 CPUs in system; running 8 parallel copies of tests&lt;br /&gt;Dhrystone 2 using register variables &amp;nbsp; &amp;nbsp; &amp;nbsp;160166373.8 lps &amp;nbsp; (10.0 s, 7 samples)&lt;br /&gt;Double-Precision Whetstone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;29244.4 MWIPS (9.9 s, 7 samples)&lt;br /&gt;Execl Throughput &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;23354.0 lps &amp;nbsp; (30.0 s, 2 samples)&lt;br /&gt;File Copy 1024 bufsize 2000 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;764912.1 KBps &amp;nbsp;(30.0 s, 2 samples)&lt;br /&gt;File Copy 256 bufsize 500 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;198669.2 KBps &amp;nbsp;(30.0 s, 2 samples)&lt;br /&gt;File Copy 4096 bufsize 8000 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; 2652773.6 KBps &amp;nbsp;(30.0 s, 2 samples)&lt;br /&gt;Pipe Throughput &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8402747.0 lps &amp;nbsp; (10.0 s, 7 samples)&lt;br /&gt;Pipe-based Context Switching &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1447497.7 lps &amp;nbsp; (10.0 s, 7 samples)&lt;br /&gt;Process Creation &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;62231.2 lps &amp;nbsp; (30.0 s, 2 samples)&lt;br /&gt;Shell Scripts (1 concurrent) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;33078.3 lpm &amp;nbsp; (60.0 s, 2 samples)&lt;br /&gt;Shell Scripts (8 concurrent) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4566.4 lpm &amp;nbsp; (60.0 s, 2 samples)&lt;br /&gt;System Call Overhead &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9414061.7 lps &amp;nbsp; (10.0 s, 7 samples)&lt;br /&gt;System Benchmarks Index Values &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BASELINE &amp;nbsp; &amp;nbsp; &amp;nbsp; RESULT &amp;nbsp; &amp;nbsp;INDEX&lt;br /&gt;Dhrystone 2 using register variables &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 116700.0 &amp;nbsp;160166373.8 &amp;nbsp;13724.6&lt;br /&gt;Double-Precision Whetstone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 55.0 &amp;nbsp; &amp;nbsp; &amp;nbsp;29244.4 &amp;nbsp; 5317.2&lt;br /&gt;Execl Throughput &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 43.0 &amp;nbsp; &amp;nbsp; &amp;nbsp;23354.0 &amp;nbsp; 5431.2&lt;br /&gt;File Copy 1024 bufsize 2000 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3960.0 &amp;nbsp; &amp;nbsp; 764912.1 &amp;nbsp; 1931.6&lt;br /&gt;File Copy 256 bufsize 500 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1655.0 &amp;nbsp; &amp;nbsp; 198669.2 &amp;nbsp; 1200.4&lt;br /&gt;File Copy 4096 bufsize 8000 maxblocks &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5800.0 &amp;nbsp; &amp;nbsp;2652773.6 &amp;nbsp; 4573.7&lt;br /&gt;Pipe Throughput &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12440.0 &amp;nbsp; &amp;nbsp;8402747.0 &amp;nbsp; 6754.6&lt;br /&gt;Pipe-based Context Switching &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4000.0 &amp;nbsp; &amp;nbsp;1447497.7 &amp;nbsp; 3618.7&lt;br /&gt;Process Creation &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;126.0 &amp;nbsp; &amp;nbsp; &amp;nbsp;62231.2 &amp;nbsp; 4939.0&lt;br /&gt;Shell Scripts (1 concurrent) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 42.4 &amp;nbsp; &amp;nbsp; &amp;nbsp;33078.3 &amp;nbsp; 7801.5&lt;br /&gt;Shell Scripts (8 concurrent) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; 4566.4 &amp;nbsp; 7610.6&lt;br /&gt;System Call Overhead &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15000.0 &amp;nbsp; &amp;nbsp;9414061.7 &amp;nbsp; 6276.0&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;========&lt;br /&gt;System Benchmarks Index Score &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;background-color: #fce5cd; color: red;&quot;&gt;4894.7&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;br /&gt;
-- UnixBench総評&lt;br /&gt;
&lt;br /&gt;
・こちらも当然c4.2xlargeが勝利&lt;br /&gt;
単体Core性能：c4.2xlarge 1676.5&amp;nbsp;vs c3.2xlarge&amp;nbsp;1530.0&lt;br /&gt;
Core合算性能：c4.2xlarge 5603.6&amp;nbsp;vs c3.2xlarge&amp;nbsp;4894.7&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
おわり</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/3202490564523665158/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2015/01/c32xlarge-vs-c42xlarge.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/3202490564523665158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/3202490564523665158'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2015/01/c32xlarge-vs-c42xlarge.html' title='c3.2xlarge vs c4.2xlarge'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-7831632576909787283</id><published>2015-01-22T13:51:00.003+09:00</published><updated>2015-01-22T13:54:46.380+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="3min Cooking"/><category scheme="http://www.blogger.com/atom/ns#" term="battle"/><category scheme="http://www.blogger.com/atom/ns#" term="Redis"/><title type='text'>Redis hash vs json string</title><content type='html'>redisのデータをhashで突っ込むのとjsonをstringで突っ込むの。&lt;br /&gt;
どっちがいいのかを試すページを見つけました。&lt;br /&gt;
&lt;br /&gt;
そこでパフォーマンスの比較はされていたのですが、メモリ使用量の差を取りたいなと。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;※参考サイト様&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;http://symfoware.blog68.fc2.com/blog-entry-1446.html&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
ということで、ざっと10000件の登録と取得テストしてみた結果&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u style=&quot;background-color: #b4a7d6;&quot;&gt;-- Hash軍&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
# Hash形式の登録&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
0:00:01.591490&lt;br /&gt;
0:00:01.616605&lt;br /&gt;
0:00:01.472524&lt;br /&gt;
0:00:01.546202&lt;br /&gt;
0:00:01.659209&lt;/blockquote&gt;
&lt;br /&gt;
# Hash形のデータ取得&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
0:00:04.343340&lt;br /&gt;
0:00:04.458308&lt;br /&gt;
0:00:04.224831&lt;br /&gt;
0:00:04.489008&lt;br /&gt;
0:00:05.694959&lt;/blockquote&gt;
&lt;br /&gt;
# Hash形式のMemory&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
used_memory:3985912&lt;br /&gt;
used_memory_human:&lt;span style=&quot;background-color: #ea9999;&quot;&gt;3.80M&lt;/span&gt;&lt;br /&gt;
used_memory_rss:16728064&lt;br /&gt;
used_memory_peak:13656576&lt;br /&gt;
used_memory_peak_human:13.02M&lt;br /&gt;
used_memory_lua:35840&lt;br /&gt;
mem_fragmentation_ratio:4.20&lt;br /&gt;
mem_allocator:jemalloc-3.6.0&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u style=&quot;background-color: #f6b26b;&quot;&gt;-- json軍&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
# json形式の登録&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
0:00:00.446721&lt;br /&gt;
0:00:00.451547&lt;br /&gt;
0:00:00.427018&lt;br /&gt;
0:00:00.470627&lt;br /&gt;
0:00:00.395783&lt;/blockquote&gt;
&lt;br /&gt;
# json形式のデータ取得&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
0:00:05.247353&lt;br /&gt;
0:00:04.890471&lt;br /&gt;
0:00:05.397085&lt;br /&gt;
0:00:04.802723&lt;br /&gt;
0:00:05.896350&lt;/blockquote&gt;
&lt;br /&gt;
# Memory&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
used_memory:4285168&lt;br /&gt;
used_memory_human:&lt;span style=&quot;background-color: #ea9999;&quot;&gt;4.09M&lt;/span&gt;&lt;br /&gt;
used_memory_rss:16588800&lt;br /&gt;
used_memory_peak:13656576&lt;br /&gt;
used_memory_peak_human:13.02M&lt;br /&gt;
used_memory_lua:35840&lt;br /&gt;
mem_fragmentation_ratio:3.87&lt;br /&gt;
mem_allocator:jemalloc-3.6.0&lt;/blockquote&gt;
----&lt;br /&gt;
&lt;br /&gt;
結果：&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
登録&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;hash&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;×&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;-&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;○&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;json&lt;br /&gt;
参照&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;hash&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;○&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;-&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;△&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;json&lt;br /&gt;
Mem&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;hash&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;○&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;-&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;△&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;json&lt;/blockquote&gt;
登録はjsonが圧勝したが、参照に関してはほぼ僅差かつ、若干Hash優勢と巻き返し。&lt;br /&gt;
メモリ使用量はHashの方が少ない。&lt;br /&gt;
と項目毎に有利な点が出るという、なかなかの好勝負。&lt;br /&gt;
&lt;br /&gt;
利用用途でどちらを使うか決めていったほうがいいですね。&lt;br /&gt;
環境のスペック等で若干傾向が変わっていくと思いますので、自分の環境でお試しあれ。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
おわり</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/7831632576909787283/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2015/01/redis-hash-vs-json-string.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/7831632576909787283'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/7831632576909787283'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2015/01/redis-hash-vs-json-string.html' title='Redis hash vs json string'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-1378699744662000583</id><published>2015-01-16T11:21:00.005+09:00</published><updated>2015-01-16T11:44:25.414+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="openssl"/><title type='text'>Opensslの脆弱性とその対応</title><content type='html'>アップデート用のパッケージが準備されているので、お気軽にアップデート&lt;br /&gt;
&lt;br /&gt;
** 脆弱性概要&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
English：&lt;br /&gt;https://www.openssl.org/news/secadv_20150108.txt&lt;br /&gt;日本語：&lt;br /&gt;https://jvn.jp/vu/JVNVU98974537/index.html&lt;br /&gt;更に細かく補足頂いているサイト様：&lt;br /&gt;http://xn--u9j0md1592aqmt715c.net/cve-2015-0206/&lt;br /&gt;まとめると：&lt;br /&gt;1.0.1を利用中の方は、1.0.1kにアップデートしなさい。という事。&lt;/blockquote&gt;
&lt;br /&gt;
** アップデートする&lt;br /&gt;
- 既存のopensslのバージョン確認&lt;br /&gt;
# yum list installed openssl&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Loaded plugins: priorities, update-motd, upgrade-helper&lt;br /&gt;
Installed Packages&lt;br /&gt;
openssl.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1:1.0.1i-1.78.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @amzn-updates&lt;/blockquote&gt;
&lt;br /&gt;
# openssl version&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
OpenSSL 1.0.1i-fips 6 Aug 2014&lt;/blockquote&gt;
&lt;br /&gt;
■どっちかのコマンドで確認&lt;br /&gt;
&lt;br /&gt;
- アップデート実施&lt;br /&gt;
# yum update openssl&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
====================================================================================================&lt;br /&gt;
&amp;nbsp;Package &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Arch &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Version &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Repository &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Size&lt;br /&gt;
====================================================================================================&lt;br /&gt;
Updating:&lt;br /&gt;
&amp;nbsp;openssl &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1:1.0.1k-1.82.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-updates &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.6 M&lt;br /&gt;
Updating for dependencies:&lt;br /&gt;
&amp;nbsp;openssl-devel &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1:1.0.1k-1.82.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-updates &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.5 M&lt;br /&gt;
Transaction Summary&lt;br /&gt;
====================================================================================================&lt;br /&gt;
Upgrade &amp;nbsp;1 Package (+1 Dependent package)&lt;/blockquote&gt;
■依存パッケージのopenssl-develも諸共1.0.1kが用意されている&lt;br /&gt;
■大丈夫そうなので、yを入力してアップデート実施&lt;br /&gt;
&lt;br /&gt;
- 確認&lt;br /&gt;
# openssl version&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
OpenSSL 1.0.1k-fips 8 Jan 2015&lt;/blockquote&gt;
&lt;br /&gt;
# yum list installed openssl openssl-devel&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Loaded plugins: priorities, update-motd, upgrade-helper&lt;br /&gt;
Installed Packages&lt;br /&gt;
openssl.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1:1.0.1k-1.82.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@amzn-updates&lt;br /&gt;
openssl-devel.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1:1.0.1k-1.82.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@amzn-updates&lt;/blockquote&gt;
■だいじょうぶそうですね&lt;br /&gt;
&lt;br /&gt;
お　わ　り&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/1378699744662000583/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2015/01/openssl.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/1378699744662000583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/1378699744662000583'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2015/01/openssl.html' title='Opensslの脆弱性とその対応'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-3871540193680123868</id><published>2014-11-28T20:26:00.004+09:00</published><updated>2014-11-28T20:30:32.454+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="Docker"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><title type='text'>Docker on AWS EC2</title><content type='html'>AWS EC2 Contneir が発表されたので、Dockerを先に触っておこうというコンセプト&lt;br /&gt;
&lt;br /&gt;
- dockerのインストール&lt;br /&gt;
# yum install docker.x86_64 docker-devel.x86_64 docker-pkg-devel.x86_64&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Loaded plugins: priorities, update-motd, upgrade-helper&lt;br /&gt;
amzn-main/latest &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 2.1 kB &amp;nbsp; &amp;nbsp; 00:00&lt;br /&gt;
amzn-updates/latest &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 2.3 kB &amp;nbsp; &amp;nbsp; 00:00&lt;br /&gt;
Resolving Dependencies&lt;br /&gt;
--&amp;gt; Running transaction check&lt;br /&gt;
---&amp;gt; Package docker.x86_64 0:1.2.0-2.21.amzn1 will be installed&lt;br /&gt;
--&amp;gt; Processing Dependency: libcgroup for package: docker-1.2.0-2.21.amzn1.x86_64&lt;br /&gt;
---&amp;gt; Package docker-devel.x86_64 0:1.2.0-2.21.amzn1 will be installed&lt;br /&gt;
--&amp;gt; Processing Dependency: golang for package: docker-devel-1.2.0-2.21.amzn1.x86_64&lt;br /&gt;
---&amp;gt; Package docker-pkg-devel.x86_64 0:1.2.0-2.21.amzn1 will be installed&lt;br /&gt;
--&amp;gt; Running transaction check&lt;br /&gt;
---&amp;gt; Package golang.x86_64 0:1.3.3-1.7.amzn1 will be installed&lt;br /&gt;
--&amp;gt; Processing Dependency: golang-bin for package: golang-1.3.3-1.7.amzn1.x86_64&lt;br /&gt;
--&amp;gt; Processing Dependency: bzr for package: golang-1.3.3-1.7.amzn1.x86_64&lt;br /&gt;
--&amp;gt; Processing Dependency: mercurial for package: golang-1.3.3-1.7.amzn1.x86_64&lt;br /&gt;
--&amp;gt; Processing Dependency: golang-src for package: golang-1.3.3-1.7.amzn1.x86_64&lt;br /&gt;
---&amp;gt; Package libcgroup.x86_64 0:0.40.rc1-5.11.amzn1 will be installed&lt;br /&gt;
--&amp;gt; Running transaction check&lt;br /&gt;
---&amp;gt; Package bzr.x86_64 0:2.1.2-2.9.amzn1 will be installed&lt;br /&gt;
---&amp;gt; Package golang-pkg-bin-linux-amd64.x86_64 0:1.3.3-1.7.amzn1 will be installed&lt;br /&gt;
--&amp;gt; Processing Dependency: golang-pkg-linux-amd64 = 1.3.3-1.7.amzn1 for package: golang-pkg-bin-linux-amd64-1.3.3-1.7.amzn1.x86_64&lt;br /&gt;
---&amp;gt; Package golang-src.noarch 0:1.3.3-1.7.amzn1 will be installed&lt;br /&gt;
---&amp;gt; Package mercurial.x86_64 0:2.6.3-1.22.amzn1 will be installed&lt;br /&gt;
--&amp;gt; Running transaction check&lt;br /&gt;
---&amp;gt; Package golang-pkg-linux-amd64.noarch 0:1.3.3-1.7.amzn1 will be installed&lt;br /&gt;
--&amp;gt; Finished Dependency Resolution&lt;br /&gt;
Dependencies Resolved&lt;br /&gt;
====================================================================================================&lt;br /&gt;
&amp;nbsp;Package &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Arch &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Version &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Repository &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size&lt;br /&gt;
====================================================================================================&lt;br /&gt;
Installing:&lt;br /&gt;
&amp;nbsp;docker &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.2.0-2.21.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;amzn-updates &amp;nbsp; &amp;nbsp; &amp;nbsp; 4.9 M&lt;br /&gt;
&amp;nbsp;docker-devel &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.2.0-2.21.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;amzn-updates &amp;nbsp; &amp;nbsp; &amp;nbsp; 259 k&lt;br /&gt;
&amp;nbsp;docker-pkg-devel &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.2.0-2.21.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;amzn-updates &amp;nbsp; &amp;nbsp; &amp;nbsp; 111 k&lt;br /&gt;
Installing for dependencies:&lt;br /&gt;
&amp;nbsp;bzr &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.1.2-2.9.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-main &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.9 M&lt;br /&gt;
&amp;nbsp;golang &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.3.3-1.7.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-updates &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.0 M&lt;br /&gt;
&amp;nbsp;golang-pkg-bin-linux-amd64 &amp;nbsp; &amp;nbsp; &amp;nbsp; x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.3.3-1.7.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-updates &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15 M&lt;br /&gt;
&amp;nbsp;golang-pkg-linux-amd64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; noarch &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.3.3-1.7.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-updates &amp;nbsp; &amp;nbsp; &amp;nbsp; 8.7 M&lt;br /&gt;
&amp;nbsp;golang-src &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; noarch &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.3.3-1.7.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-updates &amp;nbsp; &amp;nbsp; &amp;nbsp; 6.4 M&lt;br /&gt;
&amp;nbsp;libcgroup &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.40.rc1-5.11.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-main &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;146 k&lt;br /&gt;
&amp;nbsp;mercurial &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.6.3-1.22.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;amzn-main &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.7 M&lt;br /&gt;
Transaction Summary&lt;br /&gt;
====================================================================================================&lt;br /&gt;
Install &amp;nbsp;3 Packages (+7 Dependent packages)&lt;br /&gt;
Total download size: 48 M&lt;br /&gt;
Installed size: 176 M&lt;br /&gt;
Is this ok [y/d/N]: y&lt;br /&gt;
Downloading packages:&lt;br /&gt;
(1/10): bzr-2.1.2-2.9.amzn1.x86_64.rpm &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 5.9 MB &amp;nbsp; &amp;nbsp; 00:00&lt;br /&gt;
(2/10): docker-1.2.0-2.21.amzn1.x86_64.rpm &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 4.9 MB &amp;nbsp; &amp;nbsp; 00:00&lt;br /&gt;
(3/10): docker-devel-1.2.0-2.21.amzn1.x86_64.rpm &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 259 kB &amp;nbsp; &amp;nbsp; 00:00&lt;br /&gt;
(4/10): docker-pkg-devel-1.2.0-2.21.amzn1.x86_64.rpm &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 111 kB &amp;nbsp; &amp;nbsp; 00:00&lt;br /&gt;
(5/10): golang-1.3.3-1.7.amzn1.x86_64.rpm &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 3.0 MB &amp;nbsp; &amp;nbsp; 00:00&lt;br /&gt;
(6/10): golang-pkg-bin-linux-amd64-1.3.3-1.7.amzn1.x86_64.rpm &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| &amp;nbsp;15 MB &amp;nbsp; &amp;nbsp; 00:00&lt;br /&gt;
(7/10): golang-pkg-linux-amd64-1.3.3-1.7.amzn1.noarch.rpm &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 8.7 MB &amp;nbsp; &amp;nbsp; 00:00&lt;br /&gt;
(8/10): golang-src-1.3.3-1.7.amzn1.noarch.rpm &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 6.4 MB &amp;nbsp; &amp;nbsp; 00:00&lt;br /&gt;
(9/10): libcgroup-0.40.rc1-5.11.amzn1.x86_64.rpm &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 146 kB &amp;nbsp; &amp;nbsp; 00:00&lt;br /&gt;
(10/10): mercurial-2.6.3-1.22.amzn1.x86_64.rpm &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | 3.7 MB &amp;nbsp; &amp;nbsp; 00:00&lt;br /&gt;
----------------------------------------------------------------------------------------------------&lt;br /&gt;
Total &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;42 MB/s | &amp;nbsp;48 MB &amp;nbsp;00:00:01&lt;br /&gt;
Running transaction check&lt;br /&gt;
Running transaction test&lt;br /&gt;
Transaction test succeeded&lt;br /&gt;
Running transaction&lt;br /&gt;
&amp;nbsp; Installing : bzr-2.1.2-2.9.amzn1.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1/10&lt;br /&gt;
&amp;nbsp; Installing : libcgroup-0.40.rc1-5.11.amzn1.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2/10&lt;br /&gt;
&amp;nbsp; Installing : mercurial-2.6.3-1.22.amzn1.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3/10&lt;br /&gt;
&amp;nbsp; Installing : golang-src-1.3.3-1.7.amzn1.noarch &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4/10&lt;br /&gt;
&amp;nbsp; Installing : golang-pkg-linux-amd64-1.3.3-1.7.amzn1.noarch &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5/10&lt;br /&gt;
&amp;nbsp; Installing : golang-1.3.3-1.7.amzn1.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 6/10&lt;br /&gt;
&amp;nbsp; Installing : golang-pkg-bin-linux-amd64-1.3.3-1.7.amzn1.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7/10&lt;br /&gt;
&amp;nbsp; Installing : docker-pkg-devel-1.2.0-2.21.amzn1.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8/10&lt;br /&gt;
&amp;nbsp; Installing : docker-devel-1.2.0-2.21.amzn1.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9/10&lt;br /&gt;
&amp;nbsp; Installing : docker-1.2.0-2.21.amzn1.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10/10&lt;br /&gt;
&amp;nbsp; Verifying &amp;nbsp;: golang-1.3.3-1.7.amzn1.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1/10&lt;br /&gt;
&amp;nbsp; Verifying &amp;nbsp;: golang-src-1.3.3-1.7.amzn1.noarch &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2/10&lt;br /&gt;
&amp;nbsp; Verifying &amp;nbsp;: docker-1.2.0-2.21.amzn1.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3/10&lt;br /&gt;
&amp;nbsp; Verifying &amp;nbsp;: mercurial-2.6.3-1.22.amzn1.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4/10&lt;br /&gt;
&amp;nbsp; Verifying &amp;nbsp;: golang-pkg-bin-linux-amd64-1.3.3-1.7.amzn1.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5/10&lt;br /&gt;
&amp;nbsp; Verifying &amp;nbsp;: docker-pkg-devel-1.2.0-2.21.amzn1.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6/10&lt;br /&gt;
&amp;nbsp; Verifying &amp;nbsp;: docker-devel-1.2.0-2.21.amzn1.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7/10&lt;br /&gt;
&amp;nbsp; Verifying &amp;nbsp;: libcgroup-0.40.rc1-5.11.amzn1.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8/10&lt;br /&gt;
&amp;nbsp; Verifying &amp;nbsp;: golang-pkg-linux-amd64-1.3.3-1.7.amzn1.noarch &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9/10&lt;br /&gt;
&amp;nbsp; Verifying &amp;nbsp;: bzr-2.1.2-2.9.amzn1.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10/10&lt;br /&gt;
Installed:&lt;br /&gt;
&amp;nbsp; docker.x86_64 0:1.2.0-2.21.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; docker-devel.x86_64 0:1.2.0-2.21.amzn1&lt;br /&gt;
&amp;nbsp; docker-pkg-devel.x86_64 0:1.2.0-2.21.amzn1&lt;br /&gt;
Dependency Installed:&lt;br /&gt;
&amp;nbsp; bzr.x86_64 0:2.1.2-2.9.amzn1&lt;br /&gt;
&amp;nbsp; golang.x86_64 0:1.3.3-1.7.amzn1&lt;br /&gt;
&amp;nbsp; golang-pkg-bin-linux-amd64.x86_64 0:1.3.3-1.7.amzn1&lt;br /&gt;
&amp;nbsp; golang-pkg-linux-amd64.noarch 0:1.3.3-1.7.amzn1&lt;br /&gt;
&amp;nbsp; golang-src.noarch 0:1.3.3-1.7.amzn1&lt;br /&gt;
&amp;nbsp; libcgroup.x86_64 0:0.40.rc1-5.11.amzn1&lt;br /&gt;
&amp;nbsp; mercurial.x86_64 0:2.6.3-1.22.amzn1&lt;br /&gt;
Complete!&lt;/blockquote&gt;
■すんなり&lt;br /&gt;
&lt;br /&gt;
- Dockerのインストール確認&lt;br /&gt;
# docker version&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Client version: 1.2.0&lt;br /&gt;
Client API version: 1.14&lt;br /&gt;
Go version (client): go1.3.3&lt;br /&gt;
Git commit (client): fa7b24f/1.2.0&lt;br /&gt;
OS/Arch (client): linux/amd64&lt;br /&gt;
2014/11/17 10:10:53 Get http:///var/run/docker.sock/v1.14/version: dial unix /var/run/docker.sock: no such file or directory&lt;/blockquote&gt;
■インストールされたバージョンをながめる&lt;br /&gt;
&lt;br /&gt;
# docker info&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Containers: 0&lt;br /&gt;
Images: 0&lt;br /&gt;
Storage Driver: devicemapper&lt;br /&gt;
&amp;nbsp;Pool Name: docker-202:1-269202-pool&lt;br /&gt;
&amp;nbsp;Pool Blocksize: 64 Kb&lt;br /&gt;
&amp;nbsp;Data file: /var/lib/docker/devicemapper/devicemapper/data&lt;br /&gt;
&amp;nbsp;Metadata file: /var/lib/docker/devicemapper/devicemapper/metadata&lt;br /&gt;
&amp;nbsp;Data Space Used: 293.0 Mb&lt;br /&gt;
&amp;nbsp;Data Space Total: 102400.0 Mb&lt;br /&gt;
&amp;nbsp;Metadata Space Used: 0.7 Mb&lt;br /&gt;
&amp;nbsp;Metadata Space Total: 2048.0 Mb&lt;br /&gt;
Execution Driver: native-0.2&lt;br /&gt;
Kernel Version: 3.14.20-20.44.amzn1.x86_64&lt;br /&gt;
Operating System: Amazon Linux AMI 2014.09&lt;/blockquote&gt;
■Dockerの情報が表示される。コンテナも作ってないしイメージもないので、0ですね。&lt;br /&gt;
&lt;br /&gt;
- Dockerを使いはじめる&lt;br /&gt;
# /etc/init.d/docker start&lt;br /&gt;
■プロセスのスタート&lt;br /&gt;
&lt;br /&gt;
-- 必要であれば以下も&lt;br /&gt;
# chkconfig docker on&lt;br /&gt;
■これでインスタンスリブート時に勝手にDockerが上がる&lt;br /&gt;
&lt;br /&gt;
- AmazonLinuxのイメージをさがす&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
https://registry.hub.docker.com/&lt;br /&gt;
ここで必要なパッケージをさがしませう。&lt;br /&gt;
今回はAWSなので、Docker上もAmazonLinuxを使う方向で。&lt;br /&gt;
→どうやらLatestがまだ2014.03の模様&lt;/blockquote&gt;
&lt;br /&gt;
- OSイメージの取得&lt;br /&gt;
# docker pull vettl/amazon-linux:latest&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Pulling repository vettl/amazon-linux&lt;br /&gt;
0a270722a07c: Download complete&lt;br /&gt;
d25f22b5d1eb: Download complete&lt;/blockquote&gt;
&lt;br /&gt;
- ダウンロードしたイメージの確認&lt;br /&gt;
# docker images&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
REPOSITORY &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; TAG &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IMAGE ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CREATED &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; VIRTUAL SIZE&lt;br /&gt;vettl/amazon-linux &amp;nbsp; &amp;nbsp; &amp;nbsp; latest &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0a270722a07c &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7 months ago &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;607.8 MB&lt;/blockquote&gt;
&lt;br /&gt;
- コンテナ作成コマンドの確認&lt;br /&gt;
# docker run&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...]&lt;br /&gt;
Run a command in a new container&lt;br /&gt;
&amp;nbsp; -a, --attach=[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Attach to STDIN, STDOUT or STDERR.&lt;br /&gt;
&amp;nbsp; -c, --cpu-shares=0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CPU shares (relative weight)&lt;br /&gt;
&amp;nbsp; --cap-add=[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Add Linux capabilities&lt;br /&gt;
&amp;nbsp; --cap-drop=[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Drop Linux capabilities&lt;br /&gt;
&amp;nbsp; --cidfile=&quot;&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Write the container ID to the file&lt;br /&gt;
&amp;nbsp; --cpuset=&quot;&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CPUs in which to allow execution (0-3, 0,1)&lt;br /&gt;
&amp;nbsp; -d, --detach=false &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Detached mode: run container in the background and print new container ID&lt;br /&gt;
&amp;nbsp; --device=[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Add a host device to the container (e.g. --device=/dev/sdc:/dev/xvdc)&lt;br /&gt;
&amp;nbsp; --dns=[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Set custom DNS servers&lt;br /&gt;
&amp;nbsp; --dns-search=[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Set custom DNS search domains&lt;br /&gt;
&amp;nbsp; -e, --env=[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Set environment variables&lt;br /&gt;
&amp;nbsp; --entrypoint=&quot;&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Overwrite the default ENTRYPOINT of the image&lt;br /&gt;
&amp;nbsp; --env-file=[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Read in a line delimited file of environment variables&lt;br /&gt;
&amp;nbsp; --expose=[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Expose a port from the container without publishing it to your host&lt;br /&gt;
&amp;nbsp; -h, --hostname=&quot;&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Container host name&lt;br /&gt;
&amp;nbsp; -i, --interactive=false &amp;nbsp; &amp;nbsp;Keep STDIN open even if not attached&lt;br /&gt;
&amp;nbsp; --link=[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Add link to another container in the form of name:alias&lt;br /&gt;
&amp;nbsp; --lxc-conf=[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(lxc exec-driver only) Add custom lxc options --lxc-conf=&quot;lxc.cgroup.cpuset.cpus = 0,1&quot;&lt;br /&gt;
&amp;nbsp; -m, --memory=&quot;&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Memory limit (format: &amp;lt;number&amp;gt;&amp;lt;optional unit&amp;gt;, where unit = b, k, m or g)&lt;br /&gt;
&amp;nbsp; --name=&quot;&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Assign a name to the container&lt;br /&gt;
&amp;nbsp; --net=&quot;bridge&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Set the Network mode for the container&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;bridge&#39;: creates a new network stack for the container on the docker bridge&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;none&#39;: no networking for this container&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;container:&amp;lt;name|id&amp;gt;&#39;: reuses another container network stack&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&#39;host&#39;: use the host network stack inside the container. &amp;nbsp;Note: the host mode gives the container full access to local system services such as D-bus and is therefore considered insecure.&lt;br /&gt;
&amp;nbsp; -P, --publish-all=false &amp;nbsp; &amp;nbsp;Publish all exposed ports to the host interfaces&lt;br /&gt;
&amp;nbsp; -p, --publish=[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Publish a container&#39;s port to the host&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;format: ip:hostPort:containerPort | ip::containerPort | hostPort:containerPort&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(use &#39;docker port&#39; to see the actual mapping)&lt;br /&gt;
&amp;nbsp; --privileged=false &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Give extended privileges to this container&lt;br /&gt;
&amp;nbsp; --restart=&quot;&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Restart policy to apply when a container exits (no, on-failure, always)&lt;br /&gt;
&amp;nbsp; --rm=false &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Automatically remove the container when it exits (incompatible with -d)&lt;br /&gt;
&amp;nbsp; --sig-proxy=true &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Proxy received signals to the process (even in non-TTY mode). SIGCHLD, SIGSTOP, and SIGKILL are not proxied.&lt;br /&gt;
&amp;nbsp; -t, --tty=false &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Allocate a pseudo-TTY&lt;br /&gt;
&amp;nbsp; -u, --user=&quot;&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Username or UID&lt;br /&gt;
&amp;nbsp; -v, --volume=[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Bind mount a volume (e.g., from the host: -v /host:/container, from Docker: -v /container)&lt;br /&gt;
&amp;nbsp; --volumes-from=[] &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Mount volumes from the specified container(s)&lt;br /&gt;
&amp;nbsp; -w, --workdir=&quot;&quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Working directory inside the container&lt;/blockquote&gt;
&lt;br /&gt;
- いざ鎌倉&lt;br /&gt;
# docker run -it --name AmazonLinux1 vettl/amazon-linux /bin/bash&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
[root@eaf067a49fc7 /]#&lt;br /&gt;
こんなふうにプロンプトが変更され、Dockerの中でRootuserとして生を受ける&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;==== ポインツ ==================================================================&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;exitで元のホストに戻ることができるけど、SSH等のサービスを上げていない場合は、ログインできる術がなくなってしまう&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;HTTPDインスタンスや、DBインスタンス等の場合、SSHのサービス自体を起動させないことで、セキュリティリスクを&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;減らすことが出来るのもDockerの強みなので、SSHを使わずに、中身を編集する方法がほしい&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;================================================================================&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
- 解決方法 nsenter、nsenterをつかう&lt;br /&gt;
-- nsenterのインストール&lt;br /&gt;
# docker run -v /usr/local/bin:/target jpetazzo/nsenter&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
nsenterを簡単に使うために、以下のスクリプトを用意する&lt;/blockquote&gt;
# vi /usr/local/bin/nsenter_sh&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
=======================================================================&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#&lt;br /&gt;
# Contaner login script&lt;br /&gt;
if [ -z $1 ] ; then&lt;br /&gt;
&amp;nbsp; &amp;nbsp; echo &quot;usage: nsenter_sh [ContainerID]&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; exit 1&lt;br /&gt;
else&lt;br /&gt;
&amp;nbsp; &amp;nbsp; PID=$(docker inspect --format {{.State.Pid}} $1)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; nsenter --target $PID --mount --uts --ipc --net --pid&lt;br /&gt;
fi&lt;br /&gt;
exit 0&lt;br /&gt;
=======================================================================&lt;/blockquote&gt;
# chmod 755 nsenter_sh&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
権限変更して簡単起動に&lt;/blockquote&gt;
&lt;br /&gt;
- 動作確認&lt;br /&gt;
# nsenter eaf067a49fc7&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
[root@eaf067a49fc7 /]#&lt;br /&gt;
■プロンプトがかわることを確認&lt;/blockquote&gt;
&lt;br /&gt;
おしまい&lt;br /&gt;
=====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ということで、Dockerのインストールと簡単ログインのお話でした。</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/3871540193680123868/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2014/11/docker-on-aws-ec2.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/3871540193680123868'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/3871540193680123868'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2014/11/docker-on-aws-ec2.html' title='Docker on AWS EC2'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-7498033038418994532</id><published>2014-11-12T10:26:00.001+09:00</published><updated>2014-11-12T21:38:55.984+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="DNS"/><category scheme="http://www.blogger.com/atom/ns#" term="Route53"/><title type='text'>Route53がVPCのPrivateDNSに使えるようになったと聞いて</title><content type='html'>&lt;b&gt;&lt;u&gt;Route53でPrivateDNSを使ってみる&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
自分で内部DNSを構築したり、/etc/hostsの力業を使わない限り、今までは長い名前を頑張って入れるかIPアドレス経由でアクセスをする必要がある。&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
・内部DNSを利用するにはBINDの脆弱性と戦ったりせざるを得ず、毎年の恒例行事でやってられない。&lt;br /&gt;
・RDSやRedshiftやElasticacheを利用している方々なら分かると思うが、Endpointの名前が長すぎるので、CNAMEが使えるととても楽。&lt;/blockquote&gt;
ということで、Route53 in VPCを試してみるテスト。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1,Route53の画面を眺めてみる。&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
いつもの設定と同じく、[Create Hosted Zone] を押す。&lt;/blockquote&gt;
&lt;br /&gt;
2,項目について&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTdTfQhhk2A9Q4JCqaggaY7Pygo279hEQdOFXi6pHDe3_RRpuQ85f_Vzaag9T_5DHzro0rwbSyB3HotTPLyyefWbrOH0NRoKwGb2mHKCNFkDh1IIlEgew_mPpL3N2HS95CvF5iHHOOSn_1/s1600/route53_03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTdTfQhhk2A9Q4JCqaggaY7Pygo279hEQdOFXi6pHDe3_RRpuQ85f_Vzaag9T_5DHzro0rwbSyB3HotTPLyyefWbrOH0NRoKwGb2mHKCNFkDh1IIlEgew_mPpL3N2HS95CvF5iHHOOSn_1/s400/route53_03.png&quot; width=&quot;331&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
見慣れない項目が増えている…。&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
項目について：&lt;br /&gt;
Domain Name:VPC内で使うInternalのドメイン・ネームを入力&lt;br /&gt;
Comment &amp;nbsp; &amp;nbsp;:上記ドメインの説明など&lt;br /&gt;
Type &amp;nbsp; &amp;nbsp; &amp;nbsp; :PrivateDNSかPublicDNSかを選択&lt;br /&gt;
VPC Id &amp;nbsp; &amp;nbsp; :上記でPrivateを選択した際に、どのVPCに適用するかを選択&lt;/blockquote&gt;
&lt;br /&gt;
3,設定してみた&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
-- Privateを3つ作成してみた&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
bk.taterole.net：バックエンド用ドメイン&lt;br /&gt;
バックエンド用途、VPC内のInternet側に向かわない通信用のドメイン&lt;br /&gt;
webサーバ→DBサーバの通信や、Cacheサーバなどを用いる際にこのネットワークを利用する&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
fr.taterole.net：フロントエンド用ドメイン&lt;br /&gt;
フロントエンド用途、InternetGatewayをもったdefaultVPCと通信用のドメイン&lt;br /&gt;
ELB→webサーバの通信みたいな用途&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
gw.taterole.net：ゲートウェイ用ドメイン&lt;br /&gt;
追加したPrivateVPCではなく、DefaultVPC用のドメイン&lt;br /&gt;
踏み台サーバなどを配置する用途&lt;/blockquote&gt;
&lt;br /&gt;
&lt;br /&gt;
4,検証用EC2インスタンス&lt;br /&gt;
-- DefaultVPCに配置&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Hostname：shimakaze&lt;br /&gt;
eth0：shimakaze.gw.taterole.net&lt;br /&gt;
せつめい：踏み台サーバとして作成&lt;/blockquote&gt;
&lt;br /&gt;
-- PrivateVPCに配置&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Hostname：sigure&lt;br /&gt;
eth0：kiso.bk.taterole.net&lt;br /&gt;
eth1：kiso.fr.taterole.net&lt;br /&gt;
せつめい：PrivateVPC上でWEBサーバを想定して構築したもの&lt;br /&gt;
RDS/Elasticache通信用のeth0とフロントからの通信を受ける用のeth1を用意&amp;nbsp;&lt;/blockquote&gt;
5,Route53にそれぞれのレコードセットに、インスタンスのPrivateDNSを登録&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
-- gw.taterole.net.&lt;br /&gt;
shimakaze.gw.taterole.net.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Aレコード&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;172.16.30.1&lt;br /&gt;
-- fr.taterole.net.&lt;br /&gt;
kiso.fr.taterole.net.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Aレコード&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;172.16.1.1&lt;br /&gt;
-- bk.taterole.net.&lt;br /&gt;
kiso.bk.taterole.net.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;Aレコード&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;172.16.101.1&lt;br /&gt;
※IPはインスタンスを作成時にDHCPで割り当てられたIPです。&lt;/blockquote&gt;
6,動作確認&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
-- PrivateVPCインスタンスから確認(kiso)&lt;br /&gt;
[taterole@kiso ~]$ host kiso.bk.taterole.net&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; no servers could be reached&lt;br /&gt;
[taterole@kiso ~]$ host kiso.fr.taterole.net&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; no servers could be reached&lt;br /&gt;
[taterole@kiso ~]$ host shimakaze.gw.taterole.net&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; no servers could be reached&lt;br /&gt;
&lt;span style=&quot;background-color: #ea9999;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;→アカン&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
-- DefaultVPCインスタンスから確認(shimakaze)&lt;br /&gt;
[taterole@shimakaze ~]$ host shimakaze.gw.taterole.net&lt;br /&gt;
shimakaze.gw.taterole.net has address 172.16.30.1&lt;br /&gt;
[taterole@shimakaze ~]$ host kiso.fr.taterole.net&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; no servers could be reached&lt;br /&gt;
[taterole@shimakaze ~]$ host kiso.bk.taterole.net&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; trying next origin&lt;br /&gt;
;; connection timed out; no servers could be reached&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u style=&quot;background-color: #ea9999;&quot;&gt;→gw.tateroleだけ引ける模様&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/blockquote&gt;
7,ドキュメントを読み解いてみる…。&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;u&gt;Important&lt;/u&gt;&lt;/b&gt;To use private hosted zones, you must set the following Amazon VPC settings to true:&lt;br /&gt;
・enableDnsHostnames&lt;br /&gt;
・enableDnsSupport&lt;br /&gt;
For more information, see Updating DNS Support for Your VPC in the Amazon VPC User Guide.&lt;/blockquote&gt;
なるほど。&lt;br /&gt;
&lt;br /&gt;
8,VPCの設定を変更&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4rilPKetNZLKSzzssoLWDN_J1dVLZQPfNeWAXBr5oR3B1eNtK0KpXgaumDOG1PRs8CC8RY4Qrl3Ms9ZKqx4Cr4qNhTribsN2FO9oRPyEMOT5iz_xqOVpflPeIfiKyhMJfohib9WdzZnJk/s1600/route53_01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;267&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4rilPKetNZLKSzzssoLWDN_J1dVLZQPfNeWAXBr5oR3B1eNtK0KpXgaumDOG1PRs8CC8RY4Qrl3Ms9ZKqx4Cr4qNhTribsN2FO9oRPyEMOT5iz_xqOVpflPeIfiKyhMJfohib9WdzZnJk/s400/route53_01.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: #ea9999;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;以前VPCを作成された方は、デフォルトの[DNS hostnames] が[no]になっています。&lt;br /&gt;ココを[yes]に変更。&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/blockquote&gt;
9,もっかい動作確認&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
-- PrivateVPCインスタンスから確認(kiso)&lt;br /&gt;
[taterole@kiso ~]$ host shimakaze.gw.taterole.net&lt;br /&gt;
shimakaze.gw.taterole.net has address 172.16.30.1&lt;br /&gt;
[taterole@kiso ~]$ host kiso.fr.taterole.net&lt;br /&gt;
shimakaze.fr.taterole.net has address 172.16.1.1&lt;br /&gt;
[taterole@kiso ~]$ host kiso.bk.taterole.net&lt;br /&gt;
shimakaze.bk.taterole.net has address 172.16.101.1&lt;br /&gt;
&lt;span style=&quot;background-color: #ea9999;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;→ヤッター！&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
-- DefaultVPCインスタンスから確認(shimakaze)&lt;br /&gt;
[taterole@shimakaze ~]$ host shimakaze.gw.taterole.net&lt;br /&gt;
shimakaze.gw.taterole.net has address 172.16.30.1&lt;br /&gt;
[taterole@shimakaze ~]$ host kiso.fr.taterole.net&lt;br /&gt;
shimakaze.fr.taterole.net has address 172.16.1.1&lt;br /&gt;
[taterole@shimakaze ~]$ host kiso.bk.taterole.net&lt;br /&gt;
shimakaze.bk.taterole.net has address 172.16.101.1&lt;br /&gt;
&lt;span style=&quot;background-color: #ea9999;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;→タツジン！&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
10,おまけにRDSも以下でDNS登録して名前が引けることを確認&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
-- bk.taterole.net.&lt;br /&gt;
kongo.bk.taterole.net.&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;CNAME&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;kongo.hogehoge.ap-northeast-1.rds.amazonaws.com.&lt;br /&gt;
→EndpointにCNAMEを貼る感じで、アクセス出来やすいようにします。&lt;br /&gt;
　IPアドレスはMultiAZなど使っている場合、一意ではないのでCNAME推奨だと思われます&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
[taterole@kiso ~]$ host kongo&lt;br /&gt;
kongo.bk.taterole.net is an alias for kongo.hogehoge.ap-northeast-1.rds.amazonaws.com.&lt;br /&gt;
kongo.hogehoge.ap-northeast-1.rds.amazonaws.com has address 172.16.101.225&lt;br /&gt;
&lt;span style=&quot;background-color: #ea9999;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;&lt;u&gt;→うむ、長い名前がすごく短くなった&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
---&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;注意点としては、VPCの設定変更を忘れないというところ&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
---&lt;br /&gt;
&lt;br /&gt;
ということで、おわり。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/7498033038418994532/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2014/11/route53vpcprivatedns.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/7498033038418994532'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/7498033038418994532'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2014/11/route53vpcprivatedns.html' title='Route53がVPCのPrivateDNSに使えるようになったと聞いて'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTdTfQhhk2A9Q4JCqaggaY7Pygo279hEQdOFXi6pHDe3_RRpuQ85f_Vzaag9T_5DHzro0rwbSyB3HotTPLyyefWbrOH0NRoKwGb2mHKCNFkDh1IIlEgew_mPpL3N2HS95CvF5iHHOOSn_1/s72-c/route53_03.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-1739236155330988421</id><published>2014-08-27T11:23:00.001+09:00</published><updated>2014-09-02T11:23:26.865+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="fluentd"/><category scheme="http://www.blogger.com/atom/ns#" term="Redshift"/><title type='text'>Apache→Fluentd→Redshift でデータ投入する話</title><content type='html'>fluentd→(S3)→Redshiftの構成で、データの集積と一括管理をしたいとおもいました&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
fluentd側でアクセスログをJson化してS3に配置、そのままRedshiftへコピーという流れを、便利なモジュールが担ってくれる楽ちん構成&lt;/blockquote&gt;
&lt;br /&gt;
やること：&lt;br /&gt;
1,)fluentdのインストール&lt;br /&gt;
2,)fluentdの各種plugin追加&lt;br /&gt;
3,)fluentdのconf作成&lt;br /&gt;
4,)fluentdの起動&lt;br /&gt;
5,)Redshift側のテーブル作成&lt;br /&gt;
6,)データの確認&lt;br /&gt;
&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;1,)fluentdのインストール&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
-- リポジトリ追加&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# vi /etc/yum.repos.d/td.repo&lt;br /&gt;
======================================================================&lt;br /&gt;
[treasuredata]&lt;br /&gt;
name=TreasureData&lt;br /&gt;
baseurl=http://packages.treasure-data.com/redhat/$basearch&lt;br /&gt;
gpgcheck=0&lt;br /&gt;
======================================================================&lt;/blockquote&gt;
&lt;br /&gt;
-- インストール&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# yum install td-agent&lt;br /&gt;
======================================================================&lt;br /&gt;
Dependencies Resolved&lt;br /&gt;
====================================================================================================&lt;br /&gt;
&amp;nbsp;Package &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Arch &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Version &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Repository &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size&lt;br /&gt;
====================================================================================================&lt;br /&gt;
Installing:&lt;br /&gt;
&amp;nbsp;td-agent &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.1.20-0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; treasuredata &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;64 M&lt;br /&gt;
Installing for dependencies:&lt;br /&gt;
&amp;nbsp;compat-libtermcap &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.0.8-49.2.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-main &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 16 k&lt;br /&gt;
&amp;nbsp;compat-readline5 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.2-17.3.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-main &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;156 k&lt;br /&gt;
&amp;nbsp;openssl098e &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.9.8e-18.2.14.amzn1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; amzn-updates &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 892 k&lt;br /&gt;
&amp;nbsp;td-libyaml &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.1.4-1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;treasuredata &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 126 k&lt;br /&gt;
Transaction Summary&lt;br /&gt;
====================================================================================================&lt;br /&gt;
Install &amp;nbsp;1 Package (+4 Dependent packages)&lt;br /&gt;
Total download size: 65 M&lt;br /&gt;
Installed size: 112 M&lt;br /&gt;
Is this ok [y/d/N]: y&lt;br /&gt;
======================================================================&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;2,)fluentdの各種plugin追加&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
-- モジュールの追加&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# yum install postgresql9.x86_64 postgresql9-devel.x86_64&lt;br /&gt;
■前提として、redshift接続用のポスグレクライアントが必要っす&lt;/blockquote&gt;
&lt;br /&gt;
-- プラグインのインストール&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-redshift&lt;br /&gt;
# /usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-jsonbucket&lt;br /&gt;
■gemコマンドではなくfluent-gemのコマンドであることに注意っす&lt;br /&gt;
■他に必要なpluginが有る場合は、ここでガシガシ追加&lt;/blockquote&gt;
&lt;br /&gt;
3,)fluentdのconf作成&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# vi /etc/td-agent/td-agent.conf&lt;br /&gt;
■テンプレをちょいちょい変更して作成&lt;br /&gt;
====================================================================================================&lt;br /&gt;
## Input&lt;br /&gt;
&amp;lt;source&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; type tail&lt;br /&gt;
&amp;nbsp; &amp;nbsp; path /var/log/httpd/shq_gree/access_log.%Y%m%d&lt;br /&gt;
&amp;nbsp; &amp;nbsp; format /^(?&amp;lt;host&amp;gt;[^ ]*) [^ ]* (?&amp;lt;user&amp;gt;[^ ]*) \[(?&amp;lt;request_time&amp;gt;[^\]]*)\] &quot;(?&amp;lt;method&amp;gt;\S+)(?: +(?&amp;lt;path&amp;gt;[^ ]*) +\S*)?&quot; (?&amp;lt;status&amp;gt;[^ ]*) (?&amp;lt;size&amp;gt;[^ ]*)(?: &quot;(?&amp;lt;referer&amp;gt;[^\&quot;]*)&quot; &quot;(?&amp;lt;agent&amp;gt;[^\&quot;]*)&quot; (?&amp;lt;response_time&amp;gt;[^ ]*))?$/&lt;br /&gt;
&amp;nbsp; &amp;nbsp; time_format %d/%b/%Y:%H:%M:%S %z&lt;br /&gt;
&amp;nbsp; &amp;nbsp; pos_file /var/log/td-agent/tmp/apache.access.log.pos&lt;br /&gt;
&amp;nbsp; &amp;nbsp; tag apache.access&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;match apache.access&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; type jsonbucket&lt;br /&gt;
&amp;nbsp; &amp;nbsp; output_tag redshift.apache.access&lt;br /&gt;
&amp;nbsp; &amp;nbsp; json_key log&lt;br /&gt;
&amp;lt;/match&amp;gt;&lt;br /&gt;
&amp;lt;match redshift.apache.access&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; type redshift&lt;br /&gt;
&amp;nbsp; &amp;nbsp; # s3 (for copying data to redshift)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; aws_key_id &amp;lt;youe_aws_key_id&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#AWSキーをいれる&lt;br /&gt;
&amp;nbsp; &amp;nbsp; aws_sec_key &amp;lt;your_aws_sec_key&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#シークレットキーを入れる&lt;br /&gt;
&amp;nbsp; &amp;nbsp; s3_bucket redshift &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#S3上のどのバケットにデータを配置するか&lt;br /&gt;
&amp;nbsp; &amp;nbsp; s3_endpoint &amp;lt;your_region_name&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#リージョン一覧から、利用しているリージョンを入れる&lt;br /&gt;
&amp;nbsp; &amp;nbsp; path for_redshift/&lt;br /&gt;
&amp;nbsp; &amp;nbsp; timestamp_key_format %Y%m%d/%Y%m%d-%H%M &amp;nbsp; #S3上にどういうパスでデータが配置したいかを指定&lt;br /&gt;
&amp;nbsp; &amp;nbsp; # redshift&lt;br /&gt;
&amp;nbsp; &amp;nbsp; redshift_host &amp;lt;your_redshift_end_point&amp;gt; &amp;nbsp; #Redshiftの管理コンソールからエンドポイントを確認&lt;br /&gt;
&amp;nbsp; &amp;nbsp; redshift_port 5439 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#Redshiftが使ってるポートを指定&lt;br /&gt;
&amp;nbsp; &amp;nbsp; redshift_dbname &amp;lt;your_db_name&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#Redshiftでデータを投入するDB名&lt;br /&gt;
&amp;nbsp; &amp;nbsp; redshift_user &amp;lt;rs_user_name&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#Redshiftのユーザ&lt;br /&gt;
&amp;nbsp; &amp;nbsp; redshift_password &amp;lt;rs_user_pass&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#上記ユーザのパス&lt;br /&gt;
&amp;nbsp; &amp;nbsp; redshift_schemaname public &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#変更指定なければ、publicがデフォ&lt;br /&gt;
&amp;nbsp; &amp;nbsp; redshift_tablename access_log &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #データを投入するテーブル名&lt;br /&gt;
&amp;nbsp; &amp;nbsp; redshift_copy_base_options TIMEFORMAT &#39;auto&#39; TRUNCATECOLUMNS COMPUPDATE ON &amp;nbsp; &amp;nbsp;#詳細はこの後&lt;br /&gt;
&amp;nbsp; &amp;nbsp; file_type json&lt;br /&gt;
&amp;nbsp; &amp;nbsp; # buffer&lt;br /&gt;
&amp;nbsp; &amp;nbsp; buffer_type file&lt;br /&gt;
&amp;nbsp; &amp;nbsp; buffer_path /var/log/td-agent/buffer/redshift #一時ファイルの置き場&lt;br /&gt;
&amp;nbsp; &amp;nbsp; flush_interval 10m &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;#一時ファイルを何分間隔でflushしてS3→Redshiftにデータを送るか&lt;br /&gt;
&amp;nbsp; &amp;nbsp; buffer_chunk_limit 1g &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; #一時ファイルのデータリミット指定&lt;br /&gt;
&amp;lt;/match&amp;gt;&lt;br /&gt;
====================================================================================================&lt;/blockquote&gt;
&lt;b&gt;※&amp;lt;source&amp;gt;ディレクティブの正規表現について&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
apacheログと正規表現を見比べつつ、正常にバッファファイルに出力されているかを確認しつつ&lt;br /&gt;
ポリシーを作っていく。&lt;br /&gt;
ここでのポイントは、データ内にTimestampを残したい場合、&amp;lt;time&amp;gt;の指定だと、fluentdでattribute&lt;br /&gt;
扱いになって、BODYにデータが入りません。&lt;br /&gt;
データを扱う上で、Timestampが残らないのは具合が悪いので、&amp;lt;request_time&amp;gt;という&amp;lt;time&amp;gt;以外のKey&lt;br /&gt;
を指定することで、BODY内にデータが入るようにしています。&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #ea9999;&quot;&gt;下記サイトで正規表現の正否が確認できるので参考にどうぞ&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #ea9999;&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;http://fluentular.herokuapp.com/&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;※redshift_copy_base_optionsについて&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Redshiftへデータを投入するCOPYコマンドにつけるオプションをここに書く&lt;br /&gt;
(gitのReadmeに書いてなくてすげー探した)&lt;br /&gt;
---- TIMEFORMAT &#39;auto&#39;&lt;br /&gt;
Apacheログの場合、Timestampの出力が&lt;br /&gt;
[27/Aug/2014:00:00:00 +0900]&lt;br /&gt;
という形このまま突っ込んでも、Redshiftが持っているデフォルトの日付フォーマットに準拠していないため、nullが入ってしまう&lt;br /&gt;
それを回避するためにいれてるっす。&lt;br /&gt;
---- TRUNCATECOLUMNS&lt;br /&gt;
CLOMUNにデータを入れる際に文字数をオーバーするときにカットする&lt;br /&gt;
---- COMPUPDATE ON&lt;br /&gt;
データの圧縮をして容量の削減&lt;br /&gt;
CREATE TABLEする時に、データ圧縮を有効にしたうえでつかいませう&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #ea9999;&quot;&gt;詳細はこちら&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: red;&quot;&gt;&lt;b style=&quot;background-color: #ea9999;&quot;&gt;http://docs.aws.amazon.com/ja_jp/redshift/latest/dg/r_COPY.html&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4,)fluentdの起動&lt;br /&gt;
-- コンフィグテスト&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# /etc/init.d/td-agent configtest&lt;/blockquote&gt;
&lt;br /&gt;
-- スタート&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# /etc/init.d/td-agent start&lt;/blockquote&gt;
&lt;br /&gt;
-- 自動起動設定&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# chkconfig td-agent on&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;5,)Redshift側のテーブル作成&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# psql -U &amp;lt;user&amp;gt; -W -h &amp;lt;redshift_end_point&amp;gt; -d &amp;lt;db_name&amp;gt; -p &amp;lt;port_num&amp;gt;&lt;br /&gt;&amp;lt;db_name&amp;gt;=# \d access_log■こんなかんじで作るます&lt;br /&gt;
■CREATE TABLE で圧縮も使えるように設定しておく&lt;br /&gt;
====================================================================================================&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Table &quot;public.access_log&quot;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Column &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Type &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Modifiers&lt;br /&gt;
---------------+-----------------------------+-----------------------------------------&lt;br /&gt;
&amp;nbsp;host &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| character varying(15) &amp;nbsp; &amp;nbsp; &amp;nbsp; | not null default &#39;-&#39;::character varying&lt;br /&gt;
&amp;nbsp;user &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| character varying(255) &amp;nbsp; &amp;nbsp; &amp;nbsp;| not null default &#39;-&#39;::character varying&lt;br /&gt;
&amp;nbsp;request_time &amp;nbsp;| timestamp without time zone | not null&lt;br /&gt;
&amp;nbsp;method &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| character varying(10) &amp;nbsp; &amp;nbsp; &amp;nbsp; | not null default &#39;-&#39;::character varying&lt;br /&gt;
&amp;nbsp;path &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| character varying(65535) &amp;nbsp; &amp;nbsp;| not null&lt;br /&gt;
&amp;nbsp;status &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| character varying(3) &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| not null default &#39;-&#39;::character varying&lt;br /&gt;
&amp;nbsp;size &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| character varying(255) &amp;nbsp; &amp;nbsp; &amp;nbsp;| not null default &#39;0&#39;::character varying&lt;br /&gt;
&amp;nbsp;referer &amp;nbsp; &amp;nbsp; &amp;nbsp; | character varying(65535) &amp;nbsp; &amp;nbsp;| not null default &#39;-&#39;::character varying&lt;br /&gt;
&amp;nbsp;agent &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | character varying(255) &amp;nbsp; &amp;nbsp; &amp;nbsp;| not null default &#39;-&#39;::character varying&lt;br /&gt;
&amp;nbsp;response_time | character varying(255) &amp;nbsp; &amp;nbsp; &amp;nbsp;| not null default &#39;-&#39;::character varying&lt;br /&gt;
====================================================================================================&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;6,)データの確認&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# psql -U &amp;lt;user&amp;gt; -W -h &amp;lt;redshift_end_point&amp;gt; -d &amp;lt;db_name&amp;gt; -p &amp;lt;port_num&amp;gt;&lt;br /&gt;
&amp;lt;db_name&amp;gt;=# select * from access_log;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; host &amp;nbsp; &amp;nbsp; &amp;nbsp; | user &amp;nbsp;| &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;request_time &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| method | path &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | status | size &amp;nbsp;| refer&lt;br /&gt;
-----------------+-------+----------------------------+--------+----------------------+--------+-------+----------------------------------&lt;br /&gt;
&amp;nbsp;111.222.111.222 | &amp;nbsp; - &amp;nbsp; | 27/Aug/2014:19:50:26 +0900 | GET &amp;nbsp; &amp;nbsp;| /index.html &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| 200 &amp;nbsp; &amp;nbsp;| 2145 &amp;nbsp;| https://kirarin.taterole.co.jp/&lt;br /&gt;
■長いので途中できってます&lt;/blockquote&gt;
-------------------------&lt;br /&gt;
おしまい&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/1739236155330988421/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2014/08/apachefluentdredshift.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/1739236155330988421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/1739236155330988421'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2014/08/apachefluentdredshift.html' title='Apache→Fluentd→Redshift でデータ投入する話'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-7844607998021815163</id><published>2014-08-19T19:37:00.001+09:00</published><updated>2014-08-19T19:38:41.181+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AWS"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="RDS"/><title type='text'>RDSでTimezoneを変更するストアドを入れているとMySQL has gone awayされる件</title><content type='html'>いろいろなサイトを調べた結果、結構な人が困っている様子。&lt;br /&gt;
&lt;br /&gt;
UTCのママ使って、プログラム側で毎回設定してもいいけれど、今までの別の&lt;br /&gt;
システムで動かしていた物を移設となると、なるべく既存の物に手を入れたくないのが人情&lt;br /&gt;
&lt;br /&gt;
サポートに問い合わせつつ、解決の目を見たので、備忘録兼ねて&lt;br /&gt;
----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;状況を再現させる&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;u&gt;0,)ふつうにRDSのインスタンスを作る&lt;/u&gt;&lt;br /&gt;
どんなスペックでもかまわないです。&lt;br /&gt;
TimezoneがUTC固定のため、日本時間-9:00になっている&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;1,)Timezoneを変更するストアドを作る&lt;/u&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
-- 格納するデータベースをさくせい&lt;br /&gt;
mysql&amp;gt; CREATE DATABASE shared;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
-- すとあど&lt;br /&gt;
mysql&amp;gt; DELIMITER |&lt;br /&gt;
CREATE PROCEDURE shared.`store_time_zone`()&lt;br /&gt;
IF NOT (POSITION(&#39;rdsadmin@&#39; IN CURRENT_USER()) = 1) THEN&lt;br /&gt;
&amp;nbsp; SET SESSION time_zone = &#39;Asia/Tokyo&#39;;&lt;br /&gt;
END IF |&lt;br /&gt;
Query OK, 0 rows affected (0.01 sec)&lt;/blockquote&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
-- 適用&lt;br /&gt;
mysql&amp;gt; DELIMITER ;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
-- 確認&lt;br /&gt;
mysql&amp;gt; select now();&lt;br /&gt;
+---------------------+&lt;br /&gt;
| now() &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
+---------------------+&lt;br /&gt;
| 2014-08-19 08:25:59 |&lt;br /&gt;
+---------------------+&lt;br /&gt;
1 row in set (0.02 sec)&lt;/blockquote&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
-- 読んでみる&lt;br /&gt;
mysql&amp;gt; CALL shared.store_time_zone;&lt;br /&gt;
Query OK, 0 rows affected (0.10 sec)&lt;/blockquote&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
-- 日本時間で表示されていることを確認&lt;br /&gt;
mysql&amp;gt; select now();&lt;br /&gt;
+---------------------+&lt;br /&gt;
| now() &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
+---------------------+&lt;br /&gt;
| 2014-08-19 17:26:08 |&lt;br /&gt;
+---------------------+&lt;br /&gt;
1 row in set (0.02 sec)&lt;/blockquote&gt;
&lt;br /&gt;
&lt;u&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&lt;b&gt;-- 参考サイト様&lt;/b&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;u&gt;&lt;span style=&quot;color: #e06666;&quot;&gt;&lt;b&gt;http://dev.classmethod.jp/cloud/aws/change-timezone-on-amazon-rds-mysql/&lt;/b&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;2,)ユーザーを作ってみる&lt;/u&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
GRANT ALL PRIVILEGES ON `%`.* TO &#39;testuser&#39;@&#39;%&#39; IDENTIFIED BY &#39;testuser&#39; WITH GRANT OPTION;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;u&gt;3,)再現チェック&lt;/u&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ mysql -utestuser -p -h &amp;lt;RDS_Endpoint&amp;gt;&lt;br /&gt;
mysql&amp;gt; show databases;&lt;br /&gt;
ERROR 2006 (HY000): MySQL server has gone away&lt;br /&gt;
No connection. Trying to reconnect...&lt;br /&gt;
Connection id: &amp;nbsp; &amp;nbsp;1195762&lt;br /&gt;
Current database: *** NONE ***&lt;br /&gt;
ERROR 1184 (08S01): Aborted connection 1195762 to db: &#39;unconnected&#39; user: &#39;testuser&#39; host: &#39;111.222.111.222&#39; (init_connect command failed)&lt;/blockquote&gt;
&lt;br /&gt;
&lt;u&gt;4,)EXECUTE権限をユーザに付与&lt;/u&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
RDS構築時の管理ユーザでmysqlへログイン&lt;br /&gt;
mysql&amp;gt; grant execute on *.* to &#39;testuser&#39;@&#39;%&#39;;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;u&gt;5,)変更かくにん&lt;/u&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
mysql&amp;gt; SELECT * FROM mysql.user\G&lt;br /&gt;
====================&lt;br /&gt;
Execute_priv: Y&lt;br /&gt;
====================&lt;/blockquote&gt;
&lt;br /&gt;
&lt;u&gt;6,)動作確認&lt;/u&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
$ mysql -utestuser -p -h &amp;lt;RDS_Endpoint&amp;gt;&lt;br /&gt;
mysql&amp;gt; show databases;&lt;br /&gt;
+------------------------+&lt;br /&gt;
| Database &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
+------------------------+&lt;br /&gt;
| information_schema &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| innodb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| testdb &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| mysql &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
| performance_schema &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| shared &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;br /&gt;
| tmp &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;br /&gt;
+------------------------+&lt;br /&gt;
19 rows in set (0.00 sec)&lt;/blockquote&gt;
&lt;br /&gt;
-----------------&lt;br /&gt;
&lt;b style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;なおった！&lt;/span&gt;&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/7844607998021815163/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2014/08/rdstimezonemysql-has-gone-away.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/7844607998021815163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/7844607998021815163'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2014/08/rdstimezonemysql-has-gone-away.html' title='RDSでTimezoneを変更するストアドを入れているとMySQL has gone awayされる件'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-4819119538770789821</id><published>2013-02-25T12:35:00.001+09:00</published><updated>2013-02-25T12:35:06.801+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="beginner"/><category scheme="http://www.blogger.com/atom/ns#" term="BIND10"/><category scheme="http://www.blogger.com/atom/ns#" term="install"/><title type='text'>BIND10スタートアップガイド(震え声) vol.1</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguywmFeDxhHbsyoL4ctQCOVKsqMLvXJW19rmk3K96UKjGRUoEUI9OqooCmiMtTUGWifqWwmCe4fq5NLVeyKCHSh7_JKL8B6wJPY3BhjKryVUuYlwGiUEoS-3hbjlxEIR1Nijj6rE9Lve-K/s1600/BIND10.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguywmFeDxhHbsyoL4ctQCOVKsqMLvXJW19rmk3K96UKjGRUoEUI9OqooCmiMtTUGWifqWwmCe4fq5NLVeyKCHSh7_JKL8B6wJPY3BhjKryVUuYlwGiUEoS-3hbjlxEIR1Nijj6rE9Lve-K/s1600/BIND10.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b style=&quot;background-color: #d9ead3;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b style=&quot;background-color: #d9ead3;&quot;&gt;BIND10のrc版が出たと聞いて飛んできました&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** 目的&lt;/span&gt;&lt;br /&gt;
BIND10であそんでみよう。&lt;br /&gt;
色々モジュール化されたりで、かなり変わっているとのお話ですし。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** 環境&lt;/span&gt;&lt;br /&gt;
Cent6.3(さくらVPS1480円プラン)&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** 参考にしたもの&lt;/span&gt;&lt;br /&gt;
http://bind10.isc.org/docs/bind10-guide.html#quick-start-auth-dns&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** インストールをはじめるよ&lt;/span&gt;&lt;br /&gt;
-- 任意の場所にもってくる&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# cd /usr/local/src&lt;br /&gt;# wget ftp://ftp.isc.org/isc/bind10/1.0.0-rc/bind10-1.0.0-rc.tar.gz&lt;/blockquote&gt;
-- かいとう&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# tar zxf bind10-1.0.0-rc.tar.gz&lt;/blockquote&gt;
-- こんぱいる&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# cd bind10-1.0.0-rc&lt;br /&gt;# ./configure --prefix /usr/local/bind10&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;configure: error: no suitable Python interpreter found&lt;br /&gt;----------------------------------------------------------------------&lt;/blockquote&gt;
お？えらーが。&lt;br /&gt;
ドキュメントを読んでみたところ、python3.1以降が入っていないとだめらしい。&lt;br /&gt;
&lt;br /&gt;
-- pythonバージョン確認&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# yum list installed python&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;python.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2.6.6-29.el6_3.3&lt;br /&gt;----------------------------------------------------------------------&lt;/blockquote&gt;
&lt;b&gt;まったく太刀打ちできない。&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** pythonをあたらしくする&lt;/span&gt;&lt;br /&gt;
remi remi-test とかみても、3.1以上のpythonがなかったので、ソースから。&lt;br /&gt;
&lt;br /&gt;
-- ソースを持ってくる&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# cd /usr/local/src&lt;br /&gt;# wget http://www.python.org/ftp/python/3.3.0/Python-3.3.0.tgz&lt;/blockquote&gt;
-- かいとう&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# tar zxf Python-3.3.0.tgz&lt;/blockquote&gt;
-- のーみそこねこね&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# ./configure --prefix=/usr/local/python&lt;br /&gt;# make&lt;br /&gt;# make test&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;FAIL: test_urlwithfrag (test.test_urllib2net.OtherNetworkTests)&lt;br /&gt;----------------------------------------------------------------------&lt;/blockquote&gt;
テストえらーでましたね。&lt;br /&gt;
でもこの機能はBIND10のインストールに必要ない（思いこみ&lt;br /&gt;
ということで次へ。&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# make install&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;何事もなくインストール完了（棒&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** BIND10にリベンジ&lt;/span&gt;&lt;br /&gt;
-- みたびこんぱいる&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# cd /usr/local/src/bind10-1.0.0-rc&lt;br /&gt;# ./configure --with-pythonpath=/usr/local/python/bin/python3 --prefix=/usr/local/bind10&lt;/blockquote&gt;
ソースでpythonをぶっこんだので、&quot;--with-pythonpath&quot; で指定してやります。&lt;br /&gt;
さらにbotan・log4cplusが必要とわかったので、インストールしておく。&lt;br /&gt;
&lt;br /&gt;
--- botan&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# yum install botan.x86_64 botan-devel.x86_64&lt;/blockquote&gt;
--- log4cplus&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# cd /usr/local/src&lt;br /&gt;# wget http://downloads.sourceforge.net/project/log4cplus/log4cplus-stable/1.0.4/log4cplus-1.0.4.tar.bz2&lt;br /&gt;# tar jxf log4cplus-1.0.4.tar.bz2&lt;br /&gt;# cd log4cplus-1.0.4&lt;br /&gt;# ./configure --prefix=/opt/log4cplus&lt;br /&gt;# make&lt;br /&gt;# make install&lt;/blockquote&gt;
-- よたびこんぱいる&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# make distclean&lt;br /&gt;# autoreconf --install&lt;br /&gt;# ./configure --prefix=/usr/local/bind10 \&lt;br /&gt;--with-pythonpath=/usr/local/python/bin/python3 \&lt;br /&gt;--with-log4cplus=/usr/local/log4cplus&lt;br /&gt;# make&lt;br /&gt;# make test&lt;br /&gt;# make install&lt;/blockquote&gt;
なんとかインストール完了。。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** 起動してみる&lt;/span&gt;&lt;br /&gt;
-- ユーザーさくせい&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# cd /usr/local/bind10/etc/bind10&lt;br /&gt;# /usr/local/bind10/sbin/b10-cmdctl-usermgr&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;Desired Login Name:lapo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;- ユーザー名を入力&lt;br /&gt;Choose a password: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;- パスワードを入力&lt;br /&gt;Re-enter password: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;- パスワードを入力&lt;br /&gt;&amp;nbsp;create new account successfully!&lt;br /&gt;continue to create new account by input &#39;y&#39; or &#39;Y&#39;: &amp;lt;- さらにユーザー追加する場合はy or Y しない場合はそのまま&amp;lt;Enter&amp;gt;&lt;br /&gt;----------------------------------------------------------------------&lt;/blockquote&gt;
-- 起動&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# /usr/local/bind10/sbin/bind10&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;FATAL [b10-cmdctl.cmdctl]: CMDCTL_UNCAUGHT_EXCEPTION uncaught exception: Error creating server, because: [Errno 98] Address already in use&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;■こんなエラーが出てあがらにゃい&lt;/blockquote&gt;
→どうやらbindctlで8080ポートを使うみたい。Nginx→apacheの部分で8080を使っていたので競合したぽい。&lt;br /&gt;
&amp;nbsp; Nginx側を10080に変更して難を逃れることに。&lt;br /&gt;
&lt;br /&gt;
-- もっかい起動&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# /usr/local/bind10/sbin/bind10&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;YYYY-MM-DD HH:MM:SS.123 INFO &amp;nbsp;[b10-cfgmgr.cfgmgr/4750] CFGMGR_CONFIG_FILE Configuration manager starting with configuration file: /usr/local/bind10/var/bind10/b10-config.db&lt;br /&gt;YYYY-MM-DD HH:MM:SS.996 INFO &amp;nbsp;[b10-init.init/4746] BIND10_STARTING starting BIND10: bind10 20110223 (BIND 10 1.0.0-rc)&lt;br /&gt;YYYY-MM-DD HH:MM:SS.996 INFO &amp;nbsp;[b10-init.init/4746] BIND10_CONFIGURATOR_START bind10 component configurator is starting up&lt;br /&gt;YYYY-MM-DD HH:MM:SS.996 INFO &amp;nbsp;[b10-init.init/4746] BIND10_COMPONENT_START component Socket creator is starting&lt;br /&gt;YYYY-MM-DD HH:MM:SS.996 INFO &amp;nbsp;[b10-init.init/4746] BIND10_SOCKCREATOR_INIT initializing socket creator parser&lt;br /&gt;YYYY-MM-DD HH:MM:SS.996 INFO &amp;nbsp;[b10-init.init/4746] BIND10_COMPONENT_START component msgq is starting&lt;br /&gt;YYYY-MM-DD HH:MM:SS.996 INFO &amp;nbsp;[b10-init.init/4746] BIND10_STARTING_PROCESS starting process b10-msgq&lt;br /&gt;YYYY-MM-DD HH:MM:SS.996 INFO &amp;nbsp;[b10-init.init/4746] BIND10_COMPONENT_START component cfgmgr is starting&lt;br /&gt;YYYY-MM-DD HH:MM:SS.996 INFO &amp;nbsp;[b10-init.init/4746] BIND10_STARTING_PROCESS starting process b10-cfgmgr&lt;br /&gt;YYYY-MM-DD HH:MM:SS.996 INFO &amp;nbsp;[b10-init.init/4746] BIND10_STARTING_CC starting configuration/command session&lt;br /&gt;YYYY-MM-DD HH:MM:SS.009 INFO &amp;nbsp;[b10-init.init/4746] BIND10_READING_INIT_CONFIGURATION reading b10-init configuration&lt;br /&gt;YYYY-MM-DD HH:MM:SS.010 INFO &amp;nbsp;[b10-init.init/4746] BIND10_CONFIGURATOR_RECONFIGURE reconfiguring running components&lt;br /&gt;YYYY-MM-DD HH:MM:SS.011 INFO &amp;nbsp;[b10-init.init/4746] BIND10_COMPONENT_START component b10-cmdctl is starting&lt;br /&gt;YYYY-MM-DD HH:MM:SS.011 INFO &amp;nbsp;[b10-init.init/4746] BIND10_STARTING_PROCESS starting process b10-cmdctl&lt;br /&gt;YYYY-MM-DD HH:MM:SS.019 INFO &amp;nbsp;[b10-init.init/4746] BIND10_COMPONENT_START component b10-stats is starting&lt;br /&gt;YYYY-MM-DD HH:MM:SS.019 INFO &amp;nbsp;[b10-init.init/4746] BIND10_STARTING_PROCESS starting process b10-stats&lt;br /&gt;YYYY-MM-DD HH:MM:SS.031 INFO &amp;nbsp;[b10-init.init/4746] BIND10_STARTUP_COMPLETE BIND 10 started&lt;br /&gt;YYYY-MM-DD HH:MM:SS.203 INFO &amp;nbsp;[b10-stats.stats/4753] STATS_STARTING starting&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;■無事起動&lt;/blockquote&gt;
&lt;b&gt;大丈夫だったのでまつびぃに&quot;&amp;amp;&quot;をつけてバックグラウンドで。&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
-- 起動と確認&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# /usr/local/bind10/sbin/bind10 &amp;amp;&lt;br /&gt;# ps -ef | grep b10&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;root &amp;nbsp; &amp;nbsp; &amp;nbsp;4755 &amp;nbsp;4631 &amp;nbsp;0 11:28 pts/0 &amp;nbsp; &amp;nbsp;00:00:00 /usr/local/python/bin/python3 /usr/local/bind10/libexec/bind10/b10-init&lt;br /&gt;root &amp;nbsp; &amp;nbsp; &amp;nbsp;4756 &amp;nbsp;4755 &amp;nbsp;0 11:28 pts/0 &amp;nbsp; &amp;nbsp;00:00:00 b10-sockcreator&lt;br /&gt;root &amp;nbsp; &amp;nbsp; &amp;nbsp;4757 &amp;nbsp;4755 &amp;nbsp;0 11:28 pts/0 &amp;nbsp; &amp;nbsp;00:00:00 /usr/local/python/bin/python3 /usr/local/bind10/libexec/bind10/b10-msgq&lt;br /&gt;root &amp;nbsp; &amp;nbsp; &amp;nbsp;4759 &amp;nbsp;4755 &amp;nbsp;0 11:28 pts/0 &amp;nbsp; &amp;nbsp;00:00:00 /usr/local/python/bin/python3 /usr/local/bind10/libexec/bind10/b10-cfgmgr&lt;br /&gt;root &amp;nbsp; &amp;nbsp; &amp;nbsp;4761 &amp;nbsp;4755 &amp;nbsp;0 11:28 pts/0 &amp;nbsp; &amp;nbsp;00:00:00 /usr/local/python/bin/python3 /usr/local/bind10/libexec/bind10/b10-stats&lt;br /&gt;root &amp;nbsp; &amp;nbsp; &amp;nbsp;4762 &amp;nbsp;4755 &amp;nbsp;0 11:28 pts/0 &amp;nbsp; &amp;nbsp;00:00:00 /usr/local/python/bin/python3 /usr/local/bind10/libexec/bind10/b10-cmdctl&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;■やたらプロセスふえたにぃ…&lt;/blockquote&gt;
-- 設定の確認とかいろいろ&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# /usr/local/bind10/bin/bindctl&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;WARNING: Python readline module isn&#39;t available, so the command line editor&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;(including command history management) does not work. &amp;nbsp;See BIND 10&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;guide for more details.&lt;br /&gt;No stored password file found, please see sections &quot;Configuration specification for b10-cmdctl&quot; and &quot;bindctl command-line options&quot; of the BIND 10 guide.&lt;br /&gt;Username: lapo&lt;br /&gt;Password:&lt;br /&gt;[&quot;login success &quot;]&lt;br /&gt;&amp;gt;&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;■コマンドヒストリーを見るpythonモジュールがないよ的なメッセージがありますが、&lt;br /&gt;&amp;nbsp; 別に今回はキニシナイ&lt;br /&gt;■usernameとpasswordは、&quot;/usr/local/bind10/sbin/b10-cmdctl-usermgr&quot; で作成したものを入力&lt;/blockquote&gt;
-- 権威さーばのたちあげ&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# /usr/local/bind10/bin/bindctl&lt;br /&gt;&amp;gt; config add Init/components b10-auth&lt;br /&gt;&amp;gt; config set Init/components/b10-auth/special auth&lt;br /&gt;&amp;gt; config set Init/components/b10-auth/kind needed&lt;br /&gt;&amp;gt; config commit&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;YYYY-MM-DD HH:MM:SS.068 INFO &amp;nbsp;[b10-init.init/4755] BIND10_CONFIGURATOR_RECONFIGURE reconfiguring running components&lt;br /&gt;YYYY-MM-DD HH:MM:SS.068 INFO &amp;nbsp;[b10-init.init/4755] BIND10_COMPONENT_START component b10-auth is starting&lt;br /&gt;YYYY-MM-DD HH:MM:SS.068 INFO &amp;nbsp;[b10-init.init/4755] BIND10_STARTING_PROCESS starting process b10-auth&lt;br /&gt;YYYY-MM-DD HH:MM:SS.113 INFO &amp;nbsp;[b10-auth.auth/4801] AUTH_SERVER_CREATED server created&lt;br /&gt;YYYY-MM-DD HH:MM:SS.113 INFO &amp;nbsp;[b10-auth.auth/4801] AUTH_DATASRC_CLIENTS_BUILDER_STARTED data source builder thread started&lt;br /&gt;YYYY-MM-DD HH:MM:SS.129 INFO &amp;nbsp;[b10-init.init/4755] BIND10_SOCKET_GET requesting socket [::]:53 of type TCP from the creator&lt;br /&gt;YYYY-MM-DD HH:MM:SS.130 INFO &amp;nbsp;[b10-init.init/4755] BIND10_SOCKET_CREATED successfully created socket 20&lt;br /&gt;YYYY-MM-DD HH:MM:SS.133 INFO &amp;nbsp;[b10-init.init/4755] BIND10_SOCKET_GET requesting socket [::]:53 of type UDP from the creator&lt;br /&gt;YYYY-MM-DD HH:MM:SS.133 INFO &amp;nbsp;[b10-init.init/4755] BIND10_SOCKET_CREATED successfully created socket 22&lt;br /&gt;YYYY-MM-DD HH:MM:SS.135 INFO &amp;nbsp;[b10-init.init/4755] BIND10_SOCKET_GET requesting socket [0.0.0.0]:53 of type TCP from the creator&lt;br /&gt;YYYY-MM-DD HH:MM:SS.135 INFO &amp;nbsp;[b10-init.init/4755] BIND10_SOCKET_CREATED successfully created socket 23&lt;br /&gt;YYYY-MM-DD HH:MM:SS.139 INFO &amp;nbsp;[b10-init.init/4755] BIND10_SOCKET_GET requesting socket [0.0.0.0]:53 of type UDP from the creator&lt;br /&gt;YYYY-MM-DD HH:MM:SS.139 INFO &amp;nbsp;[b10-init.init/4755] BIND10_SOCKET_CREATED successfully created socket 24&lt;br /&gt;YYYY-MM-DD HH:MM:SS.146 INFO &amp;nbsp;[b10-auth.auth/4801] AUTH_DATASRC_CLIENTS_BUILDER_RECONFIGURE_STARTED data source reconfiguration started&lt;br /&gt;YYYY-MM-DD HH:MM:SS.149 INFO &amp;nbsp;[b10-auth.auth/4801] AUTH_SERVER_STARTED server started&lt;br /&gt;YYYY-MM-DD HH:MM:SS.150 WARN &amp;nbsp;[b10-auth.datasrc/4801] DATASRC_SQLITE_SETUP setting up new SQLite3 database in &#39;/usr/local/bind10/var/bind10/zone.sqlite3&#39;&lt;br /&gt;YYYY-MM-DD HH:MM:SS.182 INFO &amp;nbsp;[b10-auth.auth/4801] AUTH_DATASRC_CLIENTS_BUILDER_RECONFIGURE_SUCCESS data source reconfiguration completed successfully&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;&amp;gt; quit&lt;br /&gt;■今回は権威サーバが別だてになっているので、これをやらないと権威サーバにならないでふ&lt;/blockquote&gt;
-- 名前を引いてみる&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
dig @127.0.0.1 -c CH -t TXT bind.version&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;; &amp;lt;&amp;lt;&amp;gt;&amp;gt; DiG 9.8.3-P1-RedHat-9.8.3-P1.el6 &amp;lt;&amp;lt;&amp;gt;&amp;gt; @127.0.0.1 -c CH -t TXT bind.version&lt;br /&gt;; (1 server found)&lt;br /&gt;;; global options: +cmd&lt;br /&gt;;; Got answer:&lt;br /&gt;;; -&amp;gt;&amp;gt;HEADER&amp;lt;&amp;lt;- opcode: QUERY, status: REFUSED, id: 48004&lt;br /&gt;;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0&lt;br /&gt;;; WARNING: recursion requested but not available&lt;br /&gt;;; QUESTION SECTION:&lt;br /&gt;;bind.version. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;CH &amp;nbsp; &amp;nbsp; &amp;nbsp;TXT&lt;br /&gt;;; Query time: 0 msec&lt;br /&gt;;; SERVER: 127.0.0.1#53(127.0.0.1)&lt;br /&gt;;; WHEN: Mon Feb 25 12:17:38 2013&lt;br /&gt;;; MSG SIZE &amp;nbsp;rcvd: 30&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;■;; SERVER: 127.0.0.1#53(127.0.0.1) で、引きにいって、空の内容が帰っているので大丈夫そうな雰囲気&lt;/blockquote&gt;
&lt;br /&gt;
とりあえず何も設定がはいっていないけど、BIND10の権威サーバの立ち上げまではできました。&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;第二部ではbindctlで設定関連を扱っていきますにぃ&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
※既存環境(BIND9系)からのアップデートはかなり骨が折れそうな印象&lt;br /&gt;
&lt;br /&gt;
&lt;b style=&quot;background-color: #b6d7a8;&quot;&gt;おわり&lt;/b&gt;&lt;br /&gt;
</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/4819119538770789821/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2013/02/bind10-vol1.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/4819119538770789821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/4819119538770789821'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2013/02/bind10-vol1.html' title='BIND10スタートアップガイド(震え声) vol.1'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguywmFeDxhHbsyoL4ctQCOVKsqMLvXJW19rmk3K96UKjGRUoEUI9OqooCmiMtTUGWifqWwmCe4fq5NLVeyKCHSh7_JKL8B6wJPY3BhjKryVUuYlwGiUEoS-3hbjlxEIR1Nijj6rE9Lve-K/s72-c/BIND10.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-3424444488699608150</id><published>2013-02-07T18:40:00.002+09:00</published><updated>2013-02-07T20:38:20.824+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bench"/><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql5.6"/><title type='text'>MySQL5.6 ベンチマーク</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtl1nK7oCHMZOnrZpXGo8N94a8h89TmBsVPztJuq41dKw8vrVqdyAUk0ILVz2TAQXF7qIvjN3QrRkf_DH2gaCuzqTUzAM-cGKmNRM7sHcVvhoBcdgl5irhsX9Hp4MVrBZMhI1tr21G0hcK/s1600/mysql.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtl1nK7oCHMZOnrZpXGo8N94a8h89TmBsVPztJuq41dKw8vrVqdyAUk0ILVz2TAQXF7qIvjN3QrRkf_DH2gaCuzqTUzAM-cGKmNRM7sHcVvhoBcdgl5irhsX9Hp4MVrBZMhI1tr21G0hcK/s320/mysql.png&quot; width=&quot;316&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b&gt;&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;MySQL5.6ベンチマーク&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** やったこと&lt;/span&gt;&lt;br /&gt;
せっかくインストールしたので、いつものmysqlbenchでパフォーマンスちぇーく&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** 結果&lt;/span&gt;&lt;br /&gt;
なかなかやるじゃん！&lt;br /&gt;
MariaDBとMySQL5.5よりいいパフォーマンスでました。&lt;br /&gt;
&lt;br /&gt;
**結果比較追記&lt;br /&gt;
TOTAL時間の比較結果&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;1位&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;MySQL5.6&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;4419.00 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;335.79 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;60.13 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;395.92 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;3425950.00&lt;/span&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;b&gt;2位&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;MySQL5.5&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;5363.00 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; 325.59&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;55.63 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; 381.22&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;3425950.00&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;b&gt;3位&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;MariaDB&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;6539.00 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; 366.44&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;75.14 &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; 441.58&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;3425950.00&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
※おまけ&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Benchmark DBD suite: 2.15&lt;br /&gt;
Date of test: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2013-02-07 17:12:56&lt;br /&gt;
Running tests on: &amp;nbsp; &amp;nbsp;Linux 2.6.32-220.23.1.el6.x86_64 x86_64&lt;br /&gt;
Arguments:&lt;br /&gt;
Comments:&lt;br /&gt;
Limits from:&lt;br /&gt;
Server version: &amp;nbsp; &amp;nbsp; &amp;nbsp;MySQL 5.6.10 log&lt;br /&gt;
Optimization: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;None&lt;br /&gt;
Hardware:&lt;br /&gt;
&lt;br /&gt;
alter-table: Total time: 35 wallclock secs ( 0.08 usr &amp;nbsp;0.03 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 csys = &amp;nbsp;0.11 CPU)&lt;br /&gt;
ATIS: Total time: 36 wallclock secs ( 3.67 usr &amp;nbsp;0.28 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 csys = &amp;nbsp;3.95 CPU)&lt;br /&gt;
big-tables: Total time: 17 wallclock secs ( 1.65 usr &amp;nbsp;0.34 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 csys = &amp;nbsp;1.99 CPU)&lt;br /&gt;
connect: Total time: 112 wallclock secs (31.13 usr 10.90 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 csys = 42.03 CPU)&lt;br /&gt;
create: Total time: 852 wallclock secs ( 7.83 usr &amp;nbsp;1.60 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 csys = &amp;nbsp;9.43 CPU)&lt;br /&gt;
insert: Total time: 2971 wallclock secs (267.91 usr 43.44 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 csys = 311.35 CPU)&lt;br /&gt;
select: Total time: 317 wallclock secs (24.57 usr &amp;nbsp;3.02 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 csys = 27.59 CPU)&lt;br /&gt;
transactions: Test skipped because the database doesn&#39;t support transactions&lt;br /&gt;
wisconsin: Total time: 81 wallclock secs ( 2.30 usr &amp;nbsp;0.64 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 csys = &amp;nbsp;2.94 CPU)&lt;br /&gt;
&lt;br /&gt;
All 9 test executed successfully&lt;br /&gt;
&lt;br /&gt;
Totals per operation:&lt;br /&gt;
Operation &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; seconds &amp;nbsp; &amp;nbsp; usr &amp;nbsp; &amp;nbsp; sys &amp;nbsp; &amp;nbsp; cpu &amp;nbsp; tests&lt;br /&gt;
alter_table_add &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp; 100&lt;br /&gt;
alter_table_drop &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp; &amp;nbsp;91&lt;br /&gt;
connect &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.00 &amp;nbsp; &amp;nbsp;3.27 &amp;nbsp; &amp;nbsp;0.77 &amp;nbsp; &amp;nbsp;4.04 &amp;nbsp; 10000&lt;br /&gt;
connect+select_1_row &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9.00 &amp;nbsp; &amp;nbsp;3.41 &amp;nbsp; &amp;nbsp;0.99 &amp;nbsp; &amp;nbsp;4.40 &amp;nbsp; 10000&lt;br /&gt;
connect+select_simple &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8.00 &amp;nbsp; &amp;nbsp;3.50 &amp;nbsp; &amp;nbsp;0.96 &amp;nbsp; &amp;nbsp;4.46 &amp;nbsp; 10000&lt;br /&gt;
count &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.03 &amp;nbsp; &amp;nbsp; 100&lt;br /&gt;
count_distinct &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.00 &amp;nbsp; &amp;nbsp;0.12 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.13 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_distinct_2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;13.00 &amp;nbsp; &amp;nbsp;0.17 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.18 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_distinct_big &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12.00 &amp;nbsp; &amp;nbsp;2.45 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;2.47 &amp;nbsp; &amp;nbsp; 120&lt;br /&gt;
count_distinct_group &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9.00 &amp;nbsp; &amp;nbsp;0.44 &amp;nbsp; &amp;nbsp;0.03 &amp;nbsp; &amp;nbsp;0.47 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_distinct_group_on_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8.00 &amp;nbsp; &amp;nbsp;0.15 &amp;nbsp; &amp;nbsp;0.03 &amp;nbsp; &amp;nbsp;0.18 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_distinct_group_on_key_parts &amp;nbsp; &amp;nbsp; 11.00 &amp;nbsp; &amp;nbsp;0.48 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.50 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_distinct_key_prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.00 &amp;nbsp; &amp;nbsp;0.15 &amp;nbsp; &amp;nbsp;0.03 &amp;nbsp; &amp;nbsp;0.18 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_group_on_key_parts &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.00 &amp;nbsp; &amp;nbsp;0.44 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.45 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_on_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;83.00 &amp;nbsp; &amp;nbsp;5.67 &amp;nbsp; &amp;nbsp;0.86 &amp;nbsp; &amp;nbsp;6.53 &amp;nbsp; 50100&lt;br /&gt;
create+drop &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;210.00 &amp;nbsp; &amp;nbsp;2.40 &amp;nbsp; &amp;nbsp;0.45 &amp;nbsp; &amp;nbsp;2.85 &amp;nbsp; 10000&lt;br /&gt;
create_MANY_tables &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 109.00 &amp;nbsp; &amp;nbsp;1.08 &amp;nbsp; &amp;nbsp;0.22 &amp;nbsp; &amp;nbsp;1.30 &amp;nbsp; 10000&lt;br /&gt;
create_index &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; 8&lt;br /&gt;
create_key+drop &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;439.00 &amp;nbsp; &amp;nbsp;2.98 &amp;nbsp; &amp;nbsp;0.51 &amp;nbsp; &amp;nbsp;3.49 &amp;nbsp; 10000&lt;br /&gt;
create_table &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp; &amp;nbsp;31&lt;br /&gt;
delete_all_many_keys &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;17.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
delete_big &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
delete_big_many_keys &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;17.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp; 128&lt;br /&gt;
delete_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;22.00 &amp;nbsp; &amp;nbsp;0.49 &amp;nbsp; &amp;nbsp;0.19 &amp;nbsp; &amp;nbsp;0.68 &amp;nbsp; 10000&lt;br /&gt;
delete_range &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp;12&lt;br /&gt;
drop_index &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; 8&lt;br /&gt;
drop_table &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp; &amp;nbsp;28&lt;br /&gt;
drop_table_when_MANY_tables &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 86.00 &amp;nbsp; &amp;nbsp;1.03 &amp;nbsp; &amp;nbsp;0.26 &amp;nbsp; &amp;nbsp;1.29 &amp;nbsp; 10000&lt;br /&gt;
insert &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 865.00 &amp;nbsp; 15.87 &amp;nbsp; &amp;nbsp;6.16 &amp;nbsp; 22.03 &amp;nbsp;350768&lt;br /&gt;
insert_duplicates &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15.00 &amp;nbsp; &amp;nbsp;3.35 &amp;nbsp; &amp;nbsp;1.25 &amp;nbsp; &amp;nbsp;4.60 &amp;nbsp;100000&lt;br /&gt;
insert_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 298.00 &amp;nbsp; &amp;nbsp;5.95 &amp;nbsp; &amp;nbsp;1.81 &amp;nbsp; &amp;nbsp;7.76 &amp;nbsp;100000&lt;br /&gt;
insert_many_fields &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9.00 &amp;nbsp; &amp;nbsp;0.17 &amp;nbsp; &amp;nbsp;0.03 &amp;nbsp; &amp;nbsp;0.20 &amp;nbsp; &amp;nbsp;2000&lt;br /&gt;
insert_select_1_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
insert_select_2_keys &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
min_max &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp; &amp;nbsp;60&lt;br /&gt;
min_max_on_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;25.00 &amp;nbsp; 10.79 &amp;nbsp; &amp;nbsp;1.66 &amp;nbsp; 12.45 &amp;nbsp; 85000&lt;br /&gt;
multiple_value_insert &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2.00 &amp;nbsp; &amp;nbsp;0.19 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.20 &amp;nbsp;100000&lt;br /&gt;
once_prepared_select &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;24.00 &amp;nbsp; &amp;nbsp;5.44 &amp;nbsp; &amp;nbsp;1.58 &amp;nbsp; &amp;nbsp;7.02 &amp;nbsp;100000&lt;br /&gt;
order_by_big &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.00 &amp;nbsp; &amp;nbsp;7.25 &amp;nbsp; &amp;nbsp;0.08 &amp;nbsp; &amp;nbsp;7.33 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
order_by_big_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8.00 &amp;nbsp; &amp;nbsp;6.96 &amp;nbsp; &amp;nbsp;0.04 &amp;nbsp; &amp;nbsp;7.00 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
order_by_big_key2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9.00 &amp;nbsp; &amp;nbsp;7.28 &amp;nbsp; &amp;nbsp;0.06 &amp;nbsp; &amp;nbsp;7.34 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
order_by_big_key_desc &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11.00 &amp;nbsp; &amp;nbsp;7.68 &amp;nbsp; &amp;nbsp;0.12 &amp;nbsp; &amp;nbsp;7.80 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
order_by_big_key_diff &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10.00 &amp;nbsp; &amp;nbsp;8.15 &amp;nbsp; &amp;nbsp;0.07 &amp;nbsp; &amp;nbsp;8.22 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
order_by_big_key_prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9.00 &amp;nbsp; &amp;nbsp;7.25 &amp;nbsp; &amp;nbsp;0.05 &amp;nbsp; &amp;nbsp;7.30 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
order_by_key2_diff &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.00 &amp;nbsp; &amp;nbsp;0.68 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.70 &amp;nbsp; &amp;nbsp; 500&lt;br /&gt;
order_by_key_prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.00 &amp;nbsp; &amp;nbsp;0.50 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.51 &amp;nbsp; &amp;nbsp; 500&lt;br /&gt;
order_by_range &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 &amp;nbsp; &amp;nbsp;0.44 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.45 &amp;nbsp; &amp;nbsp; 500&lt;br /&gt;
outer_join &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;14.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
outer_join_found &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
outer_join_not_found &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;13.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; 500&lt;br /&gt;
outer_join_on_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
prepared_select &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 29.00 &amp;nbsp; 10.32 &amp;nbsp; &amp;nbsp;1.57 &amp;nbsp; 11.89 &amp;nbsp;100000&lt;br /&gt;
select_1_row &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16.00 &amp;nbsp; &amp;nbsp;3.43 &amp;nbsp; &amp;nbsp;1.36 &amp;nbsp; &amp;nbsp;4.79 &amp;nbsp;100000&lt;br /&gt;
select_1_row_cache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16.00 &amp;nbsp; &amp;nbsp;3.13 &amp;nbsp; &amp;nbsp;1.33 &amp;nbsp; &amp;nbsp;4.46 &amp;nbsp;100000&lt;br /&gt;
select_2_rows &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 16.00 &amp;nbsp; &amp;nbsp;3.38 &amp;nbsp; &amp;nbsp;1.26 &amp;nbsp; &amp;nbsp;4.64 &amp;nbsp;100000&lt;br /&gt;
select_big &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.00 &amp;nbsp; &amp;nbsp;7.85 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;7.85 &amp;nbsp; &amp;nbsp; &amp;nbsp;80&lt;br /&gt;
select_big_str &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.00 &amp;nbsp; &amp;nbsp;1.33 &amp;nbsp; &amp;nbsp;0.30 &amp;nbsp; &amp;nbsp;1.63 &amp;nbsp; 10000&lt;br /&gt;
select_cache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;55.00 &amp;nbsp; &amp;nbsp;1.15 &amp;nbsp; &amp;nbsp;0.17 &amp;nbsp; &amp;nbsp;1.32 &amp;nbsp; 10000&lt;br /&gt;
select_cache2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 54.00 &amp;nbsp; &amp;nbsp;1.15 &amp;nbsp; &amp;nbsp;0.18 &amp;nbsp; &amp;nbsp;1.33 &amp;nbsp; 10000&lt;br /&gt;
select_column+column &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16.00 &amp;nbsp; &amp;nbsp;3.11 &amp;nbsp; &amp;nbsp;1.33 &amp;nbsp; &amp;nbsp;4.44 &amp;nbsp;100000&lt;br /&gt;
select_diff_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.07 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.08 &amp;nbsp; &amp;nbsp; 500&lt;br /&gt;
select_distinct &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2.00 &amp;nbsp; &amp;nbsp;0.61 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.62 &amp;nbsp; &amp;nbsp; 800&lt;br /&gt;
select_group &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;13.00 &amp;nbsp; &amp;nbsp;0.50 &amp;nbsp; &amp;nbsp;0.05 &amp;nbsp; &amp;nbsp;0.55 &amp;nbsp; &amp;nbsp;2911&lt;br /&gt;
select_group_when_MANY_tables &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8.00 &amp;nbsp; &amp;nbsp;0.34 &amp;nbsp; &amp;nbsp;0.16 &amp;nbsp; &amp;nbsp;0.50 &amp;nbsp; 10000&lt;br /&gt;
select_join &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.00 &amp;nbsp; &amp;nbsp;0.25 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.25 &amp;nbsp; &amp;nbsp; 100&lt;br /&gt;
select_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;56.00 &amp;nbsp; 23.10 &amp;nbsp; &amp;nbsp;3.32 &amp;nbsp; 26.42 &amp;nbsp;200000&lt;br /&gt;
select_key2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 64.00 &amp;nbsp; 24.12 &amp;nbsp; &amp;nbsp;3.62 &amp;nbsp; 27.74 &amp;nbsp;200000&lt;br /&gt;
select_key2_return_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;63.00 &amp;nbsp; 23.24 &amp;nbsp; &amp;nbsp;3.67 &amp;nbsp; 26.91 &amp;nbsp;200000&lt;br /&gt;
select_key2_return_prim &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 63.00 &amp;nbsp; 23.75 &amp;nbsp; &amp;nbsp;3.80 &amp;nbsp; 27.55 &amp;nbsp;200000&lt;br /&gt;
select_key_prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 65.00 &amp;nbsp; 24.17 &amp;nbsp; &amp;nbsp;3.77 &amp;nbsp; 27.94 &amp;nbsp;200000&lt;br /&gt;
select_key_prefix_join &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.00 &amp;nbsp; &amp;nbsp;1.44 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;1.45 &amp;nbsp; &amp;nbsp; 100&lt;br /&gt;
select_key_return_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 60.00 &amp;nbsp; 24.52 &amp;nbsp; &amp;nbsp;3.62 &amp;nbsp; 28.14 &amp;nbsp;200000&lt;br /&gt;
select_many_fields &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8.00 &amp;nbsp; &amp;nbsp;1.47 &amp;nbsp; &amp;nbsp;0.31 &amp;nbsp; &amp;nbsp;1.78 &amp;nbsp; &amp;nbsp;2000&lt;br /&gt;
select_range &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;22.00 &amp;nbsp; &amp;nbsp;2.65 &amp;nbsp; &amp;nbsp;0.08 &amp;nbsp; &amp;nbsp;2.73 &amp;nbsp; &amp;nbsp; 410&lt;br /&gt;
select_range_key2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.00 &amp;nbsp; &amp;nbsp;2.41 &amp;nbsp; &amp;nbsp;0.26 &amp;nbsp; &amp;nbsp;2.67 &amp;nbsp; 25010&lt;br /&gt;
select_range_prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.00 &amp;nbsp; &amp;nbsp;2.29 &amp;nbsp; &amp;nbsp;0.25 &amp;nbsp; &amp;nbsp;2.54 &amp;nbsp; 25010&lt;br /&gt;
select_simple &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11.00 &amp;nbsp; &amp;nbsp;3.42 &amp;nbsp; &amp;nbsp;1.31 &amp;nbsp; &amp;nbsp;4.73 &amp;nbsp;100000&lt;br /&gt;
select_simple_cache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10.00 &amp;nbsp; &amp;nbsp;3.15 &amp;nbsp; &amp;nbsp;1.29 &amp;nbsp; &amp;nbsp;4.44 &amp;nbsp;100000&lt;br /&gt;
select_simple_join &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 &amp;nbsp; &amp;nbsp;0.29 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.31 &amp;nbsp; &amp;nbsp; 500&lt;br /&gt;
update_big &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
update_of_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;129.00 &amp;nbsp; &amp;nbsp;2.28 &amp;nbsp; &amp;nbsp;0.91 &amp;nbsp; &amp;nbsp;3.19 &amp;nbsp; 50000&lt;br /&gt;
update_of_key_big &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 16.00 &amp;nbsp; &amp;nbsp;0.03 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.04 &amp;nbsp; &amp;nbsp; 501&lt;br /&gt;
update_of_primary_key_many_keys &amp;nbsp; &amp;nbsp; &amp;nbsp; 44.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp; 256&lt;br /&gt;
update_with_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;774.00 &amp;nbsp; 12.78 &amp;nbsp; &amp;nbsp;5.52 &amp;nbsp; 18.30 &amp;nbsp;300000&lt;br /&gt;
update_with_key_prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 265.00 &amp;nbsp; &amp;nbsp;6.76 &amp;nbsp; &amp;nbsp;2.20 &amp;nbsp; &amp;nbsp;8.96 &amp;nbsp;100000&lt;br /&gt;
wisc_benchmark &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.00 &amp;nbsp; &amp;nbsp;1.01 &amp;nbsp; &amp;nbsp;0.07 &amp;nbsp; &amp;nbsp;1.08 &amp;nbsp; &amp;nbsp; 114&lt;br /&gt;
TOTALS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4419.00 &amp;nbsp;335.79 &amp;nbsp; 60.13 &amp;nbsp;395.92 3425950&lt;br /&gt;
--------------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/3424444488699608150/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2013/02/mysql5.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/3424444488699608150'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/3424444488699608150'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2013/02/mysql5.html' title='MySQL5.6 ベンチマーク'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtl1nK7oCHMZOnrZpXGo8N94a8h89TmBsVPztJuq41dKw8vrVqdyAUk0ILVz2TAQXF7qIvjN3QrRkf_DH2gaCuzqTUzAM-cGKmNRM7sHcVvhoBcdgl5irhsX9Hp4MVrBZMhI1tr21G0hcK/s72-c/mysql.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-3880640567264799217</id><published>2013-02-07T12:03:00.001+09:00</published><updated>2018-08-31T10:45:10.982+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="install"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql5.6"/><category scheme="http://www.blogger.com/atom/ns#" term="update"/><title type='text'>mysql5.6の幕開け</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtl1nK7oCHMZOnrZpXGo8N94a8h89TmBsVPztJuq41dKw8vrVqdyAUk0ILVz2TAQXF7qIvjN3QrRkf_DH2gaCuzqTUzAM-cGKmNRM7sHcVvhoBcdgl5irhsX9Hp4MVrBZMhI1tr21G0hcK/s1600/mysql.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtl1nK7oCHMZOnrZpXGo8N94a8h89TmBsVPztJuq41dKw8vrVqdyAUk0ILVz2TAQXF7qIvjN3QrRkf_DH2gaCuzqTUzAM-cGKmNRM7sHcVvhoBcdgl5irhsX9Hp4MVrBZMhI1tr21G0hcK/s320/mysql.png&quot; width=&quot;316&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;u&gt;mysql5.6の幕開け&lt;/u&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** もくてき&lt;/span&gt;&lt;br /&gt;
mysql5.6が正式リリースされたので、mysql5.5からのアップデートをしてみようというお話&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** 環境&lt;/span&gt;&lt;br /&gt;
いつものさくらVPS1480円プラン&lt;br /&gt;
mysql5.5(remiのやつ)インストール済み&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** ぱっけーじの取得&lt;/span&gt;&lt;br /&gt;
http://dev.mysql.com/&lt;br /&gt;
ここからパッケージを持ってくる&lt;br /&gt;
ダウンロードにはアカウント登録が必要です。&lt;br /&gt;
せっかくなので登録しておきませう。&lt;br /&gt;
&lt;br /&gt;
CentOS6でインストールするので、RHEL6用のRPMをもってくる&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# ls -1&lt;br /&gt;
MySQL-client-5.6.10-1.el6.x86_64.rpm&lt;br /&gt;
MySQL-devel-5.6.10-1.el6.x86_64.rpm&lt;br /&gt;
MySQL-embedded-5.6.10-1.el6.x86_64.rpm&lt;br /&gt;
MySQL-server-5.6.10-1.el6.x86_64.rpm&lt;br /&gt;
MySQL-shared-5.6.10-1.el6.x86_64.rpm&lt;br /&gt;
MySQL-shared-compat-5.6.10-1.el6.x86_64.rpm&lt;br /&gt;
MySQL-test-5.6.10-1.el6.x86_64.rpm&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** なにも考えずにインストール&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# rpm -ivh MySQL-devel-5.6.10-1.el6.x86_64.rpm \&lt;br /&gt;
MySQL-server-5.6.10-1.el6.x86_64.rpm \&lt;br /&gt;
MySQL-shared-compat-5.6.10-1.el6.x86_64.rpm \&lt;br /&gt;
MySQL-shared-5.6.10-1.el6.x86_64.rpm \&lt;br /&gt;
MySQL-client-5.6.10-1.el6.x86_64.rpm&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
error: Failed dependencies:&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mysql-devel conflicts with MySQL-devel-5.6.10-1.el6.x86_64&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MySQL-devel conflicts with mysql-devel-5.5.29-1.el6.remi.x86_64&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mysql conflicts with MySQL-server-5.6.10-1.el6.x86_64&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mysql-server conflicts with MySQL-server-5.6.10-1.el6.x86_64&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MySQL conflicts with mysql-5.5.29-1.el6.remi.x86_64&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; MySQL-server conflicts with mysql-server-5.5.29-1.el6.remi.x86_64&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mysql conflicts with MySQL-client-5.6.10-1.el6.x86_64&lt;br /&gt;
--------------------------------------------------------------------------------&lt;/blockquote&gt;
ですよね。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** 既存のぱっけーじ確認&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# yum list installed | grep mysql&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
compat-mysql51.x86_64 5.1.54-1.el6.remi @remi&lt;br /&gt;
mysql.x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.5.29-1.el6.remi @remi&lt;br /&gt;
mysql-bench.x86_64 &amp;nbsp; &amp;nbsp;5.5.29-1.el6.remi @remi&lt;br /&gt;
mysql-devel.x86_64 &amp;nbsp; &amp;nbsp;5.5.29-1.el6.remi @remi&lt;br /&gt;
mysql-libs.x86_64 &amp;nbsp; &amp;nbsp; 5.5.29-1.el6.remi @remi&lt;br /&gt;
mysql-server.x86_64 &amp;nbsp; 5.5.29-1.el6.remi @remi&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
# rpm -qa | grep -i mysql&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
mysql-libs-5.5.29-1.el6.remi.x86_64&lt;br /&gt;
mysql-devel-5.5.29-1.el6.remi.x86_64&lt;br /&gt;
perl-DBD-MySQL-4.013-3.el6.x86_64&lt;br /&gt;
mysql-5.5.29-1.el6.remi.x86_64&lt;br /&gt;
mysql-bench-5.5.29-1.el6.remi.x86_64&lt;br /&gt;
compat-mysql51-5.1.54-1.el6.remi.x86_64&lt;br /&gt;
mysql-server-5.5.29-1.el6.remi.x86_64&lt;br /&gt;
--------------------------------------------------------------------------------&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** 既存パッケージ削除&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# yum remove mysql-libs-5.5.29-1.el6.remi.x86_64 \&lt;br /&gt;
mysql-devel-5.5.29-1.el6.remi.x86_64 \&lt;br /&gt;
mysql-5.5.29-1.el6.remi.x86_64 \&lt;br /&gt;
mysql-server-5.5.29-1.el6.remi.x86_64&lt;br /&gt;
===========================================================================================================================================================&lt;br /&gt;
&amp;nbsp;Package &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Arch &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Version &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Repository &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Size&lt;br /&gt;
===========================================================================================================================================================&lt;br /&gt;
Removing:&lt;br /&gt;
&amp;nbsp;mysql &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.5.29-1.el6.remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 29 M&lt;br /&gt;
&amp;nbsp;mysql-devel &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.5.29-1.el6.remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;598 k&lt;br /&gt;
&amp;nbsp;mysql-libs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.5.29-1.el6.remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4.1 M&lt;br /&gt;
&amp;nbsp;mysql-server &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.5.29-1.el6.remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 45 M&lt;br /&gt;
Removing for dependencies:&lt;br /&gt;
&amp;nbsp;cronie &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.4.4-7.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@anaconda-CentOS-201112091719.x86_64/6.2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 166 k&lt;br /&gt;
&amp;nbsp;cronie-anacron &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.4.4-7.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@anaconda-CentOS-201112091719.x86_64/6.2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;43 k&lt;br /&gt;
&amp;nbsp;crontabs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; noarch &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.10-33.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@anaconda-CentOS-201112091719.x86_64/6.2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.4 k&lt;br /&gt;
&amp;nbsp;mysql-bench &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.5.29-1.el6.remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@remi &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2.6 M&lt;br /&gt;
&amp;nbsp;postfix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2:2.6.6-2.2.el6_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;@anaconda-CentOS-201112091719.x86_64/6.2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9.7 M&lt;br /&gt;
&amp;nbsp;sysstat &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9.0.4-20.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @base &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;807 k&lt;br /&gt;
Transaction Summary&lt;br /&gt;
===========================================================================================================================================================&lt;br /&gt;
Remove &amp;nbsp; &amp;nbsp; &amp;nbsp; 10 Package(s)&lt;br /&gt;
Installed size: 91 M&lt;br /&gt;
Is this ok [y/N]:N&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** あらためて…。&lt;/span&gt;&lt;br /&gt;
mysqllibにみっしり依存関係ついてるのは、触った人には有名なお話。&lt;br /&gt;
さて、この対応ですが、方法はふたつ。&lt;br /&gt;
　&lt;span style=&quot;background-color: #d0e0e3;&quot;&gt;1,依存のあるぱっけーじごと消して、後ほど消えた中で必要なものもインストールしなおす&lt;/span&gt;&lt;br /&gt;
　&lt;span style=&quot;background-color: #d0e0e3;&quot;&gt;2,依存をぶったぎって、mysql関連のパッケージのみ削除する&lt;/span&gt;&lt;br /&gt;
両方メリットデメリットあるけれど、できるのであれば&lt;b&gt;&lt;u&gt;1がお勧め&lt;/u&gt;&lt;/b&gt;かなーって。&lt;br /&gt;
cronの内容とかpostfixのデータとかも、特に吹っ飛ばないし設定に関してもrpmsaveが残るので、&lt;br /&gt;
最悪初期設定に戻ったとしても、conf入れ替えてリスタートすればOKだし。&lt;br /&gt;
今後依存関係に禍根を残さないという意味で、きれいにしておいて損はないかなーって。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** ということで&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# yum remove mysql-libs-5.5.29-1.el6.remi.x86_64 \&lt;br /&gt;
mysql-devel-5.5.29-1.el6.remi.x86_64 \&lt;br /&gt;
mysql-5.5.29-1.el6.remi.x86_64 \&lt;br /&gt;
mysql-server-5.5.29-1.el6.remi.x86_64&lt;/blockquote&gt;
再度実行してばっさり。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** インストールりべんじ&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# rpm -ivh MySQL-devel-5.6.10-1.el6.x86_64.rpm \&lt;br /&gt;
MySQL-server-5.6.10-1.el6.x86_64.rpm \&lt;br /&gt;
MySQL-shared-compat-5.6.10-1.el6.x86_64.rpm \&lt;br /&gt;
MySQL-shared-5.6.10-1.el6.x86_64.rpm \&lt;br /&gt;
MySQL-client-5.6.10-1.el6.x86_64.rpm&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Preparing... &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;########################################### [100%]&lt;br /&gt;
&amp;nbsp; &amp;nbsp;1:MySQL-client &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ########################################### [ 20%]&lt;br /&gt;
&amp;nbsp; &amp;nbsp;2:MySQL-shared &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ########################################### [ 40%]&lt;br /&gt;
&amp;nbsp; &amp;nbsp;3:MySQL-shared-compat &amp;nbsp; &amp;nbsp;########################################### [ 60%]&lt;br /&gt;
&amp;nbsp; &amp;nbsp;4:MySQL-server &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ########################################### [ 80%]&lt;br /&gt;
&amp;nbsp; &amp;nbsp;5:MySQL-devel &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;########################################### [100%]&lt;br /&gt;
--------------------------------------------------------------------------------&lt;/blockquote&gt;
すんなり。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** もろとも殺されたパッケージたちの再招集&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# yum install cronie cronie-anacron crontabs postfix sysstat&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Loaded plugins: fastestmirror, security&lt;br /&gt;
Loading mirror speeds from cached hostfile&lt;br /&gt;
&amp;nbsp;* epel: ftp.jaist.ac.jp&lt;br /&gt;
Setting up Install Process&lt;br /&gt;
Resolving Dependencies&lt;br /&gt;
--&amp;gt; Running transaction check&lt;br /&gt;
---&amp;gt; Package cronie.x86_64 0:1.4.4-7.el6 will be installed&lt;br /&gt;
---&amp;gt; Package cronie-anacron.x86_64 0:1.4.4-7.el6 will be installed&lt;br /&gt;
---&amp;gt; Package crontabs.noarch 0:1.10-33.el6 will be installed&lt;br /&gt;
---&amp;gt; Package postfix.x86_64 2:2.6.6-2.2.el6_1 will be installed&lt;br /&gt;
---&amp;gt; Package sysstat.x86_64 0:9.0.4-20.el6 will be installed&lt;br /&gt;
--&amp;gt; Finished Dependency Resolution&lt;br /&gt;
Dependencies Resolved&lt;br /&gt;
===========================================================================================================================================================&lt;br /&gt;
&amp;nbsp;Package &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Arch &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Version &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Repository &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Size&lt;br /&gt;
===========================================================================================================================================================&lt;br /&gt;
Installing:&lt;br /&gt;
&amp;nbsp;cronie &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.4.4-7.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; base &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 70 k&lt;br /&gt;
&amp;nbsp;cronie-anacron &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.4.4-7.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; base &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 29 k&lt;br /&gt;
&amp;nbsp;crontabs &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;noarch &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.10-33.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; base &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10 k&lt;br /&gt;
&amp;nbsp;postfix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2:2.6.6-2.2.el6_1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; base &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2.0 M&lt;br /&gt;
&amp;nbsp;sysstat &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x86_64 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9.0.4-20.el6 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;base &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;225 k&lt;br /&gt;
Transaction Summary&lt;br /&gt;
===========================================================================================================================================================&lt;br /&gt;
Install &amp;nbsp; &amp;nbsp; &amp;nbsp; 5 Package(s)&lt;br /&gt;
Total download size: 2.4 M&lt;br /&gt;
Installed size: 11 M&lt;br /&gt;
Is this ok [y/N]: y&lt;br /&gt;
--------------------------------------------------------------------------------&lt;/blockquote&gt;
さくっと完了。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** mysqlを起動してみる&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# /etc/init.d/mysql start&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Starting MySQL. SUCCESS!&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
# mysql -V&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
mysql &amp;nbsp;Ver 14.14 Distrib 5.6.10, for Linux (x86_64) using &amp;nbsp;EditLine wrapper&lt;br /&gt;
--------------------------------------------------------------------------------&lt;/blockquote&gt;
おお。楽ちん。&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** かくにん&lt;/span&gt;&lt;br /&gt;
mysqlのエラーログを確認すると、以下のエラーが。。&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
2013-02-07 11:33:37 22172 [ERROR] Native table &#39;performance_schema&#39;.&#39;setup_actors&#39; has the wrong structure&lt;br /&gt;
--------------------------------------------------------------------------------&lt;/blockquote&gt;
デフォルトで使うでーたべーすの構成変わった？&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** mysql_upgradeしてみる&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
# mysql_upgrade -uroot -p&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Enter password:&lt;br /&gt;
Looking for &#39;mysql&#39; as: mysql&lt;br /&gt;
Looking for &#39;mysqlcheck&#39; as: mysqlcheck&lt;br /&gt;
Running &#39;mysqlcheck with default connection arguments&lt;br /&gt;
Warning: Using a password on the command line interface can be insecure.&lt;br /&gt;
Running &#39;mysqlcheck with default connection arguments&lt;br /&gt;
Warning: Using a password on the command line interface can be insecure.&lt;br /&gt;
mysql.columns_priv &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;br /&gt;
mysql.db &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;br /&gt;
mysql.event &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;br /&gt;
mysql.func &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;br /&gt;
mysql.general_log &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;br /&gt;
mysql.help_category &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;br /&gt;
mysql.help_keyword &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;br /&gt;
mysql.help_relation &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;br /&gt;
mysql.help_topic &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;br /&gt;
mysql.host &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;br /&gt;
mysql.ndb_binlog_index &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;br /&gt;
mysql.plugin &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;br /&gt;
mysql.proc &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;br /&gt;
mysql.procs_priv &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;br /&gt;
mysql.proxies_priv &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;br /&gt;
mysql.servers &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;br /&gt;
mysql.slow_log &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;br /&gt;
mysql.tables_priv &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;br /&gt;
mysql.time_zone &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;br /&gt;
mysql.time_zone_leap_second &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;br /&gt;
mysql.time_zone_name &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;br /&gt;
mysql.time_zone_transition &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;br /&gt;
mysql.time_zone_transition_type &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;br /&gt;
mysql.user &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;br /&gt;
test.Bprime &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;br /&gt;
test.bench1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;br /&gt;
test.onek &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;OK&lt;br /&gt;
test.tenk1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;br /&gt;
test.tenk2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; OK&lt;br /&gt;
Running &#39;mysql_fix_privilege_tables&#39;...&lt;br /&gt;
Warning: Using a password on the command line interface can be insecure.&lt;br /&gt;
OK&lt;br /&gt;
--------------------------------------------------------------------------------&lt;/blockquote&gt;
OKらしい。&lt;br /&gt;
&lt;br /&gt;
** 再起動して確認&lt;br /&gt;
# /etc/init.d/mysql restart&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Shutting down MySQL.. SUCCESS!&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
# /etc/init.d/mysql start&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Starting MySQL. SUCCESS!&lt;br /&gt;
--------------------------------------------------------------------------------&lt;/blockquote&gt;
再起動後特に変なエラーもなし。&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;おわり&lt;/b&gt;</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/3880640567264799217/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2013/02/mysql56.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/3880640567264799217'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/3880640567264799217'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2013/02/mysql56.html' title='mysql5.6の幕開け'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtl1nK7oCHMZOnrZpXGo8N94a8h89TmBsVPztJuq41dKw8vrVqdyAUk0ILVz2TAQXF7qIvjN3QrRkf_DH2gaCuzqTUzAM-cGKmNRM7sHcVvhoBcdgl5irhsX9Hp4MVrBZMhI1tr21G0hcK/s72-c/mysql.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-5378244796450961069</id><published>2013-02-05T11:47:00.000+09:00</published><updated>2013-02-05T12:06:57.435+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="battle"/><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="MariaDB"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><title type='text'>MariaDB vs MySQL の仁義なき兄弟対決</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtl1nK7oCHMZOnrZpXGo8N94a8h89TmBsVPztJuq41dKw8vrVqdyAUk0ILVz2TAQXF7qIvjN3QrRkf_DH2gaCuzqTUzAM-cGKmNRM7sHcVvhoBcdgl5irhsX9Hp4MVrBZMhI1tr21G0hcK/s1600/mysql.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtl1nK7oCHMZOnrZpXGo8N94a8h89TmBsVPztJuq41dKw8vrVqdyAUk0ILVz2TAQXF7qIvjN3QrRkf_DH2gaCuzqTUzAM-cGKmNRM7sHcVvhoBcdgl5irhsX9Hp4MVrBZMhI1tr21G0hcK/s320/mysql.png&quot; width=&quot;316&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;MariaDB vs MySQL の仁義なき兄弟対決&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;まりあDBって？&lt;/span&gt;&lt;br /&gt;
mysqlの創始者であらせられるMichael &quot;Monty&quot; Wideniusさんが立ち上げたプロジェクトで作成された&lt;br /&gt;
mysqlと完全互換を謳うでーたべーすえんじん。とのこと（wikiを意訳）&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;理由&lt;/span&gt;&lt;br /&gt;
次期FedoraやSUSEのデフォルトDBエンジンに採用されるとかなんとかいう噂が聞こえてくる、MariaDB。&lt;br /&gt;
お話によるとMySQLの2.7倍のパフォーマンスだとか、1.5倍のパフォーマンスだとかいろいろ聞こえてくるので、&lt;br /&gt;
じゃあ一回見てみるかということで、両社の性能対決をしてみようというお話。&lt;br /&gt;
&lt;br /&gt;
これとかで出てますね。&lt;br /&gt;
http://it.slashdot.jp/story/13/02/03/0631254/Fedora-19%E3%81%A7%E3%81%AFMySQL%E3%81%AB%E4%BB%A3%E3%81%88%E3%81%A6MariaDB%E3%82%92%E6%8E%A1%E7%94%A8&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;対決する環境&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;さくらVPS1480円プラン&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
* サーバ1&lt;br /&gt;
** ミドルウェア&lt;br /&gt;
&amp;nbsp;MySQL &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.5.29&lt;br /&gt;
&amp;nbsp;mysql-bench 5.5.29&lt;br /&gt;
** 設定&lt;br /&gt;
&amp;nbsp;yumでいれたまんまのデフォルトのmy.cnf&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
* サーバ2&lt;br /&gt;
** ミドルウェア&lt;br /&gt;
&amp;nbsp;MariaDB &amp;nbsp; &amp;nbsp; 5.5.29&lt;br /&gt;
&amp;nbsp;mysql-bench 5.5.29&lt;br /&gt;
** 設定&lt;br /&gt;
&amp;nbsp;設定差をなくすため、１のmy.cnf流用&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** 結果&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Operation &amp;nbsp; &amp;nbsp;seconds &amp;nbsp;usr &amp;nbsp; &amp;nbsp; &amp;nbsp;sys &amp;nbsp; &amp;nbsp;cpu &amp;nbsp; &amp;nbsp;tests&lt;br /&gt;
&lt;span style=&quot;background-color: #cfe2f3;&quot;&gt;MySQL &amp;nbsp;： &amp;nbsp; &amp;nbsp;5363.00 &amp;nbsp;325.59 &amp;nbsp; 55.63 &amp;nbsp;381.22 3425950&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc; color: red;&quot;&gt;MariaDB： &amp;nbsp; &amp;nbsp;6539.00 &amp;nbsp;366.44 &amp;nbsp; 75.14 &amp;nbsp;441.58 3425950&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #f4cccc;&quot;&gt;** まとめ&lt;/span&gt;&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;MySQL兄貴の大勝利！&lt;/b&gt;&lt;br /&gt;
やはり兄より優れた弟は存在しなかったのか・・・？&lt;br /&gt;
やっつけな比較なので何とも言えないですが、デフォルト設定同士だと、&lt;br /&gt;
MySQLに分があったようですにぃ。&lt;/blockquote&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtl1nK7oCHMZOnrZpXGo8N94a8h89TmBsVPztJuq41dKw8vrVqdyAUk0ILVz2TAQXF7qIvjN3QrRkf_DH2gaCuzqTUzAM-cGKmNRM7sHcVvhoBcdgl5irhsX9Hp4MVrBZMhI1tr21G0hcK/s1600/mysql.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtl1nK7oCHMZOnrZpXGo8N94a8h89TmBsVPztJuq41dKw8vrVqdyAUk0ILVz2TAQXF7qIvjN3QrRkf_DH2gaCuzqTUzAM-cGKmNRM7sHcVvhoBcdgl5irhsX9Hp4MVrBZMhI1tr21G0hcK/s320/mysql.png&quot; width=&quot;316&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;おわり&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;あとオマケ&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
MYSQL&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Benchmark DBD suite: 2.15&lt;br /&gt;
Date of test: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2013-02-05 &amp;nbsp;9:26:33&lt;br /&gt;
Running tests on: &amp;nbsp; &amp;nbsp;Linux 2.6.32-220.23.1.el6.x86_64 x86_64&lt;br /&gt;
Arguments:&lt;br /&gt;
Comments:&lt;br /&gt;
Limits from:&lt;br /&gt;
Server version: &amp;nbsp; &amp;nbsp; &amp;nbsp;MySQL 5.5.29 MariaDB log&lt;br /&gt;
Optimization: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;None&lt;br /&gt;
Hardware:&lt;br /&gt;
&lt;br /&gt;
alter-table: Total time: 79 wallclock secs ( 0.12 usr &amp;nbsp;0.04 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 csys = &amp;nbsp;0.16 CPU)&lt;br /&gt;
ATIS: Total time: 46 wallclock secs ( 3.99 usr &amp;nbsp;0.34 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 csys = &amp;nbsp;4.33 CPU)&lt;br /&gt;
big-tables: Total time: 36 wallclock secs ( 2.62 usr &amp;nbsp;0.51 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 csys = &amp;nbsp;3.13 CPU)&lt;br /&gt;
connect: Total time: 135 wallclock secs (37.48 usr 12.30 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 csys = 49.78 CPU)&lt;br /&gt;
create: Total time: 485 wallclock secs ( 7.47 usr &amp;nbsp;2.04 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 csys = &amp;nbsp;9.51 CPU)&lt;br /&gt;
insert: Total time: 5170 wallclock secs (291.62 usr 56.01 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 csys = 347.63 CPU)&lt;br /&gt;
select: Total time: 317 wallclock secs (23.57 usr &amp;nbsp;2.92 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 csys = 26.49 CPU)&lt;br /&gt;
transactions: Test skipped because the database doesn&#39;t support transactions&lt;br /&gt;
wisconsin: Total time: 132 wallclock secs ( 3.21 usr &amp;nbsp;1.10 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 csys = &amp;nbsp;4.31 CPU)&lt;br /&gt;
&lt;br /&gt;
All 9 test executed successfully&lt;br /&gt;
&lt;br /&gt;
Totals per operation:&lt;br /&gt;
Operation &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; seconds &amp;nbsp; &amp;nbsp; usr &amp;nbsp; &amp;nbsp; sys &amp;nbsp; &amp;nbsp; cpu &amp;nbsp; tests&lt;br /&gt;
alter_table_add &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 15.00 &amp;nbsp; &amp;nbsp;0.03 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.03 &amp;nbsp; &amp;nbsp; 100&lt;br /&gt;
alter_table_drop &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp; &amp;nbsp;91&lt;br /&gt;
connect &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.00 &amp;nbsp; &amp;nbsp;2.84 &amp;nbsp; &amp;nbsp;0.67 &amp;nbsp; &amp;nbsp;3.51 &amp;nbsp; 10000&lt;br /&gt;
connect+select_1_row &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9.00 &amp;nbsp; &amp;nbsp;4.30 &amp;nbsp; &amp;nbsp;1.06 &amp;nbsp; &amp;nbsp;5.36 &amp;nbsp; 10000&lt;br /&gt;
connect+select_simple &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.00 &amp;nbsp; &amp;nbsp;3.13 &amp;nbsp; &amp;nbsp;0.78 &amp;nbsp; &amp;nbsp;3.91 &amp;nbsp; 10000&lt;br /&gt;
count &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8.00 &amp;nbsp; &amp;nbsp;0.03 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.03 &amp;nbsp; &amp;nbsp; 100&lt;br /&gt;
count_distinct &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.00 &amp;nbsp; &amp;nbsp;0.13 &amp;nbsp; &amp;nbsp;0.03 &amp;nbsp; &amp;nbsp;0.16 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_distinct_2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.00 &amp;nbsp; &amp;nbsp;0.14 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.16 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_distinct_big &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9.00 &amp;nbsp; &amp;nbsp;2.51 &amp;nbsp; &amp;nbsp;0.05 &amp;nbsp; &amp;nbsp;2.56 &amp;nbsp; &amp;nbsp; 120&lt;br /&gt;
count_distinct_group &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9.00 &amp;nbsp; &amp;nbsp;0.48 &amp;nbsp; &amp;nbsp;0.03 &amp;nbsp; &amp;nbsp;0.51 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_distinct_group_on_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.00 &amp;nbsp; &amp;nbsp;0.14 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.15 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_distinct_group_on_key_parts &amp;nbsp; &amp;nbsp; &amp;nbsp;7.00 &amp;nbsp; &amp;nbsp;0.40 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.42 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_distinct_key_prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.00 &amp;nbsp; &amp;nbsp;0.12 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.13 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_group_on_key_parts &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 7.00 &amp;nbsp; &amp;nbsp;0.46 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.48 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_on_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;67.00 &amp;nbsp; &amp;nbsp;6.21 &amp;nbsp; &amp;nbsp;0.86 &amp;nbsp; &amp;nbsp;7.07 &amp;nbsp; 50100&lt;br /&gt;
create+drop &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 77.00 &amp;nbsp; &amp;nbsp;1.40 &amp;nbsp; &amp;nbsp;0.37 &amp;nbsp; &amp;nbsp;1.77 &amp;nbsp; 10000&lt;br /&gt;
create_MANY_tables &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;61.00 &amp;nbsp; &amp;nbsp;1.11 &amp;nbsp; &amp;nbsp;0.24 &amp;nbsp; &amp;nbsp;1.35 &amp;nbsp; 10000&lt;br /&gt;
create_index &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; 8&lt;br /&gt;
create_key+drop &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;101.00 &amp;nbsp; &amp;nbsp;1.81 &amp;nbsp; &amp;nbsp;0.36 &amp;nbsp; &amp;nbsp;2.17 &amp;nbsp; 10000&lt;br /&gt;
create_table &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp; &amp;nbsp;31&lt;br /&gt;
delete_all_many_keys &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 195.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
delete_big &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
delete_big_many_keys &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 195.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp; 128&lt;br /&gt;
delete_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;24.00 &amp;nbsp; &amp;nbsp;0.48 &amp;nbsp; &amp;nbsp;0.12 &amp;nbsp; &amp;nbsp;0.60 &amp;nbsp; 10000&lt;br /&gt;
delete_range &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp;12&lt;br /&gt;
drop_index &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; 8&lt;br /&gt;
drop_table &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp;28&lt;br /&gt;
drop_table_when_MANY_tables &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 34.00 &amp;nbsp; &amp;nbsp;0.52 &amp;nbsp; &amp;nbsp;0.15 &amp;nbsp; &amp;nbsp;0.67 &amp;nbsp; 10000&lt;br /&gt;
insert &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1204.00 &amp;nbsp; 16.97 &amp;nbsp; &amp;nbsp;5.71 &amp;nbsp; 22.68 &amp;nbsp;350768&lt;br /&gt;
insert_duplicates &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 13.00 &amp;nbsp; &amp;nbsp;3.47 &amp;nbsp; &amp;nbsp;1.15 &amp;nbsp; &amp;nbsp;4.62 &amp;nbsp;100000&lt;br /&gt;
insert_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 460.00 &amp;nbsp; &amp;nbsp;6.93 &amp;nbsp; &amp;nbsp;1.80 &amp;nbsp; &amp;nbsp;8.73 &amp;nbsp;100000&lt;br /&gt;
insert_many_fields &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9.00 &amp;nbsp; &amp;nbsp;0.21 &amp;nbsp; &amp;nbsp;0.05 &amp;nbsp; &amp;nbsp;0.26 &amp;nbsp; &amp;nbsp;2000&lt;br /&gt;
insert_select_1_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
insert_select_2_keys &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
min_max &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp; &amp;nbsp;60&lt;br /&gt;
min_max_on_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;18.00 &amp;nbsp; &amp;nbsp;7.95 &amp;nbsp; &amp;nbsp;1.44 &amp;nbsp; &amp;nbsp;9.39 &amp;nbsp; 85000&lt;br /&gt;
multiple_value_insert &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.00 &amp;nbsp; &amp;nbsp;0.16 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.17 &amp;nbsp;100000&lt;br /&gt;
once_prepared_select &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;18.00 &amp;nbsp; &amp;nbsp;5.00 &amp;nbsp; &amp;nbsp;1.33 &amp;nbsp; &amp;nbsp;6.33 &amp;nbsp;100000&lt;br /&gt;
order_by_big &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9.00 &amp;nbsp; &amp;nbsp;6.77 &amp;nbsp; &amp;nbsp;0.09 &amp;nbsp; &amp;nbsp;6.86 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
order_by_big_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8.00 &amp;nbsp; &amp;nbsp;6.90 &amp;nbsp; &amp;nbsp;0.09 &amp;nbsp; &amp;nbsp;6.99 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
order_by_big_key2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8.00 &amp;nbsp; &amp;nbsp;7.15 &amp;nbsp; &amp;nbsp;0.06 &amp;nbsp; &amp;nbsp;7.21 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
order_by_big_key_desc &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10.00 &amp;nbsp; &amp;nbsp;7.09 &amp;nbsp; &amp;nbsp;0.11 &amp;nbsp; &amp;nbsp;7.20 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
order_by_big_key_diff &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8.00 &amp;nbsp; &amp;nbsp;6.91 &amp;nbsp; &amp;nbsp;0.08 &amp;nbsp; &amp;nbsp;6.99 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
order_by_big_key_prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8.00 &amp;nbsp; &amp;nbsp;7.02 &amp;nbsp; &amp;nbsp;0.06 &amp;nbsp; &amp;nbsp;7.08 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
order_by_key2_diff &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.00 &amp;nbsp; &amp;nbsp;0.87 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.88 &amp;nbsp; &amp;nbsp; 500&lt;br /&gt;
order_by_key_prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.37 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.37 &amp;nbsp; &amp;nbsp; 500&lt;br /&gt;
order_by_range &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.00 &amp;nbsp; &amp;nbsp;0.34 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.35 &amp;nbsp; &amp;nbsp; 500&lt;br /&gt;
outer_join &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
outer_join_found &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
outer_join_not_found &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp; 500&lt;br /&gt;
outer_join_on_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
prepared_select &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 24.00 &amp;nbsp; &amp;nbsp;9.64 &amp;nbsp; &amp;nbsp;1.37 &amp;nbsp; 11.01 &amp;nbsp;100000&lt;br /&gt;
select_1_row &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;14.00 &amp;nbsp; &amp;nbsp;3.38 &amp;nbsp; &amp;nbsp;1.27 &amp;nbsp; &amp;nbsp;4.65 &amp;nbsp;100000&lt;br /&gt;
select_1_row_cache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12.00 &amp;nbsp; &amp;nbsp;2.85 &amp;nbsp; &amp;nbsp;1.21 &amp;nbsp; &amp;nbsp;4.06 &amp;nbsp;100000&lt;br /&gt;
select_2_rows &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 13.00 &amp;nbsp; &amp;nbsp;3.25 &amp;nbsp; &amp;nbsp;1.14 &amp;nbsp; &amp;nbsp;4.39 &amp;nbsp;100000&lt;br /&gt;
select_big &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9.00 &amp;nbsp; &amp;nbsp;7.33 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;7.33 &amp;nbsp; &amp;nbsp; &amp;nbsp;80&lt;br /&gt;
select_big_str &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4.00 &amp;nbsp; &amp;nbsp;1.73 &amp;nbsp; &amp;nbsp;0.41 &amp;nbsp; &amp;nbsp;2.14 &amp;nbsp; 10000&lt;br /&gt;
select_cache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;44.00 &amp;nbsp; &amp;nbsp;1.08 &amp;nbsp; &amp;nbsp;0.17 &amp;nbsp; &amp;nbsp;1.25 &amp;nbsp; 10000&lt;br /&gt;
select_cache2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 42.00 &amp;nbsp; &amp;nbsp;1.14 &amp;nbsp; &amp;nbsp;0.16 &amp;nbsp; &amp;nbsp;1.30 &amp;nbsp; 10000&lt;br /&gt;
select_column+column &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15.00 &amp;nbsp; &amp;nbsp;3.40 &amp;nbsp; &amp;nbsp;1.34 &amp;nbsp; &amp;nbsp;4.74 &amp;nbsp;100000&lt;br /&gt;
select_diff_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.05 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.06 &amp;nbsp; &amp;nbsp; 500&lt;br /&gt;
select_distinct &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2.00 &amp;nbsp; &amp;nbsp;0.56 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.58 &amp;nbsp; &amp;nbsp; 800&lt;br /&gt;
select_group &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 9.00 &amp;nbsp; &amp;nbsp;0.55 &amp;nbsp; &amp;nbsp;0.04 &amp;nbsp; &amp;nbsp;0.59 &amp;nbsp; &amp;nbsp;2911&lt;br /&gt;
select_group_when_MANY_tables &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.00 &amp;nbsp; &amp;nbsp;0.38 &amp;nbsp; &amp;nbsp;0.15 &amp;nbsp; &amp;nbsp;0.53 &amp;nbsp; 10000&lt;br /&gt;
select_join &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.00 &amp;nbsp; &amp;nbsp;0.24 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.25 &amp;nbsp; &amp;nbsp; 100&lt;br /&gt;
select_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;52.00 &amp;nbsp; 22.19 &amp;nbsp; &amp;nbsp;3.98 &amp;nbsp; 26.17 &amp;nbsp;200000&lt;br /&gt;
select_key2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 58.00 &amp;nbsp; 25.31 &amp;nbsp; &amp;nbsp;3.43 &amp;nbsp; 28.74 &amp;nbsp;200000&lt;br /&gt;
select_key2_return_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;52.00 &amp;nbsp; 22.41 &amp;nbsp; &amp;nbsp;3.26 &amp;nbsp; 25.67 &amp;nbsp;200000&lt;br /&gt;
select_key2_return_prim &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 55.00 &amp;nbsp; 24.10 &amp;nbsp; &amp;nbsp;3.38 &amp;nbsp; 27.48 &amp;nbsp;200000&lt;br /&gt;
select_key_prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 52.00 &amp;nbsp; 22.65 &amp;nbsp; &amp;nbsp;3.05 &amp;nbsp; 25.70 &amp;nbsp;200000&lt;br /&gt;
select_key_prefix_join &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.00 &amp;nbsp; &amp;nbsp;1.63 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;1.64 &amp;nbsp; &amp;nbsp; 100&lt;br /&gt;
select_key_return_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 53.00 &amp;nbsp; 22.98 &amp;nbsp; &amp;nbsp;4.07 &amp;nbsp; 27.05 &amp;nbsp;200000&lt;br /&gt;
select_many_fields &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.00 &amp;nbsp; &amp;nbsp;1.75 &amp;nbsp; &amp;nbsp;0.27 &amp;nbsp; &amp;nbsp;2.02 &amp;nbsp; &amp;nbsp;2000&lt;br /&gt;
select_range &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;29.00 &amp;nbsp; &amp;nbsp;2.82 &amp;nbsp; &amp;nbsp;0.11 &amp;nbsp; &amp;nbsp;2.93 &amp;nbsp; &amp;nbsp; 410&lt;br /&gt;
select_range_key2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.00 &amp;nbsp; &amp;nbsp;2.45 &amp;nbsp; &amp;nbsp;0.26 &amp;nbsp; &amp;nbsp;2.71 &amp;nbsp; 25010&lt;br /&gt;
select_range_prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.00 &amp;nbsp; &amp;nbsp;2.39 &amp;nbsp; &amp;nbsp;0.28 &amp;nbsp; &amp;nbsp;2.67 &amp;nbsp; 25010&lt;br /&gt;
select_simple &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.00 &amp;nbsp; &amp;nbsp;2.55 &amp;nbsp; &amp;nbsp;1.14 &amp;nbsp; &amp;nbsp;3.69 &amp;nbsp;100000&lt;br /&gt;
select_simple_cache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.00 &amp;nbsp; &amp;nbsp;2.17 &amp;nbsp; &amp;nbsp;0.87 &amp;nbsp; &amp;nbsp;3.04 &amp;nbsp;100000&lt;br /&gt;
select_simple_join &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 &amp;nbsp; &amp;nbsp;0.28 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.29 &amp;nbsp; &amp;nbsp; 500&lt;br /&gt;
update_big &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;23.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
update_of_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;177.00 &amp;nbsp; &amp;nbsp;2.41 &amp;nbsp; &amp;nbsp;0.80 &amp;nbsp; &amp;nbsp;3.21 &amp;nbsp; 50000&lt;br /&gt;
update_of_key_big &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 27.00 &amp;nbsp; &amp;nbsp;0.03 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.04 &amp;nbsp; &amp;nbsp; 501&lt;br /&gt;
update_of_primary_key_many_keys &amp;nbsp; &amp;nbsp; &amp;nbsp;477.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.03 &amp;nbsp; &amp;nbsp; 256&lt;br /&gt;
update_with_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1031.00 &amp;nbsp; 13.20 &amp;nbsp; &amp;nbsp;4.61 &amp;nbsp; 17.81 &amp;nbsp;300000&lt;br /&gt;
update_with_key_prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 348.00 &amp;nbsp; &amp;nbsp;7.30 &amp;nbsp; &amp;nbsp;1.89 &amp;nbsp; &amp;nbsp;9.19 &amp;nbsp;100000&lt;br /&gt;
wisc_benchmark &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.00 &amp;nbsp; &amp;nbsp;0.93 &amp;nbsp; &amp;nbsp;0.07 &amp;nbsp; &amp;nbsp;1.00 &amp;nbsp; &amp;nbsp; 114&lt;br /&gt;
TOTALS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5363.00 &amp;nbsp;325.59 &amp;nbsp; 55.63 &amp;nbsp;381.22 3425950&lt;br /&gt;
aag&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
まりあDB&lt;br /&gt;
--------------------------------------------------------------------------------&lt;br /&gt;
Benchmark DBD suite: 2.15&lt;br /&gt;
Date of test: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2013-02-05 &amp;nbsp;9:26:35&lt;br /&gt;
Running tests on: &amp;nbsp; &amp;nbsp;Linux 2.6.32-220.23.1.el6.x86_64 x86_64&lt;br /&gt;
Arguments:&lt;br /&gt;
Comments:&lt;br /&gt;
Limits from:&lt;br /&gt;
Server version: &amp;nbsp; &amp;nbsp; &amp;nbsp;MySQL 5.5.29 log&lt;br /&gt;
Optimization: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;None&lt;br /&gt;
Hardware:&lt;br /&gt;
&lt;br /&gt;
alter-table: Total time: 31 wallclock secs ( 0.09 usr &amp;nbsp;0.02 sys + &amp;nbsp;0.00 cusr &amp;nbsp;000 csys = &amp;nbsp;0.11 CPU)&lt;br /&gt;
ATIS: Total time: 40 wallclock secs ( 3.86 usr &amp;nbsp;0.24 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 csy = &amp;nbsp;4.10 CPU)&lt;br /&gt;
big-tables: Total time: 19 wallclock secs ( 1.97 usr &amp;nbsp;0.32 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.0 csys = &amp;nbsp;2.29 CPU)&lt;br /&gt;
connect: Total time: 93 wallclock secs (29.60 usr &amp;nbsp;9.89 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 sys = 39.49 CPU)&lt;br /&gt;
create: Total time: 276 wallclock secs ( 5.22 usr &amp;nbsp;1.27 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 sys = &amp;nbsp;6.49 CPU)&lt;br /&gt;
insert: Total time: 4342 wallclock secs (263.28 usr 40.53 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.0 csys = 303.81 CPU)&lt;br /&gt;
select: Total time: 278 wallclock secs (22.91 usr &amp;nbsp;2.89 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.00 sys = 25.80 CPU)&lt;br /&gt;
transactions: Test skipped because the database doesn&#39;t support transactions&lt;br /&gt;
wisconsin: Total time: 109 wallclock secs ( 2.43 usr &amp;nbsp;0.59 sys + &amp;nbsp;0.00 cusr &amp;nbsp;0.0 csys = &amp;nbsp;3.02 CPU)&lt;br /&gt;
&lt;br /&gt;
All 9 test executed successfully&lt;br /&gt;
&lt;br /&gt;
Totals per operation:&lt;br /&gt;
Operation &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; seconds &amp;nbsp; &amp;nbsp; usr &amp;nbsp; &amp;nbsp; sys &amp;nbsp; &amp;nbsp; cpu &amp;nbsp; tests&lt;br /&gt;
alter_table_add &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 38.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp; 100&lt;br /&gt;
alter_table_drop &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;36.00 &amp;nbsp; &amp;nbsp;0.03 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.04 &amp;nbsp; &amp;nbsp; &amp;nbsp;91&lt;br /&gt;
connect &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 11.00 &amp;nbsp; &amp;nbsp;5.19 &amp;nbsp; &amp;nbsp;1.34 &amp;nbsp; &amp;nbsp;6.53 &amp;nbsp; 10000&lt;br /&gt;
connect+select_1_row &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;20.00 &amp;nbsp; &amp;nbsp;5.99 &amp;nbsp; &amp;nbsp;1.64 &amp;nbsp; &amp;nbsp;7.63 &amp;nbsp; 10000&lt;br /&gt;
connect+select_simple &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12.00 &amp;nbsp; &amp;nbsp;4.99 &amp;nbsp; &amp;nbsp;1.23 &amp;nbsp; &amp;nbsp;6.22 &amp;nbsp; 10000&lt;br /&gt;
count &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp; 100&lt;br /&gt;
count_distinct &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5.00 &amp;nbsp; &amp;nbsp;0.15 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.16 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_distinct_2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.00 &amp;nbsp; &amp;nbsp;0.16 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.17 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_distinct_big &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11.00 &amp;nbsp; &amp;nbsp;2.87 &amp;nbsp; &amp;nbsp;0.05 &amp;nbsp; &amp;nbsp;2.92 &amp;nbsp; &amp;nbsp; 120&lt;br /&gt;
count_distinct_group &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 8.00 &amp;nbsp; &amp;nbsp;0.35 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.37 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_distinct_group_on_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.00 &amp;nbsp; &amp;nbsp;0.14 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.16 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_distinct_group_on_key_parts &amp;nbsp; &amp;nbsp; &amp;nbsp;9.00 &amp;nbsp; &amp;nbsp;0.39 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.41 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_distinct_key_prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3.00 &amp;nbsp; &amp;nbsp;0.11 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.13 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_group_on_key_parts &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.00 &amp;nbsp; &amp;nbsp;0.56 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.58 &amp;nbsp; &amp;nbsp;1000&lt;br /&gt;
count_on_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;72.00 &amp;nbsp; &amp;nbsp;5.58 &amp;nbsp; &amp;nbsp;0.87 &amp;nbsp; &amp;nbsp;6.45 &amp;nbsp; 50100&lt;br /&gt;
create+drop &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;125.00 &amp;nbsp; &amp;nbsp;2.19 &amp;nbsp; &amp;nbsp;0.63 &amp;nbsp; &amp;nbsp;2.82 &amp;nbsp; 10000&lt;br /&gt;
create_MANY_tables &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;75.00 &amp;nbsp; &amp;nbsp;1.26 &amp;nbsp; &amp;nbsp;0.31 &amp;nbsp; &amp;nbsp;1.57 &amp;nbsp; 10000&lt;br /&gt;
create_index &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; 8&lt;br /&gt;
create_key+drop &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;224.00 &amp;nbsp; &amp;nbsp;2.91 &amp;nbsp; &amp;nbsp;0.66 &amp;nbsp; &amp;nbsp;3.57 &amp;nbsp; 10000&lt;br /&gt;
create_table &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp; &amp;nbsp;31&lt;br /&gt;
delete_all_many_keys &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 162.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
delete_big &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
delete_big_many_keys &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 162.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp; 128&lt;br /&gt;
delete_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;32.00 &amp;nbsp; &amp;nbsp;0.54 &amp;nbsp; &amp;nbsp;0.27 &amp;nbsp; &amp;nbsp;0.81 &amp;nbsp; 10000&lt;br /&gt;
delete_range &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;14.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp; &amp;nbsp;12&lt;br /&gt;
drop_index &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; 8&lt;br /&gt;
drop_table &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp; &amp;nbsp;28&lt;br /&gt;
drop_table_when_MANY_tables &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 57.00 &amp;nbsp; &amp;nbsp;0.74 &amp;nbsp; &amp;nbsp;0.29 &amp;nbsp; &amp;nbsp;1.03 &amp;nbsp; 10000&lt;br /&gt;
insert &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1448.00 &amp;nbsp; 23.72 &amp;nbsp; 11.02 &amp;nbsp; 34.74 &amp;nbsp;350768&lt;br /&gt;
insert_duplicates &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 24.00 &amp;nbsp; &amp;nbsp;5.25 &amp;nbsp; &amp;nbsp;2.03 &amp;nbsp; &amp;nbsp;7.28 &amp;nbsp;100000&lt;br /&gt;
insert_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 527.00 &amp;nbsp; &amp;nbsp;8.96 &amp;nbsp; &amp;nbsp;3.21 &amp;nbsp; 12.17 &amp;nbsp;100000&lt;br /&gt;
insert_many_fields &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;24.00 &amp;nbsp; &amp;nbsp;0.38 &amp;nbsp; &amp;nbsp;0.08 &amp;nbsp; &amp;nbsp;0.46 &amp;nbsp; &amp;nbsp;2000&lt;br /&gt;
insert_select_1_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
insert_select_2_keys &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;15.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;br /&gt;
min_max &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6.00 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.03 &amp;nbsp; &amp;nbsp; &amp;nbsp;60&lt;br /&gt;
min_max_on_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;22.00 &amp;nbsp; &amp;nbsp;8.89 &amp;nbsp; &amp;nbsp;1.40 &amp;nbsp; 10.29 &amp;nbsp; 85000&lt;br /&gt;
multiple_value_insert &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;5.00 &amp;nbsp; &amp;nbsp;0.20 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.22 &amp;nbsp;100000&lt;br /&gt;
once_prepared_select &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;28.00 &amp;nbsp; &amp;nbsp;6.02 &amp;nbsp; &amp;nbsp;1.54 &amp;nbsp; &amp;nbsp;7.56 &amp;nbsp;100000&lt;br /&gt;
order_by_big &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.00 &amp;nbsp; &amp;nbsp;7.37 &amp;nbsp; &amp;nbsp;0.07 &amp;nbsp; &amp;nbsp;7.44 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
order_by_big_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11.00 &amp;nbsp; &amp;nbsp;9.37 &amp;nbsp; &amp;nbsp;0.11 &amp;nbsp; &amp;nbsp;9.48 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
order_by_big_key2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9.00 &amp;nbsp; &amp;nbsp;7.67 &amp;nbsp; &amp;nbsp;0.08 &amp;nbsp; &amp;nbsp;7.75 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
order_by_big_key_desc &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10.00 &amp;nbsp; &amp;nbsp;7.79 &amp;nbsp; &amp;nbsp;0.13 &amp;nbsp; &amp;nbsp;7.92 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
order_by_big_key_diff &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;8.00 &amp;nbsp; &amp;nbsp;7.22 &amp;nbsp; &amp;nbsp;0.08 &amp;nbsp; &amp;nbsp;7.30 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
order_by_big_key_prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10.00 &amp;nbsp; &amp;nbsp;7.38 &amp;nbsp; &amp;nbsp;0.06 &amp;nbsp; &amp;nbsp;7.44 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
order_by_key2_diff &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.00 &amp;nbsp; &amp;nbsp;0.65 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.66 &amp;nbsp; &amp;nbsp; 500&lt;br /&gt;
order_by_key_prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.34 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.35 &amp;nbsp; &amp;nbsp; 500&lt;br /&gt;
order_by_range &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1.00 &amp;nbsp; &amp;nbsp;0.36 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.36 &amp;nbsp; &amp;nbsp; 500&lt;br /&gt;
outer_join &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;17.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
outer_join_found &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
outer_join_not_found &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; 500&lt;br /&gt;
outer_join_on_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 10.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
prepared_select &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 36.00 &amp;nbsp; 12.42 &amp;nbsp; &amp;nbsp;1.72 &amp;nbsp; 14.14 &amp;nbsp;100000&lt;br /&gt;
select_1_row &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;19.00 &amp;nbsp; &amp;nbsp;3.81 &amp;nbsp; &amp;nbsp;1.46 &amp;nbsp; &amp;nbsp;5.27 &amp;nbsp;100000&lt;br /&gt;
select_1_row_cache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;16.00 &amp;nbsp; &amp;nbsp;3.35 &amp;nbsp; &amp;nbsp;1.37 &amp;nbsp; &amp;nbsp;4.72 &amp;nbsp;100000&lt;br /&gt;
select_2_rows &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 19.00 &amp;nbsp; &amp;nbsp;3.88 &amp;nbsp; &amp;nbsp;1.46 &amp;nbsp; &amp;nbsp;5.34 &amp;nbsp;100000&lt;br /&gt;
select_big &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;10.00 &amp;nbsp; &amp;nbsp;8.61 &amp;nbsp; &amp;nbsp;0.06 &amp;nbsp; &amp;nbsp;8.67 &amp;nbsp; &amp;nbsp; &amp;nbsp;80&lt;br /&gt;
select_big_str &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 4.00 &amp;nbsp; &amp;nbsp;1.35 &amp;nbsp; &amp;nbsp;0.33 &amp;nbsp; &amp;nbsp;1.68 &amp;nbsp; 10000&lt;br /&gt;
select_cache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;50.00 &amp;nbsp; &amp;nbsp;1.12 &amp;nbsp; &amp;nbsp;0.16 &amp;nbsp; &amp;nbsp;1.28 &amp;nbsp; 10000&lt;br /&gt;
select_cache2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 51.00 &amp;nbsp; &amp;nbsp;1.18 &amp;nbsp; &amp;nbsp;0.16 &amp;nbsp; &amp;nbsp;1.34 &amp;nbsp; 10000&lt;br /&gt;
select_column+column &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;18.00 &amp;nbsp; &amp;nbsp;3.49 &amp;nbsp; &amp;nbsp;1.47 &amp;nbsp; &amp;nbsp;4.96 &amp;nbsp;100000&lt;br /&gt;
select_diff_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.05 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.05 &amp;nbsp; &amp;nbsp; 500&lt;br /&gt;
select_distinct &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2.00 &amp;nbsp; &amp;nbsp;0.51 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.52 &amp;nbsp; &amp;nbsp; 800&lt;br /&gt;
select_group &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11.00 &amp;nbsp; &amp;nbsp;0.53 &amp;nbsp; &amp;nbsp;0.04 &amp;nbsp; &amp;nbsp;0.57 &amp;nbsp; &amp;nbsp;2911&lt;br /&gt;
select_group_when_MANY_tables &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;4.00 &amp;nbsp; &amp;nbsp;0.37 &amp;nbsp; &amp;nbsp;0.15 &amp;nbsp; &amp;nbsp;0.52 &amp;nbsp; 10000&lt;br /&gt;
select_join &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1.00 &amp;nbsp; &amp;nbsp;0.26 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.26 &amp;nbsp; &amp;nbsp; 100&lt;br /&gt;
select_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;61.00 &amp;nbsp; 24.28 &amp;nbsp; &amp;nbsp;3.43 &amp;nbsp; 27.71 &amp;nbsp;200000&lt;br /&gt;
select_key2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 68.00 &amp;nbsp; 24.69 &amp;nbsp; &amp;nbsp;3.91 &amp;nbsp; 28.60 &amp;nbsp;200000&lt;br /&gt;
select_key2_return_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;59.00 &amp;nbsp; 21.80 &amp;nbsp; &amp;nbsp;3.40 &amp;nbsp; 25.20 &amp;nbsp;200000&lt;br /&gt;
select_key2_return_prim &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 64.00 &amp;nbsp; 23.51 &amp;nbsp; &amp;nbsp;3.48 &amp;nbsp; 26.99 &amp;nbsp;200000&lt;br /&gt;
select_key_prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 60.00 &amp;nbsp; 21.69 &amp;nbsp; &amp;nbsp;3.14 &amp;nbsp; 24.83 &amp;nbsp;200000&lt;br /&gt;
select_key_prefix_join &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 2.00 &amp;nbsp; &amp;nbsp;1.50 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;1.52 &amp;nbsp; &amp;nbsp; 100&lt;br /&gt;
select_key_return_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 61.00 &amp;nbsp; 24.70 &amp;nbsp; &amp;nbsp;3.78 &amp;nbsp; 28.48 &amp;nbsp;200000&lt;br /&gt;
select_many_fields &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;11.00 &amp;nbsp; &amp;nbsp;2.23 &amp;nbsp; &amp;nbsp;0.43 &amp;nbsp; &amp;nbsp;2.66 &amp;nbsp; &amp;nbsp;2000&lt;br /&gt;
select_range &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;32.00 &amp;nbsp; &amp;nbsp;2.89 &amp;nbsp; &amp;nbsp;0.08 &amp;nbsp; &amp;nbsp;2.97 &amp;nbsp; &amp;nbsp; 410&lt;br /&gt;
select_range_key2 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6.00 &amp;nbsp; &amp;nbsp;1.88 &amp;nbsp; &amp;nbsp;0.17 &amp;nbsp; &amp;nbsp;2.05 &amp;nbsp; 25010&lt;br /&gt;
select_range_prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.00 &amp;nbsp; &amp;nbsp;2.39 &amp;nbsp; &amp;nbsp;0.25 &amp;nbsp; &amp;nbsp;2.64 &amp;nbsp; 25010&lt;br /&gt;
select_simple &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;9.00 &amp;nbsp; &amp;nbsp;2.90 &amp;nbsp; &amp;nbsp;1.08 &amp;nbsp; &amp;nbsp;3.98 &amp;nbsp;100000&lt;br /&gt;
select_simple_cache &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;7.00 &amp;nbsp; &amp;nbsp;2.53 &amp;nbsp; &amp;nbsp;0.92 &amp;nbsp; &amp;nbsp;3.45 &amp;nbsp;100000&lt;br /&gt;
select_simple_join &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.00 &amp;nbsp; &amp;nbsp;0.30 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.31 &amp;nbsp; &amp;nbsp; 500&lt;br /&gt;
update_big &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;70.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp;0.00 &amp;nbsp; &amp;nbsp; &amp;nbsp;10&lt;br /&gt;
update_of_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;241.00 &amp;nbsp; &amp;nbsp;3.07 &amp;nbsp; &amp;nbsp;1.73 &amp;nbsp; &amp;nbsp;4.80 &amp;nbsp; 50000&lt;br /&gt;
update_of_key_big &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 53.00 &amp;nbsp; &amp;nbsp;0.06 &amp;nbsp; &amp;nbsp;0.02 &amp;nbsp; &amp;nbsp;0.08 &amp;nbsp; &amp;nbsp; 501&lt;br /&gt;
update_of_primary_key_many_keys &amp;nbsp; &amp;nbsp; &amp;nbsp;424.00 &amp;nbsp; &amp;nbsp;0.04 &amp;nbsp; &amp;nbsp;0.01 &amp;nbsp; &amp;nbsp;0.05 &amp;nbsp; &amp;nbsp; 256&lt;br /&gt;
update_with_key &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1286.00 &amp;nbsp; 17.99 &amp;nbsp; &amp;nbsp;9.68 &amp;nbsp; 27.67 &amp;nbsp;300000&lt;br /&gt;
update_with_key_prefix &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 442.00 &amp;nbsp; 10.08 &amp;nbsp; &amp;nbsp;3.77 &amp;nbsp; 13.85 &amp;nbsp;100000&lt;br /&gt;
wisc_benchmark &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3.00 &amp;nbsp; &amp;nbsp;1.12 &amp;nbsp; &amp;nbsp;0.15 &amp;nbsp; &amp;nbsp;1.27 &amp;nbsp; &amp;nbsp; 114&lt;br /&gt;
TOTALS &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;6539.00 &amp;nbsp;366.44 &amp;nbsp; 75.14 &amp;nbsp;441.58 3425950&lt;br /&gt;
--------------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/5378244796450961069/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2013/02/mariadb-vs-mysql.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/5378244796450961069'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/5378244796450961069'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2013/02/mariadb-vs-mysql.html' title='MariaDB vs MySQL の仁義なき兄弟対決'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjtl1nK7oCHMZOnrZpXGo8N94a8h89TmBsVPztJuq41dKw8vrVqdyAUk0ILVz2TAQXF7qIvjN3QrRkf_DH2gaCuzqTUzAM-cGKmNRM7sHcVvhoBcdgl5irhsX9Hp4MVrBZMhI1tr21G0hcK/s72-c/mysql.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-3537821993899743066</id><published>2012-09-21T19:55:00.001+09:00</published><updated>2018-08-31T10:43:16.162+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Apache"/><category scheme="http://www.blogger.com/atom/ns#" term="APC"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>PHP5.4+APCのご利用上の注意</title><content type='html'>&lt;br /&gt;
&lt;h2&gt;
PHP5.4+APCのご利用上の注意&lt;/h2&gt;
--チューニングのTipsなどなど&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
経緯&lt;/h3&gt;
フリーのoptimizerの場合は、eAcceleratorとAPCが有名だけど、eAcceleratorはphp5.4に&lt;br /&gt;
対応しておらず、しかたなくAPCを使いますか。という状況になったりする。&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
ちがい&lt;/h3&gt;
デフォルトのメモリキャッシュの利用サイズがちがう&lt;br /&gt;
⇒APC &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ：すくなめ(Binaryによって数値が違うけど、remi-testのパッケージだと64M)&lt;br /&gt;
⇒eaccelerator：0(無制限)&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
チューニング&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Q,＜メモリの割当て設定を変更しないとパフォーマンスが下がる可能性が&lt;br /&gt;
A,APCのキャッシュは固定値を設定する為、サーバの実メモリ容量を超える設定になってしまっている可能性があるよ&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h4&gt;
たとえば：メモリ4GBのマシンでapacheを運用している場合&lt;/h4&gt;
Apache子プロセスが1個当たり10MBのメモリを利用しているとして、Maxclient 256にチューニングしてたとする。&lt;br /&gt;
APCは子プロセスごとにapc.shm_sizeの数値に従い、メモリを確保するので…&lt;br /&gt;
&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;----------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;今まで&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;256 * 10MB + もろもろ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= 3GBそこそこ &amp;nbsp; &amp;nbsp;&amp;lt; 4GB だった物が、&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;----------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;変更後&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;256 * (10MB + 64MB) + もろもろ = 18.5GBおーばー &amp;gt; 4GB になる&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #fce5cd;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;----------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;こんな感じで、わっさーと溢れる&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;動きとしてはCPU使用率が少ない割にLoadAvarageが跳ねて、数字の割にコマンドの動作などは軽いような感じ&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
ということで、&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;----------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;チューニング例１&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;48 &amp;nbsp;* (10MB + 64MB) + もろもろ = 4GB弱くらい &amp;nbsp; &amp;nbsp;&amp;gt; 4GB&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;処理速度を優先&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;----------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;チューニング例２&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;256 * (10MB + &amp;nbsp;4MB) + もろもろ = 4GB弱くらい &amp;nbsp; &amp;nbsp;&amp;gt; 4GB&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;同時アクセス数を優先&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #d9ead3;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;----------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;こんな感じにターゲットを絞って設定をいれてあげる必要がありますよ。と。&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;こうする事で、CPU使用率とLoadAvarageがシームレスにいい感じなっていきます。&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
※Apacheの子プロセス自体が利用しているメモリ量は、psコマンド等でRSSの数値を確認してネ&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
おわり&lt;/h4&gt;
</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/3537821993899743066/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2012/09/php54apc.html#comment-form' title='0 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/3537821993899743066'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/3537821993899743066'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2012/09/php54apc.html' title='PHP5.4+APCのご利用上の注意'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6014367516862219677.post-6811380792609259431</id><published>2012-09-20T18:19:00.005+09:00</published><updated>2018-08-31T10:41:39.467+09:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="database"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="mysql-mha"/><title type='text'>mysql-mhaを入れてみた！　その２</title><content type='html'>&lt;br /&gt;
&lt;h2&gt;
mysql-mhaを入れてみた！&amp;nbsp;&lt;/h2&gt;
&lt;br /&gt;
ということでー、前回は何も考えずに1サーバの構成で構築をしましたが、&lt;br /&gt;
上長構成の意味が無いので、サーバを二台用意してセットアップ。&lt;br /&gt;
監視ノードを別のサーバにして上手くいくかどうか。&lt;br /&gt;
&lt;br /&gt;
むしろこっちが本題。&lt;br /&gt;
&lt;h3&gt;
サーバ構成&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
監視サーバ :MySlaveHost&lt;br /&gt;
mysqlサーバ:MyMasterHost&lt;/blockquote&gt;
&lt;h3&gt;
以下作業内容&lt;/h3&gt;
こんなconfを準備&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
[root@MySlaveHost ~]# more /etc/app1.cnf&lt;br /&gt;
[server default]&lt;br /&gt;
# mysql user and password&lt;br /&gt;
user=repl&lt;br /&gt;
password=repl&lt;br /&gt;
ssh_user=root&lt;br /&gt;
# working directory on the manager&lt;br /&gt;
manager_workdir=/var/log/masterha/app1&lt;br /&gt;
# working directory on MySQL servers&lt;br /&gt;
remote_workdir=/var/log/masterha/app1&lt;br /&gt;
# master binary-log directory&lt;br /&gt;
master_binlog_dir=/var/lib/mysql_s1/data&lt;br /&gt;
[server1]&lt;br /&gt;
port=3306&lt;br /&gt;
hostname=[MyMasterHost&#39;s-ip]&lt;br /&gt;
[server2]&lt;br /&gt;
port=5002&lt;br /&gt;
hostname=[MyMasterHost&#39;s-ip]&lt;br /&gt;
server3]&lt;br /&gt;
port=5003&lt;br /&gt;
hostname=[MyMasterHost&#39;s-ip]&lt;/blockquote&gt;
■IPアドレスだけ書き直して、監視サーバに設置&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
[root@MySlaveHost ~]# masterha_check_repl --conf=/etc/app1.cnf&lt;br /&gt;
Tue Jun 26 16:39:14 2012 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.&lt;br /&gt;
Tue Jun 26 16:39:14 2012 - [info] Reading application default configurations from /etc/app1.cnf..&lt;br /&gt;
Tue Jun 26 16:39:14 2012 - [info] Reading server configurations from /etc/app1.cnf..&lt;br /&gt;
Tue Jun 26 16:39:14 2012 - [info] MHA::MasterMonitor version 0.53.&lt;br /&gt;
Tue Jun 26 16:39:14 2012 - [error][/usr/local/share/perl5/MHA/ServerManager.pm, ln622] Master 127.0.0.1:3306 from which slave [MyMasterHost&#39;s-ip]([MyMasterHost&#39;s-ip]:5003) replicates is not defined in the configuration file!&lt;br /&gt;
Tue Jun 26 16:39:14 2012 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln383] Error happend on checking configurations. &amp;nbsp;at /usr/local/share/perl5/MHA/MasterMonitor.pm line 298&lt;br /&gt;
Tue Jun 26 16:39:14 2012 - [error][/usr/local/share/perl5/MHA/MasterMonitor.pm, ln478] Error happened on monitoring servers.&lt;br /&gt;
Tue Jun 26 16:39:14 2012 - [info] Got exit code 1 (Not master dead).&lt;br /&gt;
MySQL Replication Health is NOT OK!&lt;/blockquote&gt;
■ん・・・？MasterのIPが127.0.0.1になっておる。なぜ？&lt;br /&gt;
&lt;br /&gt;
------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;h3&gt;
ということで、ちょっと構成を変えて検証をば。&lt;/h3&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
監視サーバ :MySlaveHost&lt;br /&gt;
Master &amp;nbsp; &amp;nbsp; :MyMasterHost(5001)&lt;br /&gt;
Slave &amp;nbsp; &amp;nbsp; &amp;nbsp;:MySlaveHost(3306)&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
[root@MySlaveHost ~]# more /etc/app1.cnf&lt;br /&gt;
[server default]&lt;br /&gt;
# mysql user and password&lt;br /&gt;
user=repl&lt;br /&gt;
password=repl&lt;br /&gt;
ssh_user=root&lt;br /&gt;
# working directory on the manager&lt;br /&gt;
manager_workdir=/var/log/masterha/app1&lt;br /&gt;
# working directory on MySQL servers&lt;br /&gt;
remote_workdir=/var/log/masterha/app1&lt;br /&gt;
# master binary-log directory&lt;br /&gt;
master_binlog_dir=/var/lib/mysql_s1/data&lt;br /&gt;
[server1]&lt;br /&gt;
hostname=MyMasterHost&lt;br /&gt;
port=5001&lt;br /&gt;
[server2]&lt;br /&gt;
hostname=MySlaveHost&lt;/blockquote&gt;
■こんな感じにapp1.cnfを変更&lt;br /&gt;
------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
[root@MySlaveHost ~]# masterha_check_repl --conf=/etc/app1.cnf&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [warning] Global configuration file /etc/masterha_default.cnf not found. Skipping.&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [info] Reading application default configurations from /etc/app1.cnf..&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [info] Reading server configurations from /etc/app1.cnf..&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [info] MHA::MasterMonitor version 0.52.&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [info] Dead Servers:&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [info] Alive Servers:&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [info] &amp;nbsp; MyMasterHost(49.212.145.136:5001)&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [info] &amp;nbsp; MySlaveHost(49.212.133.18:3306)&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [info] Alive Slaves:&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [info] &amp;nbsp; MySlaveHost(49.212.133.18:3306) &amp;nbsp;Version=5.5.25-log (oldest major version between slaves) log-bin:enabled&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [info] &amp;nbsp; &amp;nbsp; Replicating from MyMasterHost(49.212.145.136:5001)&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [info] Current Alive Master: MyMasterHost(49.212.145.136:5001)&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [info] Checking slave configurations..&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [warning] &amp;nbsp;read_only=1 is not set on slave MySlaveHost(49.212.133.18:3306).&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [warning] &amp;nbsp;relay_log_purge=0 is not set on slave MySlaveHost(49.212.133.18:3306).&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [info] Checking replication filtering settings..&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [info] &amp;nbsp;binlog_do_db= , binlog_ignore_db=&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [info] &amp;nbsp;Replication filtering check ok.&lt;br /&gt;
Thu Jun 28 11:18:30 2012 - [info] Starting SSH connection tests..&lt;br /&gt;
Thu Jun 28 11:18:31 2012 - [info] All SSH connection tests passed successfully.&lt;br /&gt;
Thu Jun 28 11:18:31 2012 - [info] Checking MHA Node version..&lt;br /&gt;
Thu Jun 28 11:18:31 2012 - [info] &amp;nbsp;Version check ok.&lt;br /&gt;
Thu Jun 28 11:18:31 2012 - [info] Checking SSH publickey authentication and checking recovery script configurations on the current master..&lt;br /&gt;
Thu Jun 28 11:18:32 2012 - [info] &amp;nbsp; Executing command: save_binary_logs --command=test --start_file=mysql-bin.000024 --start_pos=4 --binlog_dir=/var/lib/mysql_s1/data --output_file=/var/log/masterha/app1/save_binary_logs_test --manager_version=0.52&lt;br /&gt;
Thu Jun 28 11:18:32 2012 - [info] &amp;nbsp; Connecting to root@MyMasterHost(MyMasterHost)..&lt;br /&gt;
&amp;nbsp; Creating /var/log/masterha/app1 if not exists.. &amp;nbsp; &amp;nbsp;ok.&lt;br /&gt;
&amp;nbsp; Checking output directory is accessible or not..&lt;br /&gt;
&amp;nbsp; &amp;nbsp;ok.&lt;br /&gt;
&amp;nbsp; Binlog found at /var/lib/mysql_s1/data, up to mysql-bin.000024&lt;br /&gt;
Thu Jun 28 11:18:32 2012 - [info] Master setting check done.&lt;br /&gt;
Thu Jun 28 11:18:32 2012 - [info] Checking SSH publickey authentication and checking recovery script configurations on all alive slave servers..&lt;br /&gt;
Thu Jun 28 11:18:32 2012 - [info] &amp;nbsp; Executing command : apply_diff_relay_logs --command=test --slave_user=repl --slave_host=MySlaveHost --slave_ip=49.212.133.18 --slave_port=3306 --workdir=/var/log/masterha/app1 --target_version=5.5.25-log --manager_version=0.52 --relay_log_info=/var/lib/mysql/data/relay-log.info &amp;nbsp;--slave_pass=xxx&lt;br /&gt;
Thu Jun 28 11:18:32 2012 - [info] &amp;nbsp; Connecting to root@49.212.133.18(MySlaveHost)..&lt;br /&gt;
&amp;nbsp; Checking slave recovery environment settings..&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Opening /var/lib/mysql/data/relay-log.info ... ok.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Relay log found at /var/lib/mysql/data, up to mysqld-relay-bin.000002&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Temporary relay log file is /var/lib/mysql/data/mysqld-relay-bin.000002&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Testing mysql connection and privileges.. done.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Testing mysqlbinlog output.. done.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; Cleaning up test file(s).. done.&lt;br /&gt;
Thu Jun 28 11:18:33 2012 - [info] Slaves settings check done.&lt;br /&gt;
Thu Jun 28 11:18:33 2012 - [info]&lt;br /&gt;
MyMasterHost (current master)&lt;br /&gt;
&amp;nbsp;+--MySlaveHost&lt;br /&gt;
Thu Jun 28 11:18:33 2012 - [info] Checking replication health on MySlaveHost..&lt;br /&gt;
Thu Jun 28 11:18:33 2012 - [info] &amp;nbsp;ok.&lt;br /&gt;
Thu Jun 28 11:18:33 2012 - [warning] master_ip_failover_script is not defined.&lt;br /&gt;
Thu Jun 28 11:18:33 2012 - [warning] shutdown_script is not defined.&lt;br /&gt;
Thu Jun 28 11:18:33 2012 - [info] Got exit code 0 (Not master dead).&lt;br /&gt;
MySQL Replication Health is OK.&lt;/blockquote&gt;
■えっ。。。なんかうまくいってるんですけど・・・&lt;br /&gt;
&amp;nbsp; Master-Slaveが同一hostで 3306port 以外の場合はだめってこと？&lt;br /&gt;
&amp;nbsp; 試しに、以下の構成で確認してみたらだめだった。&lt;br /&gt;
&amp;nbsp; Master:MyMasterHost(5001)&lt;br /&gt;
&amp;nbsp; Slave1:MySlaveHost(3306)&lt;br /&gt;
&amp;nbsp; Slave2:MyMasterHost(5002)&lt;br /&gt;
------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
■一応確認&lt;br /&gt;
&amp;nbsp; Slave1のportを変えてみる。&lt;br /&gt;
&amp;nbsp; 以下の構成でも特に問題無く大丈夫だった。なるほどなー。&lt;br /&gt;
&amp;nbsp; Master:MyMasterHost(5001)&lt;br /&gt;
&amp;nbsp; Slave1:MySlaveHost(5002)&lt;br /&gt;
&lt;br /&gt;
-----------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
という事で纏め&lt;/h3&gt;
&lt;h4&gt;
だいじょうぶな構成&lt;/h4&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
1,全部一個ですませる&lt;br /&gt;
&amp;nbsp; 監視ノード→ServerA&lt;br /&gt;
&amp;nbsp; DBmaster &amp;nbsp;→ServerA&lt;br /&gt;
&amp;nbsp; DBslave &amp;nbsp; →ServerA&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
2,監視とDBmasterを分ける&lt;br /&gt;
&amp;nbsp; 監視ノード→ServerB&lt;br /&gt;
&amp;nbsp; DBmaster &amp;nbsp;→ServerA&lt;br /&gt;
&amp;nbsp; DBslave &amp;nbsp; →ServerB&lt;br /&gt;
&amp;nbsp; ※MasterとSlaveを別hostにする必要がある&lt;/blockquote&gt;
&lt;br /&gt;
&lt;h4&gt;
だめな構成&lt;/h4&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
1,監視とDBを分ける&lt;br /&gt;
&amp;nbsp; 監視ノード→ServerA&lt;br /&gt;
&amp;nbsp; DBmaster &amp;nbsp;→ServerB&lt;br /&gt;
&amp;nbsp; DBslave &amp;nbsp; →ServerB&lt;br /&gt;
&amp;nbsp; ※どうやってもMasterのIPアドレスが127.0.0.1になる不具合&lt;/blockquote&gt;
&lt;br /&gt;
上記の挙動は正常なの？バグなの？&lt;br /&gt;
&lt;br /&gt;
おわり&lt;br /&gt;
&lt;br /&gt;
-----------------------------------------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
おまけ的備忘録&lt;/h3&gt;
毎回わすれる・・・&lt;br /&gt;
- ユーザー追加(rootとおなじ権限)&lt;br /&gt;
&amp;nbsp; GRANT ALL PRIVILEGES ON *.* TO repl@MySlaveHost IDENTIFIED BY &#39;repl&#39; WITH GRANT OPTION;&lt;br /&gt;
&lt;br /&gt;
- ユーザー削除&lt;br /&gt;
&amp;nbsp; DELETE FROM mysql.user WHERE user=&#39;repl&#39; AND host=&#39;localhost&#39;;&lt;br /&gt;
&lt;br /&gt;
- slave の準備&lt;br /&gt;
&amp;nbsp; CHANGE MASTER TO MASTER_HOST = &#39;MySlaveHost&#39;,&lt;br /&gt;
&amp;nbsp; MASTER_USER = &#39;repl&#39;,&lt;br /&gt;
&amp;nbsp; MASTER_PASSWORD = &#39;repl&#39;,&lt;br /&gt;
&amp;nbsp; MASTER_PORT = 5002,&lt;br /&gt;
&amp;nbsp; MASTER_LOG_FILE = &#39;mysql-bin.000004&#39;,&lt;br /&gt;
&amp;nbsp; MASTER_LOG_POS = 107;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://laporz.blogspot.com/feeds/6811380792609259431/comments/default' title='コメントの投稿'/><link rel='replies' type='text/html' href='http://laporz.blogspot.com/2012/09/mysql-mha_20.html#comment-form' title='1 件のコメント'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/6811380792609259431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6014367516862219677/posts/default/6811380792609259431'/><link rel='alternate' type='text/html' href='http://laporz.blogspot.com/2012/09/mysql-mha_20.html' title='mysql-mhaを入れてみた！　その２'/><author><name>test</name><uri>http://www.blogger.com/profile/14247508076926746638</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>