Ver código fonte

Improve the item-value length limit configuration document (#3789)

* doc(item-value): Improve the item-value length limit configuration document
* doc(CHANGES.md): update CHANGES.md

Co-authored-by: Jason Song <nobodyiam@gmail.com>
kl 3 anos atrás
pai
commit
47797a61a3
2 arquivos alterados com 10 adições e 1 exclusões
  1. 1 0
      CHANGES.md
  2. 9 1
      docs/zh/deployment/distributed-deployment-guide.md

+ 1 - 0
CHANGES.md

@@ -46,6 +46,7 @@ Apollo 1.9.0
 * [feat(apollo-client): add method interestedChangedKeys to ConfigChangeEvent](https://github.com/ctripcorp/apollo/pull/3666)
 * [add More... link for known users](https://github.com/ctripcorp/apollo/pull/3757)
 * [update OIDC documentation](https://github.com/ctripcorp/apollo/pull/3766)
+* [Improve the item-value length limit configuration document](https://github.com/ctripcorp/apollo/pull/3789)
 * [Use queue#take instead of poll](https://github.com/ctripcorp/apollo/pull/3765)
 * [feature: add Spring Boot 2.4 config data loader support](https://github.com/ctripcorp/apollo/pull/3754)
 * [feat(open-api): get authorized apps](https://github.com/ctripcorp/apollo/pull/3647)

+ 9 - 1
docs/zh/deployment/distributed-deployment-guide.md

@@ -1226,6 +1226,14 @@ http://5.5.5.5:8080/eureka/,http://6.6.6.6:8080/eureka/
 
 默认配置是20000。
 
+#### 3.2.5.1 namespace.value.length.limit.override - namespace 的配置项 value 最大长度限制
+
+此配置用来覆盖 `item.value.length.limit` 的配置,做到细粒度控制 namespace 的 value 最大长度限制,配置的值是一个 json 格式,json 的 key 为 namespace 在数据库中的 id 值,格式如下:
+```
+namespace.value.length.limit.override = {1:200,3:20}
+```
+以上配置指定了 ApolloConfigDB.Namespace 表中 id=1 的 namespace 的 value 最大长度限制为 200,id=3 的 namespace 的 value 最大长度限制为 20
+
 ### 3.2.6 admin-service.access.control.enabled - 配置apollo-adminservice是否开启访问控制
 
 > 适用于1.7.1及以上版本
@@ -1242,4 +1250,4 @@ http://5.5.5.5:8080/eureka/,http://6.6.6.6:8080/eureka/
 ```properties
 admin-service.access.tokens=098f6bcd4621d373cade4e832627b4f6
 admin-service.access.tokens=098f6bcd4621d373cade4e832627b4f6,ad0234829205b9033196ba818f7a872b
-```
+```