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

相关文章

流媒体平台/视频监控/安防视频汇聚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() {}*

我在移动打工的日志

客户:给我搞一下录音 我:不会。不在服务范围。 客户:是不想吧 我:笑嘻嘻(气笑) 客户:小姑娘明明会,却欺负老人 我:笑嘻嘻 客户:那我交话费 我:手机号 客户:给我搞录音 我:不会。不懂。没搞过。 客户:那我交话费 我:手机号。这是电信的啊!!我这是中国移动!! 客户:我不管,我要充话费,充话费是你们的 我:可是这是移动!!中国移动!! 客户:我这是手机号 我:那又如何,这是移动!你是电信!!

【每日一题】LeetCode 2181.合并零之间的节点(链表、模拟)

【每日一题】LeetCode 2181.合并零之间的节点(链表、模拟) 题目描述 给定一个链表,链表中的每个节点代表一个整数。链表中的整数由 0 分隔开,表示不同的区间。链表的开始和结束节点的值都为 0。任务是将每两个相邻的 0 之间的所有节点合并成一个节点,新节点的值为原区间内所有节点值的和。合并后,需要移除所有的 0,并返回修改后的链表头节点。 思路分析 初始化:创建一个虚拟头节点

速盾高防cdn是怎么解决网站攻击的?

速盾高防CDN是一种基于云计算技术的网络安全解决方案,可以有效地保护网站免受各种网络攻击的威胁。它通过在全球多个节点部署服务器,将网站内容缓存到这些服务器上,并通过智能路由技术将用户的请求引导到最近的服务器上,以提供更快的访问速度和更好的网络性能。 速盾高防CDN主要采用以下几种方式来解决网站攻击: 分布式拒绝服务攻击(DDoS)防护:DDoS攻击是一种常见的网络攻击手段,攻击者通过向目标网

《x86汇编语言:从实模式到保护模式》视频来了

《x86汇编语言:从实模式到保护模式》视频来了 很多朋友留言,说我的专栏《x86汇编语言:从实模式到保护模式》写得很详细,还有的朋友希望我能写得更细,最好是覆盖全书的所有章节。 毕竟我不是作者,只有作者的解读才是最权威的。 当初我学习这本书的时候,只能靠自己摸索,网上搜不到什么好资源。 如果你正在学这本书或者汇编语言,那你有福气了。 本书作者李忠老师,以此书为蓝本,录制了全套视频。 试

用Unity2D制作一个人物,实现移动、跳起、人物静止和动起来时的动画:中(人物移动、跳起、静止动作)

上回我们学到创建一个地形和一个人物,今天我们实现一下人物实现移动和跳起,依次点击,我们准备创建一个C#文件 创建好我们点击进去,就会跳转到我们的Vision Studio,然后输入这些代码 using UnityEngine;public class Move : MonoBehaviour // 定义一个名为Move的类,继承自MonoBehaviour{private Rigidbo

简单的角色响应鼠标而移动

actor类 //处理移动距离,核心是找到角色坐标在世界坐标的向量的投影(x,y,z),然后在世界坐标中合成,此CC是在地面行走,所以Y轴投影始终置为0; using UnityEngine; using System.Collections; public class actor : MonoBehaviour { public float speed=0.1f; CharacterCo

linux中使用rust语言在不同进程之间通信

第一种:使用mmap映射相同文件 fn main() {let pid = std::process::id();println!(