启动配置项
Eric Zhao edited this page Aug 15, 2018
·
25 revisions
Sentinel 启动配置项允许在启动程序的时候设置相关参数,参数列表如下:
名称 | 含义 | 类型 | 默认值 | 是否必需 |
---|---|---|---|---|
project.name |
指定程序的名称 | String |
null |
否 |
csp.sentinel.metric.file.single.size |
单个监控文件的大小 | long |
52428800 | 否 |
csp.sentinel.metric.file.total.count |
监控文件的总数上限 | int |
6 | 否 |
注:
project.name
项用于指定应用名(appName)。若未指定,则默认从sun.java.command
中解析出对应的类名作为应用名。实际项目使用中建议指定应用名。
名称 | 含义 | 类型 | 默认值 | 是否必需 |
---|---|---|---|---|
csp.sentinel.dashboard.server |
控制台的地址,指定控制台后客户端会自动向该地址发送心跳包。地址格式为:hostIp:port
|
String |
null |
是 |
csp.sentinel.heartbeat.interval.ms |
心跳包发送周期,单位毫秒 | long |
null |
否 |
csp.sentinel.api.port |
本地启动 HTTP API Server 的端口号 | int |
null |
是 |
上述参数所有均可通过 JVM -D 参数指定。除 project.name
之外,其余参数还可通过 properties 文件指定,路径为 ${user_home}/logs/csp/${project.name}.properties
。
-
文档
-
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