{"id":339,"date":"2020-05-20T17:07:18","date_gmt":"2020-05-20T15:07:18","guid":{"rendered":"https:\/\/anjo.pt\/keyword-oracle\/?p=339"},"modified":"2020-06-17T10:06:49","modified_gmt":"2020-06-17T08:06:49","slug":"impact-of-azure-oracle-oci-interconnect-on-a-multi-cloud-solution","status":"publish","type":"post","link":"https:\/\/anjo.pt\/keyword-oracle\/2020\/05\/20\/impact-of-azure-oracle-oci-interconnect-on-a-multi-cloud-solution\/","title":{"rendered":"Impact of Azure-Oracle OCI interconnect on a multi-cloud solution"},"content":{"rendered":"\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<h1 class=\"wp-block-heading\">Introduction<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/www.oracle.com\/corporate\/pressrelease\/microsoft-and-oracle-to-interconnect-microsoft-azure-and-oracle-cloud-060519.html\">Oracle and Microsoft announced<\/a> in June 2019 a cloud interoperability partnership which enables workloads across Microsoft Azure and Oracle Cloud. By creating a first joint multi-cloud solution, the software giants can each continue to provide the best of their services. At the same time customers do not need to decide which vendor they opt-out when moving their on-premises constructs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Being myself an Oracle Database Administrator, this article aims to check what is the impact of distributing resources in multiple clouds, with databases remaining on Oracle Cloud Infrastructure.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It is not aim of the article to discuss the costs of resources on any of the clouds.<\/p>\n<\/div><\/div>\n\n\n\n<!--more-->\n\n\n\n<h1 class=\"wp-block-heading\">Architecture<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">A quick overview of the architecture is shown below. On Microsoft side I built a VNet with two subnets. One VM with public IP was the bastion. On Oracle side, three subnets. One public subnet with bastion VM; one private with the application; another private with DBs. When creating the ExpressRoute, a new GatewaySubnet was automatically created on Azure.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"605\" height=\"235\" src=\"https:\/\/anjo.pt\/keyword-oracle\/wp-content\/uploads\/sites\/3\/2020\/05\/image-8.png\" alt=\"\" class=\"wp-image-340\" srcset=\"https:\/\/anjo.pt\/keyword-oracle\/wp-content\/uploads\/sites\/3\/2020\/05\/image-8.png 605w, https:\/\/anjo.pt\/keyword-oracle\/wp-content\/uploads\/sites\/3\/2020\/05\/image-8-300x117.png 300w\" sizes=\"auto, (max-width: 605px) 100vw, 605px\" \/><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">Setup<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Differences between Oracle Cloud and Azure<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Azure portal is amazingly fast and comfortable to navigate. For instance, the last used elements are always shown and there is easy way to start and stop all instances in one go. There is no concept of private subnet in Azure. The public IP is an element per se that you can assign to a compute node at any moment. Spot VMs, which use unused resources at very discounted price, are excellent to perform tests. These resources can be stopped by Azure at any time with very short warning. The troubleshooting tools like ability to see \u201ceffective routes\u201d or \u201ceffective policies\u201d of a VM, help a lot.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">On OCI, the VM Image available with Oracle Database comes directly with the latest RU and one database created. This is very useful for quick tests. The VCN wizard makes the basic creation of a virtual network very easy. Boot disks of a VM have a very good performance.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Interconnect<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The lowest bandwidth on FastConnect configuration is 1Gbps. On Azure side, the ExpressRoute starts at 50 Mbps! It is quite incomprehensible this difference of standards when promoting a consolidated solution. The setup was initially done with this configuration. Later tests were also performed using a 100 Mbps ExpressRoute, but it did not change de results.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">VMs shapes<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">On Azure, VMs of type D4as_v4 were used. On Oracle, shape VM.Standard2.2 was used. The table below compares the characteristics of these VMs.<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th class=\"has-text-align-right\" data-align=\"right\"><\/th><th class=\"has-text-align-center\" data-align=\"center\"><strong>Azure D4as_v4<\/strong><\/th><th class=\"has-text-align-center\" data-align=\"center\"><strong>OCI VM.Standard2.2<\/strong><\/th><\/tr><\/thead><tbody><tr><td class=\"has-text-align-right\" data-align=\"right\"><strong>CPU<\/strong><strong><\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">4 vCPUs<\/td><td class=\"has-text-align-center\" data-align=\"center\">2 oCPU<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\"><strong>Memory<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">16 GB<\/td><td class=\"has-text-align-center\" data-align=\"center\">30 GB<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\"><strong>NIC<\/strong><strong><\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">2000 Mbps<\/td><td class=\"has-text-align-center\" data-align=\"center\">2 Gbps<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\"><strong>OS Disk<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">120 IOPS \/ 25 MB\/s<\/td><td class=\"has-text-align-center\" data-align=\"center\">15000 IOPS \/ 150 MB\/s<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\"><strong>Extra disk (paid extra)<\/strong><strong><\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">5000 IOPS \/ 200 MB\/s<\/td><td class=\"has-text-align-center\" data-align=\"center\">&nbsp;<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Oracle OS disk is 8x bigger (250 vs 30 GB) and much faster. As the OS disk at Azure was having impact on the results, I added there an extra 1TB disk, from where tests were run (and datafiles placed for DB tests).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">VMs images<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The most recent Azure VM image included Oracle Database software version 19.3. I did patch with 19.7 RU for the tests. Above that I manually create a database, using default values, except filesystem_options (setall) and processes (500). Memory was set to exact same values as on Oracle VMs (4.5G SGA + 1.7G PGA).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">OCI image comes already with latest RU, a database created which seems parameter-wise optimized for the Oracle Cloud environment.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Tests<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Ping tests were performed with 10 probe counts using the IP of destination VM. The results of several runs of tests were consistent. The values presented below are the ones having the smallest standard deviation.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Application-DB assessments were done using Swingbench 2.6 and its jdbc Order Entry test. This test is the one which does a greater number of calls through the network. To make sure the impact was not on CPU, disks or network bandwidth, the comparison is done between the results of tests with 4 and 8 clients. When using more clients, the waits started to be either on local disk or on the database side. Each of the tests run for couple of minutes and several tests were done on each of the configurations.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The first tests from Azure showed a very bad performance. This was seen to be related to the performance of the OS disk. I decided to add a second disk with higher performance and install Swingbench on the new partition.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The tests against Autonomous Database (ATP) were done using 1 and 2 oCPUs, but this did not change the results. The service used was &lt;db&gt;_tp.<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">Results<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">Only a summary of the main results is shown.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Ping tests<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The latency between Oracle VMs is two times smaller than between Azure VMs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Between the clouds, the latency is little big bigger than 2.5 milliseconds. This is 4 to 8 times more than intra-cloud pings.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"646\" height=\"312\" src=\"https:\/\/anjo.pt\/keyword-oracle\/wp-content\/uploads\/sites\/3\/2020\/05\/image-9.png\" alt=\"\" class=\"wp-image-341\" srcset=\"https:\/\/anjo.pt\/keyword-oracle\/wp-content\/uploads\/sites\/3\/2020\/05\/image-9.png 646w, https:\/\/anjo.pt\/keyword-oracle\/wp-content\/uploads\/sites\/3\/2020\/05\/image-9-300x145.png 300w\" sizes=\"auto, (max-width: 646px) 100vw, 646px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td class=\"has-text-align-right\" data-align=\"right\"><\/td><td class=\"has-text-align-center\" data-align=\"center\"><strong>min<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\"><strong>avg<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\"><strong>max<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\"><strong>mdev<\/strong><\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\"><strong>Azure-Oracle<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">2.39<\/td><td class=\"has-text-align-center\" data-align=\"center\">2.51<\/td><td class=\"has-text-align-center\" data-align=\"center\">2.61<\/td><td class=\"has-text-align-center\" data-align=\"center\">0.09<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\"><strong>Oracle-Azure<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">2.53<\/td><td class=\"has-text-align-center\" data-align=\"center\">2.65<\/td><td class=\"has-text-align-center\" data-align=\"center\">2.75<\/td><td class=\"has-text-align-center\" data-align=\"center\">0.1<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\"><strong>Azure-Azure<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">0.57<\/td><td class=\"has-text-align-center\" data-align=\"center\">0.65<\/td><td class=\"has-text-align-center\" data-align=\"center\">0.75<\/td><td class=\"has-text-align-center\" data-align=\"center\">0.066<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\"><strong>Oracle-Oracle<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">0.26<\/td><td class=\"has-text-align-center\" data-align=\"center\">0.29<\/td><td class=\"has-text-align-center\" data-align=\"center\">0.34<\/td><td class=\"has-text-align-center\" data-align=\"center\">0.02<\/td><\/tr><\/tbody><\/table><figcaption>Ping results (ms)<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Swingbench tests<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The latency plays a big role on lights Swingbench tests. We can see that also here, Inter-cloud architecture is at least 2.5 times slower than running on the same cloud. The results with Azure VMs are using the extra faster disk, except when mentioned.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"733\" height=\"442\" src=\"https:\/\/anjo.pt\/keyword-oracle\/wp-content\/uploads\/sites\/3\/2020\/05\/image-10.png\" alt=\"\" class=\"wp-image-342\" srcset=\"https:\/\/anjo.pt\/keyword-oracle\/wp-content\/uploads\/sites\/3\/2020\/05\/image-10.png 733w, https:\/\/anjo.pt\/keyword-oracle\/wp-content\/uploads\/sites\/3\/2020\/05\/image-10-300x181.png 300w\" sizes=\"auto, (max-width: 733px) 100vw, 733px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td class=\"has-text-align-right\" data-align=\"right\"><\/td><td class=\"has-text-align-center\" data-align=\"center\"><strong>4 threads<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\"><strong>8 threads<\/strong><\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\"><strong>OCI VM &#8211; OCI VM<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">440<\/td><td class=\"has-text-align-center\" data-align=\"center\">603<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\"><strong>Azure VM &#8211; Azure VM (1)<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">24<\/td><td class=\"has-text-align-center\" data-align=\"center\">38<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\"><strong>Azure VM &#8211; Azure VM<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">540<\/td><td class=\"has-text-align-center\" data-align=\"center\">949<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\"><strong>OCI VM &#8211; OCI ATP<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">263<\/td><td class=\"has-text-align-center\" data-align=\"center\">378<\/td><\/tr><tr><td class=\"has-text-align-right\" data-align=\"right\"><strong>Azure VM &#8211; OCI ATP<\/strong><\/td><td class=\"has-text-align-center\" data-align=\"center\">95<\/td><td class=\"has-text-align-center\" data-align=\"center\">191<\/td><\/tr><\/tbody><\/table><figcaption>transactions per second<br>Note: (1) using OS disks<\/figcaption><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\">Conclusions<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">It is with great satisfaction that I see Oracle and Microsoft cooperating.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There is clear a trade-off to consider when going for a multi-cloud solution. While the latency per se is very small, at around 2.5 ms, this value is 4 to 8 times larger than intra-cloud latency.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The swingbench tests also show the performance difference when we try to abstract from all other elements. But it is not possible to skip the fact that on each of the clouds VMs have different specifications as well as the resource management limits, mainly seen on the SSD performance, have an impact on the results.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I was surprised with the results of the ATP tests, where I expected better performance. We should not forget however that ATP brings many other advantages that are a big plus for several applications.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In all the cases, I still believe that for most of the applications the current latency between Oracle Cloud and Azure is good enough and for well behaving applications (forget fetch one row at the time!) it should not be a problem.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Oracle and Microsoft announced in June 2019 a cloud interoperability partnership which enables workloads across Microsoft Azure and Oracle Cloud. By creating a first joint multi-cloud solution, the software giants can each continue to provide the best of their services. At the same time customers do not need to decide which vendor they opt-out [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":343,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[53,51,52,6],"tags":[58],"class_list":["post-339","post","type-post","status-publish","format-standard","has-post-thumbnail","category-azure","category-cloud","category-oci","category-oracle","tag-multi-cloud-database","czr-hentry"],"_links":{"self":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/comments?post=339"}],"version-history":[{"count":3,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/339\/revisions"}],"predecessor-version":[{"id":372,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/posts\/339\/revisions\/372"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/media\/343"}],"wp:attachment":[{"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/media?parent=339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/categories?post=339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/anjo.pt\/keyword-oracle\/wp-json\/wp\/v2\/tags?post=339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}