Skip to content

Commit

Permalink
perf: 支持 traceId
Browse files Browse the repository at this point in the history
  • Loading branch information
VV committed Jul 8, 2024
1 parent 3792019 commit 1fdd02b
Show file tree
Hide file tree
Showing 9 changed files with 8,035 additions and 43 deletions.
23 changes: 7 additions & 16 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,10 @@
PORT: 3000
MONGODB:
URL: 'mongodb://127.0.0.1:27017/test'
# for production
# LOGGERS:
# base:
# transport: null
# MONGODB_QUERY_OPTIONS:
# maxTimeMs: 10000 # mongodb 查询超时时间
# maxResultWindow: 10000 # 最大查询数的限制
# SERVER_RATELIMIT:
# '^spaceId:[0-9a-fA-F]{24}-entityId:[0-9a-fA-F]{24}-RecordGroupAPI/group$': 1000
# '^spaceId:[0-9a-fA-F]{24}-entityId:[0-9a-fA-F]{24}-RecordCountAPI/count': 1000
# '^spaceId:[0-9a-fA-F]{24}-entityId:[0-9a-fA-F]{24}-RecordAPI/queryArray': 1000
# '^spaceId:[0-9a-fA-F]{24}-entityId:[0-9a-fA-F]{24}$': 1000 # spaceId + entityId 支持正则表达式
# 单机限流时间
# SERVER_RATELIMIT_RESET_INTERVAL_MS: 20
# 单机限流重试时间
# SERVER_RATELIMIT_RETRY_INTERVAL_MS: 10
OPTIONS:
readPreference: secondaryPreferred
LOGGERS:
base:
level: info
transport:
target: pino-pretty
Loading

0 comments on commit 1fdd02b

Please sign in to comment.