henny penny视频_Penny Pinching视频:在数据中心之间移动Azure网站

2023-11-11 04:59

本文主要是介绍henny penny视频_Penny Pinching视频:在数据中心之间移动Azure网站,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

henny penny视频

henny penny视频

I talked about Pinching pennies when scaling in The Cloud last week when I added jQuery lazy loading to my podcast's Website. I wanted to avoid paying any unnecessary bandwidth costs. The result was great and I'll be under my bandwidth this month.

上周,当我在播客的Website上添加jQuery延迟加载时,我谈到了在The Cloud上进行扩展时的捏钱问题。 我想避免支付任何不必要的带宽成本。 结果非常好,本月我会用尽带宽。

I'm continuing to look for ways to optimize and pinch pennies in the cloud. I realized recently that while my Website was running in the West US Azure datacenter, the database (managed by Carl Franklin's podcasting company) was running in North Central US. This means I was paying for the bandwidth of my database calls. Not to mention, it was slower, not the best idea, plus I was calling into a SQL Server over the open internet (although I had opened the firewall to do so).

我一直在寻找优化和缩小云计算成本的方法。 最近我意识到,当我的网站在美国西部Azure数据中心中运行时,该数据库(由卡尔·富兰克林的播客公司管理)正在美国中北部运行。 这意味着我要为数据库调用的带宽付费。 更不用说,它比较慢,不是最好的主意,而且我正在通过开放的Internet调用SQL Server(尽管我已经打开了防火墙来这样做)。

This is unusual to have a website and SQL Database so far apart, of course, as you'll usually make your site and database at the same time in the same place. Azure also goes out of it's way to keep these linked resources together as you build them.

当然,网站和SQL数据库之间的距离如此之遥是不寻常的,因为您通常会在同一时间在同一位置同时创建您的网站和数据库。 Azure还可以在构建它们时将这些链接的资源保持在一起。

However, Carl had setup the database and original website a while back, and I only just redesigned it and moved it to Azure recently. Additionally, the administrative backend for the Hanselminutes podcast was in North Central, so we found ourselves in this position.

但是,Carl不久前已经设置了数据库和原始网站,而我只是重新设计了它,最近才将其移至Azure。 此外,Hanselminutes播客的管理后端在中北部,因此我们处于这个位置。

Azure Websites capacity opened up in the North Central datacenter, so I took lunch to move my site. You can't just click "move," but it's actually very easy to redeploy. The whole process including DNS changes took less than 15 minutes as you can see in the YouTube video above.

北部中央数据中心开放了Azure网站的容量,因此我吃了午餐移动了我的网站。 您不能只单击“移动”,但是实际上非常容易重新部署。 如您在上面的YouTube视频中所见,包括DNS更改在内的整个过程用了不到15分钟的时间。

Here's the steps I used:

这是我使用的步骤:

  • I made a new site in the new Data Center

    我在新的数据中心创建了一个新站点
  • I made it Shared so I could use a custom domain (or you can use Reserved)

    我将其设为共享,以便可以使用自定义域(也可以使用保留)
  • I took the domain names off the West US site, and moved them within the Portal to the North Central one

    我从美国西部站点上取下了域名,并将其在门户网站中移至了北部中部

    • If this site was super important I would have had a load balancer and kept both sites up while I waited, but total downtime was like 5 min so I didn't sweat it for this.

      如果该站点非常重要,那么我将拥有一个负载均衡器,并在等待时将两个站点都保持正常运行,但是总停机时间约为5分钟,因此我为此不费力气。
  • I ensured the database within North Central was a "Linked Resource" within my Website

    我确保North Central内的数据库是我网站中的“链接资源”
  • I made sure my new website had the right connection strings in configuration.

    我确保我的新网站在配置中具有正确的连接字符串。
  • I downloaded the new website's publish profile and imported it anew into WebMatrix (or Visual Studio, etc)

    我下载了新网站的发布配置文件,并将其重新导入到WebMatrix(或Visual Studio等)中
  • Published the site using the new publish profile.

    使用新的发布配置文件发布了网站。
  • Cleared DNS and visited the site and confirmed it worked.

    清除DNS并访问了该站点并确认它可以正常工作。
  • Deleted the old site.

    删除旧站点。

It worked well and I'm happy with the result. My next penny pinching step (and a nice geo-load balanced optimization) will be to move all the images to the CDN so that folks overseas get edge caching...that means that Australians will get the images for the site served from a nearby datacenter. I'll get this extra benefit for less than I am paying for website bandwidth.

效果很好,我对结果感到满意。 我接下来的一分钱紧缩步骤(以及一个不错的地理位置均衡优化)将是将所有图像移至CDN,以便海外人员获得边缘缓存...这意味着澳大利亚人将从附近的站点获取该站点的图像数据中心。 我将以比为网站带宽支付的价格少的价格获得这种额外的好处。

