azure云数据库

介绍 (Introduction)

The elastic database is a new feature offered for SQL Azure Databases. Elastic databases are useful when you have several databases and you want to monitor and manage all the databases at the same time. To do this, a pool is required. The pool allows handling several databases at the same time.

弹性数据库是SQL Azure数据库提供的一项新功能。 当您有多个数据库并且想要同时监视和管理所有数据库时,弹性数据库很有用。 为此,需要一个池。 该池允许同时处理多个数据库。

In this chapter, we will learn how to create the pool and add SQL Azure Databases to it.

在本章中,我们将学习如何创建池并向其中添加SQL Azure数据库。

There are some databases that consume significant resources and others consume little resources. It is very hard when you have several databases to determine the tier for each database. With elastic databases, you can have a specific price for all the databases at the same time. The elastic pool gets statistics of the performance used by each database and recommends an effective cost per pool and you do not have to worry about each database. This saves you a lot of time.

有些数据库消耗大量资源,而另一些数据库消耗很少的资源。 当您有多个数据库来确定每个数据库的层时,这非常困难。 使用弹性数据库,您可以同时为所有数据库定价。 弹性池获取每个数据库使用的性能的统计信息,并建议每个池有效的成本,您不必担心每个数据库。 这样可以节省大量时间。

要求 (Requirements)

  • An Azure Account. Azure帐户。
  • our article to create an Azure SQL Database). 我们的文章以创建Azure SQL数据库 )。

入门 (Getting started)

  1. In the Microsoft Azure Portal, we created 3 Azure SQL databases. You can try with 2. These 3 databases were created on the same SQL server:

    在Microsoft Azure门户中,我们创建了3个Azure SQL数据库。 您可以尝试使用2。这3个数据库是在同一SQL服务器上创建的:

    Figure 1. 3 Azure Databases图1. 3个Azure数据库

  2. In the Azure Portal, click all resources and select the SQL Server used to store the 3 databases:

    在Azure门户中,单击所有资源,然后选择用于存储3个数据库SQL Server:

    Figure 2. The Server Properties图2.服务器属性

  3. The SQL Server will show the name, status and the price of the databases:

    SQL Server将显示数据库的名称,状态和价格:

    Figure 3. The Azure databases and the status图3. Azure数据库和状态

  4. You will notice in the properties that there are 0 Elastic database pools. The pools are required for the Elastic databases. We will create the pool for this SQL Server:

    您会在属性中注意到,弹性数据库池为0。 弹性数据库需要这些池。 我们将为此SQL Server创建池:

    Figure 4. The elastic pool information图4.弹性池信息

  5. To create a new pool, click the New Pool icon in the SQL Server:

    若要创建新池,请在SQL Server中单击“新池”图标:

    Figure 5. The New pool icon图5. New pool图标

  6. As I said before, the elastic database pool is a new feature in Preview version. You will be required to accept the terms for a Preview Feature. These terms will be removed in the future. If you do not accept you will not be able to create a new pool.

    如前所述,弹性数据库池是预览版中的一项新功能。 您将需要接受预览功能的条款。 这些条款将来会被删除。 如果您不接受,则将无法创建新池。

  7. There are 3 main options for the Elastic Database Pool:

    弹性数据库池有3个主要选项:

    Figure 6. The Elastic Pool Preview terms图6. Elastic Pool Preview条款

    The Basic Pool, which costs 150 USD approx. per month. This option supports 2 GB per database and up to 5 eDTUs per database. eDTU stands for the elastic Data Throughput Unit. It is a unit used to measure several counters like CPU, Memory, disk read, writes and other similar counters related to performance. With eDTUs, you can measure the performance offered by the different options. The more eDTUs, the better performance you get.

    基本泳池,费用约为150美元。 每月。 此选项支持每个数据库2 GB,每个数据库最多5个eDTU。 eDTU代表弹性数据吞吐量单元。 它是用于测量多个计数器(例如CPU,内存,磁盘读取,写入和其他与性能相关的计数器)的单位。 使用eDTU,您可以衡量不同选项提供的性能。 eDTU越多,您获得的性能就越好。

    The Standard Pool offers 1200 GB per pool, 100 eDTUs per database and up to 250 GB per database. This is recommended for medium sized companies. The price is just 74 dollars more expensive than the Basic Pool.

    标准池为每个池提供1200 GB,每个数据库100个eDTU,每个数据库最多250 GB。 建议中型公司使用。 价格仅比基本池贵74美元。

    The Premium option supports fewer databases (50 per pool), it supports fewer GB per pool, but it supports faster databases (1000 eDTUs per database). This option is recommended for bigger databases with many users connected). This option is 473 USD more expensive than the Standard Pool. Note that it only supports 50 databases while Basic Pool option supports 400. This is because the Premium option supports more eDTUs. In addition, you can use a Basic Pool in non-peak hours and switch to the Standard or Premium Pool at peak hours. That will allow you to save money.

    高级选项支持更少的数据库(每个池50个),每个池支持更少的GB,但它支持更快的数据库(每个数据库1000个eDTU)。 对于具有许多用户的较大数据库,建议使用此选项。 此选项比标准池贵473美元。 请注意,它仅支持50个数据库,而“基本池”选项支持400个数据库。这是因为“高级”选项支持更多eDTU。 此外,您可以在非高峰时段使用基本池,并在高峰时段切换到标准池或高级池。 这样可以省钱。

    Figure 7. The elastic Pool prices and features per month图7.每月的弹性池价格和功能

  8. Once created, you will be able to see it in the All resources section of the Azure Portal:

    创建后,您将能够在Azure门户的“所有资源”部分中看到它:

    Figure 8. The Elastic Pool created in the Azure Portal图8.在Azure门户中创建的弹性池

  9. You will be able to see the price tier, the SQL Server name where it was created, the location, status and the number of eDTUs supported. You can monitor the resource utilization and check the audit log or create users with different privileges on the pool. You can also see that there are 0 databases in the pool, we will add some databases to the pool:

    您将能够看到价格层,创建价格层SQL Server名称,位置,状态和支持的eDTU数量。 您可以监视资源利用率并检查审核日志,或在池上创建具有不同特权的用户。 您还可以看到池中有0个数据库,我们将向池中添加一些数据库:

    Figure 9. The elastic pool properties图9.弹性池属性

  10. To add databases, press the Configure pool icon:

    要添加数据库,请按“配置池”图标:

    Figure 10. The Configure pool option图10.配置池选项

  11. In the configure pool you can see the eDTU usage during 14 days, you can see statistics like the maximum and minimum number of eDTUs used.

    在配置池中,您可以查看14天内eDTU的使用情况,还可以查看统计信息,例如使用的eDTU的最大和最小数量。

    Figure 11. The Configure pool Window图11.配置池窗口

  12. To add more databases, press the Add database icon:

    要添加更多数据库,请按添加数据库图标:

    Figure 12. The Add database icon图12. Add database图标

  13. The SQL Server Databases will be available. You can select all the databases that you want to add to the Elastic pool. You can check the price per database the peak DTUs and the average DTUs. You can group all the databases no matter the type of tier.

    SQL Server数据库将可用。 您可以选择要添加到弹性池中的所有数据库。 您可以检查每个数据库的价格,峰值DTU和平均DTU。 无论层的类型如何,您都可以对所有数据库进行分组。

    Figure 13. The Databases to add in the elastic pool图13.要添加到弹性池中的数据库

  14. Once the databases are selected, there is an option to create the job for all the databases.

    一旦选择了数据库,就可以为所有数据库创建作业。

    Figure 14. The create job icon图14.创建作业图标

  15. You will receive a message that it is required to configure the Cloud Service, SQL Database, Service Bus and the storage. This is out of the scope of this article, but we promise to teach you in future articles:

    您将收到一条消息,要求配置云服务,SQL数据库,服务总线和存储。 这超出了本文的范围,但是我们保证在以后的文章中会教您:

    Figure 15. The job creation message图15.作业创建消息

  16. Once you’ve added your databases to the pool, you can check the size, peak DTU, Average DTU per database.

    将数据库添加到池中后,您可以检查大小,峰值DTU,每个数据库的平均DTU。

    Figure 16. The database properties图16.数据库属性

  17. You will be able to see the Elastic Data Throughput Units and the GB configured by the Pool. You can also check the price per month of your current settings and the number of databases allowed. You can detect the EDTU and GBs used and adjust your EDTUs and GB required in few seconds!

    您将能够看到弹性数据吞吐量单位和池配置的GB。 您还可以查看当前设置的每月价格以及允许的数据库数量。 您可以检测使用的EDTU和GB,并在几秒钟内调整您的EDTU和GB!

    Figure 17. The pool settings图17.池设置

  18. You can manage all the databases in the pool with the Azure Portal, PowerShell, C# or any other tool of your preference. With the pool, it is easier to have an affordable environment.

    您可以使用Azure门户,PowerShell,C#或您喜欢的任何其他工具来管理池中的所有数据库。 有了游泳池,可以轻松负担得起的环境。

结论 (Conclusion)

As you can see, it is not hard to create elastic databases. Basically, you need to create a pool and add the databases to that pool afterwards. Once you have the databases added to the pool, it is easier to change the price tier and manage all the databases at the same time.

如您所见,创建弹性数据库并不难。 基本上,您需要创建一个池,然后将数据库添加到该池中。 一旦将数据库添加到池中,就可以更轻松地更改价格层并同时管理所有数据库。

