案例分析:
一家初创公司如何使用Kubernetes降低其基础设施成本50%

公司 导航     Location  犹他州盐湖城和加利福尼亚州圣马特奥     Industry  企业金融服务



挑战

成立于2012年, 导航 为小企业主提供从所有三个主要商业信用机构(Equifax,Experian和Dun&Bradstreet)获得其商业信用评分的途径,以及最适合其需求的融资方式。五年来,这家初创公司发展迅速,并且“我们的云环境变得非常庞大,我们对这些环境的使用率非常低,不到1%,”工程总监Travis Jeppson说。 “我们希望云环境的使用与我们实际需要的紧密结合,因此我们开始研究容器化和编排,以帮助我们能够运行彼此不同但可以共享相似资源池的工作负载。”

After evaluating a number of orchestration solutions, the 导航 team decided to adopt Kubernetes 继续 AWS。 Kubernetes周围社区的力量以及Google的渊源吸引了很多人。另外,“其他解决方案往往过于笨拙,非常复杂,非常庞大,而且很难立即进行管理,”杰普森说。 “ Kubernetes为我们提供了一种非常简单的方法,使其能够进入符合当时需求的编排解决方案,但是它的可扩展性使我们能够与之一起发展并能够构建更多的特性和功能。稍后的。”

影响力

The four-person team got Kubernetes up and running in six months, and the full migration of 导航’s 25 microservices was completed in another six months. The results have been impressive: Resource utilization, which led the company on this path in the first place, has increased from 1% to 40%. Launching a new service used to take two developers two weeks; now it takes only one developer less than 10 minutes. Deployments have increased 5x. And the company is saving 50% in infrastructure costs.


“ Kubernetes为我们提供了一种非常简单的方法,使其能够进入符合当时需求的编排解决方案,但是它的可扩展性使我们能够与之一起发展并能够构建更多的特性和功能。 later on."

- Travis Jeppson, Director of Engineering, 导航

成立于2012年, 导航 使小型企业所有者可以从三个主要的商业信用机构(Equifax,Experian和Dun&Bradstreet)访问其商业信用评分,以及最适合其需求的企业财务状况和融资方式的详细信息。工程总监特拉维斯·杰普森(Travis Jeppson)说,其使命归结为:“以提高小型企业的成功率。”

A couple of years ago, 导航 recognized an obstacle in its own path to success. The business was growing rapidly, and “our cloud environments were getting very large, and our usage of those environments was extremely low, like under 1%,” says Jeppson. “Most of the problem was around the ability to scale. We were just throwing money at it. ‘Let’s just spin up more servers. Let’s just do more things in order to handle an increased load.’ And with us being a startup, that could lead to our demise. We don’t have the money to burn on that kind of stuff.”

此外,每项新服务都必须经过10个不同的人员,并且要花费两个多星期才能启动。 Jeppson补充说:“所有补丁程序管理和服务器管理都是非常手动完成的,因此我们所有人都必须对其进行观察并非常好地进行维护。” “这只是一个非常麻烦的系统。”
“社区绝对至关重要:能够传达想法,谈论我们都面临的许多类似挑战并获得帮助。我希望我们能够出于不同原因解决相同的问题,但一路互相帮助。”

- Travis Jeppson, Director of Engineering, 导航
Jeppson had worked with containers at his previous job, and pitched that technology to 导航’s management as a solution to these problems. He got the green light in early 2017. “We wanted our usage of cloud environments to be more tightly coupled with what we actually needed, so we started looking at containerization and orchestration to help us be able to run workloads that were distinct from one another but could share a similar resource pool,” he says.

在评估了多种编排解决方案之后,公司决定采用 Kubernetes 继续 AWS。 Kubernetes周围社区的力量很受吸引,它的Google起源也是如此。此外,“其他解决方案往往过于笨拙,非常复杂,非常庞大,而且很难立即进行管理,”杰普森说。 “ Kubernetes为我们提供了一种非常简单的方法,使其能够进入当时符合我们需求的编排解决方案,但是它的可扩展性也使我们能够与之一起成长,并在以后建立更多的特性和功能。”

