apolloconfig / apolloconfig/apollo
[Feature Request] 根据不同时间段对于同一个 config 获取到不同的配置
Abierto
feature request
- Lenguaje dominante
- Java
- Estrellas
- 29.8k
- Forks
- 10.2k
- Merge medio
- 4 d 7 h
- PR fusionados (30 d)
- 4
Descripción
Dear @nobodyiam
比如有个配置 loadLevel,
default 配置是 normal
但是在双十一的时候就会根据时间调整成相应的值
| start_time | stop_time | value |
| ----------------- | ---------------- | ---------- |
| 2017.11.10 23:0:0 | 2017.11.12 0:0:0 | preheavy |
| 2017.11.11 0:0:0 | 2017.11.12 0:0:0 | heavy |
| 2017.11.12 0:0:0 | 2017.11.12 1:0:0 | afterheavy |
等过了双十一后一小时 2017.11.12 1:0:0, 则 loadLevel 又恢复成 normal
实现方面,我觉得可以给配置项加个子表,跟主表之间是 1:0-* 关系。
这个需要客户端和服务端都支持。
有了这功能就不用改代码或者大半夜的起来调整参数了
我觉得这功能可能会是个亮点啊。
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.