Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/perf/arrField-sort' into perf/…
Browse files Browse the repository at this point in the history
…arrField-sort
  • Loading branch information
VV committed Jul 12, 2024
2 parents a63b475 + 42bc3ca commit cd24cf2
Show file tree
Hide file tree
Showing 5 changed files with 7,859 additions and 12 deletions.
15 changes: 15 additions & 0 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,21 @@ MONGODB:
URL: 'mongodb://127.0.0.1:27017/test'
OPTIONS:
readPreference: secondaryPreferred

# for production
# 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

LOGGERS:
base:
level: info
Expand Down
Loading

0 comments on commit cd24cf2

Please sign in to comment.