zl程序教程

您现在的位置是:首页 >  硬件

当前栏目

【Teradata】DSA服务器tdactivemq重启清理消息队列步骤

服务器消息队列队列 步骤 重启 清理 Teradata
2023-09-14 09:00:04 时间

1) Modify the ActiveMQ configuration file to clear out the messages queues. Note that after the broker restart, the parameter should be set back to ‘false’ (normal setting).

Make a backup and edit the /opt/teradata/tdactivemq/config/td-broker.xml file.

Change the deleteAllMessagesOnStartup from false to true.

 

<broker xmlns="http://activemq.apache.org/schema/core"

brokerName="TeradataActiveMQ"

dataDirectory="${tdactivemq.base}/data"

deleteAllMessagesOnStartup="true"

advisorySupport="false">

 

2) Once the change is applied restart the broker and all the components:

Stop Sequence:

/etc/init.d/clienthandler stop (on all client servers)

/etc/init.d/dsc stop

/etc/init.d/tdactivemq stop

 

Start Sequence:

/etc/init.d/tdactivemq start

/etc/init.d/dsc start

/etc/init.d/clienthandler start (on all client servers)

 

3) Put back the original td-broker.xml file.