azure云数据库_Azure中的新弹性数据库

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)

入门 (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云数据库

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值