You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2021/07/23 06:25:41 UTC

[GitHub] [rocketmq] zhangjidi2016 opened a new issue #3173: Isolate Broker logs when multiple Broker services are deployed on the same machine

zhangjidi2016 opened a new issue #3173:
URL: https://github.com/apache/rocketmq/issues/3173


   In most cases, multiple broker services are deployed on the same machine, so all the related logs generated by all broker nodes are stored in the same file, such as broker.log, which can be inconvenient if we need to search through the entire log file to view a broker's logs.
   
   we can add a folder to the front of the broker logs and place the logs generated by the same broker in the same folder to isolate the logs generated by different brokers.When a broker service has a problem, the log can be quickly found in the corresponding folder.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] francisoliverlee commented on issue #3173: Isolate Broker logs when multiple Broker services are deployed on the same machine

Posted by GitBox <gi...@apache.org>.
francisoliverlee commented on issue #3173:
URL: https://github.com/apache/rocketmq/issues/3173#issuecomment-885643853


   you can change broker log dir :
   https://github.com/apache/rocketmq/blob/a20f31bb3de242756542c552d7212a7a40000ba4/distribution/conf/logback_broker.xml
   
   namesrv log dir
   https://github.com/apache/rocketmq/blob/master/distribution/conf/logback_namesrv.xml


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] zhangjidi2016 commented on issue #3173: Isolate Broker logs when multiple Broker services are deployed on the same machine

Posted by GitBox <gi...@apache.org>.
zhangjidi2016 commented on issue #3173:
URL: https://github.com/apache/rocketmq/issues/3173#issuecomment-890741574


   Yes, but as a practical matter, most of them have a mixed deployment of master and slave nodes from different broker-group on the same machine. Even for testing, I think it would be cumbersome to change the logback_broker.xml every time you start the broker.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] zhangjidi2016 removed a comment on issue #3173: Isolate Broker logs when multiple Broker services are deployed on the same machine

Posted by GitBox <gi...@apache.org>.
zhangjidi2016 removed a comment on issue #3173:
URL: https://github.com/apache/rocketmq/issues/3173#issuecomment-885984611


   > you can change broker log dir :
   > https://github.com/apache/rocketmq/blob/a20f31bb3de242756542c552d7212a7a40000ba4/distribution/conf/logback_broker.xml
   > 
   > namesrv log dir
   > https://github.com/apache/rocketmq/blob/master/distribution/conf/logback_namesrv.xml
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] duhenglucky closed issue #3173: Isolate Broker logs when multiple Broker services are deployed on the same machine

Posted by GitBox <gi...@apache.org>.
duhenglucky closed issue #3173:
URL: https://github.com/apache/rocketmq/issues/3173


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] odbozhou commented on issue #3173: Isolate Broker logs when multiple Broker services are deployed on the same machine

Posted by GitBox <gi...@apache.org>.
odbozhou commented on issue #3173:
URL: https://github.com/apache/rocketmq/issues/3173#issuecomment-890661745


   It is not recommended to deploy multiple brokers on one machine. It is sufficient to modify logback to test different brokers.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] zhangjidi2016 commented on issue #3173: Isolate Broker logs when multiple Broker services are deployed on the same machine

Posted by GitBox <gi...@apache.org>.
zhangjidi2016 commented on issue #3173:
URL: https://github.com/apache/rocketmq/issues/3173#issuecomment-885984611


   > you can change broker log dir :
   > https://github.com/apache/rocketmq/blob/a20f31bb3de242756542c552d7212a7a40000ba4/distribution/conf/logback_broker.xml
   > 
   > namesrv log dir
   > https://github.com/apache/rocketmq/blob/master/distribution/conf/logback_namesrv.xml
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] zhangjidi2016 commented on issue #3173: Isolate Broker logs when multiple Broker services are deployed on the same machine

Posted by GitBox <gi...@apache.org>.
zhangjidi2016 commented on issue #3173:
URL: https://github.com/apache/rocketmq/issues/3173#issuecomment-885986224


   Yes, for this [PR](https://github.com/apache/rocketmq/pull/3174) I have added a folder to the front of the broker log to distinguish the different brokers on the same machine. The folder name is generated based on brokerName and brokerId. Users can simply use the "sh mqbroker -c broker. Properties "command to start multiple brokers without any indication of where to save the broker logs


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [rocketmq] zhangjidi2016 closed issue #3173: Isolate Broker logs when multiple Broker services are deployed on the same machine

Posted by GitBox <gi...@apache.org>.
zhangjidi2016 closed issue #3173:
URL: https://github.com/apache/rocketmq/issues/3173


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org