多个Mobilefirst-Server工件并发部署 [英] Multiple Mobilefirst-Server artifacts concurrent deploy

查看:99
本文介绍了多个Mobilefirst-Server工件并发部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用批处理程序来部署MFP v7工件(wlapps和适配器)。
该过程基于worklight-ant-deployer.jar中定义的标准ant任务。

I use a batch procedure for deploying MFP v7 artifacts (wlapps and adapters). The procedure is based on the standard ant tasks defined in worklight-ant-deployer.jar.

MFP环境运行到WAS单元,由以下内容组成:管理多个WLRuntimes的单个AdminService应用程序。

The MFP environment runs onto a WAS cell, and consists of a single AdminService application managing multiple WLRuntimes.

是否可以针对不同的WLRuntime目标同时运行两个(或更多个)部署任务?

Is it possible to run two (or more) deploy tasks concurrently against different WLRuntime targets ?

此外,坚持单个WLRuntime,是否可以同时部署不同的多个工件?

Furthermore, sticking to a single WLRuntime, is it possible to deploy different multiple artifacts concurrently ?

提前感谢您的回答/评论。
Ciao,Stefano。

Thanks in advance for any answer/comment. Ciao, Stefano.

推荐答案

对于单个WL运行时,所有部署都是按顺序在内部完成的。您可以同时启动部署,但由于事务锁定机制,内部只有一个部署在另一个部署之后完成。如果并行启动太多部署,则可能会出现超时情况,即使这种情况很少发生。默认情况下,部署事务会在超时之前等待20分钟。

For a single WL runtime, all deployments are internally done sequentially. You can start the deployments concurrently, but internally only one deployment is done after the other, due to a transaction locking mechanism. If you start too many deployments in parallel, it may come to timeout situations, even though this is seldom. By default, a deployment transaction waits for 20 minutes before it may time out.

注意:并行启动部署意味着直接使用ant任务或wladm工具或REST服务。在MobileFirst Admin Console UI中,当另一个部署事务正在进行时,您将看到部署按钮被禁用,因此在UI中,并行启动部署并不是那么容易。用户界面试图禁止这样做。

Note: starting deployments in parallel means here using ant tasks or the wladm tool or the REST service directly. In the MobileFirst Admin Console UI, you will see deploy buttons disabled when another deployment transaction is ongoing, hence in the UI, it is not so easily possible to start deployments in parallel. The UI tries to prohibit that.

注2:我上面提到的20分钟是锁定机制本身。 Ant / wladm有自己的超时参数可能更低,因此在蚂蚁任务中,你可能会超过20分钟的时间。请参见此处

Note 2: the 20 minutes that I mentioned above is for the locking mechanism itself. Ant/wladm has its own parameters for time out that may be lower, hence in ant tasks, you might get time outs quicker than 20 min. See here.

对于多个WL运行时,可以同时部署。提到的锁定机制是每个运行时,因此在一个WL运行时中发生的部署不会影响任何其他WL运行时。

For multiple WL runtimes, deployments can be concurrently. The mentioned locking mechanism is per runtime, hence deployments that occur in one WL runtime will not influence any other WL runtime.

这篇关于多个Mobilefirst-Server工件并发部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