杰普森的四人工程服务团队在六个月内使Kubernetes投入运行(他们决定使用 Kubespray to spin up clusters), and the full migration of 导航’s 25 microservices and one primary monolith was completed in another six months. “We couldn’t rewrite everything; we couldn’t stop,” he says. “We had to stay up, we had to stay available, and we had to have minimal amount of downtime. So we got really comfortable around our building pipeline, our metrics and logging, and then around Kubernetes itself: how to launch it, how to upgrade it, how to service it. And we moved little by little.”
“Kubernetes has brought so much value to 导航 by allowing all of these new freedoms that we had just never had before.”

- Travis Jeppson, Director of Engineering, 导航
A crucial part of the process involved educating 导航’s 50 engineers and being transparent regarding the new workflow as well as the roadmap for the migration. Jeppson did regular presentations along the way, and a week of four-hours-a-day labs for the entire staff of engineers. He then created a repository in 亚搏体育app 容纳所有信息。 “我们向所有前端和后端开发人员展示了如何使用它们,使用它们创建自己的名称空间 Kubectl,所有这些,”他说。 “现在,很多时候,他们只是来找我们说,'这已经准备好了。'我们在GitLab中单击一个小按钮,使其可以投入生产,然后他们就可以参加比赛了。”

自2018年初完成迁移以来,结果令人印象深刻:首先使公司走上了这条道路的资源利用率从1%提高到40%。推出一项新服务通常需要两个开发人员两个星期;现在只需一名开发人员,只需不到10分钟的时间。部署量增加了5倍,从每天10次增加到每天50次。该公司在计算方面节省了50%的基础设施成本。杰普森说:“下一步,我们要着手解决数据库方面的问题,一旦做到这一点,我们将继续降低成本。”

Kubernetes has also helped 导航 with its compliance needs. Before, “we had to map one application to one server, mostly due to different compliance regulations around data,” Jeppson says. “With the Kubernetes API, we could add in network policies and segregate that data and restrict it if needed.” The company segregates its cluster into an unrestricted zone and a restricted zone, which has its own set of nodes where data protection happens. The company also uses the 扭锁 他补充说,这是确保安全的工具,“这使夜间入睡变得容易得多”。
“我们正在谈论的流量是我们现在处理流量的四到十倍,就像,'哦,是的。我们很好。Kubernetes会为我们处理这些。”

- Travis Jeppson, Director of Engineering, 导航
With Kubernetes in place, the 导航 team also started improving the system’s metrics and logging by adopting 普罗米修斯。 Jeppson说:“ 普罗米修斯围绕度量标准创建了一个标准,开发人员确实很容易采用它。” “他们有自由展示自己想要的东西,做他们需要的东西,保持代码库整洁的自由,这对我们来说绝对是必须的。”

Next up for 导航 in the coming year: looking at tracing, storage, and service mesh. They’re currently evaluating 使者, OpenTracing积家 在花了很多KubeCon与其他公司交谈之后。 “社区绝对至关重要:能够传达想法,谈论我们都面临的许多类似挑战并获得帮助。我喜欢我们能够出于不同的原因解决相同的问题,但在此过程中互相帮助。”杰普森说。 “围绕可伸缩性,能够真正完全采用云原生解决方案,还有很多事情要做。”

Of course, it all starts with Kubernetes. With that technology, Jeppson’s team has built a platform that allows 导航 to scale, and that “has brought so much value to 导航 by allowing all of these new freedoms that we had just never had before,” he says.

由于不得不等待六个月才能建立隔离的环境,然后弄清楚如何处理流量高峰,因此有关新产品的讨论陷入了困境。杰普森说:“但是现在对我们来说什么都没有。” “我们正在谈论的流量是我们现在处理流量的四到十倍,就像‘哦,是的。我们很好。 Kubernetes为我们解决了这个问题。’”