简体   繁体   English

WSO2 ESB部署同步器卡住(无法正常关闭或部署服务)

[英]WSO2 ESB Deployment Synchronizer stuck (can't gracefully shutdown or deploy services)

We are facing some issues with WSO2 ESB sincronizer, since we have a clustered configuration, we are using svn to store the content of "repository/deployment/server". 由于我们具有群集配置,因此我们面临WSO2 ESB sincronizer的一些问题,因此我们正在使用svn来存储“存储库/部署/服务器”的内容。 The carbon.xml configuration is the following: carbon.xml配置如下:

<DeploymentSynchronizer>
    <Enabled>true</Enabled>
    <AutoCommit>false</AutoCommit><!--true for the mgt node-->
    <AutoCheckout>true</AutoCheckout>
    <RepositoryType>svn</RepositoryType>
    <SvnUrl>https://svn/x/trunk/serverESB/desenv/</SvnUrl>
    <SvnUser>user</SvnUser>
    <SvnPassword>password</SvnPassword>
    <SvnUrlAppendTenantId>false</SvnUrlAppendTenantId>
</DeploymentSynchronizer>

It works correctly for some time, but after some deploys and undeploys it stops working. 它可以正常工作一段时间,但是在部署和取消部署后会停止工作。 Although it still gives the message that it is going to sincronize and the svn update seems to be corectly performed, the esb does not load the newly deployed XMLs: 尽管它仍然发出将要进行同步化的消息,并且svn更新似乎已执行,但是esb不会加载新部署的XML:

TID: [0] [ESB] INFO {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} -  Received [SynchronizeRepositoryRequest{tenantId=-1234, tenantDomain='carbon.super', messageId=f9b51e23-8a3c-4f08-acb0-5a1f0f4590b2}]  {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest}
TID: [0] [ESB] INFO {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest} -  Going to synchronse artefacts.  {org.wso2.carbon.core.deployment.SynchronizeRepositoryRequest}

Normally after this message it prints INFO saying that new services where deployed, but it does no occour. 通常,在此消息之后,它会打印INFO信息,说明已部署了新服务,但没有发生错误。

When i try to shutdown the server it gives me the message "Waiting for deployment completion...", and gets stuck (so i have to kill using "kill -9"): 当我尝试关闭服务器时,它给我消息“正在等待部署完成...”,并被卡住(因此我必须使用“ kill -9”进行杀死):

TID: [0] [ESB] INFO {org.wso2.carbon.core.ServerManagement} -  Waiting for deployment completion... {org.wso2.carbon.core.ServerManagement}

If I manually restarts it, all the deployments will work fine, and the sincronizer will start to work fine again (for some time). 如果我手动重新启动它,则所有部署将正常运行,并且同步更新程序将再次开始正常运行(一段时间)。

ps: I've tryed to use the OS's svn (SuSe) and also the SVNKit module. ps:我尝试使用操作系统的svn(SuSe)以及SVNKit模块。 Our svn repository version is 1.5.1. 我们的svn信息库版本是1.5.1。

There are a few docs out there which are not upto date; 这里有一些文档不是最新的。 hence would make things more difficult. 因此会使事情变得更加困难。 Even I have tried those and ended up with unexpected problems. 甚至我都尝试过这些,最终遇到了意外的问题。

Have you tried the instructions provided in latest WSO2-product clustering docs? 您是否尝试过最新的WSO2产品集群文档中提供的说明?

http://docs.wso2.org/wiki/display/Cluster/Creating+a+Cluster http://docs.wso2.org/wiki/display/Cluster/Configuring+Deployment+Synchronizer http://docs.wso2.org/wiki/display/Cluster/Creating+a+Cluster http://docs.wso2.org/wiki/display/Cluster/Configuring+Deployment+Synchronizer

These information are upto date, and well tested with a sample set-up (ESB cluster with one Manager node and three worker nodes fronted by an Elastic Load Balancer). 这些信息是最新的,并已通过样本设置(带有一个Manager节点和三个Worker节点,以Elastic Load Balancer开头的ESB集群)进行了良好的测试。 If you have followed those instructions, this should work fine. 如果您遵循了这些说明,则应该可以正常工作。 If you have already followed the same steps respectively and got stuck with this issue, please do confirm whether you have followed the instructions provided by this document, or not. 如果您已经分别执行了相同的步骤并且遇到了此问题,请确认是否遵循本文档提供的说明。

Thanks. 谢谢。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM