mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-27 15:37:02 +00:00
Feature/rustfs config (#396)
* init rustfs config * improve code for rustfs-config crate * add * improve code for comment * fix: modify rustfs-config crate name * add default fn * improve error logger * fix: modify docker config yaml * improve code for config * feat: restrict kafka feature to Linux only - Add target-specific feature configuration in Cargo.toml for obs and event-notifier crates - Implement conditional compilation for kafka feature only on Linux systems - Add appropriate error handling for non-Linux platforms - Ensure backward compatibility with existing code * refactor(ci): optimize build workflow for better efficiency - Integrate GUI build steps into main build-rustfs job - Add conditional GUI build execution based on tag releases - Simplify workflow by removing redundant build-rustfs-gui job - Copy binary directly to embedded-rustfs directory without downloading artifacts - Update merge job dependency to only rely on build-rustfs - Improve cross-platform compatibility for Windows binary naming (.exe) - Streamline artifact uploading and OSS publishing process - Maintain consistent conditional logic for release operations * refactor(ci): optimize build workflow for better efficiency - Integrate GUI build steps into main build-rustfs job - Add conditional GUI build execution based on tag releases - Simplify workflow by removing redundant build-rustfs-gui job - Copy binary directly to embedded-rustfs directory without downloading artifacts - Update merge job dependency to only rely on build-rustfs - Improve cross-platform compatibility for Windows binary naming (.exe) - Streamline artifact uploading and OSS publishing process - Maintain consistent conditional logic for release operations * fix(ci): add repo-token to setup-protoc action for authentication - Add GITHUB_TOKEN parameter to arduino/setup-protoc@v3 action - Ensure proper authentication for Protoc installation in CI workflow - Maintain consistent setup across different CI environments * modify config * improve readme.md * remove env config relation * add allow(dead_code)
This commit is contained in:
@@ -9,26 +9,26 @@ environments = "develop" # 运行环境,如开发环境 (develop)
|
||||
logger_level = "debug" # 日志级别,可选 debug/info/warn/error 等
|
||||
local_logging_enabled = true # 是否启用本地 stdout 日志记录,true 表示启用,false 表示禁用
|
||||
|
||||
[sinks]
|
||||
[sinks.kafka] # Kafka 接收器配置
|
||||
enabled = false # 是否启用 Kafka 接收器,默认禁用
|
||||
bootstrap_servers = "localhost:9092" # Kafka 服务器地址
|
||||
topic = "logs" # Kafka 主题名称
|
||||
batch_size = 100 # 批处理大小,每次发送的消息数量
|
||||
batch_timeout_ms = 1000 # 批处理超时时间,单位为毫秒
|
||||
#[[sinks]] # Kafka 接收器配置
|
||||
#type = "Kafka" # 是否启用 Kafka 接收器,默认禁用
|
||||
#brokers = "localhost:9092" # Kafka 服务器地址
|
||||
#topic = "logs" # Kafka 主题名称
|
||||
#batch_size = 100 # 批处理大小,每次发送的消息数量
|
||||
#batch_timeout_ms = 1000 # 批处理超时时间,单位为毫秒
|
||||
|
||||
[sinks.webhook] # Webhook 接收器配置
|
||||
enabled = false # 是否启用 Webhook 接收器
|
||||
endpoint = "http://localhost:8080/webhook" # Webhook 接收地址
|
||||
auth_token = "" # 认证令牌
|
||||
batch_size = 100 # 批处理大小
|
||||
batch_timeout_ms = 1000 # 批处理超时时间,单位为毫秒
|
||||
#[[sinks]] # Webhook 接收器配置
|
||||
#type = "Webhook" # 是否启用 Webhook 接收器
|
||||
#endpoint = "http://localhost:8080/webhook" # Webhook 接收地址
|
||||
#auth_token = "" # 认证令牌
|
||||
#batch_size = 100 # 批处理大小
|
||||
#batch_timeout_ms = 1000 # 批处理超时时间,单位为毫秒
|
||||
|
||||
[sinks.file] # 文件接收器配置
|
||||
enabled = true # 是否启用文件接收器
|
||||
[[sinks]] # 文件接收器配置
|
||||
type = "File" # 是否启用文件接收器
|
||||
path = "./deploy/logs/rustfs.log" # 日志文件路径
|
||||
batch_size = 10 # 批处理大小
|
||||
batch_timeout_ms = 1000 # 批处理超时时间,单位为毫秒
|
||||
buffer_size = 10 # 缓冲区大小,表示每次写入的字节数
|
||||
flush_interval_ms = 100 # 批处理超时时间,单位为毫秒
|
||||
flush_threshold = 100 # 刷新阈值,表示在达到该数量时刷新日志
|
||||
|
||||
[logger] # 日志器配置
|
||||
queue_capacity = 10 # 日志队列容量,表示可以缓存的日志条数
|
||||
Reference in New Issue
Block a user