
Fully Booked 此前运行在托管云基础设施上,账单逐月上涨,整套技术栈也无人真正拥有。我们把整个平台迁移到自托管的 Kubernetes 集群,全程没有让用户经历一分钟的停机。切换覆盖 DNS、入口网关、数据库和发布流水线,并分阶段推进:只有当某一层在新集群上得到验证之后,流量才会转移过去。那一周使用这款应用的人都没有察觉发生了什么,而这正是目标所在。每月的账单变成了自有硬件,如今同一个集群还承载着平台每周的版本发布。
完整故事
从不断上涨的云账单到自有硬件,全程零停机。这里讲述这次迁移如何分阶段推进、逐层验证、最终完成切换。
一张只涨不降的账单,一套无人真正拥有的技术栈
Fully Booked 一直运行在早已不够用的 DigitalOcean 云主机上:每天约一千人使用着租来的基础设施,每个扩容决定都由供应商定价,月度账单只朝一个方向变化。这个要求说来简单,做来很难:把整个平台搬到企业自有的硬件上,而且不能让任何正在使用应用的人察觉到变化。
先对齐环境,再迁移流量
迁移被安排成先赢得信任、再移动流量。多节点 k3s 集群在自有硬件上搭建起来,用 UFW 和 fail2ban 加固,每个服务都容器化,确保在两套基础设施上运行得完全一致。证书、定时备份和监控在切换之前就已就位,而不是事后补上。之后流量才开始移动,一个界面接一个界面地迁,每一步都留有即时回滚的余地。

割接只是一次代理翻转
Cloudflare 本来就在平台前面负责 DNS、缓存和 TLS,这正是最后一步从容的原因:割接是一次代理翻转,而不是一场 DNS 赌博。在边缘节点之后,集群运行着控制平面和工作节点,承载门户、管理后台、后端和任务这些 Pod,监控在旁守着,备份按计划执行。图里没有 IP,也没有主机名,因为系统的形状不是它的机密。


零停机,有据可查
整个割接期间记录到的停机时间为零,那一周使用应用的人没有一个察觉到发生了什么,而这正是全部的意义。经常性的云账单变成了自有基础设施,从 DNS 到磁盘的每一层都在客户自己手里,同一个集群如今还承载着平台每周的版本发布。这次迁移所承载的平台,在Fully Booked 的故事里有完整讲述。
他们的评价
Excellent time keeping, great attitude, brilliant skill. highly recommend
12月 05, 2024
(5.0)Monir is an exceptional developer with outstanding expertise in his field. His advanced skills enable him to deliver results that surpass those of competitors. He is very thorough and has keen attention to detail, Monir is an excellent listener who can transform your ideas into reality with precision.
11月 28, 2024
(5.0)Today marks one year of working with Monir, and this time has allowed me to know Monir as a truly dedicated individual. We have collaborated on my project daily for the past year, and not once has Monir failed to respond. Monir has invested tremendous effort and focus into this project, working late nights and early mornings, always available to answer calls and resolve issues. There has never been a moment when Monir turned down work or shirked responsibility. The project is growing day by day, and if it becomes a success, it will be largely thanks to Monir's unwavering dedication.
7月 03, 2024
(5.0)I cannot express enough gratitude for Monir's exceptional work as a full-stack developer. Over the past 8 months, Monir has been instrumental in bringing my vision to life by diligently crafting a sophisticated platform that exceeds all expectations. Monir's proficiency in his craft is unparalleled. His technical expertise, coupled with his creative problem-solving skills, has consistently resulted in innovative solutions that have elevated our platform to new heights. His ability to seamlessly navigate through complex challenges showcases his mastery of both front-end and back-end development. Beyond his technical prowess, Monir's professionalism and dedication are truly commendable. He has demonstrated unwavering commitment and reliability throughout the entire development process, ensuring that every aspect of the platform is meticulously crafted to perfection. Working with Monir has been an absolute pleasure. His clear communication, attention to detail, and proactive approach have made collaboration effortless and enjoyable. He has not only met deadlines consistently but has also gone above and beyond to deliver features that surpass expectations. In conclusion, Monir is not just a developer; he is a visionary who brings passion, expertise, and dedication to every project he undertakes. I am immensely grateful for his invaluable contributions to our platform, and I wholeheartedly recommend him to anyone seeking a top-tier full-stack developer. Thank you, Monir, for your outstanding work and unwavering commitment to excellence. You are truly a standout talent in your field.
3月 27, 2024
(5.0)Monir is a very experienced developer. I have been working with him very closely for 8 months now. He has achieved every goal that we planned. He has taken on very complex challenges with the project that we have created and has been able to solve every issue that we've faced. He is extremely hard working. He works day and night. He's work ethic is excellent. He never complains or give excuses. My project is beautiful now and I can't wait to promote it to the world.
1月 21, 2024
(5.0)Monir has been working on my project for the last 3-4 months. We have been speaking and creating ideas to improve this project on a daily basis. The project is now complete and I can honestly say Monir is one of the best people I've ever worked with. Every single commitment that Monir promised from the beginning of this journey he stuck to and achieved. He never moaned, complained or made an excuse about anything. He completed every single commitment that we agreed upon. Monir worked early mornings and late nights until he produce the project I asked of him, and now my business journey is ready to move forward and I'm completely glad that I choose Monir to create this platform for me. The project consisted of an admin panel a customer website and an app. All projects were built to high specification and have very sophisticated features. I would definitely recommend monir to anyone looking for a serious developer.
10月 18, 2023
(5.0)你可能也喜欢

博客是来自生产一线的笔记:架构决策、经受住真实用户考验的 AI 系统、能自己挣回成本的基础设施。写于工作之中,而不是隔岸观火。


