{"id":10719,"date":"2024-01-26T17:27:47","date_gmt":"2024-01-26T09:27:47","guid":{"rendered":"https:\/\/www.orczhou.com\/?p=10719"},"modified":"2024-12-18T15:16:24","modified_gmt":"2024-12-18T07:16:24","slug":"mysql-performance-testing-on-oracle-cloud-infrastructure","status":"publish","type":"post","link":"https:\/\/www.orczhou.com\/index.php\/2024\/01\/mysql-performance-testing-on-oracle-cloud-infrastructure\/","title":{"rendered":"Oracle Cloud\u4e0a\u7684MySQL\u6027\u80fd\u6d4b\u8bd5"},"content":{"rendered":"\n<p class=\"has-text-color has-link-color wp-elements-c0bd6e055594a613b86afdd65aacd74f\" style=\"color:#706868;font-size:0.75em\">\u672c\u95ee\u662f\u4e00\u4e2a\u7cfb\u5217\u6587\u7ae0\u7684\u4e00\u90e8\u5206<em>\uff0c\u8be5\u7cfb\u5217\u8f83\u4e3a\u5b8c\u6574\u7684\u5bf9\u5404\u4e2a\u4e91\u5382\u5546\u7684RDS MySQL\u8fdb\u884c\u4e86\u6d4b\u8bd5\uff0c\u5305\u62ec\u4e86\u963f\u91cc\u4e91\u3001\u817e\u8baf\u4e91\u3001\u534e\u4e3a\u4e91\u3001\u767e\u5ea6\u4e91\u3001AWS\u3001Azure\u3001GCP\u3001Oracle Cloud\u7b49\uff0c\u66f4\u591a\u53c2\u8003\uff1a<a href=\"https:\/\/www.orczhou.com\/index.php\/cloud-database-performance-rds-mysql\/\">\u4e91\u6570\u636e\u5e93RDS MySQL\u7684\u6027\u80fd<\/a>\u3002<\/em><\/p>\n\n\n\n<p>\u5728MySQL\u793e\u533a\u7684\u5e2e\u52a9\u4e0b\uff0c\u7ec8\u4e8e\u6210\u529f\u5f00\u901a\u4e86Oracle Cloud\uff0c\u4e8e\u662f\uff0c\u7b2c\u4e00\u65f6\u95f4\u6d4b\u8bd5\u4e86\u4e00\u4e0b\u5728Oracle Cloud\u4e0a\u6258\u7ba1MySQL\uff0c\u770b\u770bOracle MySQL\u539f\u5382\u7684\u6027\u80fd\u8868\u73b0\u5982\u4f55\u3002<\/p>\n\n\n\n<p>\u5173\u6ce8\u6211\u670b\u53cb\u5708\u7684\u5e94\u8be5\u77e5\u9053\uff0c\u5728\u56fd\u5185\u81ea\u52a9\u7684\u6ce8\u518cOracle Cloud\u771f\u7684\u975e\u5e38\u4e0d\u5bb9\u6613\u3002\u6240\u4ee5\uff0c\u7279\u522b\u611f\u8c22Oracle MySQL\u539f\u5382\u5de5\u7a0b\u5e08\u5f90\u8f76\u97ec\u7684\u5e2e\u52a9\uff0c\u4ed6\u4e5f\u662f\u300aMySQL\u9ad8\u53ef\u7528\u89e3\u51b3\u65b9\u6848-\u4ece\u4e3b\u4ece\u590d\u5236\u5230InnoDB Cluster\u67b6\u6784\u300b\u7684\u4f5c\u8005\uff0c\u4ed6\u7684\u516c\u4f17\u53f7\u662f\u201cMySQL\u89e3\u51b3\u65b9\u6848\u5de5\u7a0b\u5e08\u201d\uff0c\u611f\u5174\u8da3\u53ef\u4ee5\u5173\u6ce8\u4ed6\u7684\u516c\u4f17\u53f7\u3002<\/p>\n\n\n\n<p>\u56de\u5230\u6b63\u6587\uff0cOracle Cloud\u7684\u5168\u79f0\u662f&#8221;Oracle Cloud Infrastructure&#8221;\uff0c\u4e5f\u7ecf\u5e38\u88ab\u7b80\u79f0\u4e3a&#8221;OCI&#8221;\u3002\u5728OCI\u4e0a\u63d0\u4f9b\u7684MySQL\u670d\u52a1\uff0c\u76f8\u8f83\u4e8eAWS\u3001\u963f\u91cc\u4e91\u6765\u8bf4\uff0c\u4ea7\u54c1\u5f62\u6001\u4e5f\u6bd4\u8f83\u7b80\u5355\u3002\u9996\u5148\uff0c\u6258\u7ba1MySQL\u5728\u5206\u7c7b\u201cDatabases-&gt;MySQL HeatWave-&gt;DB Systems\u201d\u8fd9\u4e2a\u7c7b\u76ee\u4e0b\uff0c\u5728\u5b9e\u4f8b\u521b\u5efa\u8fc7\u7a0b\u4e2d\uff0c\u6d89\u53ca\u7684\u9009\u9879\u4e0d\u7b97\u591a\uff0c\u4f46\u662f\u56e0\u4e3a\u540d\u8bcd\/\u5b9a\u4e49\u4e0e\u5176\u4ed6\u4e91\u5382\u5546\u6709\u4e00\u4e9b\u4e0d\u540c\uff0c\u6240\u4ee5\u8fd9\u91cc\u505a\u4e00\u4e9b\u89e3\u91ca\u3002Oracle Cloud\u4e0a\u7684\u6258\u7ba1MySQL\u4e3b\u8981\u9009\u9879\u4e3a\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9ad8\u53ef\u7528\u7c7b\u578b\uff08\u5355\u8282\u70b9\/standalone\u3001\u4e09\u8282\u70b9\/HA\uff09<\/li>\n\n\n\n<li>\u89c4\u683c\u5927\u5c0f<\/li>\n\n\n\n<li>\u4e3b\u53ef\u7528\u533a\u9009\u62e9<\/li>\n\n\n\n<li>\u7a7a\u95f4\u5927\u5c0f\uff08IOPS\/\u541e\u5410\u91cf\u4e0e\u6b64\u76f8\u5173\uff09<\/li>\n<\/ul>\n\n\n\n<p>\u5728\u672c\u6b21\u6d4b\u8bd5\u4e2d\uff0c\u4e00\u5171\u8fdb\u884c\u4e86\u4e09\u7ec4\u6d4b\u8bd5\u3002\u89c4\u683c\u5927\u5c0f\u7edf\u4e00\u4e3a\uff1a2 OCPU\uff08Oracle CPU\uff0932GB\uff0c100GB\u5b58\u50a8\uff08\u5bf9\u5e94\u76847500 IOPS\uff09\uff0c\u89c4\u683c\u4ee3\u7801\u4e3a<code>MySQL.VM.Standard.E4.2.32GB<\/code>\u3002\u4e09\u7ec4\u6d4b\u8bd5\u5bf9\u6bd4\u9879\u5206\u522b\u4e3a\uff1a\u5355\u8282\u70b9 vs \u4e09\u8282\u70b9\u548c\u540c\u53ef\u7528\u533a vs \u8de8\u53ef\u7528\u533a\u3002\u4e09\u7ec4\u6d4b\u8bd5\u5177\u4f53\u4e3a\uff1a\u8de8\u53ef\u7528\u533a\u7684\u4e09\u8282\u70b9\u6d4b\u8bd5\u3001\u540c\u53ef\u7528\u533a\u7684\u4e09\u8282\u70b9\u6d4b\u8bd5\u3001\u540c\u53ef\u7528\u533a\u7684\u5355\u8282\u70b9\u6d4b\u8bd5\u3002\u8be6\u7ec6\u53c2\u6570\u8868\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"265\" src=\"https:\/\/www.orczhou.com\/wp-content\/uploads\/2024\/01\/image-12-1024x265.png\" alt=\"\" class=\"wp-image-10746\" srcset=\"https:\/\/www.orczhou.com\/wp-content\/uploads\/2024\/01\/image-12-1024x265.png 1024w, https:\/\/www.orczhou.com\/wp-content\/uploads\/2024\/01\/image-12-300x78.png 300w, https:\/\/www.orczhou.com\/wp-content\/uploads\/2024\/01\/image-12-768x199.png 768w, https:\/\/www.orczhou.com\/wp-content\/uploads\/2024\/01\/image-12.png 1142w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6574\u4f53\u6027\u80fd\u8d8b\u52bf\u56fe<\/h4>\n\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"754\" src=\"https:\/\/www.orczhou.com\/wp-content\/uploads\/2024\/01\/image-10-1024x754.png\" alt=\"\" class=\"wp-image-10739\" srcset=\"https:\/\/www.orczhou.com\/wp-content\/uploads\/2024\/01\/image-10-1024x754.png 1024w, https:\/\/www.orczhou.com\/wp-content\/uploads\/2024\/01\/image-10-300x221.png 300w, https:\/\/www.orczhou.com\/wp-content\/uploads\/2024\/01\/image-10-768x566.png 768w, https:\/\/www.orczhou.com\/wp-content\/uploads\/2024\/01\/image-10.png 1512w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\u6574\u4f53\u4e0a\uff0cOCI\u4e0a\u7684MySQL\u9ad8\u53ef\u7528\u7248\u672c\uff08MGR\u4e09\u8282\u70b9\uff09\u6027\u80fd\u8981\u6bd4\u5355\u8282\u70b9\u4f4e\u7ea620%\u3002\u5728\u4e09\u8282\u70b9\u7684\u4e24\u6b21\u6d4b\u8bd5\u4e0b\uff0c\u8de8\u53ef\u7528\u533a\u4e0e\u540c\u53ef\u7528\u533a\u6709\u7740\u51e0\u4e4e\u76f8\u540c\u7684\u6027\u80fd\u8868\u73b0\uff0c\u4ece\u5ef6\u8fdf\u4e0a\u6765\u770b\uff0c\u4e5f\u975e\u5e38\u63a5\u8fd1\uff0c\u53ef\u7528\u533a\u4e4b\u95f4\u7684\u5ef6\u8fdf\u7ea6\u4e3a\u767e\u5fae\u79d2\u7ea7\u522b\u3002<\/p>\n\n\n\n<p>\u76f8\u6bd4\u4e8e\u5176\u4ed6\u4e91\u5382\u5546\uff0cOCI\u4e0a\u7684MySQL\u6027\u80fd\u8868\u73b0\uff0c\u5e76\u4e0d\u7b97\u9ad8\u7684\u3002\u4ece\u67b6\u6784\u5c42\u9762\uff0cOracle MySQL\u662f\u552f\u4e00\u4e00\u4e2a\u9009\u62e9\u4e86MGR\u6765\u5b9e\u73b0\u9ad8\u53ef\u7528\u3001\u8de8\u53ef\u7528\u533a\u6570\u636e\u4e00\u81f4\u6027\u7684\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">OCI\u4e0a\u7684\u533a\u57df\u4e0e\u53ef\u7528\u533a<\/h4>\n\n\n\n<p>\u5728MySQL\u7684\u5b9e\u4f8b\u521b\u5efa\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u6709\u4e00\u4e9b\u8bf8\u5982\uff1aAD\u3001FD\uff08Fault Domins\uff09\u7b49\u9009\u9879\u3002\u8fd9\u662fOCI\u7279\u6709\u7684\u5173\u4e8e\u533a\u57df\u3001\u53ef\u7528\u533a\u7b49\u9009\u9879\u3002\u5173\u4e8e\u533a\u57df\u548c\u53ef\u7528\u533a\u7684\u6982\u5ff5\uff0cOracle Cloud\u4e0e\u5176\u4ed6\u4e91\u5382\u5546\u867d\u7136\u90fd\u662f\u76f8\u540c\u7684\u6982\u5ff5\uff0c\u4f46\u662f\u7528\u4e86\u5b8c\u5168\u4e0d\u540c\u7684\u540d\u79f0\uff0c\u4e5f\u662f\u975e\u5e38\u5bb9\u6613\u8ba9\u4eba\u56f0\u60d1\u7684\u3002<\/p>\n\n\n\n<p>\u5728Oracle\u4e2d\uff0c\u5206\u4e86\u51e0\u5c42\u6982\u5ff5\uff1aRegion-&gt;Availability Domains-&gt;Fault Domains\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Region\u4e0e\u5176\u4ed6\u4e91\u5382\u5546\u533a\u57df\u6982\u5ff5\u76f8\u540c\uff1b<\/li>\n\n\n\n<li>Fault Domains\u5219\u4e0e\u5176\u4ed6\u4e91\u5382\u5546\u7684\u201c\u53ef\u7528\u533a\u201d\u5bf9\u5e94\uff1b<\/li>\n\n\n\n<li>\u5728OCI\u4e2d\uff0c\u901a\u5e38\u4e09\u4e2a\u4e3a\u4e00\u7ec4\u7684Fault Domains\u4f1a\u7ec4\u6210\u4e00\u4e2a\u201cAvailability Domains\u201d\u3002\u5927\u90e8\u5206\u7684Oracle Region\u4e2d\u53ea\u6709\u4e00\u4e2aAvailability Domains\uff0c\u4e5f\u6709\u90e8\u5206region\u67093\u4e2aAvailability Domains\uff08<a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/Content\/General\/Concepts\/regions.htm#top\">\u53c2\u8003<\/a>\uff09\uff0c\u6240\u4ee5\u5728MySQL\u7684\u914d\u7f6e\u9009\u9879\u4e2d\u4f1a\u6709AD\u3001FD\u7b49\u7f29\u5199\u8bcd\u8bed\u3002<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Oracle Cloud\u4e0aMySQL\u5b9e\u4f8b\u7684\u6570\u636e\u53ef\u9760\u6027\u67b6\u6784<\/h4>\n\n\n\n<p>OCI\u4e0a\u7684MySQL\u4f7f\u7528\u7684MGR\u6765\u5b9e\u73b0\u9ad8\u53ef\u7528\u3001\u9ad8\u53ef\u9760\uff08\u53c2\u8003\uff1a<a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/mysql-database\/doc\/high-availability.html\">High Availability@Oracle Cloud Infrastructure Documentation<\/a>\u3001<a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/group-replication.html\">Group Replication@MySQL Documentation<\/a>\uff09\u3002\u4e09\u4e2a\u4e0d\u540c\u7684MySQL\u8282\u70b9\u5206\u5e03\u5728\u4e09\u4e2a\u4e0d\u540c\u7684FD\uff0c\u6bcf\u4e2a\u8282\u70b9\u4f7f\u7528\u7684\u5b58\u50a8\u662fOCI\u4e0a\u7684Block Volume\uff08<a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/Content\/Block\/Concepts\/overview.htm\">\u53c2\u8003<\/a>\uff09\uff0c\u4ee5<a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/Content\/Block\/Concepts\/overview.htm#iSCSI\">iSCSI\u65b9\u5f0f<\/a>\u4f7f\u7528\uff0c\u7c7b\u578b\u662f\u201c<a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/Content\/Block\/Concepts\/blockvolumehigherperformance.htm\">Higher Performance<\/a>\u201d\uff08\u6b64\u5916\uff0c\u8fd8\u6709Balanced\u3001Ultra High Performance\u3001Lower Cost\u4e09\u79cdBlock Volume\uff09\u3002<\/p>\n\n\n\n<p>\u6839\u636e\u53c2\u6570\u914d\u7f6e\u6765\u770b\uff0cOracle Cloud\u63d0\u4f9b\u7684MySQL\u4e09\u8282\u70b9\u662f\u901a\u8fc7MGR\u5b9e\u73b0\u7684\uff0c\u4f7f\u7528\u7684\u662f<code>group_replication_single_primary_mode<\/code>\u6a21\u5f0f\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"sql\" class=\"language-sql\">mysql&gt; show variables like '%group_replication_single_primary_mode%';\n+---------------------------------------+-------+\n| Variable_name                         | Value |\n+---------------------------------------+-------+\n| group_replication_single_primary_mode | ON    |\n+---------------------------------------+-------+\n1 row in set (0.00 sec)<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u5176\u4ed6\u8bf4\u660e<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Oracle Cloud\u7684MySQL\u6ca1\u6709\u63d0\u4f9b\u4e24\u8282\u70b9\u9009\u9879<\/li>\n\n\n\n<li>\u4ea7\u54c1\u89c4\u683c\uff0cOracle Cloud\u4f7f\u7528\u7684\u662fOCPUs\uff08Oracle CPU\uff0c\u53ef\u4ee5\u7406\u89e3\u4e3acore\uff09\uff0c\u8be6\u7ec6\u53c2\u8003\uff1a<a href=\"https:\/\/blogs.oracle.com\/cloud-infrastructure\/post\/vcpu-and-ocpu-pricing-information\">vCPU and OCPU pricing information<\/a>\u3002\u76f8\u6bd4\u4e8e\u5176\u4ed6\u4e91\u5382\u5546\u7684vCPU\uff08\u5927\u90e8\u5206\u65f6\u5019\u4e3a\u8d85\u7ebf\u7a0b\uff09\u662f\u660e\u663e\u4e0d\u540c\u7684\u3002<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">\u6027\u80fd\u6d4b\u8bd5\u7684\u539f\u59cb\u6570\u636e<\/h4>\n\n\n<div><h5>2024-01@MySQL at Oracle Cloud Benchmark<\/h5>\n<pre style=\"font-size:0.6em;\">host : 10.0.0.74 \nsub_dir : 10.0.0.74 \nins_code : MySQL.VM.Standard.E4.2.32GB \nha_type : ha \nsame_az :  \nregion : tokyo \nstorage_size : 100 \n<\/pre><pre style=\"font-size:0.6em;\">sysbench for host :10.0.0.74\nthreads|transactions| queries| time |avg\/Latency|95%\/Latency\n      2|       90638| 1812760|300.01|       6.62|       7.84 \n      4|      147270| 2945400|300.01|       8.15|      10.09 \n      8|      215078| 4301560|300.01|      11.16|      13.70 \n     16|      242713| 4854260|300.02|      19.78|      33.72 \n     24|      260072| 5201440|300.02|      27.68|      45.79 \n     32|      273703| 5474060|300.03|      35.07|      56.84 \n     48|      283811| 5676220|300.06|      50.74|      73.13 \n     64|      287176| 5743520|300.06|      66.86|     102.97 \n     96|      283113| 5662260|300.09|     101.74|     158.63 \n    128|      285210| 5704200|300.12|     134.66|     189.93 \n    192|           0|       0|  0.00|       0.00|       0.00 \n<\/pre><h5>2024-01-14@MySQL at Oracle Cloud Benchmark<\/h5>\n<pre style=\"font-size:0.6em;\">host : 10.0.0.13 \nsub_dir : 10.0.0.13 \nins_code : MySQL.VM.Standard.E4.2.32GB \nha_type : ha \nsame_az : 1 \nregion : tokyo \nstorage_size : 100 \n<\/pre><pre style=\"font-size:0.6em;\">sysbench for host :10.0.0.13\nthreads|transactions| queries| time |avg\/Latency|95%\/Latency\n      2|       95033| 1900660|300.01|       6.31|       7.56 \n      4|      148751| 2975020|300.01|       8.07|      10.27 \n      8|      214974| 4299480|300.01|      11.16|      13.70 \n     16|      262105| 5242100|300.01|      18.31|      30.81 \n     24|      253583| 5071660|300.03|      28.39|      47.47 \n     32|      272755| 5455100|300.03|      35.20|      54.83 \n     48|      269370| 5387400|300.04|      53.46|      77.19 \n     64|      286891| 5737820|300.06|      66.93|     102.97 \n     96|      276749| 5534980|300.12|     104.08|     161.51 \n    128|      287452| 5749040|300.13|     133.61|     183.21 \n    192|           0|       0|  0.00|       0.00|       0.00 \n<\/pre><pre style=\"font-size:0.6em;\">host : 10.0.0.74 \nsub_dir : 10.0.0.74 \nins_code : MySQL.VM.Standard.E4.2.32GB \nha_type : ha \nsame_az :  \nregion : tokyo \nstorage_size : 100 \n<\/pre><pre style=\"font-size:0.6em;\">sysbench for host :10.0.0.74\nthreads|transactions| queries| time |avg\/Latency|95%\/Latency\n      2|       90638| 1812760|300.01|       6.62|       7.84 \n      4|      147270| 2945400|300.01|       8.15|      10.09 \n      8|      215078| 4301560|300.01|      11.16|      13.70 \n     16|      242713| 4854260|300.02|      19.78|      33.72 \n     24|      260072| 5201440|300.02|      27.68|      45.79 \n     32|      273703| 5474060|300.03|      35.07|      56.84 \n     48|      283811| 5676220|300.06|      50.74|      73.13 \n     64|      287176| 5743520|300.06|      66.86|     102.97 \n     96|      283113| 5662260|300.09|     101.74|     158.63 \n    128|      285210| 5704200|300.12|     134.66|     189.93 \n    192|           0|       0|  0.00|       0.00|       0.00 \n<\/pre><pre style=\"font-size:0.6em;\">host : 10.0.0.224 \nsub_dir : 10.0.0.224 \nins_code : MySQL.VM.Standard.E4.2.32GB \nha_type : standalone \nsame_az : 1 \nregion : tokyo \nstorage_size : 100 \n<\/pre><pre style=\"font-size:0.6em;\">sysbench for host :10.0.0.224\nthreads|transactions| queries| time |avg\/Latency|95%\/Latency\n      2|      102033| 2040660|300.00|       5.88|       7.56 \n      4|      186602| 3732040|300.01|       6.43|       8.90 \n      8|      281464| 5629280|300.01|       8.53|      12.30 \n     16|      333418| 6668360|300.02|      14.40|      31.94 \n     24|      345463| 6909260|300.02|      20.84|      47.47 \n     32|      359902| 7198040|300.03|      26.67|      56.84 \n     48|      353246| 7064920|300.06|      40.77|      78.60 \n     64|      370118| 7402360|300.07|      51.88|      99.33 \n     96|      380647| 7612940|300.09|      75.67|     134.90 \n    128|      372683| 7453660|300.12|     103.05|     164.45 \n    192|           0|       0|  0.00|       0.00|       0.00 \n<\/pre><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>\u53c2\u8003<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/docs.oracle.com\/en-us\/iaas\/mysql-database\/doc\/high-availability.html\">High Availability@Oracle Cloud Infrastructure Documentation<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/group-replication.html\">Group Replication@MySQL Documentation<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/blogs.oracle.com\/cloud-infrastructure\/post\/vcpu-and-ocpu-pricing-information\">vCPU and OCPU pricing information<\/a><\/li>\n<\/ol>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u95ee\u662f\u4e00\u4e2a\u7cfb\u5217\u6587\u7ae0\u7684\u4e00\u90e8\u5206\uff0c\u8be5\u7cfb\u5217\u8f83\u4e3a\u5b8c\u6574\u7684\u5bf9\u5404\u4e2a\u4e91\u5382\u5546\u7684RDS MySQL\u8fdb\u884c\u4e86\u6d4b\u8bd5\uff0c\u5305\u62ec\u4e86\u963f\u91cc\u4e91\u3001\u817e\u8baf\u4e91\u3001\u534e\u4e3a\u4e91\u3001\u767e\u5ea6\u4e91\u3001AWS\u3001Azure\u3001GCP\u3001Oracle Cloud\u7b49\uff0c\u66f4\u591a\u53c2\u8003\uff1a\u4e91\u6570\u636e\u5e93RDS MySQL\u7684\u6027\u80fd\u3002 \u5728MySQL\u793e\u533a\u7684\u5e2e\u52a9\u4e0b\uff0c\u7ec8\u4e8e\u6210\u529f\u5f00\u901a\u4e86Oracle Cloud\uff0c\u4e8e\u662f\uff0c\u7b2c\u4e00\u65f6\u95f4\u6d4b\u8bd5\u4e86\u4e00\u4e0b\u5728Oracle Cloud\u4e0a\u6258\u7ba1MySQL\uff0c\u770b\u770bOracle MySQL\u539f\u5382\u7684\u6027\u80fd\u8868\u73b0\u5982\u4f55\u3002 \u5173\u6ce8\u6211\u670b\u53cb\u5708\u7684\u5e94\u8be5\u77e5\u9053\uff0c\u5728\u56fd\u5185\u81ea\u52a9\u7684\u6ce8\u518cOracle Cloud\u771f\u7684\u975e\u5e38\u4e0d\u5bb9\u6613\u3002\u6240\u4ee5\uff0c\u7279\u522b\u611f\u8c22Oracle MySQL\u539f\u5382\u5de5\u7a0b\u5e08\u5f90\u8f76\u97ec\u7684\u5e2e\u52a9\uff0c\u4ed6\u4e5f\u662f\u300aMySQL\u9ad8\u53ef\u7528\u89e3\u51b3\u65b9\u6848-\u4ece\u4e3b\u4ece\u590d\u5236\u5230InnoDB Cluster\u67b6\u6784\u300b\u7684\u4f5c\u8005\uff0c\u4ed6\u7684\u516c\u4f17\u53f7\u662f\u201cMySQL\u89e3\u51b3\u65b9\u6848\u5de5\u7a0b\u5e08\u201d\uff0c\u611f\u5174\u8da3\u53ef\u4ee5\u5173\u6ce8\u4ed6\u7684\u516c\u4f17\u53f7\u3002 \u56de\u5230\u6b63\u6587\uff0cOracle Cloud\u7684\u5168\u79f0\u662f&#8221;Oracle Cloud Infrastructure&#8221;\uff0c\u4e5f\u7ecf\u5e38\u88ab\u7b80\u79f0\u4e3a&#8221;OCI&#8221;\u3002\u5728OCI\u4e0a\u63d0\u4f9b\u7684MySQL\u670d\u52a1\uff0c\u76f8\u8f83\u4e8eAWS\u3001\u963f\u91cc\u4e91\u6765\u8bf4\uff0c\u4ea7\u54c1\u5f62\u6001\u4e5f\u6bd4\u8f83\u7b80\u5355\u3002\u9996\u5148\uff0c\u6258\u7ba1MySQL\u5728\u5206\u7c7b\u201cDatabases-&gt;MySQL HeatWave-&gt;DB Systems\u201d\u8fd9\u4e2a\u7c7b\u76ee\u4e0b\uff0c\u5728\u5b9e\u4f8b\u521b\u5efa\u8fc7\u7a0b\u4e2d\uff0c\u6d89\u53ca\u7684\u9009\u9879\u4e0d\u7b97\u591a\uff0c\u4f46\u662f\u56e0\u4e3a\u540d\u8bcd\/\u5b9a\u4e49\u4e0e\u5176\u4ed6\u4e91\u5382\u5546\u6709\u4e00\u4e9b\u4e0d\u540c\uff0c\u6240\u4ee5\u8fd9\u91cc\u505a\u4e00\u4e9b\u89e3\u91ca\u3002Oracle Cloud\u4e0a\u7684\u6258\u7ba1MySQL\u4e3b\u8981\u9009\u9879\u4e3a\uff1a \u5728\u672c\u6b21\u6d4b\u8bd5\u4e2d\uff0c\u4e00\u5171\u8fdb\u884c\u4e86\u4e09\u7ec4\u6d4b\u8bd5\u3002\u89c4\u683c\u5927\u5c0f\u7edf\u4e00\u4e3a\uff1a2 OCPU\uff08Oracle CPU\uff0932GB\uff0c100GB\u5b58\u50a8\uff08\u5bf9\u5e94\u76847500 IOPS\uff09\uff0c\u89c4\u683c\u4ee3\u7801\u4e3aMySQL.VM.Standard.E4.2.32GB\u3002\u4e09\u7ec4\u6d4b\u8bd5\u5bf9\u6bd4\u9879\u5206\u522b\u4e3a\uff1a\u5355\u8282\u70b9 vs \u4e09\u8282\u70b9\u548c\u540c\u53ef\u7528\u533a vs \u8de8\u53ef\u7528\u533a\u3002\u4e09\u7ec4\u6d4b\u8bd5\u5177\u4f53\u4e3a\uff1a\u8de8\u53ef\u7528\u533a\u7684\u4e09\u8282\u70b9\u6d4b\u8bd5\u3001\u540c\u53ef\u7528\u533a\u7684\u4e09\u8282\u70b9\u6d4b\u8bd5\u3001\u540c\u53ef\u7528\u533a\u7684\u5355\u8282\u70b9\u6d4b\u8bd5\u3002\u8be6\u7ec6\u53c2\u6570\u8868\u5982\u4e0b\uff1a \u6574\u4f53\u6027\u80fd\u8d8b\u52bf\u56fe \u6574\u4f53\u4e0a\uff0cOCI\u4e0a\u7684MySQL\u9ad8\u53ef\u7528\u7248\u672c\uff08MGR\u4e09\u8282\u70b9\uff09\u6027\u80fd\u8981\u6bd4\u5355\u8282\u70b9\u4f4e\u7ea620%\u3002\u5728\u4e09\u8282\u70b9\u7684\u4e24\u6b21\u6d4b\u8bd5\u4e0b\uff0c\u8de8\u53ef\u7528\u533a\u4e0e\u540c\u53ef\u7528\u533a\u6709\u7740\u51e0\u4e4e\u76f8\u540c\u7684\u6027\u80fd\u8868\u73b0\uff0c\u4ece\u5ef6\u8fdf\u4e0a\u6765\u770b\uff0c\u4e5f\u975e\u5e38\u63a5\u8fd1\uff0c\u53ef\u7528\u533a\u4e4b\u95f4\u7684\u5ef6\u8fdf\u7ea6\u4e3a\u767e\u5fae\u79d2\u7ea7\u522b\u3002 \u76f8\u6bd4\u4e8e\u5176\u4ed6\u4e91\u5382\u5546\uff0cOCI\u4e0a\u7684MySQL\u6027\u80fd\u8868\u73b0\uff0c\u5e76\u4e0d\u7b97\u9ad8\u7684\u3002\u4ece\u67b6\u6784\u5c42\u9762\uff0cOracle MySQL\u662f\u552f\u4e00\u4e00\u4e2a\u9009\u62e9\u4e86MGR\u6765\u5b9e\u73b0\u9ad8\u53ef\u7528\u3001\u8de8\u53ef\u7528\u533a\u6570\u636e\u4e00\u81f4\u6027\u7684\u3002 OCI\u4e0a\u7684\u533a\u57df\u4e0e\u53ef\u7528\u533a \u5728MySQL\u7684\u5b9e\u4f8b\u521b\u5efa\u8fc7\u7a0b\u4e2d\uff0c\u4f1a\u6709\u4e00\u4e9b\u8bf8\u5982\uff1aAD\u3001FD\uff08Fault Domins\uff09\u7b49\u9009\u9879\u3002\u8fd9\u662fOCI\u7279\u6709\u7684\u5173\u4e8e\u533a\u57df\u3001\u53ef\u7528\u533a\u7b49\u9009\u9879\u3002\u5173\u4e8e\u533a\u57df\u548c\u53ef\u7528\u533a\u7684\u6982\u5ff5\uff0cOracle Cloud\u4e0e\u5176\u4ed6\u4e91\u5382\u5546\u867d\u7136\u90fd\u662f\u76f8\u540c\u7684\u6982\u5ff5\uff0c\u4f46\u662f\u7528\u4e86\u5b8c\u5168\u4e0d\u540c\u7684\u540d\u79f0\uff0c\u4e5f\u662f\u975e\u5e38\u5bb9\u6613\u8ba9\u4eba\u56f0\u60d1\u7684\u3002 \u5728Oracle\u4e2d\uff0c\u5206\u4e86\u51e0\u5c42\u6982\u5ff5\uff1aRegion-&gt;Availability Domains-&gt;Fault Domains\u3002 Oracle Cloud\u4e0aMySQL\u5b9e\u4f8b\u7684\u6570\u636e\u53ef\u9760\u6027\u67b6\u6784 OCI\u4e0a\u7684MySQL\u4f7f\u7528\u7684MGR\u6765\u5b9e\u73b0\u9ad8\u53ef\u7528\u3001\u9ad8\u53ef\u9760\uff08\u53c2\u8003\uff1aHigh Availability@Oracle Cloud Infrastructure Documentation\u3001Group Replication@MySQL Documentation\uff09\u3002\u4e09\u4e2a\u4e0d\u540c\u7684MySQL\u8282\u70b9\u5206\u5e03\u5728\u4e09\u4e2a\u4e0d\u540c\u7684FD\uff0c\u6bcf\u4e2a\u8282\u70b9\u4f7f\u7528\u7684\u5b58\u50a8\u662fOCI\u4e0a\u7684Block Volume\uff08\u53c2\u8003\uff09\uff0c\u4ee5iSCSI\u65b9\u5f0f\u4f7f\u7528\uff0c\u7c7b\u578b\u662f\u201cHigher Performance\u201d\uff08\u6b64\u5916\uff0c\u8fd8\u6709Balanced\u3001Ultra High Performance\u3001Lower Cost\u4e09\u79cdBlock Volume\uff09\u3002 \u6839\u636e\u53c2\u6570\u914d\u7f6e\u6765\u770b\uff0cOracle Cloud\u63d0\u4f9b\u7684MySQL\u4e09\u8282\u70b9\u662f\u901a\u8fc7MGR\u5b9e\u73b0\u7684\uff0c\u4f7f\u7528\u7684\u662fgroup_replication_single_primary_mode\u6a21\u5f0f\u3002 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_eb_attr":"","inline_featured_image":false,"_tocer_settings":[],"footnotes":""},"categories":[138,6],"tags":[],"class_list":["post-10719","post","type-post","status-publish","format-standard","hentry","category-cloud-mysql-performance-benchmark","category-mysql"],"_links":{"self":[{"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/posts\/10719","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/comments?post=10719"}],"version-history":[{"count":27,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/posts\/10719\/revisions"}],"predecessor-version":[{"id":11372,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/posts\/10719\/revisions\/11372"}],"wp:attachment":[{"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/media?parent=10719"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/categories?post=10719"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.orczhou.com\/index.php\/wp-json\/wp\/v2\/tags?post=10719"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}