Terracotta-OSS / terracotta-platform

http://terracotta.org
Apache License 2.0
32 stars 48 forks source link

Display, in startup console, in warning, the CLI parameters that do not match the persisted config anymore #1012

Closed mathieucarbou closed 3 years ago

mathieucarbou commented 3 years ago

Here are some examples of output that we can see in the console log at startup:

2021-06-04 16:23:23,871 [Thread-299] INFO org.terracotta.console - 

=================================================================================================================
Node is starting from an existing configuration directory.
The following command-line (CLI) parameters differ from the loaded configuration. 
They have been ignored and can be removed from the CLI.
 - Setting: 'name': CLI=node-1-1 vs CONFIG=foo
=================================================================================================================
2021-06-04 16:22:44,530 [Thread-84] INFO org.terracotta.console - 

=================================================================================================================
Node is starting from an existing configuration directory.
The following command-line (CLI) parameters differ from the loaded configuration. 
They have been ignored and can be removed from the CLI.                                       
 - Setting: 'log-dir': CLI=logs vs CONFIG=logs/stripe1
 - Setting: 'metadata-dir': CLI=metadata vs CONFIG=metadata/stripe1
 - Setting: 'data-dirs': CLI=main:data-dir vs CONFIG=main:user-data/main/stripe1
 - Setting: 'offheap-resources': CLI=foo:1GB,main:512MB vs CONFIG=main:512MB,second:1GB
 - Setting: 'client-reconnect-window': CLI=10s vs CONFIG=<unspecified>
 - Setting: 'cluster-name': CLI=tc-cluster vs CONFIG=my-cluster
=================================================================================================================