Skip to content

Common Configuration

Eric Zhao edited this page Nov 8, 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).

Clone this wiki locally