翻译自: https://www.sqlshack.com/the-new-elastic-databases-in-azure/

azure云数据库

azure云数据库_Azure中的新弹性数据库相关推荐

  1. 【mysql5.7】windows重装mysql后,将以前的数据库如何导入到新的数据库

    重新安装了mysql,以前的数据库如何导入到新的数据库,导入到新的数据库不能用真么办? 注意:在所有操作的之前一定要做好备份,不然数据丢失就损失惨重啦!!! 1,将之前的mysql中的data目录中的 ...

  2. 重新安装了mysql,以前的数据库如何导入到新的数据库

    重新安装了mysql,以前的数据库如何导入到新的数据库,导入到新的数据库不能用真么办? 将之前的mysql中的data目录中的数据库文件夹,(需要哪个数据库复制哪个,不要都复制) D:/wamp/bi ...

  3. sql azure 语法_Azure中的新SQL数据仓库

    sql azure 语法 介绍 (Introduction) In previous chapters, we taught how to create SQL Databases in Azure. ...

  4. 如何在MySQL中创建新的数据库(windows下)

    一.首先确保已经安装好MySQL, 如果还没有安装也没关系,可以参考:https://blog.csdn.net/beyond_f4/article/details/79894234 二.window ...

  5. php查询mysql数据库_php中如何查询mysql数据库数据?

    php中查询mysql数据库数据的方法:首先用navicat新建数据库并建表:然后添加数据并与数据库连接:接着用[mysql_select_db]函数选择要查询的数据库:最后将文件在浏览器中打开即可. ...

  6. java中连接mysql数据库_java中怎么连接mysql数据库

    展开全部 import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; i ...

  7. 阿里云优惠活动中的新用户是如何界定的

    我们在购买阿里云产品的时候,阿里云推出了众多优惠活动,但是我们会发现几乎所有活动都只限新用户购买,然后好多用户就赶紧新注册了个账户,再去购买,发现还是提示不是新用户,那么阿里云是如何鉴定你为新用户的呢 ...

  8. 如何在 SAP 电商云 Spartacus UI 中创建新的页面

    Spartacus 中的页面基于使用相关 API 从 SAP Commerce 后端获取的 CMS 页面.来自 SAP Commerce 端的数据定义了元数据,如 url.标题等,以及页面的结构.结构 ...

  9. java jtable 添加数据库_java-将jTable中的数据插入数据库

    我试图将一些JTable数据保存到数据库中:我的代码是这样的: public void save(){ String invSL = new Mixed_Calculation().invoice_S ...

最新文章

  1. 猫猫学iOS之小知识iOS启动动画_Launch Screen的运用
  2. 使用Python批量压缩图片
  3. Ubuntu18.04 ROS melodic 版本的rivz教程
  4. 实验方法怎么写_小学作文怎么写?“把短句变长句”等3种方法帮孩子提高作文水平!...
  5. 游戏开发程序员求职面试指南
  6. 【仅供学习研究】网站复制工具+整站镜像克隆工具
  7. SketchUp + Ruby 二次开发初识
  8. linux之sort,unip,cut
  9. 生活小妙招:办公室如何查看自己电脑已连接的无线网密码,记得收藏
  10. 记一次学习爬取豆瓣数据于Excel表的爬虫
  11. android实战理财,基于Android的理财系统APP的设计
  12. 沧小海深入剖析xilinx的GTP/GTX核,掌握高速串行收发机制——第六章 接收端结构及功能说明
  13. IP安全:DDoS攻击、tearDrop攻击和微小碎片攻击
  14. zxr10交换机配置手册vlan_中兴ZXR10配置说明.doc
  15. GAT原论文阅读笔记
  16. 企业管理软件如何选型?看完后恍然大悟
  17. xray 的安装及使用(入门)
  18. 《spss统计分析与行业应用案例详解》:实例十二 卡方检验
  19. daemon(守护进程)
  20. 图扑软件荣获第十一届中国创新创业大赛全国赛优秀奖!

热门文章

  1. 避免踩坑:易盾安全老司机起底Android九大漏洞,附解决建议
  2. Linux环境CentOS6.9安装配置Elasticsearch6.2.2最全详细教程
  3. error) DENIED Redis is running in protected mode because protected mode is enabled报错
  4. 【习题 7-2 UVA-225】Golygons
  5. Commons- BeanUtils学习笔记(转)
  6. 【微收藏】FourShadows.js – 时间感知的算法驱动的图标阴影JS库
  7. linux编程之信号
  8. HtmlNinja-图片预加载以及图片元素img的complete属性
  9. tomcat下配置ssl
  10. android ndk 多线程mk,Android NDK 开发教程六: application.mk