{"id":26604,"date":"2024-08-13T09:57:28","date_gmt":"2024-08-13T00:57:28","guid":{"rendered":"https:\/\/www.skyarch.net\/blog\/?p=26604"},"modified":"2024-08-13T09:57:28","modified_gmt":"2024-08-13T00:57:28","slug":"amazon-rds-for-mysql-%e3%81%ae-mysql-8-0-%e3%81%a8-mysql-8-4-%e3%82%92%e6%af%94%e8%bc%83%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/www.skyarch.net\/blog\/amazon-rds-for-mysql-%e3%81%ae-mysql-8-0-%e3%81%a8-mysql-8-4-%e3%82%92%e6%af%94%e8%bc%83%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f\/","title":{"rendered":"Amazon RDS for MySQL \u306e MySQL 8.0 \u3068 MySQL 8.4 \u3092\u6bd4\u8f03\u3057\u3066\u307f\u305f"},"content":{"rendered":"<h2>\u306f\u3058\u3081\u306b<\/h2>\n<p>Amazon RDS for MySQL \u306e RDS \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30d7\u30ec\u30d3\u30e5\u30fc\u74b0\u5883 \u306b\u3066\u3001MySQL 8.4 \u3092\u4f7f\u3063\u3066\u6bd4\u8f03\u3057\u3066\u307f\u305f<\/p>\n<h2>\u76ee\u6b21<\/h2>\n<ul>\n<li><a href=\"#overview\">\u624b\u9806\u306e\u6982\u8981<\/a><\/li>\n<li><a href=\"#env\">\u5b9f\u884c\u74b0\u5883<\/a><\/li>\n<li><a href=\"#tejun\">\u624b\u9806<\/a><\/li>\n<li><a href=\"#matome\">\u307e\u3068\u3081<\/a><\/li>\n<\/ul>\n<h2 id=\"overview\">\u624b\u9806\u306e\u6982\u8981<\/h2>\n<ol>\n<li>\u5404\u7a2eAWS\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u7528\u610f<\/li>\n<li>sysbench-tpcc \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li>sysbench\u306e\u30b5\u30f3\u30d7\u30ebDB\u30c7\u30fc\u30bf\u306e\u6295\u5165<\/li>\n<li>\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u5b9f\u884c<\/li>\n<\/ol>\n<h2 id=\"env\">\u5b9f\u884c\u74b0\u5883<\/h2>\n<p>Rocky Linux 9<\/p>\n<h2 id=\"tejun\">\u624b\u9806<\/h2>\n<h3>\u5404\u7a2eAWS\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u7528\u610f<\/h3>\n<p>RDS\u5358\u4f53\u3067\u306f\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u306f\u306a\u3044\u306e\u3067\u3001\u4f55\u3089\u304b\u306eDB\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u306e\u7528\u610f\u304c\u5fc5\u8981\u3067\u3059\u3002<br \/>\n\u4eca\u56de\u306fLinux\u3067\u7c21\u5358\u306b\u7528\u610f\u3067\u304d\u308bsysbench-tpcc\u3092\u63a1\u7528\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>RDS \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30d7\u30ec\u30d3\u30e5\u30fc\u74b0\u5883 \u306f US East ((Ohio)us-east-2 ) \u306e\u30ea\u30fc\u30b8\u30e7\u30f3\u3067\u306e\u307f\u5229\u7528\u53ef\u80fd\u3067\u3059\u306e\u3067\u3001<br \/>\n\u3053\u3061\u3089\u306e\u30ea\u30fc\u30b8\u30e7\u30f3\u3067\u4e0b\u8a18\u6a5f\u5668\u306e\u7528\u610f\u3092\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u25cf\u30ea\u30fc\u30b8\u30e7\u30f3<br \/>\nus-east-2 (\u30aa\u30cf\u30a4\u30aa)<\/p>\n<p>\u25cfEC2<br \/>\nm7i.xlarge<br \/>\n ( Rocky Linux 9.0 \u3001\u500b\u4eba\u7684\u306b\u597d\u307f\u306eOS\u3067 \u6df1\u3044\u7406\u7531\u306f\u306a\u3044\u3067\u3059\u3002RHEL9\u3084AlmaLinux9\u3067\u3082\u672c\u8a66\u9a13\u306f\u540c\u69d8\u306b\u5b9f\u65bd\u53ef\u80fd\u306a\u898b\u8fbc\u307f\u3067\u3059)<br \/>\n- EBS : gp3 30GB<br \/>\n- MySQL\u30af\u30e9\u30a4\u30a2\u30f3\u30c8 : mysql-community-client-8.4.2-1.el9.x86_64.rpm \u203bMySQL Community\u306eRHEL9\u5411\u3051\u30ea\u30dd\u30b8\u30c8\u30ea\u5229\u7528<br \/>\n- \u30d9\u30f3\u30c1\u30de\u30fc\u30af\u30bd\u30d5\u30c8 : epel\u30ea\u30dd\u30b8\u30c8\u30ea\u306e sysbench 1.0.20 \u3092\u5229\u7528\u3002<\/p>\n<p>\u25cfRDS<br \/>\n1. MySQL 8.4.1  db.m6i.large S-AZ gp3 100GB (RDS \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30d7\u30ec\u30d3\u30e5\u30fc\u74b0\u5883\u7248)<br \/>\n2. MySQL 8.0.39 db.m6i.large S-AZ gp3 100GB (\u901a\u5e38\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u3082\u306e)<\/p>\n<h3>sysbench \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>Linux\u4e2d\u306b\u3066\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u306b\u3066sysbench \u53ca\u3073\u5fc5\u9808\u30b3\u30de\u30f3\u30c9\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5b9f\u65bd<\/p>\n<pre>\nsudo dnf install epel-release\nsudo dnf install sysbench git\nsudo dnf install https:\/\/dev.mysql.com\/get\/mysql84-community-release-el9-1.noarch.rpm\nsudo dnf install mysql mysql-devel\n<\/pre>\n<p>\u4f5c\u696d\u7528\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4f5c\u6210\u3068\u79fb\u52d5<\/p>\n<pre>\nmkdir ~\/prj\ncd ~\/prj\n<\/pre>\n<p>\u6700\u65b0\u30ea\u30dd\u30b8\u30c8\u30ea\u306eclone<\/p>\n<pre>\ngit clone https:\/\/github.com\/Percona-Lab\/sysbench-tpcc.git\n<\/pre>\n<p>\u30b5\u30f3\u30d7\u30ebDB\u30c7\u30fc\u30bf\u306eDB\u4f5c\u6210<\/p>\n<pre>\n\u203b\u4ee5\u964d\u3001\n${rds-endpoint} \u306e\u90e8\u5206\u306fRDS\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306b\u7f6e\u63db\n${rds-dbusername} \u306e\u90e8\u5206\u306fDB\u30e6\u30fc\u30b6\u306b\u7f6e\u63db\n${rds-dbuserpass} \u306e\u90e8\u5206\u306fDB\u30e6\u30fc\u30b6\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u7f6e\u63db\n\u3068\u3057\u3066\u304f\u3060\u3055\u3044\u3002\n\nmysql -u${rds-dbusername} -p${rds-dbuserpass} -h${rds-endpoint} -e \"create database sbtest2;\"\n<\/pre>\n<p>\u30b5\u30f3\u30d7\u30ebDB\u30c7\u30fc\u30bf\u306e\u6295\u5165<\/p>\n<pre>\n.\/tpcc.lua --mysql-host=${rds-endpoint} --mysql-user=${rds-dbusername} --mysql-password=${rds-dbuserpass} prepare\n<\/pre>\n<p>\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u5b9f\u884c<\/p>\n<pre>\n.\/tpcc.lua --mysql-host=${rds-endpoint} --mysql-user=${rds-dbusername} --mysql-password=${rds-dbuserpass} run\n<\/pre>\n<h3>\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u7d50\u679c<\/h3>\n<p>3\u56de\u8a08\u6e2c\u3057\u3001\u5e73\u5747\u3044\u305f\u3057\u307e\u3057\u305f\u3002<\/p>\n<table>\n<thead>\n<tr>\n<th>MySQLversion<\/th>\n<th>QueriesRead<\/th>\n<th>QueriesWrite<\/th>\n<th>QueriesOther<\/th>\n<th>QueriesTotal<\/th>\n<th>transactions<\/th>\n<th>queries<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>8.0<\/td>\n<td>3044<\/td>\n<td>3187<\/td>\n<td>477<\/td>\n<td>6708<\/td>\n<td>237  (23.68 per sec.)<\/td>\n<td>6708  (670.20 per sec.)<\/td>\n<\/tr>\n<tr>\n<td>8.4<\/td>\n<td>4421<\/td>\n<td>4567<\/td>\n<td>705<\/td>\n<td>9693<\/td>\n<td>351  (35.09 per sec.)<\/td>\n<td>9693  (968.96 per sec.)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6ce8\u76ee\u3059\u3079\u304d\u306f<br \/>\ntransactions \u3068 queries \u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306f\u51e6\u7406\u3067\u304d\u305f\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304a\u3088\u3073\u30af\u30a8\u30ea\u6570\u306b\u306a\u3063\u3066\u304a\u308a\u3001\u5b9f\u969b\u306eDB\u30ec\u30b9\u30dd\u30f3\u30b9\u306e\u4f7f\u7528\u611f\u306b\u76f4\u7d50\u3059\u308b\u3053\u3068\u304c\u591a\u3044\u5024\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>MySQL8.4\u306e\u7d50\u679c\u304cMySQL8.0\u306e\u7d50\u679c\u306e25%\u307b\u3069\u65e9\u3044\u7d50\u679c\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2 id=\"matome\">\u307e\u3068\u3081<\/h2>\n<p>\u5c06\u6765\u7684\u306bMySQL8.4\u306e\u5229\u7528\u304c\u5fc5\u9808\u306a\u6642\u4ee3\u304c\u6765\u305f\u5834\u5408\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u30a8\u30f3\u30b8\u30f3\u3084\u30d1\u30e9\u30e1\u30fc\u30bf\u5024\u304c\u9069\u5207\u3067\u3042\u308c\u3070<br \/>\nMySQL8.4\u306b\u5909\u66f4\u3059\u308b\u3060\u3051\u3067\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u52d5\u4f5c\u9ad8\u901f\u5316\u3092\u72d9\u3046\u3053\u3068\u304c\u3067\u304d\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u5b89\u5b9a\u7248\u3068\u3057\u3066\u5229\u7528\u53ef\u80fd\u3068\u306a\u3063\u305f\u5834\u5408\u3001\u7a4d\u6975\u7684\u306b\u4f7f\u7528\u3057\u3066\u3044\u304d\u305f\u3044\u3067\u3059\u306d<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b Amazon RDS for MySQL \u306e RDS \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u30d7\u30ec\u30d3\u30e5\u30fc\u74b0\u5883 \u306b\u3066\u3001MySQL 8.4 \u3092\u4f7f\u3063\u3066\u6bd4\u8f03\u3057\u3066\u307f\u305f \u76ee\u6b21 \u624b\u9806\u306e\u6982\u8981 \u5b9f\u884c\u74b0\u5883 \u624b\u9806 \u307e\u3068\u3081 \u624b\u9806\u306e\u6982\u8981 \u5404\u7a2eAWS\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306e\u7528&#8230;<\/p>\n","protected":false},"author":43,"featured_media":14380,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_locale":"ja","_original_post":"https:\/\/www.skyarch.net\/blog\/?p=26604","footnotes":""},"categories":[109],"tags":[],"class_list":{"0":"post-26604","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-rds","8":"ja"},"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/26604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/users\/43"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/comments?post=26604"}],"version-history":[{"count":6,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/26604\/revisions"}],"predecessor-version":[{"id":26610,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/posts\/26604\/revisions\/26610"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media\/14380"}],"wp:attachment":[{"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/media?parent=26604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/categories?post=26604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skyarch.net\/blog\/wp-json\/wp\/v2\/tags?post=26604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}