tag:blogger.com,1999:blog-83062166902068022162024-03-13T23:01:48.753+02:00SQL Azure for DBAs and Data EngineersAll About Azure SQL DB, CloudComputing, SQL on the Cloud, and Big Data Platform.
That any Data Position Needs to Know.Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.comBlogger136125tag:blogger.com,1999:blog-8306216690206802216.post-17719579544188574172023-06-19T14:32:00.004+03:002023-06-19T14:40:02.339+03:00The journey to the Lakehouse<p dir="ltr" style="text-align: left;"><span style="font-family: arial;">A long time has passed since the last post, we have gone through a long and tedious journey to adapt what Azure offers us, to our needs.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;">Our needs were simple, the Current Datawarehouse (SQL Server on VM inazure) served the BI.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;">ML teams worked on GCP, we want to let both teams to work on Azure in a platform that will have the ability to scale and will not fail every 2 days.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;">We checked:</span></p><p dir="ltr" style="text-align: left;"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixlOCjSDgGTLhWzQ_TbDeQrhtjBWv5pZBFegQ_ZUjCCPD6O6hFhxWp_JvroSyNnkMG1XA9qpRFZMCvWlUOoMgJ6fWbP1C6GE2o_ia46E8nTU5hejMzZIJKd8_jFCTu4E-NM6LrHCo4_v7qQ1L5JusbHnlhvo2-0PGOWaHwyeH0yWdHXeOGQhXhDYPb/s200/microsoft-azure-synapse-analytics-logo.png" style="clear: right; display: inline; float: right; margin-bottom: 1em; margin-left: 1em; text-align: center;"></a></div><ul dir="ltr" style="text-align: left;"><li><span style="font-family: arial;">Snowflake on azure</span></li><li><span style="font-family: arial;">Synapse analytics</span></li><li><span style="font-family: arial;">GCP</span></li></ul><p dir="ltr" style="text-align: left;"></p><div dir="ltr" style="text-align: left;"><span style="font-family: arial;">We decided to go for the full Azure product for the reasons:</span></div><div dir="ltr" style="text-align: left;"></div><div dir="ltr" style="text-align: left;"><div style="text-align: left;"><ul style="text-align: left;"><li><span style="font-family: arial;">Migration time</span></li><li><span style="font-family: arial;">support</span></li><li><span style="font-family: arial;">costs</span></li></ul><div style="text-align: left;"><div style="text-align: center;"><span style="font-family: arial;"><span style="font-family: arial;"><img border="0" data-original-height="160" data-original-width="200" height="112" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixlOCjSDgGTLhWzQ_TbDeQrhtjBWv5pZBFegQ_ZUjCCPD6O6hFhxWp_JvroSyNnkMG1XA9qpRFZMCvWlUOoMgJ6fWbP1C6GE2o_ia46E8nTU5hejMzZIJKd8_jFCTu4E-NM6LrHCo4_v7qQ1L5JusbHnlhvo2-0PGOWaHwyeH0yWdHXeOGQhXhDYPb/w139-h112/microsoft-azure-synapse-analytics-logo.png" width="139" /></span></span></div><div><span style="font-family: arial;">Synapse as a platform contains many components, and the challenge was to find what fits</span><span style="font-family: arial;"> us as an organization and as a group.</span></div><div><span style="font-family: arial;"><br /></span></div><div><span style="font-family: arial;">The knowledge of the people and their abilities influenced the plans.</span></div><div><span style="font-family: arial;"><br /></span></div><div><span style="font-family: Arial; font-size: 11pt; white-space-collapse: preserve;">Here's what we planned and what we did:</span></div><div><br /></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;">We start to put everything in the <b>Data Lake</b> in parquet or delta format, build on top of <b>Azure ADLS gen 2.</b> </span></span></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;">We had to move some data to T-SQL compatible</span> <span style="font-size: 14.6667px; white-space-collapse: preserve;">platform, so this involves setting up a </span><b style="font-size: 14.6667px; white-space-collapse: preserve;">dedicated Synapse pool</b><span style="font-size: 14.6667px; white-space-collapse: preserve;">, which is a fully managed big data platform that allows us to ingest, prepare, manage, and serve data for immediate business intelligence and machine learning needs. </span></span></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;">Using </span><b style="font-size: 14.6667px; white-space-collapse: preserve;">Azure Data Factory</b><span style="font-size: 14.6667px; white-space-collapse: preserve;">, we can create and schedule data pipelines to move data from our SQL Server database to the <b>Data Lake</b>. </span></span></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;"><br /></span></span></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;">This enables us to scale our data processing and analysis capabilities and take advantage of the flexibility and power of a big data platform.</span></span></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;">We also, in many cases used <b>Azure Databricks</b> to manage the <b>Date Lake</b>.</span></span></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;"><br /></span></span></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;">In the ingestion layer we choose to use </span></span><b style="font-family: Arial; font-size: 14.6667px; white-space-collapse: preserve;">Azure Data Factory</b><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;"> and </span></span><b style="font-family: Arial; font-size: 14.6667px; white-space-collapse: preserve;">Azure Databricks</b><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;">.</span></span></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;">and in the analytics layer, we give the ability to query the data or with </span></span><b style="font-family: Arial; font-size: 14.6667px; white-space-collapse: preserve;">Azure Data Factory</b><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;"> or </span></span><b style="font-family: Arial; font-size: 14.6667px; white-space-collapse: preserve;">Azure Databricks </b><span style="font-family: Arial; font-size: 14.6667px; white-space-collapse: preserve;">or </span><b style="font-family: Arial; font-size: 14.6667px; white-space-collapse: preserve;">Azure Function.</b></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;"><br /></span></span></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;"><br /></span></span></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/a/AVvXsEifPR95_dywbx_FPyFFqzWoDGaHAQUi3_h3LlDEntVovE9-2NP5vXUOnjhAU_-UDlvTz-C7BK4VY1G8UcK3fne0CYz99bTcveZJ0fQF4Avq_8H9h_ift5MEUSDDoV1Dz8KSHzVn5V53ARF1ahSBwRvBFFEGof1fZoo4N1lchsQsRq92aLSlJKsMADPwyjk" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="467" data-original-width="741" height="405" src="https://blogger.googleusercontent.com/img/a/AVvXsEifPR95_dywbx_FPyFFqzWoDGaHAQUi3_h3LlDEntVovE9-2NP5vXUOnjhAU_-UDlvTz-C7BK4VY1G8UcK3fne0CYz99bTcveZJ0fQF4Avq_8H9h_ift5MEUSDDoV1Dz8KSHzVn5V53ARF1ahSBwRvBFFEGof1fZoo4N1lchsQsRq92aLSlJKsMADPwyjk=w640-h405" width="640" /></a></div><br /><br /></span></span></div><div><br /></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;">Now we</span></span><span style="font-family: Arial; font-size: 14.6667px; white-space-collapse: preserve;"> have lots of work with all Azure data offering.</span></div><div><span style="font-family: Arial; font-size: 14.6667px; white-space-collapse: preserve;">We have started to stable the system and moving lots of production load to it.</span></div><div><span style="font-family: Arial; font-size: 14.6667px; white-space-collapse: preserve;"><br /></span></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;">So,</span></span><span style="font-family: Arial; font-size: 14.6667px; white-space-collapse: preserve;"> in the next posts i will post a lot on those azure data tools.</span></div><div><span style="font-family: Arial; font-size: 14.6667px; white-space-collapse: preserve;"><br /></span></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space-collapse: preserve;">And then comes <span style="color: #6aa84f;">Microsoft Fabric</span> :-).</span></span></div><div><span style="font-family: Arial; font-size: 14.6667px; white-space-collapse: preserve;"><br /></span></div><div><span style="font-family: Arial; font-size: 14.6667px; white-space-collapse: preserve;">Have a nice day</span></div><div><br /></div><div><br /></div><div><br /></div></div></div></div><p dir="ltr" style="text-align: left;"><br /></p><p dir="ltr" style="text-align: left;"><br /></p><p dir="ltr" style="text-align: left;"><br /></p><p dir="ltr" style="text-align: left;"><br /></p><p dir="ltr" style="text-align: left;"><br /></p>Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-30908924062459084582022-02-23T21:47:00.000+02:002022-02-23T21:47:01.608+02:00From DBA to Data Engineer in Azure<p dir="ltr" style="text-align: left;"><span style="font-family: arial;">I recently moved a role</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;">From being a DBA Manager, Who is responsible for the operational databases.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;">I moved to manage the data engineering group.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;">So what exactly is the difference between the two functions?</span></p><p dir="ltr" style="text-align: left;"><br /></p><p dir="ltr" style="text-align: left;"><span id="docs-internal-guid-0523a971-7fff-562f-ef2c-6be6211dbe9b"><span style="color: #595959; font-family: Arial; font-size: 18pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">DBA - Production Databases:</span></span></p><p dir="ltr" style="text-align: left;"><span id="docs-internal-guid-ee2275bc-7fff-7ee7-5cbe-a6a806d23a9e"></span></p><ul dir="ltr" style="text-align: left;"><li aria-level="2" style="background-color: transparent; color: #595959; font-family: Arial; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: lower-alpha; margin-left: 36pt; text-decoration: none; vertical-align: baseline; white-space: pre;"><p role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: #595959; font-family: Arial; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">SQL\ NoSQL- 24*7, powerful server on premise or on the cloud, managed or semi managed, security tasks, high performance is a target, multiregional, HA as top priority.</span></p></li><li aria-level="2" style="background-color: transparent; color: #595959; font-family: Arial; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: lower-alpha; margin-left: 36pt; text-decoration: none; vertical-align: baseline; white-space: pre;"><p role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: #595959; font-family: Arial; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Developers are using Microservices - so we have many applications many services and many many Databases.</span></p></li><li aria-level="2" style="background-color: transparent; color: #595959; font-family: Arial; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: lower-alpha; margin-left: 36pt; text-decoration: none; vertical-align: baseline; white-space: pre;"><p role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="background-color: transparent; color: #595959; font-family: Arial; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Many kinds of DB's like Cloud IAAS and PAAS.</span></p></li><li aria-level="2" style="background-color: transparent; color: #595959; font-family: Arial; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: lower-alpha; margin-left: 36pt; text-decoration: none; vertical-align: baseline; white-space: pre;"><p role="presentation" style="line-height: 1.38; margin-bottom: 16pt; margin-top: 0pt;"><span style="background-color: transparent; color: #595959; font-family: Arial; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">Secure and audit the data is must.</span></p></li><li aria-level="2" style="background-color: transparent; color: #595959; font-family: Arial; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: lower-alpha; margin-left: 36pt; text-decoration: none; vertical-align: baseline; white-space: pre;"><p role="presentation" style="line-height: 1.38; margin-bottom: 16pt; margin-top: 0pt;"><span style="background-color: transparent; color: #595959; font-family: Arial; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; text-decoration: none; vertical-align: baseline; white-space: pre-wrap; white-space: pre;">The Clusters must have Uptime as long as we can achive.</span></p></li><li aria-level="2" style="background-color: transparent; color: #595959; font-family: Arial; font-size: 13.999999999999998pt; font-style: normal; font-variant: normal; font-weight: 400; list-style-type: lower-alpha; margin-left: 36pt; text-decoration: none; vertical-align: baseline; white-space: pre;"><p role="presentation" style="line-height: 1.38; margin-bottom: 16pt; margin-top: 0pt;"><span style="font-size: 14pt; white-space: pre-wrap;">Data Modeling - is so important too.</span></p></li></ul><div style="text-align: left;"><span id="docs-internal-guid-596bea3e-7fff-9ba4-7e0a-c62f0c3585d7"><img height="506" src="https://lh5.googleusercontent.com/XFTS1U5c5Fk2q_8Ujpss3fzi3ib3eqDP9qIba1KZYbFr996a4Fgx07Y2WI3br-IThWngEmDee_9Hkfkv_ARiwBV14vMtY83KTeau5hin20nxcsNn-Y3mC4_OEEgh6Eq0hxzP6N11WNUB=w530-h506" width="530" /></span></div><div style="text-align: left;"><span><br /></span></div><div dir="ltr" style="text-align: left;"><span id="docs-internal-guid-7e8e06b3-7fff-e97f-350f-89e6747c6608"><p dir="ltr" style="line-height: 1.38; margin-bottom: 16pt; margin-left: 36pt; margin-top: 0pt;"><span style="color: #595959; font-family: Arial; font-size: 18pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Challenges and Problems in the data bases systems</span></p><ol style="margin-bottom: 0; margin-top: 0; padding-inline-start: 48px;"><li aria-level="2" dir="ltr" style="color: #595959; font-family: Arial; font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: lower-alpha; margin-left: 36pt; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Lots of DB’s</span></p></li><li aria-level="2" dir="ltr" style="color: #595959; font-family: Arial; font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: lower-alpha; margin-left: 36pt; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Lots of creators / no standards</span></p></li><li aria-level="2" dir="ltr" style="color: #595959; font-family: Arial; font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: lower-alpha; margin-left: 36pt; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Lots of Consumers (Query, tools, SLA)</span></p></li><li aria-level="2" dir="ltr" style="color: #595959; font-family: Arial; font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: lower-alpha; margin-left: 36pt; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Raw data</span></p></li><li aria-level="2" dir="ltr" style="color: #595959; font-family: Arial; font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: lower-alpha; margin-left: 36pt; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Lots of data resources</span></p></li><li aria-level="2" dir="ltr" style="color: #595959; font-family: Arial; font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: lower-alpha; margin-left: 36pt; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 16pt; margin-top: 0pt;"><span style="font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Data silos</span></p></li></ol><span id="docs-internal-guid-6498a640-7fff-3701-c5dc-d8af6bd77d8a"><span style="color: #595959; font-family: Arial; font-size: 18pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">In Data Engineering we have other challenges for example we have </span></span><span style="color: #595959; font-family: Arial; font-size: 18pt; white-space: pre-wrap;">Data lake and Data Warehouses</span><span style="color: #595959; font-family: Arial;"><span style="font-size: 18.6667px; white-space: pre-wrap;"> :</span></span></span></div><div dir="ltr" style="text-align: left;"><span style="color: #595959; font-family: Arial;"><span style="font-size: 18.6667px; white-space: pre-wrap;"><br /></span></span><span><div><span id="docs-internal-guid-2e857519-7fff-e4fc-b9a5-d5b8e7e9107b"><ol style="margin-bottom: 0; margin-top: 0; padding-inline-start: 48px;"><li aria-level="2" dir="ltr" style="color: #595959; font-family: Arial; font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: lower-alpha; margin-left: 36pt; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Batch process.</span></p></li><li aria-level="2" dir="ltr" style="color: #595959; font-family: Arial; font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: lower-alpha; margin-left: 36pt; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Stream Process.</span></p></li><li aria-level="2" dir="ltr" style="color: #595959; font-family: Arial; font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: lower-alpha; margin-left: 36pt; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">many data sources</span></p></li><li aria-level="2" dir="ltr" style="color: #595959; font-family: Arial; font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: lower-alpha; margin-left: 36pt; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">ETL and EL.</span></p></li><li aria-level="2" dir="ltr" style="color: #595959; font-family: Arial; font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: lower-alpha; margin-left: 36pt; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Data Quality \ Governance \ Catalog.</span></p></li><li aria-level="2" dir="ltr" style="color: #595959; font-family: Arial; font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: lower-alpha; margin-left: 36pt; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">New skill sets</span></p></li><li aria-level="2" dir="ltr" style="color: #595959; font-family: Arial; font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: lower-alpha; margin-left: 36pt; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 16pt; margin-top: 0pt;"><span style="font-size: 14pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Lots of consumers with difference skill sets.</span></p></li></ol></span></div><div><span id="docs-internal-guid-d3d8c384-7fff-a249-ec15-d82618fabef6"><img height="481px;" src="https://lh4.googleusercontent.com/zIych39TPDThuEsvJw6lglgNCM-jfLA1KwBZNw_-Eg-16LOogeKrbvlqAxlEfTB0HZywERIcDRA7-uBl1IItITuSPFFO2ScPJNm_96GYIsmyvE6KfxtQtI4Syf98kbYyG3ZvlHLypyc" width="396px;" /></span></div></span></div><p dir="ltr" style="text-align: left;"><span style="font-family: arial;"><br /></span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;">It is a new and fascinating world, with special challenges and its importance is increasing day by day in organizations.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;"><br /></span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;">If once only analysts or data scientists consumed information from the Data Lake, today the apps are already taking information from there.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;"><br /></span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;">If once it was enough to know SQL to access the information - today you need to know much more and on the other hand the role of the data engineer to make the information accessible to those who need it in the simplest and easiest way.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;"><br /></span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;">The interesting challenges will be presented in the following posts.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;">stay tuned</span></p>Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-70022364948066085932021-10-06T16:00:00.001+03:002021-10-06T16:00:26.538+03:00Back to Basic - create new Azure SQL DB<p dir="ltr" style="text-align: left;"><span style="font-family: arial;">Hi All</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;"><br /></span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;">Long time no posts, i have been busy in last few months on a hard day 2 day work and did not </span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;">had the chance to publish some posts.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;">So i have decided to sit and write some "Back to Basic" posts.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;"><br /></span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;">Today i will write about how to create an Azure SQL Db from the portal.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: arial;"></span></p><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><a href="https://lh3.googleusercontent.com/-Eh_Pja-t5yI/YV2AMKN1uXI/AAAAAAABtjY/BfxiItc2vjUki1scAM0AGZ5RrSf1cR3swCNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="788" data-original-width="787" height="640" src="https://lh3.googleusercontent.com/-Eh_Pja-t5yI/YV2AMKN1uXI/AAAAAAABtjY/BfxiItc2vjUki1scAM0AGZ5RrSf1cR3swCNcBGAsYHQ/w640-h640/image.png" width="640" /></a></span></div><p dir="ltr" style="text-align: left;"><span style="font-family: arial;"><span style="font-family: arial;"></span></span></p><div class="separator" style="clear: both; text-align: center;"><span style="font-family: arial;"><span style="font-family: arial;"><a href="https://lh3.googleusercontent.com/-WtfizAZNS9E/YV2BonzNmyI/AAAAAAABtjk/0-FQ8s_HuesiqFF7oTcYyEWi26UOoTnrQCNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="435" data-original-width="775" height="360" src="https://lh3.googleusercontent.com/-WtfizAZNS9E/YV2BonzNmyI/AAAAAAABtjk/0-FQ8s_HuesiqFF7oTcYyEWi26UOoTnrQCNcBGAsYHQ/w640-h360/image.png" width="640" /></a></span></span></div><span style="font-family: arial;"><span style="font-family: arial;"><br /><br /></span></span><p></p><div dir="ltr" style="text-align: left;"><ol style="text-align: left;"><li aria-level="1" dir="ltr" style="font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Choose the Subscription.</span></p></li><li aria-level="1" dir="ltr" style="font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">RG - if its in special Project connect to its RG (Resource group is a virtual collection of resources in order to easy manage budgets.)</span></p></li><li aria-level="1" dir="ltr" style="font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">DB Name </span></p></li><li aria-level="1" dir="ltr" style="font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Server - choose the correct or create one(Server has limited manage capabilities on the DB like security, backup policies and other rules)</span></p></li><li aria-level="1" dir="ltr" style="font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">Choose no (elastic pool is a feature that will not be explained here)</span></p></li><li aria-level="1" dir="ltr" style="font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline; white-space: pre;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">This is the server tier, means the power of the DB and by pass the payments of the DB (i will have special post on the new tiers options, for this post i will leave the default)</span></p></li><li aria-level="1" dir="ltr" style="font-variant-east-asian: normal; font-variant-numeric: normal; list-style-type: decimal; vertical-align: baseline;"><p dir="ltr" role="presentation" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-family: Arial;"><span style="font-size: 11pt; white-space: pre-wrap;">This is the Storage </span><span style="font-size: 14.6667px; white-space: pre-wrap;">redundancy</span><span style="font-size: 11pt; white-space: pre-wrap;">, for now leave it in the default option.</span></span></p></li></ol><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space: pre-wrap;"><br /></span></span></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space: pre-wrap;">now we will move to the Networking tab:</span></span></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space: pre-wrap;"><br /></span></span></div><div style="text-align: left;"><span style="font-family: Arial;"><div class="separator" style="clear: both; font-size: 14.6667px; text-align: center; white-space: pre-wrap;"><a href="https://lh3.googleusercontent.com/-5Fsnry6lpGI/YV2CZoKyvrI/AAAAAAABtjs/6mL6xLHUkHIZXlPAhJdnvkE65NV6KfaBQCNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="470" data-original-width="786" height="382" src="https://lh3.googleusercontent.com/-5Fsnry6lpGI/YV2CZoKyvrI/AAAAAAABtjs/6mL6xLHUkHIZXlPAhJdnvkE65NV6KfaBQCNcBGAsYHQ/w640-h382/image.png" width="640" /></a></div><br /><span style="font-size: 14.6667px; white-space: pre-wrap;">8 - 9. Configuration of networking and security is depend on each organization policy, for example if you need</span> <span style="font-size: 14.6667px; white-space: pre-wrap;">private endpoint then you can not configure the whitelist FW rules. But if you want DB with out any security restrictions you can just add your IP and that is all.</span></span></div><div style="text-align: left;"><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space: pre-wrap;"><br /></span></span></div><div style="text-align: left;"><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space: pre-wrap;"><br /></span></span></div><div style="text-align: left;"><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space: pre-wrap;"><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-L1oftyQJrNU/YV2ZnOcS46I/AAAAAAABtj0/66wT3jgQILcOog_yC40-1KBDTszAGLe2gCNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="773" data-original-width="787" height="630" src="https://lh3.googleusercontent.com/-L1oftyQJrNU/YV2ZnOcS46I/AAAAAAABtj0/66wT3jgQILcOog_yC40-1KBDTszAGLe2gCNcBGAsYHQ/w640-h630/image.png" width="640" /></a></div><br />Nothing to do here</span></span></div><div style="text-align: left;"><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space: pre-wrap;"><br /></span></span></div><div style="text-align: left;"><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space: pre-wrap;"><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-ZPBQ05Tuhh0/YV2ZxRfRNeI/AAAAAAABtj4/vtnXIHJGi0IBIZDBbjbdBuEWM_Fl02SFACNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="806" data-original-width="787" height="640" src="https://lh3.googleusercontent.com/-ZPBQ05Tuhh0/YV2ZxRfRNeI/AAAAAAABtj4/vtnXIHJGi0IBIZDBbjbdBuEWM_Fl02SFACNcBGAsYHQ/w624-h640/image.png" width="624" /></a></div><br /></span></span><span id="docs-internal-guid-c10ccdf5-7fff-d8d2-1fcf-058c04df3160"><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">10 - use what you need</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">11 - Change to what you prefer</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;"><br /></span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;"> </span></p><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-8pcgjyaVKAI/YV2aEG7WRBI/AAAAAAABtkE/h3AdcO-mGQgXC0h-Tx8QhD3uUWJH_zZhACNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="837" data-original-width="673" height="640" src="https://lh3.googleusercontent.com/-8pcgjyaVKAI/YV2aEG7WRBI/AAAAAAABtkE/h3AdcO-mGQgXC0h-Tx8QhD3uUWJH_zZhACNcBGAsYHQ/w515-h640/image.png" width="515" /></a></div><br /></span><p></p><div><span style="font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space: pre-wrap;">Tags are for better managing.</span></span></div><div><span style="font-family: Arial;"><span style="font-size: 14.6667px; white-space: pre-wrap;"><br /></span></span></div><span style="font-family: arial;"><div class="separator" style="clear: both; text-align: center;"><a href="https://lh3.googleusercontent.com/-svRLA44Xkrc/YV2aPiZiU0I/AAAAAAABtkI/T_dlZBaNR38F9tYGyPYbpsk8Ri7jhpCwwCNcBGAsYHQ/image.png" style="margin-left: 1em; margin-right: 1em;"><img alt="" data-original-height="672" data-original-width="702" height="612" src="https://lh3.googleusercontent.com/-svRLA44Xkrc/YV2aPiZiU0I/AAAAAAABtkI/T_dlZBaNR38F9tYGyPYbpsk8Ri7jhpCwwCNcBGAsYHQ/w640-h612/image.png" width="640" /></a></div><br /></span><span id="docs-internal-guid-eb185277-7fff-a3fe-9975-9363d874704f"><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">12 - if all is good you can create the DB, if you gets error you need to go to the relevant error - here its in the basic tab, and to understand the error.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;"><br /></span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">13 - you can create a template for it, and recreate DB from template.</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;"><br /></span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;">That is all for today</span></p><p dir="ltr" style="line-height: 1.38; margin-bottom: 0pt; margin-top: 0pt;"><span style="font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;"><br /></span></p><div><span style="font-family: Arial; font-size: 11pt; font-variant-east-asian: normal; font-variant-numeric: normal; vertical-align: baseline; white-space: pre-wrap;"><br /></span></div></span></div><p></p>Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-10381382031319584042020-10-22T13:34:00.003+03:002020-10-22T13:34:48.694+03:00Configuring secondary database in Azure SQL DB - Bug found<p dir="ltr" style="text-align: left;"><span style="font-family: verdana;">Hi All</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;">Last week we had an issue with a secondary DB in geo replication and fail over group.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;">To make the long story short we had to delete the secondary and <b>recreate a secondary from scratch</b>.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;">And now let me tell you the story, we build a DB in P6 tier - very high, expensive and highly available.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;">Then we add a geo replication copy via the platform, like it shows here.</span></p><p dir="ltr" style="text-align: left;"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://1.bp.blogspot.com/-bSz7O_pSgDg/X5FJ2hf4tcI/AAAAAAABh-s/P8DEWneSVasAC42bEcA76UnuEwAv9N0VACNcBGAsYHQ/s965/Screenshot%2B2020-10-22%2B104021.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="695" data-original-width="965" height="461" src="https://1.bp.blogspot.com/-bSz7O_pSgDg/X5FJ2hf4tcI/AAAAAAABh-s/P8DEWneSVasAC42bEcA76UnuEwAv9N0VACNcBGAsYHQ/w640-h461/Screenshot%2B2020-10-22%2B104021.jpg" width="640" /></a></div><br /><span style="font-family: verdana;"><br /></span><p></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;">This is take from MSFT documentation:</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;"><a href="https://docs.microsoft.com/en-us/azure/azure-sql/database/active-geo-replication-overview" target="_blank">https://docs.microsoft.com/en-us/azure/azure-sql/database/active-geo-replication-overview</a><br /></span></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;">It is written: </span></p><p dir="ltr" style="text-align: left;"><i style="background-color: #f3f3f3;"><span style="font-family: verdana;">"</span><span style="color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;">Both primary and secondary databases are required to have the same service tier. It is also strongly recommended that the secondary database is created with the same backup storage redundancy and compute size (DTUs or vCores) as the primary. If the primary database is experiencing a heavy write workload, a secondary with lower compute size may not be able to keep up with it. That will cause redo lag on the secondary, and potential unavailability of the secondary. To mitigate these risks, active geo-replication will throttle the primary's transaction log rate if necessary to allow its secondaries to catch up.</span></i></p><p style="box-sizing: inherit; direction: ltr; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; margin: 1rem 0px 0px; outline-color: inherit; overflow-wrap: break-word; padding: 0px; text-align: start;"><i style="background-color: #f3f3f3;"><span style="color: #171717;">Another consequence of an imbalanced secondary configuration is that after failover, application performance may suffer due to insufficient compute capacity of the new primary. In that case, it will be necessary to scale up database service objective to the necessary level, which may take significant time and compute resources, and will require a</span><span style="color: #0b5394;"> <a data-linktype="relative-path" href="https://docs.microsoft.com/en-us/azure/azure-sql/database/high-availability-sla" style="box-sizing: inherit; cursor: pointer; outline-color: inherit; outline-style: initial; outline-width: 0px; overflow-wrap: break-word; text-decoration-line: none;">high availability</a></span><span style="color: #171717;"> failover at the end of the scale up process.</span></i></p><p dir="ltr" style="text-align: left;"><span style="background-color: #f3f3f3;"><i><span style="color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;"><b>If you decide to create the secondary with lower compute size, the log IO percentage chart in Azure portal provides a good way to estimate the minimal compute size of the secondary that is required to sustain the replication load.</b> For example, if your primary database is P6 (1000 DTU) and its log write percent is 50%, the secondary needs to be at least P4 (500 DTU). To retrieve historical log IO data, use the</span><span style="color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;"> </span><a data-linktype="absolute-path" href="https://docs.microsoft.com/en-us/sql/relational-databases/system-catalog-views/sys-resource-stats-azure-sql-database" style="box-sizing: inherit; cursor: pointer; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; outline-color: inherit; outline-style: initial; outline-width: 0px; overflow-wrap: break-word; text-decoration-line: none;"><span style="color: #0b5394;">sys.resource_stats</span></a><span style="color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;"> </span><span style="color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;">view. To retrieve recent log write data with higher granularity that better reflects short-term spikes in log rate, use</span><span style="color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;"> </span><a data-linktype="absolute-path" href="https://docs.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-db-resource-stats-azure-sql-database" style="box-sizing: inherit; cursor: pointer; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px; outline-color: inherit; outline-style: initial; outline-width: 0px; overflow-wrap: break-word; text-decoration-line: none;"><span style="color: #0b5394;">sys.dm_db_resource_stats</span></a><span style="color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;"> </span><span style="color: #171717; font-family: "Segoe UI", SegoeUI, "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 16px;">view.</span></i><span style="font-family: verdana;">" </span></span></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;">So we have decide to create the secondary with lower compute size. its nor recommend - but we can live with it.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;">We have created a P4 secondary and all went very well.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;">We used in those DB's an in-memory table, lately its been growing. one day we say in the monitoring that the secondary is stuck. So as a cloud lovers we just click to scale it up. Nothing happened. We clocked again.... nothing happened.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;">So we opened a ticket, they also tried to understand what wend wrong.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;">They found the root cause but did not find a way to solve it.</span></p><p dir="ltr" style="text-align: left;"><span style="color: #cc0000; font-family: verdana;"><b>The in-Memory Table in the primary went higher then the size permitted in the secondary. Scale up stuck all time</b></span></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;">Nothing helped, we need the secondary urgently, so we decided to cut it from the geo-replication and delete it and build a new secondary.</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;"><br /></span></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;">Those are the limitation :</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;"><a href="https://docs.microsoft.com/en-us/azure/azure-sql/database/resource-limits-dtu-single-databases" target="_blank">https://docs.microsoft.com/en-us/azure/azure-sql/database/resource-limits-dtu-single-databases</a><br /></span></p><p dir="ltr" style="text-align: left;"></p><div class="separator" style="clear: both; text-align: center;"><a href="https://1.bp.blogspot.com/-cMKs4xTUyj0/X5FfWFD7K0I/AAAAAAABh-4/jon6i1QAcrcUqxGVU9z8Ukc_9Vq9aBL0QCNcBGAsYHQ/s1040/Screenshot%2B2020-10-22%2B133020.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="422" data-original-width="1040" height="260" src="https://1.bp.blogspot.com/-cMKs4xTUyj0/X5FfWFD7K0I/AAAAAAABh-4/jon6i1QAcrcUqxGVU9z8Ukc_9Vq9aBL0QCNcBGAsYHQ/w640-h260/Screenshot%2B2020-10-22%2B133020.jpg" width="640" /></a></div><br /><span style="font-family: verdana;"><br /></span><p></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;"><br /></span></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;">I know we need to work by the recommendations but i am sure this scenario just now added to the automation QA :-).</span></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;"><br /></span></p><p dir="ltr" style="text-align: left;"><span style="font-family: verdana;"><br /></span></p>Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-15435048366072652802020-06-23T17:06:00.003+03:002020-06-23T17:11:15.351+03:00Availability Zones in Azure and the relation to SLA in Azure SQL DBשלום לכולם<br />כאשר מקנפגים Azure SQL DB מנוהל והוא תחת <br />Premium or Business Critical Toers<br />מיקרוסופט שואלים אותך:<br />Would you like to make this database zone redundant?<br />מה זו השאלה הזו? מה ההשפעה שלה ומה העלות שלה?<br /><br /><br /><br /><br /><a href="https://www.blogger.com/u/2/#"><img border="0" src="https://1.bp.blogspot.com/-AP8i69saW3U/XvDl9WgtLhI/AAAAAAABcFc/9NGN90YSjP86k9hMpMd5lccHlaObC5mfgCK4BGAsYHg/w625-h264/2020-06-22_20-06-57.jpg" /></a><br /><br /><br />אז עשינו ובדקנו מה ההשפעה.<br /><br /><br />הלינק הבסיסי להסבר הקונפיגורציה הזו הוא זה:<br /><a href="https://www.blogger.com/u/2/#">https://azure.microsoft.com/is-is/blog/azure-sql-database-now-offers-zone-redundant-premium-databases-and-elastic-pools/</a><br /><br /><br /><br />מה זה אומר?<br />זה מסביר על המושג הקריטי Availability Zones ועל השימוש שלו ב SLA של הדיבי שלנו.<br /><br /><br />ובכן בכל דאטה סנטר בענן יש בעצם 3 דאטה סנטרים, הכל מנותק אחד מהשני.<br /><br /><br /><a href="https://www.blogger.com/u/2/#">https://docs.microsoft.com/en-us/azure/availability-zones/az-overview</a><br /><br /><a href="https://www.blogger.com/u/2/#"><img border="0" src="https://1.bp.blogspot.com/-j-Bw51N8XKY/XvD4uEOpHTI/AAAAAAABcF4/YYczLjoPapUuSRoJiNQCt7KfoxGFZqEZwCK4BGAsYHg/w625-h539/2020-06-22_21-28-54.jpg" /></a><br /><br /><br />לכל Azure SQL DB יש 3 עותקים ניסתרים, מיקרוסופט נותנת אופציה לשמור את אחד העותקים הניסתרים ב Availability Zone אחר.<br /><br />הדבר מעלה את ה SLA כך שאם יש תקלה ב Availability Zone אחד זה לא משפיע על ה DB.<br /><br /><br />לכן אני ממליץ בחום לכולם לאפשר את הקונפיגורציה הזו.<br /><br /><div><div class="azc-formElementSubLabelContainer" style="background-color: white; color: #323130; font-size: 13px; text-align: start;"><div class="azc-formElementContainer" style="font-weight: inherit;"><div class="fxc-base azc-control azc-editableControl azc-validatableControl azc-itemList azc-optionPicker azc-validation-border azc-radio azc-inlineFlex azc-validatableControl-none" data-canfocus="true" data-control="true" data-editable="true" id="__field__17__" style="font-weight: inherit;"></div></div></div></div>Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com1tag:blogger.com,1999:blog-8306216690206802216.post-76216255079351269422020-01-16T10:59:00.003+02:002020-01-16T10:59:49.531+02:00Azure SQL DB Tiers - Improvments in hardware options<div dir="rtl" style="text-align: right;" trbidi="on">
<span style="font-family: Arial;">שלום לכולם</span><br />
<br />
<span style="font-family: Arial;">והיום על שיפורים בקונפיגורציות של <br />
<div dir="ltr" style="text-align: left;">
<br /><strong>Azure SQL DB in <span style="font-family: Arial;">v-Core mode</span></strong></div>
<div dir="ltr" style="text-align: left;">
<strong></strong> </div>
<div dir="ltr" style="text-align: left;">
</div>
<a href="https://1.bp.blogspot.com/-1sD6WKTTIW4/Xh3AZJBPddI/AAAAAAABXiU/eMqHFDJe5Ps1V7LQBjaSogij75ppJZs7wCNcBGAsYHQ/s1600/vcore-1.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="254" data-original-width="242" height="200" src="https://1.bp.blogspot.com/-1sD6WKTTIW4/Xh3AZJBPddI/AAAAAAABXiU/eMqHFDJe5Ps1V7LQBjaSogij75ppJZs7wCNcBGAsYHQ/s200/vcore-1.jpg" width="190" /></a></span><br />
<br />
<span style="font-family: Arial;"></span> <span style="font-family: Arial;"> </span><br />
<span style="font-family: Arial;"></span><br />
<span style="font-family: Arial;"></span><br />
<span style="font-family: Arial;"></span><br />
<span style="font-family: Arial;">תחת v-Core mode יש 3 אפשרויות:</span><br />
<span style="font-family: Arial;"><ul dir="ltr" style="text-align: left;">
<li><div style="text-align: left;">
<strong>General Purpose</strong></div>
</li>
<ul>
<li><div style="text-align: left;">
<strong><span style="font-size: x-small;">Provisioned</span></strong></div>
</li>
<li><div style="text-align: left;">
<strong><span style="font-size: x-small;">Server Less</span></strong></div>
</li>
</ul>
<li><div style="text-align: left;">
<strong>Hyper Scale </strong></div>
</li>
<li><div style="text-align: left;">
<strong>Business Critical</strong></div>
</li>
</ul>
<div style="text-align: right;">
בכל אחד מאלו אפשר לקבוע את כמות ה CPU והכמות סטורג'</div>
<div style="text-align: right;">
</div>
<div style="text-align: right;">
כאשר Hyper Scale זו טכנולוגיה אחרת ועליה נכתוב בפעם אחרת.</div>
<div style="text-align: right;">
</div>
<div style="text-align: right;">
General Purpose vs Business Critical - ההבדל ביניהם הוא האם ה SSD הוא מקומי בתוך השרת או שזה סטורג' מרכזי.</div>
<div style="text-align: right;">
</div>
<div style="text-align: right;">
בכל אחד משני אלו עד היום אפשר היה לבחור בין Gen4 & Gen 5</div>
<div style="text-align: right;">
כאשר ההבדל ביניהם הוא זה:</div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="-webkit-text-stroke-width: 0px; background-color: white; color: #0b5394; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<span style="font-family: arial narrow, sans-serif; font-size: medium;">Gen 4 CPUs are based on Intel E5-2673 v3 (Haswell) 2.4 GHz processors.</span></div>
<div dir="ltr" style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<span style="color: #0b5394; font-family: arial narrow, sans-serif; font-size: medium;">Gen 5 CPUs are based on Intel E5-2673 v4 (Broadwell) 2.3 GHz processors. </span></div>
<div dir="ltr" style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<span style="color: #0b5394; font-family: Arial Narrow; font-size: medium;"></span> </div>
<div align="right" style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: right; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<span style="color: black; font-family: Arial; font-size: medium;"><span style="font-size: small;">עכשיו הוסיפו עוד 2 אפשרויות </span></span></div>
<ul dir="ltr">
<li><div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<span style="font-size: small;">M-Series</span></div>
</li>
<li><div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<span style="font-size: small;">FSv2 Series</span></div>
</li>
</ul>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: right; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<span style="font-size: small;">זה נהיה מורכב - שימו לב </span></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: right; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<span style="font-size: small;">תחת General Purpose אפשר לבחור רק FSv2 בנוסף ל Gen4 \ Gen5 </span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-NpNuUhr5PhU/Xh3AZBTpW3I/AAAAAAABXiY/YhOOf1cL_DQD5B34LqvTe9MMT1k-d3WnQCEwYBhgL/s1600/vcore-2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="526" data-original-width="1600" height="209" src="https://1.bp.blogspot.com/-NpNuUhr5PhU/Xh3AZBTpW3I/AAAAAAABXiY/YhOOf1cL_DQD5B34LqvTe9MMT1k-d3WnQCEwYBhgL/s640/vcore-2.jpg" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-ePogco5ZQjs/Xh3AZE3_yGI/AAAAAAABXiQ/KWtkLw_6sAEXsKvT3g4ncaUwIiXdlKmGACEwYBhgL/s1600/vcore-3.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" data-original-height="274" data-original-width="1600" height="108" src="https://1.bp.blogspot.com/-ePogco5ZQjs/Xh3AZE3_yGI/AAAAAAABXiQ/KWtkLw_6sAEXsKvT3g4ncaUwIiXdlKmGACEwYBhgL/s640/vcore-3.jpg" width="640" /></a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: right; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<span style="font-size: small;"></span> </div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: right; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<span style="font-size: small;"></span> </div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: right; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<span style="font-size: small;">תחת Business Critical אפשר לבחור רק M בנוסף ל Gen4 \ Gen5 </span></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: right; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<span style="font-size: small;"></span> </div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: right; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<span style="font-size: small;">על סידרה M, על הכוח שלה ועל היכולות שלה אפשר לקרוא פה</span></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: right; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<a href="https://techcommunity.microsoft.com/t5/azure-sql-database/scaling-up-an-iot-workload-using-an-m-series-azure-sql-database/ba-p/1106271" target="_blank">https://techcommunity.microsoft.com/t5/azure-sql-database/scaling-up-an-iot-workload-using-an-m-series-azure-sql-database/ba-p/1106271</a></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: right; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<span style="font-size: small;"></span> </div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: right; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-o6GqOodIjCs/Xh3AZ80BzHI/AAAAAAABXio/aEOOCbvrZFQQ5xvHsOrR8cd7XiNeTfmNgCEwYBhgL/s1600/vcore-4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="505" data-original-width="1600" height="202" src="https://1.bp.blogspot.com/-o6GqOodIjCs/Xh3AZ80BzHI/AAAAAAABXio/aEOOCbvrZFQQ5xvHsOrR8cd7XiNeTfmNgCEwYBhgL/s640/vcore-4.jpg" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-of4HnnnJ7ZQ/Xh3AaMqbPBI/AAAAAAABXio/Ei1qWRkRODsEm-tQ4XHeAlP_h0DJcouaQCEwYBhgL/s1600/vcore-5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="306" data-original-width="1600" height="122" src="https://1.bp.blogspot.com/-of4HnnnJ7ZQ/Xh3AaMqbPBI/AAAAAAABXio/Ei1qWRkRODsEm-tQ4XHeAlP_h0DJcouaQCEwYBhgL/s640/vcore-5.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: right;">
אכן זה נהיה מורכב אבל אם רוצים לתת אפשרות לשליטה זה המקום </div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: right; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
</div>
</span></div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-1329544807495625002020-01-13T11:33:00.000+02:002020-01-13T11:33:16.678+02:00Cloud SQL for SQL Server at GCP - Part 2<div dir="rtl" style="text-align: right;" trbidi="on">
<span style="font-family: "arial" , "helvetica" , sans-serif;">שלום לכולם<br />והיום נסביר איך עושים scale up and scale down.<br /><br />אם התרגלנו ב Azure SQL DB להעלות Tier ולהוריד Tier על ידי בחירת Tier ואז הכל יושפע וישתנה ממנו, פה ניתנת אפשרות להוסיף זזכרות מעבדים וסטורג'.<br />הדבר הוא יותר דינמי כי אפשר לפתור בעיה ספציפית, אבל מצש שני נותן לנו אין סוף אפשרויות לביצוע ולעיתים אתה לא יודע מה להחליט ומה עולה כמה.</span><br />
<span style="font-family: "arial";"></span><br />
<span style="font-family: "arial";">להלן המסכים:</span><br />
<span style="font-family: "arial";">נכנסים למסך הקונפיגורציה על ידי לחיצה על הלינק המסומן:</span><br />
<span id="goog_1398312237"></span><span id="goog_1398312238"></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-rw-kEhU7TWY/Xhq0j63HOmI/AAAAAAABXf8/yyZng6vQZ1sEozBApjCK33nbmDSEVtzcwCNcBGAsYHQ/s1600/scal1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="889" data-original-width="1503" height="378" src="https://1.bp.blogspot.com/-rw-kEhU7TWY/Xhq0j63HOmI/AAAAAAABXf8/yyZng6vQZ1sEozBApjCK33nbmDSEVtzcwCNcBGAsYHQ/s640/scal1.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: right;">
</div>
<div class="separator" style="clear: both; text-align: right;">
<span style="font-family: Arial, Helvetica, sans-serif;">מכאן המסך מתפצל לסוגי קונפיגורציות - אנו נתמקד בחומרה:</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-6T_2ieq9iF4/Xhq0j_07x8I/AAAAAAABXgA/B1mRc3qkNi8Ao6q-Vs5Dia1T42uuKA-sQCNcBGAsYHQ/s1600/scale2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="857" data-original-width="1205" height="454" src="https://1.bp.blogspot.com/-6T_2ieq9iF4/Xhq0j_07x8I/AAAAAAABXgA/B1mRc3qkNi8Ao6q-Vs5Dia1T42uuKA-sQCNcBGAsYHQ/s640/scale2.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: right;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<span style="font-family: Arial;">אנו נשנה את מה שצריך למשל זיכרון ו cpu.<br />נשנה את הסטורג' ובצד ימין יש סיכום.</span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-xZjjCU9B438/Xhq0j6DaIAI/AAAAAAABXgE/jd_gOdUkpCYiP8LFWrAH4XVTkNjgv77-QCNcBGAsYHQ/s1600/scale3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="793" data-original-width="916" height="554" src="https://1.bp.blogspot.com/-xZjjCU9B438/Xhq0j6DaIAI/AAAAAAABXgE/jd_gOdUkpCYiP8LFWrAH4XVTkNjgv77-QCNcBGAsYHQ/s640/scale3.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: right;">
<span style="font-family: Arial;">לחצנו סימנו ובחרנו ואז לאחר האישור מופיעה ההודעה שהשרת יעבור איתחול בכדי לתפוס את השינויים.</span></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-QEkjf5Z51Jg/Xhq0oL_Ht9I/AAAAAAABXgI/8E4dXi8mSF8nZnA-w-KBLfj3qAQcVnprwCNcBGAsYHQ/s1600/scale4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="343" data-original-width="1006" height="218" src="https://1.bp.blogspot.com/-QEkjf5Z51Jg/Xhq0oL_Ht9I/AAAAAAABXgI/8E4dXi8mSF8nZnA-w-KBLfj3qAQcVnprwCNcBGAsYHQ/s640/scale4.jpg" width="640" /></a></div>
<br />
<span style="font-family: Arial, Helvetica, sans-serif;">כמה דקות אחרי כן כשהשרת עולה - הכל מקונפג לפי ההגדרות.</span><br />
<span style="font-family: Arial;"></span><br />
<span style="font-family: Arial;">זהו ממש פשוט... תבצעו את זה ובפעם הבאה נתחיל לבדוק ולראות מה שונה ומה שווה...</span><br />
<span style="font-family: Arial;"></span><br />
<br />
<span style="font-family: Arial;">ניתן לבדוק בהרצת שאילתות אלו לבדיקת cpu וזיכרון:</span><br />
<span style="font-family: Arial;"></span><br />
<div dir="ltr" style="text-align: left;">
<br />-- CPU assigned to database<br />SELECT<br /> scheduler_id,<br /> cpu_id,<br /> status,<br /> is_online<br />FROM sys.dm_os_schedulers<br />WHERE status = 'VISIBLE ONLINE'</div>
<div dir="ltr" style="text-align: left;">
<br />-- Memory allocated to database<br />SELECT<br /> *,<br /> cntr_value / 1024 AS RAM_in_MB<br />FROM sys.dm_os_performance_counters<br />WHERE counter_name LIKE '%Target Server Memory%'</div>
</div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-47093365486485436852019-11-19T15:08:00.000+02:002019-11-20T18:10:23.002+02:00Cloud SQL for SQL Server at GCP - Part 1<div dir="rtl" style="text-align: right;" trbidi="on">
שלום לכולם<br />
בסיסי נתונים מנוהלים (PAAS) הם הדבר האהוב עליי, ולכן כבר ב 2010 התחברתי ל <br />
Azure SQL DB.<br />
תן לספק הענן להיות אחראי על הכול, כולל גיבויים, כולל שחזורים, כולל שדרוג מערכות הפעלה וכדומה.<br />
מיקרוסופט נהנית מיתרון.<br />
המוצר המרכזי שלהם SQL Server בעולם בסיסי הנתונים עבר מתיחת פנים ראויה והוא מוצר יעיל, נמכר ויציב. מיקרוסופט הוסיפו גרסאות מנוהלות של MySQL, Postgress ועוד.<br />
<br />
אמזון החלה כבר ממזמן לספק בסיסי נתונים מנוהלים במוצר שנקרא RDS, החל מ <br />
MySQL, Oracle, postgres and SQL Server.<br />
<br />
כמובן גם גוגל נכנסת לתמונה והם מציעים 3 מוצרים של בסיס נתונים מנוהלים בענן שלהם הידוע בשמו GCP תחת הכותר: Cloud SQL.<br />
<br />
אם בפורטל של גוגל נכנסים ל SQL זה מה שרואים:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-UkJkTltuLtU/XdPbfmPlGkI/AAAAAAABV1Q/-wzxYZVK1M81ul8R9prvlhbxyfe9uFW7gCNcBGAsYHQ/s1600/gcp1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="574" data-original-width="261" height="640" src="https://1.bp.blogspot.com/-UkJkTltuLtU/XdPbfmPlGkI/AAAAAAABV1Q/-wzxYZVK1M81ul8R9prvlhbxyfe9uFW7gCNcBGAsYHQ/s640/gcp1.jpg" width="290" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" style="clear: both; text-align: right;">
3 סוגים של בסיסי נתונים מוצעים למכירה:</div>
<div class="separator" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" style="clear: both; text-align: right;">
</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-0esnq_NaUIg/XdPbfto2wAI/AAAAAAABV1U/5aB2gZuFnVg-wEpUbPzXa-IId2SuNH4zQCNcBGAsYHQ/s1600/gcp2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="318" data-original-width="868" height="234" src="https://1.bp.blogspot.com/-0esnq_NaUIg/XdPbfto2wAI/AAAAAAABV1U/5aB2gZuFnVg-wEpUbPzXa-IId2SuNH4zQCNcBGAsYHQ/s640/gcp2.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: right;">
במקרה שלנו נבחר כמובן SQL Server.</div>
<br />
<div class="separator" style="clear: both; text-align: right;">
לאחר הבחירה עולה מסך קונפיגורציות:</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-oEfCjvdSp6I/XdPbfn9H8PI/AAAAAAABV18/tN2ydNMimiIhat1rYreB9IKKxQXN707BACEwYBhgL/s1600/gcp3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="956" data-original-width="790" height="640" src="https://1.bp.blogspot.com/-oEfCjvdSp6I/XdPbfn9H8PI/AAAAAAABV18/tN2ydNMimiIhat1rYreB9IKKxQXN707BACEwYBhgL/s640/gcp3.jpg" width="528" /></a></div>
<div class="separator" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" style="clear: both; text-align: right;">
בוחרים שם של מכונה</div>
ססמא<br />
מיקום של הדאטה סנטר הרלוונטי.<br />
<div class="separator" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" style="clear: both; text-align: right;">
ואז יש 6 תתי מסכים לשינויים והגדרות:</div>
<div class="separator" style="clear: both; text-align: right;">
סוג המכונה והסטורג'</div>
<div class="separator" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" style="clear: both; text-align: right;">
שימו לב אלו הגרסאות של ה SQL המוצעות. (בניגוד ל Azure SQL DB שספק הענן משדרג את הגרסה - פה בוחרים גרסה. כרגע יש רק SQL Server2017.</div>
<div class="separator" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<a href="https://1.bp.blogspot.com/-aPm4Ax0HXpg/XdPbgmrefOI/AAAAAAABV14/-bOa_04gF0wFA5qkJLZF13UnGf-b3jd-ACEwYBhgL/s1600/gcp5.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" data-original-height="168" data-original-width="421" height="254" src="https://1.bp.blogspot.com/-aPm4Ax0HXpg/XdPbgmrefOI/AAAAAAABV14/-bOa_04gF0wFA5qkJLZF13UnGf-b3jd-ACEwYBhgL/s640/gcp5.jpg" width="640" /></a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div style="clear: both; text-align: right;">
<br />
</div>
<div class="separator" style="clear: both; text-align: right;">
<a href="https://1.bp.blogspot.com/-CIitgQiU0dQ/XdPbg9g_b5I/AAAAAAABV14/0dei5xHACm8lcbj-CF_3JlMEsVtUmcSPgCEwYBhgL/s1600/gcp6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="147" data-original-width="377" height="248" src="https://1.bp.blogspot.com/-CIitgQiU0dQ/XdPbg9g_b5I/AAAAAAABV14/0dei5xHACm8lcbj-CF_3JlMEsVtUmcSPgCEwYBhgL/s640/gcp6.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: right;">
בוחרים כמה CPU וכמה RAM וכמה סטורג יהיה מחובר למכונה.</div>
אי אפשר לשלוט מיקום הקבצים וכדומה.<br />
<div class="separator" style="clear: both; text-align: right;">
<a href="https://1.bp.blogspot.com/-B1XKNf-mD8g/XdPbgS9TjxI/AAAAAAABV10/h8Qbsui1eHkHCLxbhJ35BbT8a7bW0inDACEwYBhgL/s1600/gcp4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="577" data-original-width="559" height="640" src="https://1.bp.blogspot.com/-B1XKNf-mD8g/XdPbgS9TjxI/AAAAAAABV10/h8Qbsui1eHkHCLxbhJ35BbT8a7bW0inDACEwYBhgL/s640/gcp4.jpg" width="620" /></a></div>
<div style="clear: both; text-align: right;">
במידה ובחרתם ב custom - אז ניתן לבחור קומבינציות שונות.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-8b-9_ezt4CM/XdPbhMoZ5zI/AAAAAAABV18/9hLBVYna_EceSp7ufDf43p7J0h3dqTw6wCEwYBhgL/s1600/gcp7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="229" data-original-width="497" height="294" src="https://1.bp.blogspot.com/-8b-9_ezt4CM/XdPbhMoZ5zI/AAAAAAABV18/9hLBVYna_EceSp7ufDf43p7J0h3dqTw6wCEwYBhgL/s640/gcp7.jpg" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" style="clear: both; text-align: right;">
<br /></div>
בפוסטים הבאים נדבר על חיבורים, תחזוקה וכדומה.<br />
במידה והכל סומן נוצר שרת (על לינוקס) עם DB עליו.<br />
בפורטל של גוגל הוא מופיע כך:<br />
כל הפרמטרים + כמה גרפים נחמדים.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-jp53bbDf34A/XdPbhbbhuSI/AAAAAAABV18/XPTRkbuTKi4Rsl8BL-wk0o9eYq2I4xyWACEwYBhgL/s1600/gcp8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="809" data-original-width="1359" height="380" src="https://1.bp.blogspot.com/-jp53bbDf34A/XdPbhbbhuSI/AAAAAAABV18/XPTRkbuTKi4Rsl8BL-wk0o9eYq2I4xyWACEwYBhgL/s640/gcp8.jpg" width="640" /></a></div>
שימו לב ב SSMS הוא מופיע עם אייקון קטן ונחמד של פינגווין :-)<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-YlNajEYfmA0/XdPosACtrlI/AAAAAAABV2E/2xcyB2H9VVQgfUaxx57Kwd4noUK8ZZ6FQCNcBGAsYHQ/s1600/gcp9.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="290" data-original-width="305" height="608" src="https://1.bp.blogspot.com/-YlNajEYfmA0/XdPosACtrlI/AAAAAAABV2E/2xcyB2H9VVQgfUaxx57Kwd4noUK8ZZ6FQCNcBGAsYHQ/s640/gcp9.jpg" width="640" /></a></div>
<br />
בפוסטים הבאים נעבור על המשך הקונפיגורציות כמו גיבויים, עלויות וכדומה.<br />
וגם נבדוק ביצועים.<br />
יום נעים<br />
</div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-60037794818149635312019-10-10T11:57:00.000+03:002019-10-10T11:57:14.812+03:00Azure SQL DB tiers Short Overview<div dir="rtl" style="text-align: right;" trbidi="on">
שלום לכולם<br />
היום אסקור בקצרה את ה tiers השונים לבחירת DB.<br />
במילה tiers מסתתרת משמעות רחבה מאד, טווח רחב מאד של אפשרויות ביצועים.<div>
בפוסט שפרסמתי בחודש מרץ ביצעתי השוואות ביצועים בין tiers שונים:</div>
<a href="http://www.sqlazure.co.il/2019/03/azure-sql-db-tiers-comparison.html" target="_blank">http://www.sqlazure.co.il/2019/03/azure-sql-db-tiers-comparison.html</a><br />
<br />
והיום אציג טבלה ובה החומרה מתחת לפני השטח נכון להיום!<br />
כידוע יש 2 קבוצות שונות של שרתים שאפשר לבחור עבור Azure SQL DB<br />
<br />
<ol style="text-align: right;">
<li>DTU</li>
<li>vCore</li>
</ol>
<br />
כאשר באפשרות הראשונה אין אפשרות לבחור קומבינציה של רכיבים - פשוט בוחרים:<br />
Basic\Standard1..12\Premium1...15<br />
שזה שוני שנובע מ Local SSD<br />
<br />
וכאשר באפשרות השנייה יש אפשרות לבחור בין סוגי CPU שונים<br />
<div style="text-align: left;">
Gen 4 / Gen 5</div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: #0b5394; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<span style="font-family: arial narrow, sans-serif; font-size: medium;">Gen 4 CPUs are based on<span> </span><span class="il">Intel</span><span> </span>E5-2673 v3 (Haswell) 2.4 GHz processors</span></div>
<div style="-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Arial, Helvetica, sans-serif; font-size: small; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">
<span style="color: #0b5394; font-family: arial narrow, sans-serif; font-size: medium;">Gen 5 CPUs are based on<span> </span><span class="il">Intel</span><span> </span>E5-2673 v4 (Broadwell) 2.3 GHz processors</span></div>
<br />
שזה גם משפיע על כמות ה RAM<br />
והאם <br />
Busines critical \ General purpose<br />
שגם זה שוני שנובע מ Local SSD<br />
תחת vCore - יש אפשרות לבצע תשלום מראש לכמה שנים ובכך לחסוך המון כסף למי שמשתמש ב vCore (ועל זה בפעם אחרת)<br />
<br />
יש עוד קומבינציות ועוד אפשרויות אבל גם את זה נשמור לפעם אחרת.<br />
<br />
מכיוון שאי אפשר לכמת מה יש תחת DTU מבחינת חומרה להלן ההשוואה <br />
<br />
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">Tier CPU RAM </span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">in</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> GB</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><strong>s0</strong> 1</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 1</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><strong>s1</strong> 1</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 2</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><strong>s2</strong> 1</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 2</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><strong>s3</strong> 2</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 9</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><strong>s4</strong> 4</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 19</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><strong>s6</strong> 6</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 28</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><strong>s7</strong> 12</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 56</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><strong>s9</strong> 24</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 113</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><strong>s12</strong> 44</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 173</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><strong>p1</strong> 2</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 9</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><strong>p2</strong> 4</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 19</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><strong>p4</strong> 6</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 28</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><strong>p6</strong> 12</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 56</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><strong>p11</strong> 18</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 82</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><strong>p15</strong> 42</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 171</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><strong>GeneralPurpose GP_Gen4</strong>_1 1</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 4</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><strong>GeneralPurpose GP_Gen4</strong>_24 24</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 80</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">GeneralPurpose GP_Gen5_80 80</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">,</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 190</span></span></div>
<br />
מפה כל אחד ילמד ויבין מה טוב לו<br />
ניתן להסתכל בלינק הבא על כל מיני פרטים נוספים<br />
<br />
<a href="https://docs.microsoft.com/en-us/azure/sql-database/sql-database-service-tiers-general-purpose-business-critical" target="_blank">https://docs.microsoft.com/en-us/azure/sql-database/sql-database-service-tiers-general-purpose-business-critical</a><br />
<br />
את המידע שלפתי לפי השאילתא הבאה:<br />
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
<span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: green; font-family: Consolas; font-size: x-small;"></span></span></span><div dir="ltr" style="text-align: left;">
<span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: green; font-family: Consolas; font-size: x-small;">-- CPU assigned to database</span></span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: green; font-family: Consolas; font-size: x-small;">
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;">SELECT</span></span></span></span></span></span><div dir="ltr" style="text-align: left;">
<span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> scheduler_id</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">, <span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">cpu_id</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">, <span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;">status</span></span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">, <span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">is_online</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><div dir="ltr" style="text-align: left;">
<span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;">FROM</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="color: lime; font-family: Consolas; font-size: x-small;"><span style="color: lime; font-family: Consolas; font-size: x-small;"><span style="color: lime; font-family: Consolas; font-size: x-small;">sys</span></span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">.</span></span></span><span style="color: lime; font-family: Consolas; font-size: x-small;"><span style="color: lime; font-family: Consolas; font-size: x-small;"><span style="color: lime; font-family: Consolas; font-size: x-small;">dm_os_schedulers</span></span></span></span></span></span></span></span></span></span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="color: lime; font-family: Consolas; font-size: x-small;"><span style="color: lime; font-family: Consolas; font-size: x-small;"><span style="color: lime; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;">WHERE</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;">status</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">=</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="color: red; font-family: Consolas; font-size: x-small;"><span style="color: red; font-family: Consolas; font-size: x-small;"><span style="color: red; font-family: Consolas; font-size: x-small;">'VISIBLE ONLINE'</span></span></span></span></span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="color: red; font-family: Consolas; font-size: x-small;"><span style="color: red; font-family: Consolas; font-size: x-small;"><span style="color: red; font-family: Consolas; font-size: x-small;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"></span></span></span></span></span><div dir="ltr" style="text-align: left;">
<span style="color: red; font-family: Consolas; font-size: x-small;"><span style="color: red; font-family: Consolas; font-size: x-small;"><span style="color: red; font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
<span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: green; font-family: Consolas; font-size: x-small;">-- Memory allocated to database</span></span></span></span></span></span></span></span><div dir="ltr" style="text-align: left;">
<span style="color: red; font-family: Consolas; font-size: x-small;"><span style="color: red; font-family: Consolas; font-size: x-small;"><span style="color: red; font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: green; font-family: Consolas; font-size: x-small;">
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;">SELECT <span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">*, <span style="color: red; font-family: Consolas; font-size: x-small;"><span style="color: red; font-family: Consolas; font-size: x-small;"><span style="color: red; font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: green; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">cntr_value </span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">/</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> 1024</span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">/</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">1024 </span></span><span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;">AS</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> RAM_in_GB</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><div dir="ltr" style="text-align: left;">
<span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;">
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;">FROM</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="color: lime; font-family: Consolas; font-size: x-small;"><span style="color: lime; font-family: Consolas; font-size: x-small;"><span style="color: lime; font-family: Consolas; font-size: x-small;">sys</span></span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">.</span></span></span><span style="color: lime; font-family: Consolas; font-size: x-small;"><span style="color: lime; font-family: Consolas; font-size: x-small;"><span style="color: lime; font-family: Consolas; font-size: x-small;">dm_os_performance_counters</span></span></span></span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="color: lime; font-family: Consolas; font-size: x-small;"><span style="color: lime; font-family: Consolas; font-size: x-small;"><span style="color: lime; font-family: Consolas; font-size: x-small;">
<span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;"><span style="color: blue; font-family: Consolas; font-size: x-small;">WHERE</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> counter_name </span></span><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;"><span style="color: grey; font-family: Consolas; font-size: x-small;">LIKE</span></span></span><span style="font-family: Consolas; font-size: x-small;"><span style="font-family: Consolas; font-size: x-small;"> </span></span><span style="color: red; font-family: Consolas; font-size: x-small;"><span style="color: red; font-family: Consolas; font-size: x-small;"><span style="color: red; font-family: Consolas; font-size: x-small;">'%Target Server Memory%'</span></span></span></span></span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="color: red; font-family: Consolas; font-size: x-small;"></span> </div>
<div dir="ltr" style="text-align: left;">
<span style="color: red; font-family: Consolas; font-size: x-small;"></span> </div>
<div dir="ltr" style="text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-IsztAXlJhnE/XZ7yGUcu0GI/AAAAAAABVJk/zduZ6xTAEYsq_RUOvMYGMes1cAzY04u9gCNcBGAsYHQ/s1600/10-10-2019%2B11-55-24%2BAM.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="198" data-original-width="668" height="187" src="https://1.bp.blogspot.com/-IsztAXlJhnE/XZ7yGUcu0GI/AAAAAAABVJk/zduZ6xTAEYsq_RUOvMYGMes1cAzY04u9gCNcBGAsYHQ/s640/10-10-2019%2B11-55-24%2BAM.jpg" width="640" /></a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-50276804962033512662019-08-20T14:11:00.001+03:002019-08-20T14:11:27.584+03:00Auto Pause in Azure SQL Database Serverless<div dir="rtl" style="text-align: right;" trbidi="on">
שלום לכולם<br />
והפעם נציג את האפשרות שבסיס הנתונים יהיה ב - Pause. ובכך העלות על ה Compute לא יתבצע אלא רק העלות על Storage.<br />
עד היום אם רציתם בסיס נתונים בעלות נמוכה וגם כשהוא לא פעיל היה אפשר לשים אותו או ב<br />tier - basic<br />or in Standard 0<br />שהעלות שלו היא הגונה 15 דולר לחודש על 250 ג'יגה.<br />מיקרוסופט הציעו סוג חדש שכשהוא לא פעיל x שעות הוא נכנס למצב של pause ואז אין עלות אלא על storage.<br />בחישוב מהיר שלי עולה כי אם בסיס הנתונים קטן מ 90 ג'יגה והוא לא פעיל רוב הזמן כדאי לעבור אליו.<br />איך זה עובד?<br />אם הוא מזהה 0 DTU במשך הזמן שהוגדר הוא קופא, בפניה הראשונה מקבלים שגיאה.<br />ואז בפניה השנייה אחרי שממתינים כמה שניות בסיס הנתונים דלוק.<br />
<br />
התהליך פשוט:<br />
הולכים למסך קונפיגורציה <br />בוחרים את Serveless<br />
מגדירים תוך כמה שעות ללא פעילות הוא ייכנס למצב pause.<br />
מגדירים מינימום cpu ומקסימים cpu.<br />
<div>
מגדירים כמה storage יוקצה.</div>
<div>
</div>
<div>
וזהו.</div>
<div>
מצורפים המסכים הבאים:</div>
<ol style="text-align: right;">
<li>מסך ההגדרה עצמו.</li>
<li>מסך של בסיס נתונים פעיל</li>
<li>מסך של בסיס נתונים שנעצר</li>
<li>מסך של שגיאה מ SSMS בחיבור.</li>
</ol>
ומסכים של המסך הראשי - בו יש גרף טיפה אחרת שמציג מידע רלווטי - למשל cpu וגם האם הוא במצב של עצירה.<br />וגם מסך שמציג שגיאה בחיבור ראשוני.<br />
<br />
אלו 2 לינקים רלוונטיים בנושא<br />
<div dir="ltr" style="text-align: left;">
<a href="https://docs.microsoft.com/en-us/azure/sql-database/sql-database-serverless" target="_blank">https://docs.microsoft.com/en-us/azure/sql-database/sql-database-serverless</a></div>
<br />
<div dir="ltr" style="text-align: left;">
<a href="https://azure.microsoft.com/en-us/blog/optimize-price-performance-with-compute-auto-scaling-in-azure-sql-database-serverless/" target="_blank">https://azure.microsoft.com/en-us/blog/optimize-price-performance-with-compute-auto-scaling-in-azure-sql-database-serverless/</a></div>
נסו ותהנו.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-I6JGOqyMouM/XVvVDOYa1fI/AAAAAAABTqM/uN2Zu81rYOsSyXbzABbj05SJILvkIOLTwCLcBGAs/s1600/SL1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="827" data-original-width="1600" height="330" src="https://1.bp.blogspot.com/-I6JGOqyMouM/XVvVDOYa1fI/AAAAAAABTqM/uN2Zu81rYOsSyXbzABbj05SJILvkIOLTwCLcBGAs/s640/SL1.jpg" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-ZMJ85oPFRUA/XVvVDAssLPI/AAAAAAABTqI/hvFQG5zSHkAqypZnjlbAVqloFFaJ4PEBQCLcBGAs/s1600/SL2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="496" data-original-width="1308" height="242" src="https://1.bp.blogspot.com/-ZMJ85oPFRUA/XVvVDAssLPI/AAAAAAABTqI/hvFQG5zSHkAqypZnjlbAVqloFFaJ4PEBQCLcBGAs/s640/SL2.jpg" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-6j2utOxOmKo/XVvVDGPHV6I/AAAAAAABTqQ/OvM-83co4SUYFrTbDcYG6dmA_g9ysBfjgCLcBGAs/s1600/SL3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="750" data-original-width="1514" height="316" src="https://1.bp.blogspot.com/-6j2utOxOmKo/XVvVDGPHV6I/AAAAAAABTqQ/OvM-83co4SUYFrTbDcYG6dmA_g9ysBfjgCLcBGAs/s640/SL3.jpg" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-5H6BhqYtJO0/XVvVD8L8fZI/AAAAAAABTqU/aN-TxSdcFJ8MAb314Imo3jD1tmpW6XjGACLcBGAs/s1600/SL4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="176" data-original-width="719" height="156" src="https://1.bp.blogspot.com/-5H6BhqYtJO0/XVvVD8L8fZI/AAAAAAABTqU/aN-TxSdcFJ8MAb314Imo3jD1tmpW6XjGACLcBGAs/s640/SL4.jpg" width="640" /></a></div>
<br />
<br />
<br />
<br /><br /> </div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-63755239899639874122019-08-06T14:59:00.000+03:002019-08-06T15:04:43.205+03:00sp_whoisactive of Adam Machanic at GitHub is now support Azure SQL DB<div dir="rtl" style="text-align: right;" trbidi="on">
<h1 dir="ltr" style="background-color: white; border-bottom-color: rgb(234, 236, 239); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: #24292e; font-family: , "blinkmacsystemfont" , "segoe ui" , "helvetica" , "arial" , sans-serif , "apple color emoji" , "segoe ui emoji" , "segoe ui symbol"; font-style: normal; font-weight: 600; letter-spacing: normal; line-height: 1.25; margin: 0px 0px 16px; padding-bottom: 0.3em; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="font-size: small;">sp_whoisactive is a very helpful monitoring sp used by almost ever SQL Server DBA. It was written by Adam Machanic. </span></h1>
<h1 dir="ltr" style="background-color: white; border-bottom-color: rgb(234, 236, 239); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: #24292e; font-family: , "blinkmacsystemfont" , "segoe ui" , "helvetica" , "arial" , sans-serif , "apple color emoji" , "segoe ui emoji" , "segoe ui symbol"; font-style: normal; font-weight: 600; letter-spacing: normal; line-height: 1.25; margin: 0px 0px 16px; padding-bottom: 0.3em; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="font-size: small;"><span style="font-size: small;">It provide a lot of data showing what is running in your server and the resources being consumed.</span></span></h1>
<div dir="ltr" style="background-color: white; border-bottom-color: rgb(234, 236, 239); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: #24292e; font-family: , "blinkmacsystemfont" , "segoe ui" , "helvetica" , "arial" , sans-serif , "apple color emoji" , "segoe ui emoji" , "segoe ui symbol"; font-style: normal; font-weight: 600; letter-spacing: normal; line-height: 1.25; margin: 0px 0px 16px; padding-bottom: 0.3em; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
Adam & his great team have saved us many hours of work - Thank you Adam!!!</div>
<div dir="ltr" style="background-color: white; border-bottom-color: rgb(234, 236, 239); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: #24292e; font-family: , "blinkmacsystemfont" , "segoe ui" , "helvetica" , "arial" , sans-serif , "apple color emoji" , "segoe ui emoji" , "segoe ui symbol"; font-style: normal; font-weight: 600; letter-spacing: normal; line-height: 1.25; margin: 0px 0px 16px; padding-bottom: 0.3em; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
I have been waiting for many years for this SP to be compatible with SQL Azure. </div>
<div dir="ltr" style="background-color: white; border-bottom-color: rgb(234, 236, 239); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: #24292e; font-family: , "blinkmacsystemfont" , "segoe ui" , "helvetica" , "arial" , sans-serif , "apple color emoji" , "segoe ui emoji" , "segoe ui symbol"; font-style: normal; font-weight: 600; letter-spacing: normal; line-height: 1.25; margin: 0px 0px 16px; padding-bottom: 0.3em; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
In previous versions when we tried running it on Azure SQL DB we got this error:</div>
<div dir="ltr" style="background-color: white; border-bottom-color: rgb(234, 236, 239); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: #24292e; font-family: , "blinkmacsystemfont" , "segoe ui" , "helvetica" , "arial" , sans-serif , "apple color emoji" , "segoe ui emoji" , "segoe ui symbol"; font-style: normal; font-weight: 600; letter-spacing: normal; line-height: 1.25; margin: 0px 0px 16px; padding-bottom: 0.3em; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
"<span style="font-family: "consolas"; font-size: x-small;"><span style="font-family: "consolas"; font-size: x-small;">Msg 40515, Level 15, State 1, Procedure sp_WhoIsActive, Line 16 [Batch Start Line 7]<span style="font-family: "consolas"; font-size: x-small;"><span style="font-family: "consolas"; font-size: x-small;">Reference to database and/or server name in 'msdb.dbo.sysjobs' is not supported in this version of SQL Server." on <span style="font-family: "segoe ui"; font-size: small;">(v10.76) </span></span></span></span></span><br />
<div dir="ltr" style="background-color: white; border-bottom-color: rgb(234, 236, 239); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: #24292e; font-family: , "blinkmacsystemfont" , "segoe ui" , "helvetica" , "arial" , sans-serif , "apple color emoji" , "segoe ui emoji" , "segoe ui symbol"; font-style: normal; font-weight: 600; letter-spacing: normal; line-height: 1.25; margin: 0px 0px 16px; padding-bottom: 0.3em; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<span style="font-family: "segoe ui"; font-size: small;">In the SP it called MSDB and since we do not have MSDB in SQL Azure we got the error.</span><br />
<div dir="ltr" style="background-color: white; border-bottom-color: rgb(234, 236, 239); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: #24292e; font-family: , "blinkmacsystemfont" , "segoe ui" , "helvetica" , "arial" , sans-serif , "apple color emoji" , "segoe ui emoji" , "segoe ui symbol"; font-style: normal; font-weight: 600; letter-spacing: normal; line-height: 1.25; margin: 0px 0px 16px; padding-bottom: 0.3em; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
Adam put his SP in GitHub <a href="https://github.com/amachanic/sp_whoisactive">https://github.com/amachanic/sp_whoisactive</a> , and I found out this the version was upgraded to v11.33. And now it runs on SQL Azure.</div>
<div dir="ltr" style="background-color: white; border-bottom-color: rgb(234, 236, 239); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: #24292e; font-family: , "blinkmacsystemfont" , "segoe ui" , "helvetica" , "arial" , sans-serif , "apple color emoji" , "segoe ui emoji" , "segoe ui symbol"; font-style: normal; font-weight: 600; letter-spacing: normal; line-height: 1.25; margin: 0px 0px 16px; padding-bottom: 0.3em; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
And finally I can see everything in our PAAS DB's.</div>
<div dir="ltr" style="background-color: white; border-bottom-color: rgb(234, 236, 239); border-bottom-style: solid; border-bottom-width: 1px; box-sizing: border-box; color: #24292e; font-family: , "blinkmacsystemfont" , "segoe ui" , "helvetica" , "arial" , sans-serif , "apple color emoji" , "segoe ui emoji" , "segoe ui symbol"; font-style: normal; font-weight: 600; letter-spacing: normal; line-height: 1.25; margin: 0px 0px 16px; padding-bottom: 0.3em; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
Thank you Adam.</div>
</div>
</div>
</div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-73777288778637464302019-05-30T16:05:00.000+03:002019-05-30T16:05:01.017+03:00Cost Management in Azure<div dir="rtl" style="text-align: right;" trbidi="on">
שלום רב<br />וגם היום על ניהול עלויות.<br />לאחרונה מיקרוסופט שיחררו מסך שבוא אפשר סוף סוף להבין על מה התשלום וליצור התרעות תקציב וכדומה.<br />להלן הדרך להגיע עליו ומה האפשרויות השונות במסכים.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-dOFVcxYfcS0/XO_SCZr4VsI/AAAAAAABRfo/QK0Eh0epeBUX7tUMiehEiam0j21qZyMvACLcBGAs/s1600/cost0.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="667" data-original-width="182" height="640" src="https://1.bp.blogspot.com/-dOFVcxYfcS0/XO_SCZr4VsI/AAAAAAABRfo/QK0Eh0epeBUX7tUMiehEiam0j21qZyMvACLcBGAs/s640/cost0.jpg" width="174" /></a></div>
<br />
<br />
<br />
יש להקליק ולהגיע למסך הזה.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-rgneUlSG5Hg/XO_SX-SjooI/AAAAAAABRfw/cv0fpWkBfaY_DcQMEaTjRCBxax5RObP4gCLcBGAs/s1600/cost2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="696" data-original-width="712" height="624" src="https://1.bp.blogspot.com/-rgneUlSG5Hg/XO_SX-SjooI/AAAAAAABRfw/cv0fpWkBfaY_DcQMEaTjRCBxax5RObP4gCLcBGAs/s640/cost2.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
במסך זה יהיו רשימת ה Subscriptions ונגיע לרצוי לנו.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-WbCHr_O-kLQ/XO_SqYKPAOI/AAAAAAABRf4/G4zxZxaT4Wc6muoKJWKrIf088FZN8kLwQCLcBGAs/s1600/cost3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="727" data-original-width="1513" height="306" src="https://1.bp.blogspot.com/-WbCHr_O-kLQ/XO_SqYKPAOI/AAAAAAABRf4/G4zxZxaT4Wc6muoKJWKrIf088FZN8kLwQCLcBGAs/s640/cost3.jpg" width="640" /></a></div>
<br />
<br />
<br />
לאחר הלחיצה על האנלזיה נגיע למסך כזה שבו יש פילטרים וחיתוכים גם דרך הגרפים עצמם וגם פילטרים למעלה:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-RpVdoSlB6ds/XO_RqgoznWI/AAAAAAABRfc/H_nJ6CXNz4ARpMmcKHZ5-S7Smd9--LdvQCEwYBhgL/s1600/cost4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="826" data-original-width="1513" height="348" src="https://1.bp.blogspot.com/-RpVdoSlB6ds/XO_RqgoznWI/AAAAAAABRfc/H_nJ6CXNz4ARpMmcKHZ5-S7Smd9--LdvQCEwYBhgL/s640/cost4.jpg" width="640" /></a></div>
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
לאחר מכן אפשר לשחק בסוגי החיתוכים למשל רוצים חיתוך יומי ולא מצטבר:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-w4E9AQPCedw/XO_TW1lxe2I/AAAAAAABRgE/e5_6Wodya2wo-SKIYNGPc6_MZkPE4QZ1QCLcBGAs/s1600/cost5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="840" data-original-width="1473" height="364" src="https://1.bp.blogspot.com/-w4E9AQPCedw/XO_TW1lxe2I/AAAAAAABRgE/e5_6Wodya2wo-SKIYNGPc6_MZkPE4QZ1QCLcBGAs/s640/cost5.jpg" width="640" /></a></div>
<br />
<br />
לאחר מכן נגיע למסך לחיתוך לפי סוג או לפי ה meter name,<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-73TTxBQEPKk/XO_RrBOI0mI/AAAAAAABRfY/-YiGAEnllDE6P7hLQPt36oGujNQOWH3OgCEwYBhgL/s1600/cost6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="809" data-original-width="1116" height="462" src="https://1.bp.blogspot.com/-73TTxBQEPKk/XO_RrBOI0mI/AAAAAAABRfY/-YiGAEnllDE6P7hLQPt36oGujNQOWH3OgCEwYBhgL/s640/cost6.jpg" width="640" /></a></div>
<br />
יש אפשרויות רבות<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-wjIFhsRDAOw/XO_RrSs4IOI/AAAAAAABRfk/iOQreplVeOwCIgawhJZrzHgbBtWoskSYwCEwYBhgL/s1600/cost7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="831" data-original-width="1482" height="358" src="https://1.bp.blogspot.com/-wjIFhsRDAOw/XO_RrSs4IOI/AAAAAAABRfk/iOQreplVeOwCIgawhJZrzHgbBtWoskSYwCEwYBhgL/s640/cost7.jpg" width="640" /></a></div>
<br />
<br />
אבל זה הדוח שאני הכי אוהב מראה ברמת ריסורס כמה אני חייב ומה העלות המדוייקת<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-3TBBrews1VE/XO_RrvLnq4I/AAAAAAABRfg/GdwUQ9JwWYY5prVqcUlnqfmCj-rcMICNgCEwYBhgL/s1600/cost8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="826" data-original-width="1453" height="362" src="https://1.bp.blogspot.com/-3TBBrews1VE/XO_RrvLnq4I/AAAAAAABRfg/GdwUQ9JwWYY5prVqcUlnqfmCj-rcMICNgCEwYBhgL/s640/cost8.jpg" width="640" /></a></div>
<br />
<br />
בקיצור עכשיו אפשר להבין יותר טוב על מה משלמים ולמחוק או לעצור דברים שלא בשימוש.<br />
יש גם אפשרות להגדיר תקציב והתרעות.<br />
זו ניראות חשובה !<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
</div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-53083844832197809992019-05-06T16:34:00.000+03:002019-05-06T16:42:51.828+03:00Rising prices of Azure<div dir="rtl" style="text-align: right;" trbidi="on">
שלום רב<br />
פוסט זה אני כותב לאחר מספר פעמים שהתופעה הזו התרחשה, מדובר על <strong>עליית מחרים</strong> בשירותים של azure.<br />
אני רוצה להתמקד בשני נושאים:<br />
<ol>
<li>New Alert system</li>
<li>Azure SQL DB PRS tiers</li>
</ol>
הנקודה הראשונה:<br />
<ul style="text-align: right;">
<li>כחלק מהשירותים שניתנו למשתמשי השירותים המנוהלים - קיבלנו מערכת התרעות סבירה ונוחה, ניתן היה להגדיר התרעות כאשר ה DB עובד קשה מידי DTU גבוה או הגענו ל 90% מהסטורג' וכדומה.</li>
<li>לא מזמן קפצה הודעה שההתרעות הללו ייפסקו ב 30 ביוני ראו תמונה:</li>
</ul>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-GAP-LfxWJkU/XNA1wQZA24I/AAAAAAABRII/yJnTe43z-j0f2mHLm_mt09mYRkHN9aFLQCLcBGAs/s1600/alert1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="809" data-original-width="1574" height="328" src="https://1.bp.blogspot.com/-GAP-LfxWJkU/XNA1wQZA24I/AAAAAAABRII/yJnTe43z-j0f2mHLm_mt09mYRkHN9aFLQCLcBGAs/s640/alert1.jpg" width="640" /></a></div>
<br />
<br />
<ul>
<li>ואז הולכים להגדיר התרעה חדשה:</li>
</ul>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-VymHrIPlPuM/XNA1wjnj5SI/AAAAAAABRIc/TVAJ3TYDEO0durAYRjDwFqxrkN3xtl6OACEwYBhgL/s1600/alert3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="765" data-original-width="1600" height="306" src="https://1.bp.blogspot.com/-VymHrIPlPuM/XNA1wjnj5SI/AAAAAAABRIc/TVAJ3TYDEO0durAYRjDwFqxrkN3xtl6OACEwYBhgL/s640/alert3.jpg" width="640" /></a></div>
<br />
<ul>
<li>מסך יותר משוכלל שנותן התרעות לפי שלבים ומצבים, פה הגדרתי אם DTU מעל 85% לזמן מסויים:</li>
</ul>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-q7tOcV0fqsg/XNA1wpWZaYI/AAAAAAABRIM/WWDyVbNLYq4P9e7Vy6a4BE2xyE93UYpjgCEwYBhgL/s1600/alert2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="359" data-original-width="1045" height="218" src="https://3.bp.blogspot.com/-q7tOcV0fqsg/XNA1wpWZaYI/AAAAAAABRIM/WWDyVbNLYq4P9e7Vy6a4BE2xyE93UYpjgCEwYBhgL/s640/alert2.jpg" width="640" /></a></div>
<ul>
<li>ואז מגדירים את ההתרעה - <strong>וראה זה פלא יש עלות!!!</strong> סנט להתרעה:</li>
</ul>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-T8zqYPFx92A/XNA1xGq_VtI/AAAAAAABRIg/NQIUAFoqUAITrBLPrkpGgaIg44MAf-ecgCEwYBhgL/s1600/alert4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="369" data-original-width="1130" height="208" src="https://4.bp.blogspot.com/-T8zqYPFx92A/XNA1xGq_VtI/AAAAAAABRIg/NQIUAFoqUAITrBLPrkpGgaIg44MAf-ecgCEwYBhgL/s640/alert4.jpg" width="640" /></a></div>
<br />
<ul style="text-align: right;">
<li>כאשר ממש לא ברור אם זה פר התרעה או פר הגדרה, נכון סכום נמוך - אבל במאות שירותים ובמאות ריסורסים זה מגיע למאות דולרים ובמצטבר עוד שורה שמנה בחשבונית.</li>
</ul>
הנקודה השנייה:<br />
<ul>
<li>היה שירות ב DB שנקרא PRS שהוא נתן יכולות של Premium tier עם SLA יותר נמוך.</li>
<li>לא שמנו עליו production אבל הוא היה מעולה לבדוק , Load test בעלות הגונה.</li>
<li>והנה גם את זה מורידים בסוף יוני - אותה הודעה מלמעלה, וממש אין שום פתרון הגיוני. זה יגרום לעליית עלויות ביותר מפי 4.</li>
</ul>
ההתנהגות הזו מצביעה על שינוי שקורה במיקרוסופט לאחרונה, פחות מקשיבים ללקוחות, וממוקדים רק מטרה אחת, לא חשוב מה הלקוח חושב, חשוב מהי השורה התחתונה...<br />
אלו תזכורות לימים אחרים במיקרוסופט.<br />
<br />
לא ואל תגידו מולטי קלאוד, האחרים עוקצים בנקודות אחרות...<br />
<br />
<strong>מה שמאכזב במיוחד זה שפשוט מודיעים שמורידים לך את השירות וזהו, וכל אלטרנטיבה היא הרבה יותר יקרה.....</strong><br />
<strong>חבל מאד.</strong><br />
<br />
<br />
<br />
<br />
<div>
</div>
</div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-39119861733449299722019-03-04T16:26:00.000+02:002019-03-04T16:28:38.365+02:00Azure SQL DB tiers comparison<div dir="rtl" style="text-align: right;" trbidi="on">
<div dir="ltr" style="text-align: left;">
Hi All</div>
<div dir="ltr" style="text-align: left;">
In the last few month Brent Ozar gae us 2 masterpiece blogs related to Azure SQL DB:</div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
<a href="https://www.brentozar.com/archive/2019/02/how-fast-can-a-21468-mo-azure-sql-db-load-data/" target="_blank">How fast can a $21,468/mo Azure SQL DB load data?</a> </div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
In this blog Brent compared the abilities of Azure SQL DBs to load Data - he compared all combinations of vCors tiers. (When I asked him about comparing the Standard\Premium tiers, he told me to do it.... :-) )</div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
<a href="https://www.brentozar.com/archive/2019/02/theres-a-bottleneck-in-azure-sql-db-storage-throughput/" target="_blank">There’s a bottleneck in Azure SQL DB storage throughput.</a></div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
In this blog Brent showed us that in the vCors world the storage throughput has limit and there is not need to pay so much money when you need to upload lots of data.<br />
</div>
<div dir="ltr" style="text-align: left;">
So I took have taken up his challenge and done a comparison in Azure SQL DB in Standard\Premium tiers.</div>
<div dir="ltr" style="text-align: left;">
I have created a new DB with 1 Table.</div>
<div dir="ltr" style="text-align: left;">
I have generated 7 GB of DATA, and created the file in my local on premise drive (Yes, do not kill me, I did not had the time to put it on azure), and uploaded it via BCP command.</div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
bcp "TableName" in "T:\MyTable.bcp" -S"myservername.database.windows.net" -U<a href="mailto:UserName@ServerName">UserName@<span style="color: black;">myservername</span></a> -P"Password" -n -d"DBName" </div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
After each test I have truncate the table and changed the tier.</div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
Here are the main results:</div>
<div dir="ltr" style="text-align: left;">
</div>
<table border="0" cellpadding="0" cellspacing="0" class="MsoNormalTable" style="border-collapse: collapse; mso-padding-alt: 0in 5.4pt 0in 5.4pt; mso-yfti-tbllook: 1184; width: 0px;">
<tbody>
<tr style="height: 15pt; mso-yfti-firstrow: yes; mso-yfti-irow: 0;">
<td nowrap="" style="background: rgb(242, 242, 242); border: 1pt solid rgb(63, 63, 63); height: 15pt; mso-border-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 48pt;" valign="bottom" width="64"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"> <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(63, 63, 63) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: solid solid solid none; border-width: 1pt 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; mso-border-top-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 61pt;" valign="bottom" width="81"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";">Rows/second<o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(63, 63, 63) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: solid solid solid none; border-width: 1pt 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; mso-border-top-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 81.05pt;" valign="bottom" width="108"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";">Time(MS)<o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(63, 63, 63) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: solid solid solid none; border-width: 1pt 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; mso-border-top-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 106.7pt;" valign="bottom" width="142"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";">Cost per month<o:p></o:p></span></span></b></div>
</td>
</tr>
<tr style="height: 15.25pt; mso-yfti-irow: 1;">
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63); border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15.25pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-left-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 48pt;" valign="bottom" width="64"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";">S2<o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15.25pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 61pt;" valign="bottom" width="81"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>4,071 <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15.25pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 81.05pt;" valign="bottom" width="108"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt; text-align: right;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>18,184,812 <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15.25pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 106.7pt;" valign="bottom" width="142"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>$<span style="mso-spacerun: yes;"> </span>73.0 <o:p></o:p></span></span></b></div>
</td>
</tr>
<tr style="height: 15pt; mso-yfti-irow: 2;">
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63); border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-left-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 48pt;" valign="bottom" width="64"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";">S4<o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 61pt;" valign="bottom" width="81"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>4,083 <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 81.05pt;" valign="bottom" width="108"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>18,129,531 <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 106.7pt;" valign="bottom" width="142"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>$<span style="mso-spacerun: yes;"> </span>294.0 <o:p></o:p></span></span></b></div>
</td>
</tr>
<tr style="height: 15pt; mso-yfti-irow: 3;">
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63); border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-left-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 48pt;" valign="bottom" width="64"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";">S6<o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 61pt;" valign="bottom" width="81"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>9,007 <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 81.05pt;" valign="bottom" width="108"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>8,219,047 <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 106.7pt;" valign="bottom" width="142"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>$<span style="mso-spacerun: yes;"> </span>588.0 <o:p></o:p></span></span></b></div>
</td>
</tr>
<tr style="height: 15pt; mso-yfti-irow: 4;">
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63); border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-left-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 48pt;" valign="bottom" width="64"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";">S9<o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 61pt;" valign="bottom" width="81"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>18,733 <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 81.05pt;" valign="bottom" width="108"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>3,952,062 <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 106.7pt;" valign="bottom" width="142"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>$<span style="mso-spacerun: yes;"> </span>2,354.0 <o:p></o:p></span></span></b></div>
</td>
</tr>
<tr style="height: 15pt; mso-yfti-irow: 5;">
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63); border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-left-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 48pt;" valign="bottom" width="64"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";">S12<o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 61pt;" valign="bottom" width="81"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>15,054 <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 81.05pt;" valign="bottom" width="108"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>4,917,703 <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 106.7pt;" valign="bottom" width="142"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>$<span style="mso-spacerun: yes;"> </span>4,415.0 <o:p></o:p></span></span></b></div>
</td>
</tr>
<tr style="height: 15pt; mso-yfti-irow: 6;">
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63); border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-left-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 48pt;" valign="bottom" width="64"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";">P1<o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 61pt;" valign="bottom" width="81"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>3,670 <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 81.05pt;" valign="bottom" width="108"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>20,168,375 <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 106.7pt;" valign="bottom" width="142"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>$<span style="mso-spacerun: yes;"> </span>456.0 <o:p></o:p></span></span></b></div>
</td>
</tr>
<tr style="height: 15pt; mso-yfti-irow: 7;">
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63); border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-left-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 48pt;" valign="bottom" width="64"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";">P4<o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 61pt;" valign="bottom" width="81"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>22,851 <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 81.05pt;" valign="bottom" width="108"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span><span style="mso-spacerun: yes;"> </span>3,239,875 <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 106.7pt;" valign="bottom" width="142"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>$<span style="mso-spacerun: yes;"> </span>1,825.0 <o:p></o:p></span></span></b></div>
</td>
</tr>
<tr style="height: 15pt; mso-yfti-irow: 8;">
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63); border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-left-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 48pt;" valign="bottom" width="64"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";">P11<o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 61pt;" valign="bottom" width="81"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>22,188 <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 81.05pt;" valign="bottom" width="108"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>3,336,688 <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 106.7pt;" valign="bottom" width="142"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>$<span style="mso-spacerun: yes;"> </span>6,868.0 <o:p></o:p></span></span></b></div>
</td>
</tr>
<tr style="height: 15pt; mso-yfti-irow: 9; mso-yfti-lastrow: yes;">
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63); border-style: none solid solid; border-width: 0px 1pt 1pt; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-left-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 48pt;" valign="bottom" width="64"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";">P15<o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 61pt;" valign="bottom" width="81"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>24,487 <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 81.05pt;" valign="bottom" width="108"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>3,023,344 <o:p></o:p></span></span></b></div>
</td>
<td nowrap="" style="background: rgb(242, 242, 242); border-color: rgb(0, 0, 0) rgb(63, 63, 63) rgb(63, 63, 63) rgb(0, 0, 0); border-style: none solid solid none; border-width: 0px 1pt 1pt 0px; height: 15pt; mso-border-bottom-alt: solid #3F3F3F .5pt; mso-border-right-alt: solid #3F3F3F .5pt; padding: 0in 5.4pt; width: 106.7pt;" valign="bottom" width="142"><div class="MsoNormal" style="line-height: normal; margin: 0in 0in 0pt;">
<b><span style="color: #3f3f3f; mso-ascii-font-family: Calibri; mso-bidi-font-family: Calibri; mso-fareast-font-family: "Times New Roman"; mso-hansi-font-family: Calibri;"><span style="font-family: "calibri";"><span style="mso-spacerun: yes;"> </span>$<span style="mso-spacerun: yes;"> </span>15,698.0 <o:p></o:p></span></span></b></div>
</td>
</tr>
</tbody></table>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
It is clearest to see if we view the results in a chart of cost vs Rows\Second. </div>
<div dir="ltr" style="text-align: left;">
</div>
<div class="separator" dir="ltr" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-YnF0oESPiaw/XH0u_msRwZI/AAAAAAABPPE/GbsqUAC2aRwiFD-1yeH__Hcap8SYB3oFwCLcBGAs/s1600/tiers.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="306" data-original-width="644" height="304" src="https://2.bp.blogspot.com/-YnF0oESPiaw/XH0u_msRwZI/AAAAAAABPPE/GbsqUAC2aRwiFD-1yeH__Hcap8SYB3oFwCLcBGAs/s640/tiers.jpg" width="640" /></a></div>
<div style="text-align: center;">
</div>
<div style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
What does the Charts shows us?</div>
<div dir="ltr" style="text-align: left;">
Most cost effective is S9 tier, but as we would expect P15 is the fastest </div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
Below are various graphs of resource utilization for each tier.</div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
S2 tier Log IO and Data IO took time</div>
<div dir="ltr" style="text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-UQivsicJWwE/XH0u-h5z9YI/AAAAAAABPPU/dMA_uQUoMwQ4CwXK-Al72Rn5Jt_xI6xzgCEwYBhgL/s1600/tier-s2-chart.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="653" data-original-width="1058" height="394" src="https://4.bp.blogspot.com/-UQivsicJWwE/XH0u-h5z9YI/AAAAAAABPPU/dMA_uQUoMwQ4CwXK-Al72Rn5Jt_xI6xzgCEwYBhgL/s640/tier-s2-chart.jpg" width="640" /></a></div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
S4 Had only LOG IO issues</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-rMzvPK_f1Q8/XH0u-sk1KaI/AAAAAAABPPY/SOfCHqYBzvY_Fj4YH8-PuX3whu8Fd5ilwCEwYBhgL/s1600/tier-s4-chart.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="570" data-original-width="509" height="640" src="https://2.bp.blogspot.com/-rMzvPK_f1Q8/XH0u-sk1KaI/AAAAAAABPPY/SOfCHqYBzvY_Fj4YH8-PuX3whu8Fd5ilwCEwYBhgL/s640/tier-s4-chart.jpg" width="570" /></a></div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
S6 - the same chart.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-SQdFggmPOT8/XH0u_EgHYYI/AAAAAAABPPY/xEktkIl6J1E3keng3WetHUauUlDZPg45wCEwYBhgL/s1600/tier-s6-chart.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="537" data-original-width="178" height="640" src="https://4.bp.blogspot.com/-SQdFggmPOT8/XH0u_EgHYYI/AAAAAAABPPY/xEktkIl6J1E3keng3WetHUauUlDZPg45wCEwYBhgL/s640/tier-s6-chart.jpg" width="212" /></a></div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
S12 Log IO is 100% and I have also added the DTU.</div>
<table align="center" cellpadding="0" cellspacing="0" class="tr-caption-container" style="margin-left: auto; margin-right: auto; text-align: center;"><tbody>
<tr><td style="text-align: center;"><a href="https://1.bp.blogspot.com/-EntKpVqvVQY/XH0u-f-vMSI/AAAAAAABPPM/1AkOG6ay2J0ohdc-fpd0kvfAqGpKBSSHQCEwYBhgL/s1600/tier-s12-chart.jpg" imageanchor="1" style="margin-left: auto; margin-right: auto;"><img border="0" data-original-height="599" data-original-width="250" height="640" src="https://1.bp.blogspot.com/-EntKpVqvVQY/XH0u-f-vMSI/AAAAAAABPPM/1AkOG6ay2J0ohdc-fpd0kvfAqGpKBSSHQCEwYBhgL/s640/tier-s12-chart.jpg" width="266" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"></td></tr>
</tbody></table>
<div dir="ltr" style="text-align: left;">
P4 looks the Same</div>
<div dir="ltr" style="text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-iuYgHBMnkIM/XH0u9i_hnvI/AAAAAAABPPU/VxPqIAlN5kkDNSslUgwP8orFB-Dg01XywCEwYBhgL/s1600/tier-p4-chart.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="451" data-original-width="935" height="308" src="https://4.bp.blogspot.com/-iuYgHBMnkIM/XH0u9i_hnvI/AAAAAAABPPU/VxPqIAlN5kkDNSslUgwP8orFB-Dg01XywCEwYBhgL/s640/tier-p4-chart.jpg" width="640" /></a></div>
<div align="left" dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
P11 start to change Log IO was 100% only for a short time</div>
<div dir="ltr" style="text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-_lDvvgboyGY/XH0u9jP2cRI/AAAAAAABPPI/4M9zu4n7P1sS5RugyRza2m50Vbn3e9q9wCEwYBhgL/s1600/tier-p11-chart.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="444" data-original-width="774" height="366" src="https://4.bp.blogspot.com/-_lDvvgboyGY/XH0u9jP2cRI/AAAAAAABPPI/4M9zu4n7P1sS5RugyRza2m50Vbn3e9q9wCEwYBhgL/s640/tier-p11-chart.jpg" width="640" /></a></div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
P15 \ P11 \ P4 on the same Chart </div>
<div dir="ltr" style="text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-LgbxWprb5Ts/XH0u9igBcDI/AAAAAAABPPY/mA7c-GiUBEY0DEUqDF3_EdZTF50tZctUQCEwYBhgL/s1600/tier-p15-chart.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="811" data-original-width="811" height="640" src="https://4.bp.blogspot.com/-LgbxWprb5Ts/XH0u9igBcDI/AAAAAAABPPY/mA7c-GiUBEY0DEUqDF3_EdZTF50tZctUQCEwYBhgL/s640/tier-p15-chart.jpg" width="640" /></a></div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
In conclusion - Just as Brent found, Log IO is the bottleneck, the storage write operations. </div>
<div dir="ltr" style="text-align: left;">
Log IO is the bottleneck but you get what you pay for, the more you pay the more I/O. Therefore the effects of the Log IO bottleneck are reduced the more resources/money you throw at the problem.</div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
Next time I will test reads operations and CPU's</div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
Have a good day.</div>
</div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com2tag:blogger.com,1999:blog-8306216690206802216.post-5085906455422082712019-01-03T10:53:00.001+02:002019-01-03T10:59:14.536+02:00Static Data Masking in SQL Server<div dir="rtl" style="text-align: right;" trbidi="on">
סיפור המעשה התחיל לפני שנים מספר, אז אמרתי לחבר צוות שלי: יללה חייבים לבדוק את הגיבויים.<br />
אז איך בודקים גיבויים? משחזרים.<br />
<br />
אכן רעיון מעולה - ויותר טוב זה לחבר אליו אפליקציה ולוודא שהדברים עובדים...<br />
<br />
אבל אז הבנו שמידע הלקוחות נחשף - אז בנינו סקריפט שמעדכן את המידע בטבלאות הרלוונטיות. ומאז הכל דבש (כמובן לבנות סקריפט שרץ ומעדכן מידע על טבלאות ענק זה לא רק עדכון פשוט אלא חייבים לעשותו בלופ ובטרנזקציות קטנות.... וצריך הבנה בזה)<br />
<br />
באו החכמים ממיקרוסופט (באמת ישבו על זה צוותים ובנו GUI מדהים) ופיתחו את הפיצ'ר הידוע בשם :<br />
Static Data Masking.<br />
<br />
ראשית מהיכן מריצים?<br />
מ SSMS 18 ומעלה. אין פה תלות לגירסת בסיס הנתונים.<br />
<br />
מהו במהותו? מגדירים שדות שיימוסכו - רץ גיבוי - רץ שיחזור ואז יש הרצת עדכון לשדות הממוסכים לפי הגדרת השדות למיסוך כמובן ב Bulk אחד. מעדכנים בפועל את המידע הקיים.<br />
<br />
הפיצ'ר במהותו נכון אבל באמת לא נראה לי שמישהו שיש לו בסיס נתונים בגודל מעל כמה GB יוכל להשתמש בו - העדכון כמובן עף על טבלאות גדולות.<br />
למשל אם מעדכנים כמה שדות באותה טבלה הוא מריץ לכל עמודה עדכון בפני עצמו, כמובן שזה לא יעיל....<br />
<br />
בגלל שזה תוכנן כך - הנתונים הרגישים זמינים בקובץ הגיבוי וזה כשלעצמו לא יעבור לדעתי, בקרת רגולציה...<br />
<br />
אז בקיצור החברים ממיקרוסופט השקיעו במסכים באמת מורכבים מפורטים וטובים... <br />
אבל באמת? להשקיע בזה זמן? לא ברור לי מי קובע שם סדרי עדיפויות.<br />
ותודה ליצחק וואנון ה DBA הבלתי נלאה...<br />
<br />
הלינק לדוקומנטציה:<br />
<div style="text-align: left;">
<a href="https://docs.microsoft.com/en-us/sql/relational-databases/security/static-data-masking?view=sql-server-2017" target="_blank">https://docs.microsoft.com/en-us/sql/relational-databases/security/static-data-masking?view=sql-server-2017</a></div>
<div style="text-align: left;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-lS0pVidmM6I/XC3M19f_QWI/AAAAAAABORc/0wglhU7LssITyzVwpcqNJZX4ui-j5NKDgCLcBGAs/s1600/static_data_masking_intro_image.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="698" data-original-width="1374" height="324" src="https://1.bp.blogspot.com/-lS0pVidmM6I/XC3M19f_QWI/AAAAAAABORc/0wglhU7LssITyzVwpcqNJZX4ui-j5NKDgCLcBGAs/s640/static_data_masking_intro_image.jpg" width="640" /></a></div>
<div style="text-align: left;">
</div>
<br />
<br />
<br />
<br />
<br />
</div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com1tag:blogger.com,1999:blog-8306216690206802216.post-44367942910356622762018-11-08T16:11:00.000+02:002018-11-08T16:11:56.742+02:00AzureDiagnostics and AzureMetrics in SQL Azure DB<div dir="rtl" style="text-align: right;" trbidi="on">
שלום רב<br />
מיקרוסופט התקדמו מאד במתן האפשרויות ב SQL Azure לנטר ולדעת מה קורה בבסיס הנתונים.<br />המדדים נשמרים במחסן נתונים ומתחלקים ל 2 אגפים :<br />
<br /><strong>AzureMetrics</strong><br />
<br />
אלו המדדים הראשים של AZURE שם הם אוספים הכל גם למכונות לסטורג וכמובן לבסיסי נתונים.<br />
למשל בעולם של SQL Azure מדובר על DTU וכל מה שאפשר לצפות בגרפים בפורטל.<br />
<br />
<strong>AzureDiagnostics</strong> <br />
<br />
פה מדובר על מטריקות יותר מתקדמות תחת אגף זה נכנסים קטגוריות כמו Audit שהחלטה לשלוח לשמירה, Query store, המלצות, Wait type של DBA וגם Insights. בקיצור אגף מרתק ומעניין - וארחיב עליו בקרוב בפוסט מורחב.<br />
<br />
כאשר מחליטים לקשר Azure SQL לאגף - הולכים לבסיס הנתונים מקשרים אותו והמערכת מלבד מתחילה לשמור נתונים...(היא שומרת אותם בבסיס הנתונים הידוע בשם Kusto או בשמו החדש Azure Data Explorer, וגם על כך אני מבטיח פוסט בקרוב ממש) השמירה היא ל 30 יום.<br />
ואז אפשר לתחקר בשפת ה Kusto ( עוד פוסט בקרוב אמרנו?...) או בדשבורדים שמיקרוסופט נתנו, או אפילו ב Power bi (וואו גם על זה עוד פוסט?... בכיף.) העיקר שיהיה אפשר לתחקר.<br />
<br />
בקיצור ים של DATA נשמר - רק קחו ונצלו אותו.<br />
<br />
להלן מספר תמונות שממחישות <br />
<br />
תמונה מספר 1 מספרת לנו את המיקום שבו בוחרים מה יש לנו ב Azure Metrics מגיעים לשם דרך בסיס הנתונים כל המטריקות ניתנות להגדרת התרעה ורואים בגרף.<br />
עדיין זה לא נשמר למחסנית הנתונים. כלומר אפשר כרגע רק לתחקר עם מה שיש.<br />
זה לפני שבחרתי מדד CPU של בסיס נתונים.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-TLvSIbeMB_M/W-Q_W1VgeAI/AAAAAAABM_8/c6PXKnWreMoHtGJM-FyTudbnzPFM_A7nwCLcBGAs/s1600/dig2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="893" data-original-width="1276" height="446" src="https://3.bp.blogspot.com/-TLvSIbeMB_M/W-Q_W1VgeAI/AAAAAAABM_8/c6PXKnWreMoHtGJM-FyTudbnzPFM_A7nwCLcBGAs/s640/dig2.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: right;">
</div>
<div class="separator" style="clear: both; text-align: right;">
תמונה מספר 2 מציגה לנו את הגרף שעלה אחרי בחירת המדד - אצלינו CPU.</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-6wlsZYg6wzo/W-Q_W9SusQI/AAAAAAABM_4/GVS5eowwTD0K0SPaPu5-kzIsusFx6Ri5wCLcBGAs/s1600/dig3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="825" data-original-width="1600" height="330" src="https://2.bp.blogspot.com/-6wlsZYg6wzo/W-Q_W9SusQI/AAAAAAABM_4/GVS5eowwTD0K0SPaPu5-kzIsusFx6Ri5wCLcBGAs/s640/dig3.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: right;">
</div>
<div class="separator" style="clear: both; text-align: right;">
תמונה מספר 3 מספרת לנו איך אנו מגדירים לשמור למחסנית הנתונים את ה AzureDiagnostics and AzureMetrics.</div>
<div class="separator" style="clear: both; text-align: right;">
בוחרים פה ואז ניתן לבחור מה רוצים לשמור.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-1YxxiqK3vzQ/W-Q_W2zzaII/AAAAAAABNAA/_3kyoXW9sLcvRVT_MdFDwzn5FYwqrUwawCLcBGAs/s1600/dig1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="850" data-original-width="1600" height="340" src="https://1.bp.blogspot.com/-1YxxiqK3vzQ/W-Q_W2zzaII/AAAAAAABNAA/_3kyoXW9sLcvRVT_MdFDwzn5FYwqrUwawCLcBGAs/s640/dig1.jpg" width="640" /></a></div>
<br />
<br />
תמונה מספר 4 מספרת לנו את סיפור תיחקור הלוג. רואים בצד שמאל המון אפשרויות - תלכו ל Logs וייפתח לכם מסך תיחקור שימו לב לשפת התיחקור של Kusto, תוצאת השאילתה נכתבת למסך בצורת טבלה אבל אפשר להעביר לגרף בקלות. פה שאלתי את המנוע כל מה שנשמר ל AzureMetrics והוא קשור ל SQL לפי מדד - מה הערך הממוצע. אפשר עוד חלוקה לפי בסיסי נתונים (אפשר כמה בסיסי נתונים למחסנית אחת).<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-oXJ6OiCsmks/W-Q_XlOiR3I/AAAAAAABNAE/NxrDvj9O7JkO0MRSpG3WZDdsWy5p2OyjACLcBGAs/s1600/dig4.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="905" data-original-width="1296" height="446" src="https://2.bp.blogspot.com/-oXJ6OiCsmks/W-Q_XlOiR3I/AAAAAAABNAE/NxrDvj9O7JkO0MRSpG3WZDdsWy5p2OyjACLcBGAs/s640/dig4.jpg" width="640" /></a></div>
<br />
בתמונה מספר 5 ספרתי כמה דגימות לכל מדד.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-ifIA53NBFo0/W-Q_X2NxGSI/AAAAAAABNAI/mJCPnHikNKUTcCd2VTrNwhqJt3LSDyvzACLcBGAs/s1600/dig5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="805" data-original-width="1233" height="416" src="https://3.bp.blogspot.com/-ifIA53NBFo0/W-Q_X2NxGSI/AAAAAAABNAI/mJCPnHikNKUTcCd2VTrNwhqJt3LSDyvzACLcBGAs/s640/dig5.jpg" width="640" /></a></div>
<br />
<br />
תמונה מספר 6 מספרת את סיפורו של הקליק - בקליק אפשר להפוך את התוצאה לגרף ואפשר לראות יותר טוב מה קרה..<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-Su9srryg-B4/W-Q_YOtJplI/AAAAAAABNAM/GE16fgUwhWM2lnBucbT1xIsCM-eL56b9ACLcBGAs/s1600/dig6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="830" data-original-width="1600" height="332" src="https://1.bp.blogspot.com/-Su9srryg-B4/W-Q_YOtJplI/AAAAAAABNAM/GE16fgUwhWM2lnBucbT1xIsCM-eL56b9ACLcBGAs/s640/dig6.jpg" width="640" /></a></div>
<br />
<br />
תמונה מספר 7 מתחילה לספר את עולם ה AzureDiagnostics שימו לב במחסנית בחרתי Logs, והתחלתי לתחקר בשאילתא, ספרתי כל מה שיש לנו לפי קטגוריות.<br />
בחלק השני יש את הקטגוריות שהם אוספים עבורינו כמו שציינתי למעלה המון דברים מאד מעניינים. שימוש רב אפשר לעשות פה.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-54gpt04C9oE/W-Q_YfIttxI/AAAAAAABNAQ/JiX0DZRLERE7V9OqcR1SK-Gjjlyv1_PVwCLcBGAs/s1600/dig7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="627" data-original-width="739" height="542" src="https://2.bp.blogspot.com/-54gpt04C9oE/W-Q_YfIttxI/AAAAAAABNAQ/JiX0DZRLERE7V9OqcR1SK-Gjjlyv1_PVwCLcBGAs/s640/dig7.jpg" width="640" /></a></div>
<br />
תמונה מספר 8 מספרת את סיפורו של הקליק 2 - גם פה בקליק אפשר לראות ברף מה יש ומא אין בתוצאות<br />
<br />
וכמו שאמרתי אפשר להוציא מפה דוח, התרעה, לינק לדש בורד ועוד.<br />
<br />
ממליץ מאד לנשות ואם משהו לא ברור אנא שאלו.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-tv9QPtyO1UI/W-Q_YcK02VI/AAAAAAABNAU/mCYEy_DqueoVbQeNXxxfZN320jkhOJPjgCLcBGAs/s1600/dig8.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="883" data-original-width="1600" height="352" src="https://4.bp.blogspot.com/-tv9QPtyO1UI/W-Q_YcK02VI/AAAAAAABNAU/mCYEy_DqueoVbQeNXxxfZN320jkhOJPjgCLcBGAs/s640/dig8.jpg" width="640" /></a></div>
</div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-38651668916257955402018-10-23T16:24:00.001+03:002018-10-23T16:24:53.095+03:00Azure SQL DB Changes Monitoring<div dir="rtl" style="text-align: right;" trbidi="on">
שלום רב<br />
<div>
מעקב אחרי שינויים בבסיס נתונים זה דבר בסיסי.</div>
<ul style="text-align: right;">
<li>מי שינה קונפיגורציה של בסיס הנתונים ומתי.</li>
<li>מי עשה שינויים בסכמה או ב DATA ומתי.</li>
<li>מי שינה קונפיגורציה של השרת ומתי.</li>
</ul>
בקיצור הרבה מידע לדעת.<br />בשירות המנוהל SQL Azure DB , הקונפיגורציות הן ברמות שונות, יש ברמת של T-sql, יש ברמה של PowerShell<br />
ויש פעולות שעושים בפורטל.<br />
<br />
אחד הדברים שקשים זה מה הסטאטוס של בקשה שביצעתי בפורטל למשל לעשות Scale לבסיס נתונים, או ליצור לו רפליקציה.<br />ל Activities Logs נכתב לוג של הפעולות. אבל אין אתה יודע מה הסטאטוס.<br />לאחרונה עליתי על עוד מקום שנרשם שם הכל, למשל שיכפול בסיס נתונים, קינפוג של רפליקציה ועוד ועוד.<br />
<br />
אז ככה:<br />
יש ללכת ל RG של בסיס הנתונים ולגשת לספריה הקרויה Deployment.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-34VVNUqTUYM/W88fnRzmu9I/AAAAAAABMoM/jkmjccWSCacTm8lij8elq-0j0Eoq5Q7oQCLcBGAs/s1600/rg1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="852" data-original-width="1600" height="340" src="https://3.bp.blogspot.com/-34VVNUqTUYM/W88fnRzmu9I/AAAAAAABMoM/jkmjccWSCacTm8lij8elq-0j0Eoq5Q7oQCLcBGAs/s640/rg1.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div align="right" class="separator" style="clear: both; text-align: center;">
</div>
<br />
פה רואים כל מה שקרה ב RG.<br />לדוגמא פה רואים שיש Deployment שבוא בביצוע כעת (יצירת רפליקה):<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-MPD3GunUids/W88fncnfn5I/AAAAAAABMoo/tbO_it95jKwWXf6e_i-59LHc6xgQ4QSpQCEwYBhgL/s1600/rg2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="304" data-original-width="1404" height="138" src="https://4.bp.blogspot.com/-MPD3GunUids/W88fncnfn5I/AAAAAAABMoo/tbO_it95jKwWXf6e_i-59LHc6xgQ4QSpQCEwYBhgL/s640/rg2.jpg" width="640" /></a></div>
אפשר לראות שיש היסטוריה של שגיאות :<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-kRPxcjeDpQc/W88fnbOLwCI/AAAAAAABMow/_mohogtDN0UG2494uErrvZAaBPYaVXNbwCEwYBhgL/s1600/rg3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="793" data-original-width="1558" height="324" src="https://3.bp.blogspot.com/-kRPxcjeDpQc/W88fnbOLwCI/AAAAAAABMow/_mohogtDN0UG2494uErrvZAaBPYaVXNbwCEwYBhgL/s640/rg3.jpg" width="640" /></a></div>
<br />
וכמובן מה השגיאה שארעה למשל פה הגענו לגבול ה TDU שבשרת הזה:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-l0uum-20BkQ/W88fnzNKmpI/AAAAAAABMoo/YxYDYZ3jCVUDzJJyUGxd1Z5CMwWFfMt-wCEwYBhgL/s1600/rg5.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="370" data-original-width="1545" height="152" src="https://2.bp.blogspot.com/-l0uum-20BkQ/W88fnzNKmpI/AAAAAAABMoo/YxYDYZ3jCVUDzJJyUGxd1Z5CMwWFfMt-wCEwYBhgL/s640/rg5.jpg" width="640" /></a></div>
<br />
לעיתים אין הסבר לכישלון ואז רק רואים קוד שגיאה:<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-IjbtrPQj9p8/W88foTUmeZI/AAAAAAABMow/5b3bKr-Crngp099hV4yvCY3f_f5u72r_wCEwYBhgL/s1600/rg7.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="235" data-original-width="455" height="330" src="https://3.bp.blogspot.com/-IjbtrPQj9p8/W88foTUmeZI/AAAAAAABMow/5b3bKr-Crngp099hV4yvCY3f_f5u72r_wCEwYBhgL/s640/rg7.jpg" width="640" /></a></div>
<br />
<br />
כשלוחצים על מה שכן הצליח רואים פרטים רבים:<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-j-CSqSVJuWs/W88foBmGetI/AAAAAAABMos/JuLQG-wuzqgsbkHfFTx7Yho8F1v6IoPvACEwYBhgL/s1600/rg6.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="500" data-original-width="1600" height="198" src="https://2.bp.blogspot.com/-j-CSqSVJuWs/W88foBmGetI/AAAAAAABMos/JuLQG-wuzqgsbkHfFTx7Yho8F1v6IoPvACEwYBhgL/s640/rg6.jpg" width="640" /></a></div>
<br />
<br />
זהו <br />
עוד מידע לצבור - אולי נעשה עליו AI? :-)<br />
יום נעים</div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-58222767842079357322018-08-22T16:03:00.001+03:002018-08-22T16:03:30.177+03:00PowerShell to get Some DATA on ALL your Azure SQL DB's<div dir="rtl" style="text-align: right;" trbidi="on">
שלום רב<br />
<br />
למי שיש הרבה בסיסי נתונים מפוזרים בענן רוצה לצבור עליהם מידע לצרכים שונים יכול ליצור סקריפט PowerShell שיעבור על כל ה Subscriptions ויאסוף מידע שקיים ב PowerShell.<br />
<br />
וכן המקום לפינת הקיטור היומית - ידידינו ממיקרוסופט מה עם Backward Compatability? <br />
היו לי פרמטרים שיכלנו לשאוב למשל כמה גודל בסיס הנתונים וכרגע אי אפשר לדעתי. נכון נותנים את המידע במקומות אחרים אבל נוח שזה יעבוד שנים - וסקריפט שעבד לי שנים - לאחרונה הפסיק לעבוד.<br />
<br />
יש לזה המון שימושים למשל רוצים לראות באילו בסיסי נתונים יש המלצות למשל להוסיף אינדקס ואתה לא רוצה לעבור בפורטל לכל בסיס נתונים. או מתי הגיבוי הראשון או הגיבוי האחרון שיש.<br />
<br />
אז הנה סקריפט בסיסי ממש - מוזמנים לשפר ולשתף עם הקהילה.<br />
<br />
<ol style="text-align: right;">
<li>ראשית עליכם לוודא שהמודולים של Azure מותקנים אצלכם (הרצה חד פעמית במחשב)</li>
</ol>
<div dir="ltr" style="text-align: left;">
<span style="color: blue; font-family: Lucida Console;">install-module</span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="font-family: Lucida Console;"></span><span style="color: navy; font-family: Lucida Console;"><span style="color: navy; font-family: Lucida Console;"><span style="color: navy; font-family: Lucida Console;">-Name</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: blueviolet; font-family: Lucida Console;"><span style="color: blueviolet; font-family: Lucida Console;"><span style="color: blueviolet; font-family: Lucida Console;">AzureRM</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: navy; font-family: Lucida Console; font-size: xx-small;"><span style="color: navy; font-family: Lucida Console; font-size: xx-small;"><span style="color: navy; font-family: Lucida Console; font-size: xx-small;"><span style="font-size: small;">-Force</span> </span></span></span></div>
<ol style="text-align: right;">
<li>עושים לוגאין ליוזר שלכם ב Azure (חד פעמית בסשין)</li>
</ol>
<div dir="ltr" style="text-align: left;">
<span style="color: blue; font-family: Lucida Console;">Add-AzureRmAccount</span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="font-family: Lucida Console;"></span></div>
<ol style="text-align: right;">
<li>מריצים את הסקריפט להנאתכם</li>
</ol>
<div dir="ltr" style="text-align: left;">
<span style="color: blue; font-family: Lucida Console;"><span style="color: blue; font-family: Lucida Console;"><span style="color: blue; font-family: Lucida Console;">Write-Host</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: darkred; font-family: Lucida Console;"><span style="color: darkred; font-family: Lucida Console;"><span style="color: darkred; font-family: Lucida Console;">"Login to Azure..."</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: navy; font-family: Lucida Console;"><span style="color: navy; font-family: Lucida Console;"><span style="color: navy; font-family: Lucida Console;">-ForegroundColor</span></span></span><span style="font-family: Lucida Console; font-size: xx-small;"><span style="font-family: Lucida Console; font-size: xx-small;"> </span></span><span style="color: blueviolet; font-family: Lucida Console;"><span style="color: blueviolet; font-family: Lucida Console;"><span style="color: blueviolet; font-family: Lucida Console;">Cyan</span></span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="color: blueviolet; font-family: Lucida Console;"><span style="color: blueviolet; font-family: Lucida Console;"><span style="color: blueviolet; font-family: Lucida Console;">
</span></span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"></span></span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$subscription</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">=</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> ( </span></span><span style="color: blue; font-family: Lucida Console;"><span style="color: blue; font-family: Lucida Console;"><span style="color: blue; font-family: Lucida Console;">Get-AzureRmSubscription</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">) </span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"></span></span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$subscriptionId</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">=</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> ( </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$subscription</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">)</span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">SubscriptionId </span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"></span></span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$subscriptionName</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">=</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> ( </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$subscription</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">)</span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">Name</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span><span style="color: darkblue; font-family: Lucida Console;"><span style="color: darkblue; font-family: Lucida Console;"><span style="color: darkblue; font-family: Lucida Console;"></span></span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="color: darkblue; font-family: Lucida Console;"><span style="color: darkblue; font-family: Lucida Console;"><span style="color: darkblue; font-family: Lucida Console;">foreach</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> (</span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$s</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: darkblue; font-family: Lucida Console;"><span style="color: darkblue; font-family: Lucida Console;"><span style="color: darkblue; font-family: Lucida Console;">in</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$subscription</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">)</span></span></div>
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">{</span></span><br />
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span><br />
<br />
<br />
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$c</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">=</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: blue; font-family: Lucida Console;"><span style="color: blue; font-family: Lucida Console;"><span style="color: blue; font-family: Lucida Console;">Set-AzureRmContext</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: navy; font-family: Lucida Console;"><span style="color: navy; font-family: Lucida Console;"><span style="color: navy; font-family: Lucida Console;">-Subscriptionid</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$s</span></span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">SubscriptionId</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$a</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">=</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: blue; font-family: Lucida Console;"><span style="color: blue; font-family: Lucida Console;"><span style="color: blue; font-family: Lucida Console;">Select-AzureRmSubscription</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: navy; font-family: Lucida Console;"><span style="color: navy; font-family: Lucida Console;"><span style="color: navy; font-family: Lucida Console;">-SubscriptionId</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$s</span></span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">SubscriptionId </span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$ResourceGroup</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">=</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> @(</span></span><span style="color: blue; font-family: Lucida Console;"><span style="color: blue; font-family: Lucida Console;"><span style="color: blue; font-family: Lucida Console;">Get-AzureRmResourceGroup</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">) </span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: darkblue; font-family: Lucida Console;"><span style="color: darkblue; font-family: Lucida Console;"><span style="color: darkblue; font-family: Lucida Console;">foreach</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> (</span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$RG</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: darkblue; font-family: Lucida Console;"><span style="color: darkblue; font-family: Lucida Console;"><span style="color: darkblue; font-family: Lucida Console;">in</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$ResourceGroup</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">)</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span><br />
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> { </span></span><br />
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span><br />
<br />
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$Sds</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">=</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> @(</span></span><span style="color: blue; font-family: Lucida Console;"><span style="color: blue; font-family: Lucida Console;"><span style="color: blue; font-family: Lucida Console;">Get-AzureRmSqlServer</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: navy; font-family: Lucida Console;"><span style="color: navy; font-family: Lucida Console;"><span style="color: navy; font-family: Lucida Console;">-ResourceGroupName</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$RG</span></span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">ResourceGroupName) </span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: darkblue; font-family: Lucida Console;"><span style="color: darkblue; font-family: Lucida Console;"><span style="color: darkblue; font-family: Lucida Console;">foreach</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> (</span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$SqlDatabaseServer</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: darkblue; font-family: Lucida Console;"><span style="color: darkblue; font-family: Lucida Console;"><span style="color: darkblue; font-family: Lucida Console;">in</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$Sds</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">)</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span><br />
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> {</span></span><br />
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span><br />
<br />
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$databases</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">=</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> @(</span></span><span style="color: blue; font-family: Lucida Console;"><span style="color: blue; font-family: Lucida Console;"><span style="color: blue; font-family: Lucida Console;">Get-AzureRmSqlDatabase</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: navy; font-family: Lucida Console;"><span style="color: navy; font-family: Lucida Console;"><span style="color: navy; font-family: Lucida Console;">-ResourceGroupName</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$RG</span></span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">ResourceGroupName </span></span><span style="color: navy; font-family: Lucida Console;"><span style="color: navy; font-family: Lucida Console;"><span style="color: navy; font-family: Lucida Console;">-ServerName</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$SqlDatabaseServer</span></span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">ServerName </span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">|</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: blue; font-family: Lucida Console;"><span style="color: blue; font-family: Lucida Console;"><span style="color: blue; font-family: Lucida Console;">Where-Object</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> {</span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$_</span></span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">DatabaseName </span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">-ne</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: darkred; font-family: Lucida Console;"><span style="color: darkred; font-family: Lucida Console;"><span style="color: darkred; font-family: Lucida Console;">"master"</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> }) </span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: darkblue; font-family: Lucida Console;"><span style="color: darkblue; font-family: Lucida Console;"><span style="color: darkblue; font-family: Lucida Console;">foreach</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> (</span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$SqlDatabase</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: darkblue; font-family: Lucida Console;"><span style="color: darkblue; font-family: Lucida Console;"><span style="color: darkblue; font-family: Lucida Console;">in</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$databases</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">)</span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span><br />
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> {</span></span><br />
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span><br />
<br />
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: blue; font-family: Lucida Console;"><span style="color: blue; font-family: Lucida Console;"><span style="color: blue; font-family: Lucida Console;">Write-Host</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: navy; font-family: Lucida Console;"><span style="color: navy; font-family: Lucida Console;"><span style="color: navy; font-family: Lucida Console;">-Separator</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: darkred; font-family: Lucida Console;"><span style="color: darkred; font-family: Lucida Console;"><span style="color: darkred; font-family: Lucida Console;">" "</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$s</span></span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">Name </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$SqlDatabase</span></span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">ServerName </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$SqlDatabase</span></span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">DatabaseName </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$SqlDatabase</span></span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">Location </span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$SqlDatabase</span></span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">CurrentServiceObjectiveName </span></span><span style="color: blueviolet; font-family: Lucida Console;"><span style="color: blueviolet; font-family: Lucida Console;"><span style="color: blueviolet; font-family: Lucida Console;">MAX:</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">(</span></span><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;"><span style="color: orangered; font-family: Lucida Console;">$SqlDatabase</span></span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">.</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">MaxSizeBytes</span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">/</span></span></span><span style="color: purple; font-family: Lucida Console;"><span style="color: purple; font-family: Lucida Console;"><span style="color: purple; font-family: Lucida Console;">1024</span></span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">/</span></span></span><span style="color: purple; font-family: Lucida Console;"><span style="color: purple; font-family: Lucida Console;"><span style="color: purple; font-family: Lucida Console;">1024</span></span></span><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;"><span style="color: darkgrey; font-family: Lucida Console;">/</span></span></span><span style="color: purple; font-family: Lucida Console;"><span style="color: purple; font-family: Lucida Console;"><span style="color: purple; font-family: Lucida Console;">1024</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">)</span></span><span style="color: blueviolet; font-family: Lucida Console;"><span style="color: blueviolet; font-family: Lucida Console;"><span style="color: blueviolet; font-family: Lucida Console;">GB</span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> <span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"></span></span></span></span><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> }</span></span></span><br />
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span></span><br />
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span></span><br />
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span></span><br />
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> }</span></span></span><br />
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span></span><br />
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> }</span></span></span><br />
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">
</span></span></span><br />
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;">} </span></span></span><br />
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span><br />
<br />
כמו שרואים מביא רשימה של כל מיני נתונים כמו מיקום בסיס הנתונים ועוד.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-50Yg91BqOLk/W31ezzYBcbI/AAAAAAABLTk/NhSHIzer1G4dwiTNgqioV7usX8x8S9lqgCLcBGAs/s1600/8-22-2018%2B3-59-23%2BPM.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="757" data-original-width="866" height="558" src="https://1.bp.blogspot.com/-50Yg91BqOLk/W31ezzYBcbI/AAAAAAABLTk/NhSHIzer1G4dwiTNgqioV7usX8x8S9lqgCLcBGAs/s640/8-22-2018%2B3-59-23%2BPM.jpg" width="640" /></a></div>
<br />
<br />
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
<span style="color: navy; font-family: Lucida Console; font-size: xx-small;"></span> </div>
<div dir="ltr" style="text-align: left;">
<span style="font-family: Lucida Console;"><span style="font-family: Lucida Console;"> </span></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-84914253221581800432018-07-03T16:27:00.000+03:002018-07-04T08:47:23.373+03:00Load Balance Read Operations in SQL Azure<div dir="rtl" style="text-align: right;" trbidi="on">
שלום רב<br />
<br />
והיום קצת על ארכיטקטורה ועל Load Balancing.<br />
<br />
איך עובד SQL Azure DataBase?<br />
<br />
בכל Data Center לכל בסיס נתונים יש 3 עותקים נסתרים, הם לא נגישים (רגע תכף תמתינו עד הסוף... :-) ), כאשר יש בעותק אחד בעיה ישנה פעולה שנקראת Re configuration שהם מרימים עותק נוסף כדי שכל הזמן יהיו 3 עותקים בתוך אותו Data Center.<br />
אחלה, מעולה, אכן SLA גבוה.<br />
<br />
כאשר עלה צורך לגופים בארגון לבצע קריאות רבות, או כשרציתי לאזן עומסים מהעותק הראשי בנינו עותק ב data center אחר, וכיוונתי לשם עומסים.<br />
הא מה? <br />
<ol>
<li>העותק הזה עולה כסף.</li>
<li>העותק הנוסף חייב להיות ב Data Center אחר.</li>
</ol>
לכן הוצג הפתרון הזה - מיקרוסופט ייתנו לנו אפשרות לקרוא מאחד העותקים בתוך אותו ה Data Center, וזה גם יהיה ללא עלות כי הוא כבר קיים. וגם זה לא ישפיע על העותק הראשי.<br />
<br />
כיצד זה מתבצע? הנה ההסבר המפורט:<br />
<ol>
<li>בודקים איזה tier בסיס הנתונים שלך במידה והוא <span style="background-color: white; color: black; display: inline; float: none; font-family: "segoe ui" , "segoeui" , "segoe wp" , "helvetica neue" , "helvetica" , "tahoma" , "arial" , sans-serif; font-size: 16px; font-style: normal; font-weight: 400; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">Premium <span style="font-family: "times new roman";">שזה בשיטת ה DTU, או ב <span style="background-color: white; color: black; display: inline; float: none; font-family: "segoe ui" , "segoeui" , "segoe wp" , "helvetica neue" , "helvetica" , "tahoma" , "arial" , sans-serif; font-size: 16px; font-style: normal; font-weight: 400; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">Business Critical</span> שזה בשיטת ה V-Core, אם כן אז סבבה יש לנו אישור להמשיך.</span></span></li>
<li><span style="background-color: white; color: black; display: inline; float: none; font-family: "segoe ui" , "segoeui" , "segoe wp" , "helvetica neue" , "helvetica" , "tahoma" , "arial" , sans-serif; font-size: 16px; font-style: normal; font-weight: 400; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="font-family: "times new roman";">מריצים סקריפט PowerShell שמאפשר לקרוא את העותק הרצוי.</span></span></li>
<li><span style="background-color: white; color: black; display: inline; float: none; font-family: "segoe ui" , "segoeui" , "segoe wp" , "helvetica neue" , "helvetica" , "tahoma" , "arial" , sans-serif; font-size: 16px; font-style: normal; font-weight: 400; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="font-family: "times new roman";">מתחברים לבסיס הנתונים עם התוסף: <span style="background-color: #f9f9f9; color: black; display: inline; float: none; font-family: "consolas" , "menlo" , "monaco" , "lucida console" , "liberation mono" , "dejavu sans mono" , "bitstream vera sans mono" , "courier new" , monospace , sans-serif; font-size: 14px; font-style: normal; font-weight: 400; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;">ApplicationIntent=ReadOnly </span></span></span></li>
<li><span style="background-color: white; color: black; display: inline; float: none; font-family: "segoe ui" , "segoeui" , "segoe wp" , "helvetica neue" , "helvetica" , "tahoma" , "arial" , sans-serif; font-size: 16px; font-style: normal; font-weight: 400; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="background-color: #f9f9f9; color: black; display: inline; float: none; font-family: "consolas" , "menlo" , "monaco" , "lucida console" , "liberation mono" , "dejavu sans mono" , "bitstream vera sans mono" , "courier new" , monospace , sans-serif; font-size: 14px; font-style: normal; font-weight: 400; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"><span style="background-color: white; font-family: "times new roman"; font-size: small;">מוודאים שאתה בעותק של read only . </span></span></span></li>
</ol>
<div style="text-align: right;">
<span style="background-color: white; color: black; display: inline; float: none; font-family: "segoe ui" , "segoeui" , "segoe wp" , "helvetica neue" , "helvetica" , "tahoma" , "arial" , sans-serif; font-size: 16px; font-style: normal; font-weight: 400; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="background-color: #f9f9f9; color: black; display: inline; float: none; font-family: "consolas" , "menlo" , "monaco" , "lucida console" , "liberation mono" , "dejavu sans mono" , "bitstream vera sans mono" , "courier new" , monospace , sans-serif; font-size: 14px; font-style: normal; font-weight: 400; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"><span style="background-color: white; font-family: "times new roman"; font-size: small;">וזהו סעו ברכה, אחלה פיצר.</span></span></span></div>
<div style="text-align: right;">
<span style="background-color: white; color: black; display: inline; float: none; font-family: "segoe ui" , "segoeui" , "segoe wp" , "helvetica neue" , "helvetica" , "tahoma" , "arial" , sans-serif; font-size: 16px; font-style: normal; font-weight: 400; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="background-color: #f9f9f9; color: black; display: inline; float: none; font-family: "consolas" , "menlo" , "monaco" , "lucida console" , "liberation mono" , "dejavu sans mono" , "bitstream vera sans mono" , "courier new" , monospace , sans-serif; font-size: 14px; font-style: normal; font-weight: 400; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"><span style="background-color: white; font-family: "times new roman"; font-size: small;"></span></span></span> </div>
<div style="text-align: right;">
<span style="background-color: white; color: black; display: inline; float: none; font-family: "segoe ui" , "segoeui" , "segoe wp" , "helvetica neue" , "helvetica" , "tahoma" , "arial" , sans-serif; font-size: 16px; font-style: normal; font-weight: 400; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="background-color: #f9f9f9; color: black; display: inline; float: none; font-family: "consolas" , "menlo" , "monaco" , "lucida console" , "liberation mono" , "dejavu sans mono" , "bitstream vera sans mono" , "courier new" , monospace , sans-serif; font-size: 14px; font-style: normal; font-weight: 400; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"><span style="background-color: white; font-family: "times new roman"; font-size: small;">להלן סקריפט PS:</span></span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="background-color: white; color: black; display: inline; float: none; font-family: "segoe ui" , "segoeui" , "segoe wp" , "helvetica neue" , "helvetica" , "tahoma" , "arial" , sans-serif; font-style: normal; font-weight: 400; letter-spacing: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="background-color: #f9f9f9; color: black; display: inline; float: none; font-family: "consolas" , "menlo" , "monaco" , "lucida console" , "liberation mono" , "dejavu sans mono" , "bitstream vera sans mono" , "courier new" , monospace , sans-serif; font-style: normal; font-weight: 400; letter-spacing: normal; text-align: left; text-indent: 0px; text-transform: none; white-space: pre; word-spacing: 0px;"></span></span><br />
<div dir="ltr" style="text-align: left;">
<span style="color: blue; font-family: "lucida console";"><span style="color: blue; font-family: "lucida console";"><span style="color: blue; font-family: "lucida console";">Login-AzureRmAccount</span></span></span><span style="font-family: "lucida console";"><span style="font-family: "lucida console";">;<span style="font-family: "lucida console";"><span style="font-family: "lucida console";"></span></span></span></span><br />
<div dir="ltr" style="text-align: left;">
<span style="font-family: "lucida console";"><span style="font-family: "lucida console";"><span style="font-family: "lucida console";"> </span></span></span></div>
<div dir="ltr" style="text-align: left;">
<span style="color: blue; font-family: "lucida console";"><span style="color: blue; font-family: "lucida console";"><span style="color: blue; font-family: "lucida console";">Select-AzureRmSubscription</span></span></span><span style="font-family: "lucida console";"><span style="font-family: "lucida console";"> </span></span><span style="color: navy; font-family: "lucida console";"><span style="color: navy; font-family: "lucida console";"><span style="color: navy; font-family: "lucida console";">-SubscriptionName</span></span></span><span style="font-family: "lucida console";"><span style="font-family: "lucida console";"> </span></span><span style="color: darkred; font-family: "lucida console";"><span style="color: darkred; font-family: "lucida console";"><span style="color: darkred; font-family: "lucida console";">"MySubscriptionName"<span style="color: blue; font-family: "lucida console";"></span></span></span></span><span style="color: darkred; font-family: "lucida console";"><span style="color: darkred; font-family: "lucida console";"><span style="color: darkred; font-family: "lucida console";"><span style="color: blue; font-family: "lucida console";"> </span></span></span></span><br />
<span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"></span></span></span></span></span></span></span><br />
<div dir="ltr" style="text-align: left;">
<span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="font-size: small;"><span style="color: blue; font-family: "lucida console";"><span style="color: blue; font-family: "lucida console";"><span style="color: blue; font-family: "lucida console";">Set-AzureRmSqlDatabase</span></span></span><span style="font-family: "lucida console";"><span style="font-family: "lucida console";"> </span></span><span style="color: navy; font-family: "lucida console";"><span style="color: navy; font-family: "lucida console";"><span style="color: navy; font-family: "lucida console";">-ResourceGroupName</span></span></span><span style="font-family: "lucida console";"><span style="font-family: "lucida console";"> </span></span><span style="color: darkred; font-family: "lucida console";"><span style="color: darkred; font-family: "lucida console";"><span style="color: darkred; font-family: "lucida console";">'MyRGName'</span></span></span><span style="font-family: "lucida console";"><span style="font-family: "lucida console";"> </span></span><span style="color: navy; font-family: "lucida console";"><span style="color: navy; font-family: "lucida console";"><span style="color: navy; font-family: "lucida console";">-ServerName</span></span></span><span style="font-family: "lucida console";"><span style="font-family: "lucida console";"> </span></span><span style="color: darkred; font-family: "lucida console";"><span style="color: darkred; font-family: "lucida console";"><span style="color: darkred; font-family: "lucida console";">'MyServeName'</span></span></span><span style="font-family: "lucida console";"><span style="font-family: "lucida console";"> </span></span><span style="color: navy; font-family: "lucida console";"><span style="color: navy; font-family: "lucida console";"><span style="color: navy; font-family: "lucida console";">-DatabaseName</span></span></span><span style="font-family: "lucida console";"><span style="font-family: "lucida console";"> </span></span><span style="color: darkred; font-family: "lucida console";"><span style="color: darkred; font-family: "lucida console";"><span style="color: darkred; font-family: "lucida console";">'MyDBName'</span></span></span><span style="font-family: "lucida console";"><span style="font-family: "lucida console";"> </span></span><span style="color: navy; font-family: "lucida console";"><span style="color: navy; font-family: "lucida console";"><span style="color: navy; font-family: "lucida console";">-ReadScale</span></span></span><span style="font-family: "lucida console";"><span style="font-family: "lucida console";"> </span></span><span style="color: blueviolet; font-family: "lucida console";"><span style="color: blueviolet; font-family: "lucida console";"><span style="color: blueviolet; font-family: "lucida console";">Enabled</span></span></span></span></span></span></span></span></span></span></div>
<span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;">
</span></span></span></span></span></span><br />
<div dir="ltr" style="text-align: left;">
<span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blueviolet;"></span> </span></span></span></span></span></span></div>
<span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;">
</span></span></span></span></span></span><div dir="ltr" style="text-align: left;">
<span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="font-family: "lucida console"; font-size: xx-small;"><span style="font-family: "lucida console"; font-size: xx-small;"></span></span></span></span></span></span></span></span><br />
<div dir="ltr" style="text-align: left;">
<span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="font-family: "lucida console"; font-size: xx-small;"><span style="font-family: "lucida console"; font-size: xx-small;"> </span></span></span></span></span></span></span></span></div>
<br /></div>
<span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: darkred; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;">
</span></span></span></span></span></span><br />
<div dir="ltr" style="text-align: left;">
<span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"></span></span></span><br />
<div dir="ltr" style="text-align: left;">
<span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"> </span></span></span></div>
<div dir="rtl" style="text-align: right;">
מי שרוצה להתחבר מ SSMS מוזמן לעשות את זה ככה:</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-nILMUgT5Xes/WztvauQUJPI/AAAAAAABJ_s/wgW5V8Snv0cEdVm-cJG-jFEhhhwDHVPDQCLcBGAs/s1600/7-3-2018%2B3-34-40%2BPM.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="322" data-original-width="484" height="265" src="https://1.bp.blogspot.com/-nILMUgT5Xes/WztvauQUJPI/AAAAAAABJ_s/wgW5V8Snv0cEdVm-cJG-jFEhhhwDHVPDQCLcBGAs/s400/7-3-2018%2B3-34-40%2BPM.jpg" width="400" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-on1CcCo6hJw/Wztval7HyvI/AAAAAAABJ_o/1jcbOpr07LEx6Bef7TFbTnJf-6uUwRHsQCLcBGAs/s1600/7-3-2018%2B3-40-34%2BPM.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="565" data-original-width="513" height="400" src="https://2.bp.blogspot.com/-on1CcCo6hJw/Wztval7HyvI/AAAAAAABJ_o/1jcbOpr07LEx6Bef7TFbTnJf-6uUwRHsQCLcBGAs/s400/7-3-2018%2B3-40-34%2BPM.jpg" width="362" /></a></div>
<br />
<div dir="rtl" style="text-align: right;">
עכשיו צריך לוודא שאתה בעותק הנכון:</div>
<br />
<span style="font-size: x-small;"><span style="font-family: "consolas";">
<span style="color: blue;"><span style="color: blue;"><span style="color: blue;"></span></span></span></span></span><br />
<span style="color: blue; font-family: "consolas"; font-size: x-small;"><span style="color: blue; font-family: "consolas"; font-size: x-small;"><span style="color: blue; font-family: "consolas"; font-size: x-small;">SELECT</span></span></span><span style="font-family: "consolas"; font-size: x-small;"><span style="font-family: "consolas"; font-size: x-small;"> </span></span><span style="color: magenta; font-family: "consolas"; font-size: x-small;"><span style="color: magenta; font-family: "consolas"; font-size: x-small;"><span style="color: magenta; font-family: "consolas"; font-size: x-small;">DATABASEPROPERTYEX</span></span></span><span style="color: grey; font-family: "consolas"; font-size: x-small;"><span style="color: grey; font-family: "consolas"; font-size: x-small;"><span style="color: grey; font-family: "consolas"; font-size: x-small;">(</span></span></span><span style="color: magenta; font-family: "consolas"; font-size: x-small;"><span style="color: magenta; font-family: "consolas"; font-size: x-small;"><span style="color: magenta; font-family: "consolas"; font-size: x-small;">DB_NAME</span></span></span><span style="color: grey; font-family: "consolas"; font-size: x-small;"><span style="color: grey; font-family: "consolas"; font-size: x-small;"><span style="color: grey; font-family: "consolas"; font-size: x-small;">(),</span></span></span><span style="font-family: "consolas"; font-size: x-small;"><span style="font-family: "consolas"; font-size: x-small;"> </span></span><span style="color: red; font-family: "consolas"; font-size: x-small;"><span style="color: red; font-family: "consolas"; font-size: x-small;"><span style="color: red; font-family: "consolas"; font-size: x-small;">'Updateability'</span></span></span><span style="color: grey; font-family: "consolas"; font-size: x-small;"><span style="color: grey; font-family: "consolas"; font-size: x-small;"><span style="color: grey; font-family: "consolas"; font-size: x-small;">),</span></span></span><span style="color: magenta; font-family: "consolas"; font-size: x-small;"><span style="color: magenta; font-family: "consolas"; font-size: x-small;"><span style="color: magenta; font-family: "consolas"; font-size: x-small;">DB_NAME</span></span></span><span style="color: grey; font-family: "consolas"; font-size: x-small;"><span style="color: grey; font-family: "consolas"; font-size: x-small;"><span style="color: grey; font-family: "consolas"; font-size: x-small;">(),</span></span></span><span style="color: magenta; font-family: "consolas"; font-size: x-small;"><span style="color: magenta; font-family: "consolas"; font-size: x-small;"><span style="color: magenta; font-family: "consolas"; font-size: x-small;">@@SERVERNAME</span></span></span><br />
<div dir="ltr" style="text-align: left;">
<span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"></span></span></span><br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-LdKwiQmfkzA/WztxT_aLnFI/AAAAAAABJ_8/eRyEMOazuwUr__cp5UnbhbUMDwDpyqTigCLcBGAs/s1600/7-3-2018%2B3-50-23%2BPM.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="269" data-original-width="1428" height="120" src="https://1.bp.blogspot.com/-LdKwiQmfkzA/WztxT_aLnFI/AAAAAAABJ_8/eRyEMOazuwUr__cp5UnbhbUMDwDpyqTigCLcBGAs/s640/7-3-2018%2B3-50-23%2BPM.jpg" width="640" /></a></div>
<div dir="ltr" style="text-align: left;">
<br />
<div dir="rtl" style="text-align: right;">
<span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"> </span></span></span></div>
<div dir="rtl" style="text-align: right;">
הנה ב SSMS רואים שחיבור אחד הוא לעותק ה Read only.</div>
<div dir="rtl" style="text-align: right;">
<br /></div>
<div dir="rtl" style="text-align: right;">
ועכשיו לבדיקה עצמה:</div>
<div dir="rtl" style="text-align: right;">
מריץ שאילתא כבדה על העותק של הקריאה כתיבה והנה קופץ בפורטל הDTU.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-k5yDCrQbNXo/Wzt3Z-v3NfI/AAAAAAABKAM/edJfvbDvJdA1RFAMOtOSQB50yZBYH-GEgCLcBGAs/s1600/7-3-2018%2B4-12-38%2BPM.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="249" data-original-width="903" height="176" src="https://1.bp.blogspot.com/-k5yDCrQbNXo/Wzt3Z-v3NfI/AAAAAAABKAM/edJfvbDvJdA1RFAMOtOSQB50yZBYH-GEgCLcBGAs/s640/7-3-2018%2B4-12-38%2BPM.jpg" width="640" /></a></div>
<br />
<div dir="rtl" style="text-align: right;">
ואם אני מריץ את אותה שאילתא על העותק ה Read Only, אין קפיצה ב DTU.</div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-1_SJFW3IIPk/Wzt3bWKE_jI/AAAAAAABKAQ/yTqGd3_yRU4x6HEMzgVjbVaRjVhKw1n7wCLcBGAs/s1600/7-3-2018%2B4-09-52%2BPM.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="221" data-original-width="917" height="154" src="https://3.bp.blogspot.com/-1_SJFW3IIPk/Wzt3bWKE_jI/AAAAAAABKAQ/yTqGd3_yRU4x6HEMzgVjbVaRjVhKw1n7wCLcBGAs/s640/7-3-2018%2B4-09-52%2BPM.jpg" width="640" /></a></div>
<br />
<div dir="rtl" style="text-align: right;">
<br /></div>
<div dir="rtl" style="text-align: right;">
שימו לב אין שום GUI שמחובר לעותק ה Read Only.</div>
<div dir="rtl" style="text-align: right;">
והנה לינק לתעוד:</div>
<div dir="rtl" style="text-align: right;">
<a href="https://docs.microsoft.com/en-us/azure/sql-database/sql-database-read-scale-out" target="_blank">https://docs.microsoft.com/en-us/azure/sql-database/sql-database-read-scale-out</a></div>
<div dir="rtl" style="text-align: right;">
<br /></div>
<div dir="rtl" style="text-align: right;">
שאפו לרן עובדיה שסייע לי במציאת הפתרון.</div>
<br />
נסו ותהנו.<br />
יום נעים<br />
<br />
<div dir="ltr" style="text-align: left;">
</div>
<span style="color: blue; font-family: "lucida console"; font-size: xx-small;"></span><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"></span><span style="color: blue; font-family: "lucida console"; font-size: xx-small;"></span><br />
<div dir="ltr" style="text-align: left;">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-33247516268131821062018-05-29T16:57:00.001+03:002018-05-29T16:58:41.685+03:00Long-term backup retention in SQL Azure DataBase<div dir="rtl" style="text-align: right;" trbidi="on">
שלום לכולם<br />
בסוף 2016 הוצגה יכולת גיבוי של בסיסי הנתונים לטווחים ארוכים.<br />
אם המערכת נותנת בצורה אוטומטית גיבוי עד ל 35 יום, אם אתה צריך גיבוי לטווח זמן ארוך יותר צריך להגדיר את זה.<br />
<br />
בגרסתו החדשה הסרוויס יותר אינטואיטיבי - ונותן אפשרות גם למחוק גיבויים יותר ישנים וגם לשחזר בקלות מתוך גיבויים ישנים.<br />
<br />
כדי להגיע למקום בו מגדירים גיבויים ארוכי טווח יש לפנות למאמר זה המסביר די בפשטות כיצד מגבים ומשחזרים:<br />
<br />
<div dir="ltr" style="text-align: left;">
<a href="https://azure.microsoft.com/en-us/blog/sql-database-long-term-backup-retention-preview-includes-major-updates/" target="_blank">https://azure.microsoft.com/en-us/blog/sql-database-long-term-backup-retention-preview-includes-major-updates/</a></div>
<div style="text-align: right;">
</div>
<div style="text-align: right;">
מקום ניהול הגיבויים הינו ברמת השרת:</div>
<div style="text-align: right;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-vf4RTYkOluI/Ww1aa5IL72I/AAAAAAABHSM/ACejRTt_Op4-Pr9PEIqt-DL1s0C5LRdLQCLcBGAs/s1600/5-29-2018%2B4-48-48%2BPM.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="574" data-original-width="223" height="640" src="https://3.bp.blogspot.com/-vf4RTYkOluI/Ww1aa5IL72I/AAAAAAABHSM/ACejRTt_Op4-Pr9PEIqt-DL1s0C5LRdLQCLcBGAs/s640/5-29-2018%2B4-48-48%2BPM.jpg" width="248" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div align="right" class="separator" style="clear: both; text-align: center;">
</div>
<div style="text-align: right;">
</div>
<div style="text-align: right;">
משם גולשים לחלונית שמציגה אפשרות להגדיר מערכת גיבויים וחלונית המציגה אילו גיבויים יש שמתוכם אפשר לשחזר או למחוק את הגיבוי עצמו:</div>
<div style="text-align: right;">
</div>
<div style="text-align: right;">
כאן יש רשימת בסיסי נתונים ומה מוגדר להם, האם גיבוי חודשי או שנתי או שבועי ולמשך כמה חודשים שנים ושבועות יהיה גיבוי</div>
<div style="text-align: right;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-cUopD2vb590/Ww1bBzCctnI/AAAAAAABHSY/Wce-elIRB_sT5GqKBIgMp_MOWgADW1AFwCLcBGAs/s1600/5-29-2018%2B4-51-10%2BPM.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="312" data-original-width="780" height="256" src="https://4.bp.blogspot.com/-cUopD2vb590/Ww1bBzCctnI/AAAAAAABHSY/Wce-elIRB_sT5GqKBIgMp_MOWgADW1AFwCLcBGAs/s640/5-29-2018%2B4-51-10%2BPM.jpg" width="640" /></a></div>
<br />
<br />
וכאן יש רשימה של גיבויים קיימים שמהם ניתן לשחזר גם ייתכן שיש לך בסיס נתונים שנמחק - והוא יופיע פה כי גיבית אותו.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-lbnLnkmm0yg/Ww1bB7jRbhI/AAAAAAABHSU/HHJSoMnIk08RMy6EidVqikEW0jCMHXPCgCLcBGAs/s1600/5-29-2018%2B4-51-24%2BPM.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="229" data-original-width="457" height="320" src="https://3.bp.blogspot.com/-lbnLnkmm0yg/Ww1bB7jRbhI/AAAAAAABHSU/HHJSoMnIk08RMy6EidVqikEW0jCMHXPCgCLcBGAs/s640/5-29-2018%2B4-51-24%2BPM.jpg" width="640" /></a></div>
<div style="text-align: right;">
</div>
<div style="text-align: right;">
הפשטות פה היא ממש יפה.</div>
<div style="text-align: right;">
</div>
<div style="text-align: right;">
השלב הבא אולי לראות את זה ב SSMS.</div>
<div style="text-align: right;">
GDPR - כבר אמרנו?</div>
<div style="text-align: right;">
</div>
</div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-72089378271853662092018-04-25T11:44:00.002+03:002018-04-26T10:35:05.021+03:00SQL Azure: DTU vs vCore<div dir="rtl" style="text-align: right;" trbidi="on">
שלום לכולם<br />
<br />
אז כהשהכל התחיל אי שם ב 2010 הייתה אפשרות לבחור בין<br />
<div dir="ltr" style="text-align: left;">
Web Edition</div>
<div dir="ltr" style="text-align: left;">
Business Edition</div>
<div style="text-align: right;">
<br />
כאשר גריסה אחת הייתה מוגבלת במקום ויותר איטית והשניייה מהירה,(מי שזוכר את גרסאות אלו שיצביע :-)) זהו.<br />
ואז נכנס עולם של </div>
<h3 class="heading-with-anchor" dir="ltr" id="basic-service-tier" style="background-color: white; font-family: segoe-ui_semibold, "Segoe UI Semibold", "Segoe WP", "Helvetica Neue", Helvetica, sans-serif; font-weight: 300; line-height: 1.3; margin-bottom: 18px; margin-top: 30px; text-align: left; text-rendering: optimizeLegibility; word-wrap: break-word;">
<span style="font-size: x-small;">Basic service tier</span></h3>
<div dir="ltr" style="text-align: left;">
<h3 class="heading-with-anchor" id="standard-service-tier" style="background-color: white; font-family: segoe-ui_semibold, "Segoe UI Semibold", "Segoe WP", "Helvetica Neue", Helvetica, sans-serif; font-weight: 300; line-height: 1.3; margin-bottom: 18px; margin-top: 30px; text-align: left; text-rendering: optimizeLegibility; word-wrap: break-word;">
<span style="font-size: x-small;">Standard service tier<a aria-hidden="true" class="docon docon-link heading-anchor" href="https://docs.microsoft.com/en-us/azure/sql-database/sql-database-dtu-resource-limits#standard-service-tier" style="-webkit-font-smoothing: antialiased; background-color: transparent; color: #0078d7; cursor: pointer; display: inline-block; font-family: docons; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 16px; margin: 0px 0px 0px 10px; opacity: 1; speak: none; text-align: center; text-decoration-line: none; transition: 0.1s linear; vertical-align: middle; visibility: visible; word-wrap: break-word;" tabindex="-1"></a></span></h3>
</div>
<div dir="ltr" style="text-align: left;">
<h3 class="heading-with-anchor" id="premium-service-tier" style="background-color: white; font-family: segoe-ui_semibold, "Segoe UI Semibold", "Segoe WP", "Helvetica Neue", Helvetica, sans-serif; font-weight: 300; line-height: 1.3; margin-bottom: 18px; margin-top: 30px; text-align: left; text-rendering: optimizeLegibility; word-wrap: break-word;">
<span style="font-size: x-small;">Premium service tier<a aria-hidden="true" class="docon docon-link heading-anchor" href="https://docs.microsoft.com/en-us/azure/sql-database/sql-database-dtu-resource-limits#premium-service-tier" style="-webkit-font-smoothing: antialiased; background-color: transparent; color: #0078d7; cursor: pointer; display: inline-block; font-family: docons; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 16px; margin: 0px 0px 0px 10px; opacity: 1; speak: none; text-align: center; text-decoration-line: none; transition: 0.1s linear; vertical-align: middle; visibility: visible; word-wrap: break-word;" tabindex="-1"></a></span></h3>
</div>
<div style="text-align: right;">
לאחר זמן נכנס </div>
<div dir="ltr" style="text-align: left;">
PRS <span style="background-color: white; font-family: , "segoe ui semibold" , "segoe wp" , "helvetica neue" , "helvetica" , sans-serif; font-size: x-small;">service tier </span> (sorry to say but will be closed on 1.1.19)</div>
<div style="text-align: right;">
כאשר בעצם מדברים על </div>
<div dir="ltr" style="text-align: left;">
Tiers</div>
<div style="text-align: right;">
ארכיטקטורת החומרה היא שונה בין סוג לסוג. הדבר משיפע על זמני גיבויים, על עלויות, על רמות ביצועים שונות, SLA שונה, מיקום סטורג שונה ועוד. ועוד.</div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
(אחרי כן הוסיפו pools - אבל לא אדבר על זה כלל פה וגם לא על הייצור החדש הקרוי managed instance)</div>
<div style="text-align: right;">
במשך הזמן הוסיפו לכל סוג שכבה של גרסה שונה שמצביעות על כך שמאחרי הקלעים יש זיכרון שונה, ועוד.</div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
כאשר הכל נמדד במדד משוקלל שנקרא DTU.</div>
<div style="text-align: right;">
לכל סוג ולכל שכבה יש הגדרה של מקסימום DTU.</div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
וכך כאשר ה DTU הגיע ל 100 אחוז היית צריך לבדוק ולעשות אחת מכמה אפשרויות:</div>
<div style="text-align: right;">
* להעלות שכבה.</div>
<div style="text-align: right;">
* לתקן קוד.</div>
<div style="text-align: right;">
* לעשות תחזוקה ועוד.</div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
את כל ההבדלים בין כל סוג וסוג ניתן לקרוא פה:</div>
<div style="text-align: right;">
<a href="https://docs.microsoft.com/en-us/azure/sql-database/sql-database-dtu-resource-limits" target="_blank">Azure SQL Database DTU-based resource model limits</a></div>
<div style="text-align: right;">
אפשר לומר שהתימחור הוא די אטרקטיבי ולדעתי הוא זה שתרם לכניסה הגדולה של המוצר לקהל הלקוחות.</div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
ואז נולד הדור הבא המבוסס על vCore</div>
<div style="text-align: right;">
שיטת בניה של מכונות המורכבות מ 2 tiers:</div>
<h3 class="heading-with-anchor" dir="ltr" id="general-purpose-service-tier" style="background-color: white; font-family: segoe-ui_semibold, "Segoe UI Semibold", "Segoe WP", "Helvetica Neue", Helvetica, sans-serif; font-weight: 300; line-height: 1.3; margin-bottom: 18px; margin-top: 30px; text-align: left; text-rendering: optimizeLegibility; word-wrap: break-word;">
<span style="font-size: x-small;">General Purpose service tier<a aria-hidden="true" class="docon docon-link heading-anchor" href="https://docs.microsoft.com/en-us/azure/sql-database/sql-database-vcore-resource-limits#general-purpose-service-tier" style="-webkit-font-smoothing: antialiased; background-color: transparent; color: #0078d7; cursor: pointer; display: inline-block; font-family: docons; font-variant-east-asian: normal; font-variant-numeric: normal; line-height: 16px; margin: 0px 0px 0px 10px; opacity: 0; speak: none; text-align: center; text-decoration-line: none; vertical-align: middle; word-wrap: break-word;" tabindex="-1"></a></span></h3>
<div dir="ltr" style="text-align: left;">
<h3 class="heading-with-anchor" id="business-critical-service-tier" style="background-color: white; font-family: segoe-ui_semibold, "Segoe UI Semibold", "Segoe WP", "Helvetica Neue", Helvetica, sans-serif; font-weight: 300; line-height: 1.3; margin-bottom: 18px; margin-top: 30px; text-align: left; text-rendering: optimizeLegibility; word-wrap: break-word;">
<span style="font-size: x-small;">Business Critical service tier</span></h3>
<div dir="rtl" style="text-align: right;">
כאשר בכל Tier כרגע יש 5 סוגי מכונות </div>
<div style="text-align: left;">
<span style="background-color: white; font-family: , "segoe ui semibold" , "segoe wp" , "helvetica neue" , "helvetica" , sans-serif; font-size: 14px;">GP_Gen4_1</span></div>
<div style="text-align: left;">
<span style="background-color: white; font-family: , "segoe ui semibold" , "segoe wp" , "helvetica neue" , "helvetica" , sans-serif; font-size: 14px;">GP_Gen4_2</span></div>
<div style="text-align: left;">
<span style="background-color: white; font-family: , "segoe ui semibold" , "segoe wp" , "helvetica neue" , "helvetica" , sans-serif; font-size: 14px;">GP_Gen4_4</span></div>
<div style="text-align: left;">
<span style="background-color: white; font-family: , "segoe ui semibold" , "segoe wp" , "helvetica neue" , "helvetica" , sans-serif; font-size: 14px;">GP_Gen4_8</span></div>
<div style="text-align: left;">
<span style="background-color: white; font-family: , "segoe ui semibold" , "segoe wp" , "helvetica neue" , "helvetica" , sans-serif; font-size: 14px;">GP_Gen4_16</span></div>
<div dir="rtl" style="text-align: right;">
ומיקרוסופט מתחילים ממה שנקרא דור 4 של המכונות כלומר קומבינציה של </div>
<div style="text-align: left;">
IOPS, RAM, Storage</div>
<div dir="rtl" style="text-align: right;">
שמנוהל לפי המכונה. בטח בהמשך יהיה דור חמש וכדומה.</div>
<div dir="rtl" style="text-align: right;">
פה בניגוד לשיטה הקודמת יש פירוט כמה זיכרון יש בכל מכונה והיכן ממוקם הסטורג' ולכמה iops היא אמורה לענות.<br />
את ההבדלים ברמות ניתן לקרוא פה:</div>
<div dir="rtl" style="text-align: right;">
<a href="https://docs.microsoft.com/en-us/azure/sql-database/sql-database-vcore-resource-limits#general-purpose-service-tier" target="_blank">Azure SQL Database vCore-based purchasing model limits (preview)</a></div>
<div dir="rtl" style="text-align: right;">
<br /></div>
<div dir="rtl" style="text-align: right;">
אם עד היום היינו עיוורים וניחשנו לפי ביצועים שמדדנו.</div>
<div dir="rtl" style="text-align: right;">
היום נעבור למדידה מדוייקת ולצורך מדוייק יותר</div>
<div dir="rtl" style="text-align: right;">
סתם כדוגמא - <span style="background-color: white; font-family: , "segoe ui semibold" , "segoe wp" , "helvetica neue" , "helvetica" , sans-serif; font-size: 14px; text-align: left;">GP_Gen4_16 - 112 GB Ram</span></div>
<div dir="rtl" style="text-align: right;">
ועכשיו בקשר לתימחור:<br />
מכונות חזקות אמורות להיות יותר זולות בשיטה החדשה, מכונות חלשות אמורות להיות יותר יקרות בשיטה החדשה.</div>
<div dir="rtl" style="text-align: right;">
שכל אחד יעשה את השיקול שלו.</div>
<div dir="rtl" style="text-align: right;">
<br /></div>
<div dir="rtl" style="text-align: right;">
עוד על התיעוד ועל ההבדלים ניתן לקרוא פה:</div>
<div dir="rtl" style="text-align: right;">
<a href="https://docs.microsoft.com/en-us/azure/sql-database/sql-database-service-tiers" target="_blank">What are Azure SQL Database service tiers?</a></div>
<div dir="rtl" style="text-align: right;">
<br /></div>
<div dir="rtl" style="text-align: right;">
וזו התמונה המייצגת את ההבדלים:</div>
<div dir="rtl" style="text-align: right;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-tjWzA0Ik69M/WuA9I90fKEI/AAAAAAABGHg/3RdUI4dV3d4KMo9q-h7_kfnM_nBjhcDkACLcBGAs/s1600/4-25-2018%2B11-31-16%2BAM.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="419" data-original-width="1079" height="248" src="https://3.bp.blogspot.com/-tjWzA0Ik69M/WuA9I90fKEI/AAAAAAABGHg/3RdUI4dV3d4KMo9q-h7_kfnM_nBjhcDkACLcBGAs/s640/4-25-2018%2B11-31-16%2BAM.jpg" width="640" /></a></div>
<div dir="rtl" style="text-align: right;">
<br /></div>
<div dir="rtl" style="text-align: right;">
<br /></div>
<div dir="rtl" style="text-align: right;">
להלן כמה הנחיות כיצד להגיע לזה:</div>
<div dir="rtl" style="text-align: right;">
ניגשים למסך בחירת ה tier - המסך הרגיל:</div>
<div dir="rtl" style="text-align: right;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-2VsPAIreUEA/WuA9wm6fdfI/AAAAAAABGHo/R4X_3SqS5pkOZPAFVWSbwwcPQ1TkPxYoQCLcBGAs/s1600/vcore1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="393" data-original-width="908" height="276" src="https://3.bp.blogspot.com/-2VsPAIreUEA/WuA9wm6fdfI/AAAAAAABGHo/R4X_3SqS5pkOZPAFVWSbwwcPQ1TkPxYoQCLcBGAs/s640/vcore1.jpg" width="640" /></a></div>
<div dir="rtl" style="text-align: right;">
<br /></div>
<div dir="rtl" style="text-align: right;">
בוחרים את ה vCore.</div>
<div dir="rtl" style="text-align: right;">
<br /></div>
<div dir="rtl" style="text-align: right;">
וזה המסך המודבר:</div>
<div dir="rtl" style="text-align: right;">
1. סוג השימוש - משפיע על סוג סטורג' ו SLA וכמובן מחיר.</div>
<div dir="rtl" style="text-align: right;">
2. כרגע ניתן לבחור רק gen4. בהמשך יהיהו עוד.</div>
<div dir="rtl" style="text-align: right;">
3. מסך קטן של חיזוב עלויות לפי סטורג ולפי סוג המכונה.</div>
<div dir="rtl" style="text-align: right;">
4. פה אפשר להביר רשיון מה on prem - למשל עשית מיגרציה על מכונה שאתה משלם עליה - אתה יכול להעביר רשיון וזה יחסוך עלויות.</div>
<div dir="rtl" style="text-align: right;">
5. העלאת והורדת סוג המכונה בתוך דור 4.</div>
<div dir="rtl" style="text-align: right;">
6. הגדלת סטורג' למשל חצי טרה בסוג הזה שווה 70 דולר.</div>
<div dir="rtl" style="text-align: right;">
7. הגדרה של כמה ימי גיובי יש לפי הבחירה שלך.</div>
<div dir="rtl" style="text-align: right;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-789Rr3-zAQo/WuA-g-BLelI/AAAAAAABGH0/lTD1X7RUqws8tZwNpc1RepQctHSoX8y9wCLcBGAs/s1600/vcore2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="850" data-original-width="905" height="600" src="https://1.bp.blogspot.com/-789Rr3-zAQo/WuA-g-BLelI/AAAAAAABGH0/lTD1X7RUqws8tZwNpc1RepQctHSoX8y9wCLcBGAs/s640/vcore2.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
כמו שראים - ניהול האפשרויות שלנו גדל ואמור להתאים לצורכים הגדלים והולכים של השוק.</div>
מצד שני המורכבות והתלויות גדלות וצריך להבין מה זה אומר כל דבר - מה אומר ל בסיס נתונים שהסטורג הוא כזה וכזה...<br />
<br />
ימים יגידו אם וכאשר ישתמשו בזה.<br />
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
זמין לשאלות.</div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
פיני</div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
<br /></div>
<div dir="rtl" style="text-align: right;">
<br /></div>
</div>
<div>
<br /></div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
<br /></div>
<div dir="ltr" style="text-align: left;">
<br /></div>
</div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-66033328889421109242018-02-27T17:15:00.000+02:002018-02-27T20:48:58.381+02:00How to choose your AZURE Data Center<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="rtl" style="text-align: right;">
שלום רב והיום מעט על Data Centers בענן של מיקרוסופט.</div>
<div dir="rtl" style="text-align: right;">
לפני שאסביר איך מומלץ לבחור את הדאטה סנטר שלך שבתוכו תשים את כל האפליקציות והנתונים בענן, אסביר מספר מושגים שקשורים לקבלת ההחלטה.</div>
<div dir="rtl" style="text-align: right;">
Regoin - למיקרוסופט מספר רב של דאטה סנטרים, הם מאחדים אותם תחת אזורים. בתוך אזורים יש תקשורת טובה יותר ומומלץ לעבוד בכמה דאטה סנטרים תחת אותו אזור. למשל באירופה יש כמה אזורים - UK - יש לה 2 אישורים לונדון וקרדיף. אירופה יש לה צפון ומערב והם זוגות.</div>
<div dir="rtl" style="text-align: right;">
Government - אלו דאטה סנטרים בארה"ב שעומדים תחת רגולצית ממשל אמריקאית, יש שם מנגנוני אבטחה מוגברים לפי הצרכים של הממשל האמריקאי.</div>
<div dir="rtl" style="text-align: right;">
German - גם פה ישנם צרכים לממשל גרמני, ולכן פתחו מיקרוסוםט דאטה סנטרים בגרמניה.</div>
<div dir="rtl" style="text-align: right;">
</div>
<div dir="rtl" style="text-align: right;">
חשוב להבין שלא כל הדאטה סנטרים של מיקרוסופט הם בניהולם - לעיתים, כמו בגרמניה הם רוכשים שירותים מקומיים. כך גם בסין.</div>
<div dir="rtl" style="text-align: right;">
</div>
<div dir="rtl" style="text-align: right;">
מפת הפריסה של הדאטה סנטרים היא זו נכון להיום:</div>
<div dir="rtl" style="text-align: right;">
</div>
<div dir="rtl" style="text-align: right;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-0PbunJM62yE/WpVtlXdsnXI/AAAAAAABDqs/SXqgCG9LvxkAHx16zCByYVprCZhGKfbDgCLcBGAs/s1600/dc.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="665" data-original-width="1200" height="354" src="https://1.bp.blogspot.com/-0PbunJM62yE/WpVtlXdsnXI/AAAAAAABDqs/SXqgCG9LvxkAHx16zCByYVprCZhGKfbDgCLcBGAs/s640/dc.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
כשניגשים לבחירת data center צריך לקחת כמה דברים בחשבון:</div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
Latency, Service Availability, Compliance, </div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
<strong><u>Latency</u></strong> - רכיב מאד משמעותי. היכן המשתמשים של האפליקציה או הנתונים נמצאים? האם אתם עובדים היברידי? ואז יש חשיבות למעבר נתונים. יש 2 אתרים שנותנים בדיקה של Latency מהדאטה סנטרים השונים:</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="http://www.azurespeed.com/" target="_blank">http://www.azurespeed.com/</a> </div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
פה אפשר לראות מה רואים לכל דאטה סנטר באירופה מה העיכוב שיש ממכונה בישראל:</div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-OMukjlZiHM8/WpVz1rczMwI/AAAAAAABDq8/PSV_72mwBB8FQjgdOqDy5Zn-bOwDtVi3wCLcBGAs/s1600/dc1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="805" data-original-width="1392" height="370" src="https://3.bp.blogspot.com/-OMukjlZiHM8/WpVz1rczMwI/AAAAAAABDq8/PSV_72mwBB8FQjgdOqDy5Zn-bOwDtVi3wCLcBGAs/s640/dc1.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://azurespeedtest.azurewebsites.net/" target="_blank">https://azurespeedtest.azurewebsites.net/</a></div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
פה גם רואים לפי דאטה סנטר :</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://3.bp.blogspot.com/-MKSMB0NxzF8/WpV0Mb46DfI/AAAAAAABDrA/hwNMKhu_sI06HVE04ZHzyGMVpayj1fE-ACLcBGAs/s1600/dc2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="362" data-original-width="928" height="248" src="https://3.bp.blogspot.com/-MKSMB0NxzF8/WpV0Mb46DfI/AAAAAAABDrA/hwNMKhu_sI06HVE04ZHzyGMVpayj1fE-ACLcBGAs/s640/dc2.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
התוצאות די דומות וכל אחד יבחר לו כלי כפי רצונו.</div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
<u><strong>Service Availability</strong></u> - לא בכל דאטה סנטר יש את כל הסרביסים שהענן מציע וחשוב לפני הבחירה לדעת מה יש ומה אין ופה מיקרוסופט נותנים טבלה:</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://azure.microsoft.com/en-us/regions/services/" target="_blank">https://azure.microsoft.com/en-us/regions/services/</a></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
למשל בטבלה המצולמת אין MySQL PAAS בחלק האיזורים בארה"ב.</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-LCzqTtJzaoE/WpV1FU59bCI/AAAAAAABDrQ/-jXfw7aiGdImibBC1ORBGdudkpc0d5kcACLcBGAs/s1600/dc3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="573" data-original-width="1121" height="326" src="https://2.bp.blogspot.com/-LCzqTtJzaoE/WpV1FU59bCI/AAAAAAABDrQ/-jXfw7aiGdImibBC1ORBGdudkpc0d5kcACLcBGAs/s640/dc3.jpg" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
<strong><u>Compliance</u></strong> - נקודה מאד חשובה, למשל האם מותר לשמור נתונים באיזור מחוץ לאירופה ללקוחות אירופאים וכדומה, חייבים לקחת זאת מראש.</div>
<div class="separator" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" style="clear: both; text-align: right;">
זהו אילו עיקרי הדברים יקרא כל אחד ויחליט כטוב בעיניו.</div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
<br /></div>
<div class="separator" dir="rtl" style="clear: both; text-align: right;">
<br /></div>
</div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com1tag:blogger.com,1999:blog-8306216690206802216.post-56417744542063340552018-02-06T11:54:00.000+02:002018-02-06T11:54:24.603+02:00RETENTION on Temporal Tables<div dir="rtl" style="text-align: right;" trbidi="on">
שלום לכולם<br />
אכן הרבה זמן לא כתבתי, אשתדל לחזור לעצבי בקרוב.<br />
והיום בקצרה על ניהול טבלאות temporal.<br />
בקצרה ב SQL Server - החלו להשתמש ברעיון של שמירה אוטמטית של שינויים בנתונים בטבלה.<br />
ואפשר לתשאל גם את הטבלה ההיסטורית וגם את הנוכחית בשליפה אחת:<br />
<br />
<div style="direction: ltr; text-align: left;">
<a href="https://docs.microsoft.com/en-us/sql/relational-databases/tables/querying-data-in-a-system-versioned-temporal-table" target="_blank">https://docs.microsoft.com/en-us/sql/relational-databases/tables/querying-data-in-a-system-versioned-temporal-table</a></div>
<div style="direction: ltr; text-align: left;">
<br /></div>
<div style="direction: ltr; text-align: left;">
<span style="background-color: #f9f9f9; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 14px; white-space: pre;">/*State of entire table AS OF specific date in the past*/
SELECT [DeptID], [DeptName], [SysStartTime],[SysEndTime]
FROM [dbo].[Department]
<b>FOR SYSTEM_TIME </b>AS OF '2015-09-01 T10:00:00.7230011' ; </span></div>
<div style="direction: ltr; text-align: left;">
<span style="background-color: #f9f9f9; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; font-size: 14px; white-space: pre;"><br /></span></div>
<div style="text-align: right;">
אחת הבעיות זה ניהול הטבלה ההיסטורית אי אפשר למחוק ממנה בצורה רגילה - ואצלי ב SQL Azure הדבר נהיה משמעותי עקב מגבלת הגודל.</div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
לכן עלינו על נושא ה RETENTION שזה פיצ'ר מדהים שניתן בכל SQL Server ולהפתעתי גם ב SQL Azure.</div>
<div style="text-align: right;">
יש אפשרות להגדיר כמה זמן יישמר המידע בטבלת היסטוריה.</div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
כאשר יש סרביס מאחורה שרץ ומוחק מה שצריך ללא עומס מיוחד בבסיס הנתונים - לא הצלחתי להבין היכן זה רץ ומה חלונות הזמן שלהם.</div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
הגדרה זו היא בשתי רמות, ברמת בסיס הנתונים שב Azure אתה מריץ את זה ב master.</div>
<div style="text-align: right;">
<br /></div>
<div dir="ltr" style="text-align: left;">
--on master DB</div>
<div dir="ltr" style="text-align: left;">
ALTER DATABASE MyDB SET temporal_history_retention ON </div>
<div dir="ltr" style="text-align: left;">
<br /></div>
<div style="text-align: right;">
ואז ברמת הטבלה כולל הגדרה מה הזמן שאתה רוצה שיישמר</div>
<div style="text-align: right;">
<br /></div>
<div dir="ltr" style="text-align: left;">
--on db</div>
<div dir="ltr" style="text-align: left;">
ALTER TABLE [MyDB ].[MyTable] </div>
<div dir="ltr" style="text-align: left;">
SET (SYSTEM_VERSIONING = ON (HISTORY_RETENTION_PERIOD = 1 WEEK));</div>
<div dir="ltr" style="text-align: left;">
<br /></div>
<div style="text-align: right;">
או שזה מוגדר לשמור לתמיד ככה:</div>
<div dir="ltr" style="text-align: left;">
--on db</div>
<div dir="ltr" style="text-align: left;">
ALTER TABLE [MyDB ].[MyTable] </div>
<div dir="ltr" style="text-align: left;">
SET (SYSTEM_VERSIONING = ON (HISTORY_RETENTION_PERIOD = INFINITE));</div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
ואז זה עובד כמו שאומרים - פצצות.<br /><br />כדי לראות מה מוגדר לך לכל טבלה זו השאילתא:</div>
<div style="text-align: right;">
<br /></div>
<div dir="ltr" style="text-align: left;">
SELECT DB.is_temporal_history_retention_enabled,</div>
<div dir="ltr" style="text-align: left;">
SCHEMA_NAME(T1.schema_id) AS TemporalTableSchema,</div>
<div dir="ltr" style="text-align: left;">
T1.name as TemporalTableName, SCHEMA_NAME(T2.schema_id) AS HistoryTableSchema,</div>
<div dir="ltr" style="text-align: left;">
T2.name as HistoryTableName,T1.history_retention_period,</div>
<div dir="ltr" style="text-align: left;">
T1.history_retention_period_unit_desc</div>
<div dir="ltr" style="text-align: left;">
FROM sys.tables T1 </div>
<div dir="ltr" style="text-align: left;">
OUTER APPLY (select is_temporal_history_retention_enabled from sys.databases</div>
<div dir="ltr" style="text-align: left;">
where name = DB_NAME()) AS DB</div>
<div dir="ltr" style="text-align: left;">
LEFT JOIN sys.tables T2 </div>
<div dir="ltr" style="text-align: left;">
ON T1.history_table_id = T2.object_id WHERE T1.temporal_type = 2</div>
<div dir="ltr" style="text-align: left;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-AVCioNSNes8/Wnl6z-1S6yI/AAAAAAABCVQ/sOpX5xqQt4szjmKSDX50bCtN5ORV7zMXwCLcBGAs/s1600/2-6-2018%2B11-51-19%2BAM.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="275" data-original-width="712" height="244" src="https://1.bp.blogspot.com/-AVCioNSNes8/Wnl6z-1S6yI/AAAAAAABCVQ/sOpX5xqQt4szjmKSDX50bCtN5ORV7zMXwCLcBGAs/s640/2-6-2018%2B11-51-19%2BAM.jpg" width="640" /></a></div>
<div style="text-align: left;">
<br /></div>
</div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com1tag:blogger.com,1999:blog-8306216690206802216.post-25327895188251150312017-10-19T13:41:00.002+03:002017-10-19T13:41:24.202+03:00DBCC CHECKDB on SQL Azure to do or not to do?<div dir="rtl" style="text-align: right;" trbidi="on">
שלום רב<br />
עד לפני זמן DBCC CHECKDB לא היה יכול לרוץ על SQL Azure .<br />
לפני מעל שנה איפשרו את זה, ואז עלתה השאלה - להריץ או לא להריץ?<br />
הרי ממילא גם אם נגלה דברים חצי מסוגי הפתרונות לא נוכל לעשות- אין restore . רגיל.<br />
כשבדקתי את זה על SQL Azure - עלה שבכל הרצה ובכל tier - זה העלה את ניצול המשאבים של בסיס הנתונים ל 100%.לכן בזמנו החלטתי לא להריץ וחשבתי וקיוותי שמיקרוסופט עושים עבורנו את העבודה - הלא זהו שירות PAAS?<br />
<br />
ובכן בזמן האחרון יצאו 2 מאמרים אחד של בלוגר חביב והשני של בחור ממיקרוסופט שהסביר בדיוק איך ומה הם עודים ומה הפעולות שלהם במידה ומתגלית בעיה.<br />
<br />
הלינק של הבלוגר החביב ששמו הוא <span style="-webkit-text-stroke-width: 0px; background-color: white; color: #373737; display: inline !important; float: none; font-family: Karla, sans-serif; font-size: 15px; font-style: normal; font-variant-caps: normal; font-variant-ligatures: normal; font-weight: 300; letter-spacing: normal; orphans: 2; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;">Arun Sirpal, בו הוא מתאר את מה שתיארתי עכשיו :-)</span>:<br />
<br />
<a href="https://blobeater.blog/2017/09/04/dbcc-checkdb-azure-sql-database/" target="_blank">https://blobeater.blog/2017/09/04/dbcc-checkdb-azure-sql-database/</a><br />
<br />
זהו הלינק למאמר מבית היוצר של מיקרוסופט שמתארים מה הם עושים ומה הם מריצים - מאמר מאד חשוב וקריטי למי שיש לו Prodaction on SQL Azure.<br />
<br />
<a href="https://azure.microsoft.com/en-us/blog/data-integrity-in-azure-sql-database/" target="_blank">How we manage data integrity for Azure SQL Database</a><br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://2.bp.blogspot.com/-PztDaFn4jXw/WeiBPPmL5EI/AAAAAAAA-5I/8qJzTexUJCMj13DYGmPVCRoaCIlSg5GjgCLcBGAs/s1600/sql-develop-performance-course-04.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="405" data-original-width="720" height="180" src="https://2.bp.blogspot.com/-PztDaFn4jXw/WeiBPPmL5EI/AAAAAAAA-5I/8qJzTexUJCMj13DYGmPVCRoaCIlSg5GjgCLcBGAs/s320/sql-develop-performance-course-04.jpg" width="320" /></a></div>
<br />
<br />
</div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0tag:blogger.com,1999:blog-8306216690206802216.post-51544705095943168272017-08-31T11:44:00.000+03:002017-08-31T11:44:20.606+03:00New performance levels and Pricing in SQL Azure SQL DB<div dir="rtl" style="text-align: right;" trbidi="on">
שלום רב<br />
לכבוד סיום החופש מיקרוסופט מפנקים אותנו ברמות ביצועים חדשות ב SQL Azure ב Standard tier.<br />
נוספו S4,S6,S7,S9,S12.<br />
כאשר מעבר לרמות הללו הוסיפו נידבח על עולם התימחור.<br />
כאשר עד היום הינו משלמים על הכול כלומר כוח חישובי וכן על Storage, עכשיו הוסיפו אפשרות להוסיף עד 1 TB, כאשר כל GB מעל 250 ב Standard ומעל 500 ב Premium וב PremiumRS נשלם עליו.<br />
21 $ לחודש ב Standard, וב Premium & PremiumRS נשלם על כל 250 GB 43 $.<br />
הדבר כבר ניתמך בפורטל.<br />
<br />
לא ארחיב כאן מתי עדיף להשתמש ב Standard or Premium על זה אנסה בקרוב לתת הסבר מפורט.<br />
<br />
להלן לינק ההכרזה:<br />
<div style="text-align: left;">
<a href="https://azure.microsoft.com/en-us/blog/new-performance-levels-and-storage-add-ons-in-azure-sql-database/">https://azure.microsoft.com/en-us/blog/new-performance-levels-and-storage-add-ons-in-azure-sql-database/</a></div>
<div style="text-align: right;">
להלן מספר תמונות מהפורטל ומהמחשבון:</div>
<div style="text-align: right;">
</div>
<div style="text-align: right;">
ככה החלוקה ניראית מהמחשבון</div>
<div style="text-align: right;">
</div>
<div style="text-align: right;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-nMhEUhpiRco/WafMDa0YsWI/AAAAAAAA7-s/o66Rr1H6dvM1mFVZcn1r_lmzS2uMELC7ACLcBGAs/s1600/tier1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="567" data-original-width="866" height="418" src="https://4.bp.blogspot.com/-nMhEUhpiRco/WafMDa0YsWI/AAAAAAAA7-s/o66Rr1H6dvM1mFVZcn1r_lmzS2uMELC7ACLcBGAs/s640/tier1.jpg" width="640" /></a></div>
ככה זה נראה בפורטל ב שתי קומבנציות<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://4.bp.blogspot.com/-LG7aiI_vwac/WafMDBfnMII/AAAAAAAA7-o/q0OTC2mCWgc7C5gged7fZ1eARwpKjGyswCLcBGAs/s1600/tier2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="571" data-original-width="899" height="406" src="https://4.bp.blogspot.com/-LG7aiI_vwac/WafMDBfnMII/AAAAAAAA7-o/q0OTC2mCWgc7C5gged7fZ1eARwpKjGyswCLcBGAs/s640/tier2.jpg" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://1.bp.blogspot.com/-AQavKWrPs4c/WafMDQoGLfI/AAAAAAAA7-w/WJYhZ0OXu1Qafk7w7ho2HvtOkdVlfbMogCLcBGAs/s1600/tier3.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" data-original-height="608" data-original-width="944" height="412" src="https://1.bp.blogspot.com/-AQavKWrPs4c/WafMDQoGLfI/AAAAAAAA7-w/WJYhZ0OXu1Qafk7w7ho2HvtOkdVlfbMogCLcBGAs/s640/tier3.jpg" width="640" /></a></div>
<div style="text-align: right;">
</div>
</div>
Pini Krisherhttp://www.blogger.com/profile/04307415024678174840noreply@blogger.com0