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

相关文章

java父子线程之间实现共享传递数据

《java父子线程之间实现共享传递数据》本文介绍了Java中父子线程间共享传递数据的几种方法,包括ThreadLocal变量、并发集合和内存队列或消息队列,并提醒注意并发安全问题... 目录通过 ThreadLocal 变量共享数据通过并发集合共享数据通过内存队列或消息队列共享数据注意并发安全问题总结在 J

nginx部署https网站的实现步骤(亲测)

《nginx部署https网站的实现步骤(亲测)》本文详细介绍了使用Nginx在保持与http服务兼容的情况下部署HTTPS,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值... 目录步骤 1:安装 Nginx步骤 2:获取 SSL 证书步骤 3:手动配置 Nginx步骤 4:测

Java文件与Base64之间的转化方式

《Java文件与Base64之间的转化方式》这篇文章介绍了如何使用Java将文件(如图片、视频)转换为Base64编码,以及如何将Base64编码转换回文件,通过提供具体的工具类实现,作者希望帮助读者... 目录Java文件与Base64之间的转化1、文件转Base64工具类2、Base64转文件工具类3、

Java如何获取视频文件的视频时长

《Java如何获取视频文件的视频时长》文章介绍了如何使用Java获取视频文件的视频时长,包括导入maven依赖和代码案例,同时,也讨论了在运行过程中遇到的SLF4J加载问题,并给出了解决方案... 目录Java获取视频文件的视频时长1、导入maven依赖2、代码案例3、SLF4J: Failed to lo

Python实现多路视频多窗口播放功能

《Python实现多路视频多窗口播放功能》这篇文章主要为大家详细介绍了Python实现多路视频多窗口播放功能的相关知识,文中的示例代码讲解详细,有需要的小伙伴可以跟随小编一起学习一下... 目录一、python实现多路视频播放功能二、代码实现三、打包代码实现总结一、python实现多路视频播放功能服务端开

Python实现视频转换为音频的方法详解

《Python实现视频转换为音频的方法详解》这篇文章主要为大家详细Python如何将视频转换为音频并将音频文件保存到特定文件夹下,文中的示例代码讲解详细,感兴趣的小伙伴可以跟随小编一起学习一下... 目录1. python需求的任务2. Python代码的实现3. 代码修改的位置4. 运行结果5. 注意事项

Python视频处理库VidGear使用小结

《Python视频处理库VidGear使用小结》VidGear是一个高性能的Python视频处理库,本文主要介绍了Python视频处理库VidGear使用小结,文中通过示例代码介绍的非常详细,对大家的... 目录一、VidGear的安装二、VidGear的主要功能三、VidGear的使用示例四、VidGea

流媒体平台/视频监控/安防视频汇聚EasyCVR播放暂停后视频画面黑屏是什么原因?

视频智能分析/视频监控/安防监控综合管理系统EasyCVR视频汇聚融合平台,是TSINGSEE青犀视频垂直深耕音视频流媒体技术、AI智能技术领域的杰出成果。该平台以其强大的视频处理、汇聚与融合能力,在构建全栈视频监控系统中展现出了独特的优势。视频监控管理系统EasyCVR平台内置了强大的视频解码、转码、压缩等技术,能够处理多种视频流格式,并以多种格式(RTMP、RTSP、HTTP-FLV、WebS

综合安防管理平台LntonAIServer视频监控汇聚抖动检测算法优势

LntonAIServer视频质量诊断功能中的抖动检测是一个专门针对视频稳定性进行分析的功能。抖动通常是指视频帧之间的不必要运动,这种运动可能是由于摄像机的移动、传输中的错误或编解码问题导致的。抖动检测对于确保视频内容的平滑性和观看体验至关重要。 优势 1. 提高图像质量 - 清晰度提升:减少抖动,提高图像的清晰度和细节表现力,使得监控画面更加真实可信。 - 细节增强:在低光条件下,抖

day-51 合并零之间的节点

思路 直接遍历链表即可,遇到val=0跳过,val非零则加在一起,最后返回即可 解题过程 返回链表可以有头结点,方便插入,返回head.next Code /*** Definition for singly-linked list.* public class ListNode {* int val;* ListNode next;* ListNode() {}*