Skip to content

Common Configuration

Eric Zhao edited this page Nov 18, 2019 · 4 revisions

Sentinel provides the following ways to configure the common items:

  • JVM -D parameter
  • properties file (since 1.7.0)

The project.name item should be configured with JVM -D parameter, while other items support both approaches.

Users can configure the path of the properties file via the -Dcsp.sentinel.config.file property item, which also supports files in classpath (such as classpath:sentinel.properties). Sentinel will attempt to read the configuration from the classpath:sentinel.properties file (the default charset is UTF-8).

Sentinel Core

Basic configuration items

Logging configuration items

Item Description Type Default Value Required Notes
csp.sentinel.log.dir The log directory String ${user.home}/logs/csp/ no introduced since 1.3.0
csp.sentinel.log.use.pid Whether the log files include the process ID boolean false no introduced since 1.3.0
csp.sentinel.log.output.type The output destination of the record logs (console for the terminal, file for the file) String file no introduced since 1.6.2

Clone this wiki locally