Comments (3)
We may support configuration via yaml file or system env. Hard-coded configuration may also be supported if needed.
from sentinel-golang.
The definition overview of the config (v1):
type Config struct {
Version string
Sentinel struct {
App struct {
// Name represents the name of current running service.
Name string
// Type indicates the classification of the service (e.g. web service, API gateway).
Type int32
}
Log struct {
// Dir represents the log directory path.
Dir string
// UsePid indicates whether the filename ends with the process ID (PID).
UsePid bool
// Metric represents the configuration items of the metric log.
Metric struct {
SingleFileMaxSize uint64
MaxFileCount uint32
FlushIntervalSec uint32
}
}
}
}
from sentinel-golang.
It's supported to configure some fundamental items from the system env, like appName and logDir.
Some items do not support configuring by file, so users need to configure them via system env or hard-coding manually:
- The file path of the yaml file (optional)
- The logging directory
from sentinel-golang.
Related Issues (20)
- go get包的时候,总是少了pkg这个文件夹 HOT 1
- [BUG] resource that are not loaded cause additional consumption
- Test cases failed: TestSlidingWindowMetric_GetIntervalSumWithTime
- [Question]Why change flow rule id to "string" HOT 5
- System Guard flow control | CPU thredshold| 系统自适应流控|以CPU作为阈值场景下的取值范围问题
- [BUG]System Guard flow control | CPU thredshold| 系统自适应流控|以CPU作为阈值场景下的取值范围问题 HOT 6
- Support clustermode flowlimit like Java
- [BUG] 依赖的包github.com/prometheus/client_golang v1.9.0被检测有高危漏洞,需要更新到v1.11.0
- [BUG] HOTSPOT mode with QPS throttling is unable to throttle or reject when QPS threshold is higher than 1000
- 代码疑问咨询 HOT 1
- 可以支持自定义设置RT吗? HOT 2
- 我在windows下使用次项目loadStat, err := load.Avg()失败 HOT 1
- 请问 sentinel-golang 如何接入sentinel控制台? HOT 1
- go 版本支持集群维度的限流么? HOT 1
- 什么时候golang 能支持控制面板监控? HOT 1
- [BUG] 并发度计算忽略了BatchCount,导致资源隔离异常 HOT 1
- [BUG] Metric exporter's init func leads to http nil handler error
- [BUG] 方法fromOpenToHalfOpen,如果状态转换出现回滚,stateChangedCounter会更新一条错误的数据。
- [BUG] fromOpenToHalfOpen 如果状态出现回滚,那么stateChangedCounter会更新一条错误数据。
- [ASK] StatSlidingWindowBucketCount 设置多少合适? 作用是什么? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sentinel-golang.