Skip to content

Commit

Permalink
Add a message on how to make log refresh immediately when starting a …
Browse files Browse the repository at this point in the history
…component (#6078)

### Motivation

Some users may confuse by pulsar/bookie log without flushing immediately.

### Modifications

Add a message in `bin/pulsar-daemon` when starting a component.
  • Loading branch information
murong00 committed Feb 29, 2020
1 parent 7f25add commit 4f461c3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/pulsar-daemon
Expand Up @@ -151,6 +151,7 @@ case $startStop in

rotate_out_log $out
echo starting $command, logging to $logfile
echo Note: Set immediateFlush to true in conf/log4j2.yaml will guarantee the logging event is flushing to disk immediately. The default behavior is switched off due to performance considerations.
pulsar=$PULSAR_HOME/bin/pulsar
nohup $pulsar $command "$@" > "$out" 2>&1 < /dev/null &
echo $! > $pid
Expand Down

0 comments on commit 4f461c3

Please sign in to comment.