-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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).
| 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 |
-
文档
-
Documents
- Read Me
- Introduction
- How to Use
- How it Works
- Flow Control
- Parameter Flow Control
- Cluster Flow Control
- API Gateway Flow Control
- Circuit Breaking
- Adaptive System Protection
- Metrics
- General Configuration
- Dynamic Rule Configuration
- Dashboard
- Integrations with open-source frameworks
- Contribution Guideline