服务器重新启动时间

服务器重新启动时间

本文介绍了使用Azure DevOps将WAR文件部署到运行Tomcat的Azure应用服务后,服务器重新启动时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

一段时间以来,我们一直在使用Azure DevOps来推出一些我们先前开发的C#API,并在使用您的服务方面玩得很开心.

We've been using Azure DevOps for a while now to roll out some C# APIs that we've developed previously and have been having a great time using your service.

最近,我们开始在Spring Boot中创建API,以作为将来编程堆栈的概念证明,并且遇到了一些问题.经过多次修订,我们最终通过手动部署使Spring Boot项目在Azure App Service上运行 通过SFTP将WAR文件保存到我们的App Service的"webroot"文件夹中.

Recently we started creating APIs in Spring Boot as a proof of concept for future programming stacks, and have run into some issues. After multiple revisions we've finally got our Spring Boot project running on an Azure App Service by manually deploying a WAR file to the 'webroot' folder of our App Service via SFTP.

然后,我们尝试通过在Azure DevOps上配置生成和发布管道来自动化该过程.

We then tried automating the process by configuring build- and release pipelines on Azure DevOps.

构建过程运行良好,正在按预期方式编译和删除工件.

The build process is working fine and is compiling and dropping the artifact as expected.

此发行版在代理上运行,并成功地拾取了已删除的工件,并且将其部署到App Service中没有问题.问题是,在部署过程成功之后(意味着发布管道显示发布已通过 成功),则App Service似乎不再运行,而只是向尝试访问它的任何客户端返回404错误.

The release runs on an agent and successfully picks up the dropped artifact, and does the deploy to the App Service without an issue. The problem is that after the deployment process succeeds (meaning the release pipeline shows that the release went through successfully), the App Service seems like it is no longer running and is just returning a 404 error to any client trying to access it.

大约5分钟后,服务器重新联机,并且似乎正在运行最新版本.

After about 5 minutes the server comes back online and it seems like the most recently built version is running on it.

与此相关的问题是,在发布周期中,服务器宕机时间很长.我知道Tomcat确实支持在更新WAR文件后自动重新部署它们,通常只需不到一分钟的时间.

The issue with this is that this is quite a long time for a server to be down during a release cycle. I know that Tomcat does support automatically redeploying WAR files once they get updated, and normally this takes less than a minute.

使用Azure DevOps时,您是否对使服务器启动并更快进入运行状态有任何建议?

Do you have any advice on getting the server to boot and get into a running state quicker when using Azure DevOps?

此致

Johan

推荐答案



这篇关于使用Azure DevOps将WAR文件部署到运行Tomcat的Azure应用服务后,服务器重新启动时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-21 17:45