相关链接 (Related Links)

  • Pinching pennies when scaling in The Cloud

    在The Cloud中缩放时捏几分钱

  • Streaming Diagnostics Trace Logging from the Azure Command Line (plus Glimpse!)

    从Azure命令行流式传输诊断跟踪日志(以及Glimpse!)

  • How to keep your ASP.NET database connection strings secure when deploying to Azure from Source

    从源代码部署到Azure时如何确保ASP.NET数据库连接字符串的安全

翻译自: https://www.hanselman.com/blog/penny-pinching-video-moving-an-azure-website-between-data-centers

henny penny视频

这篇关于henny penny视频_Penny Pinching视频:在数据中心之间移动Azure网站的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/387717

相关文章

Javaee多线程之进程和线程之间的区别和联系(最新整理)

《Javaee多线程之进程和线程之间的区别和联系(最新整理)》进程是资源分配单位,线程是调度执行单位,共享资源更高效,创建线程五种方式:继承Thread、Runnable接口、匿名类、lambda,r... 目录进程和线程进程线程进程和线程的区别创建线程的五种写法继承Thread,重写run实现Runnab

Python使用OpenCV实现获取视频时长的小工具

《Python使用OpenCV实现获取视频时长的小工具》在处理视频数据时,获取视频的时长是一项常见且基础的需求,本文将详细介绍如何使用Python和OpenCV获取视频时长,并对每一行代码进行深入解析... 目录一、代码实现二、代码解析1. 导入 OpenCV 库2. 定义获取视频时长的函数3. 打开视频文

C# 比较两个list 之间元素差异的常用方法

《C#比较两个list之间元素差异的常用方法》:本文主要介绍C#比较两个list之间元素差异,本文通过实例代码给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的朋友参考下吧... 目录1. 使用Except方法2. 使用Except的逆操作3. 使用LINQ的Join,GroupJoin

深度解析Java项目中包和包之间的联系

《深度解析Java项目中包和包之间的联系》文章浏览阅读850次,点赞13次,收藏8次。本文详细介绍了Java分层架构中的几个关键包:DTO、Controller、Service和Mapper。_jav... 目录前言一、各大包1.DTO1.1、DTO的核心用途1.2. DTO与实体类(Entity)的区别1

HTML5实现的移动端购物车自动结算功能示例代码

《HTML5实现的移动端购物车自动结算功能示例代码》本文介绍HTML5实现移动端购物车自动结算,通过WebStorage、事件监听、DOM操作等技术,确保实时更新与数据同步,优化性能及无障碍性,提升用... 目录1. 移动端购物车自动结算概述2. 数据存储与状态保存机制2.1 浏览器端的数据存储方式2.1.

java Long 与long之间的转换流程

《javaLong与long之间的转换流程》Long类提供了一些方法,用于在long和其他数据类型(如String)之间进行转换,本文将详细介绍如何在Java中实现Long和long之间的转换,感... 目录概述流程步骤1:将long转换为Long对象步骤2:将Longhttp://www.cppcns.c

如何关闭Mac的Safari通知? 3招教你关闭Safari浏览器网站通知的技巧

《如何关闭Mac的Safari通知?3招教你关闭Safari浏览器网站通知的技巧》当我们在使用Mac电脑专注做一件事情的时候,总是会被一些消息推送通知所打扰,这时候,我们就希望关闭这些烦人的Mac通... Safari 浏览器的「通知」功能本意是为了方便用户及时获取最新资讯,但很容易被一些网站滥用,导致我们

Web技术与Nginx网站环境部署教程

《Web技术与Nginx网站环境部署教程》:本文主要介绍Web技术与Nginx网站环境部署教程,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、Web基础1.域名系统DNS2.Hosts文件3.DNS4.域名注册二.网页与html1.网页概述2.HTML概述3.

双系统电脑中把Ubuntu装进外接移动固态硬盘的全过程

《双系统电脑中把Ubuntu装进外接移动固态硬盘的全过程》:本文主要介绍如何在Windows11系统中使用VMware17创建虚拟机,并在虚拟机中安装Ubuntu22.04桌面版或Ubunt... 目录一、首先win11中安装vmware17二、磁盘分区三、保存四、使用虚拟机进行系统安装五、遇见的错误和解决

使用FileChannel实现文件的复制和移动方式

《使用FileChannel实现文件的复制和移动方式》:本文主要介绍使用FileChannel实现文件的复制和移动方式,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐... 目录使用 FileChannel 实现文件复制代码解释使用 FileChannel 实现文件移动代码解释