使用字节数配置 NATS Account 配额 #64

Merged
panxiao81 merged 1 commits from fix/nats-account-byte-limits into main 2026-09-16 12:50:00 +00:00
+4 -4
View File
@@ -24,10 +24,10 @@ config:
password: "<< $NATS_SYS_PASSWORD >>"
CI:
jetstream:
# These values are rendered directly into nats.conf and therefore use
# NATS size syntax, not Kubernetes resource.Quantity syntax.
max_memory: 32M
max_file: 1G
# Account limits are JSON-encoded by config.merge. Use explicit byte
# counts so NATS receives integers rather than quoted size strings.
max_memory: 33554432
max_file: 1073741824
max_streams: 16
max_consumers: 64
max_bytes_required: true