Comments (5)
@CatKang 可以帮我看看吗?多谢。
from qconf.
重启系统(container)是会有这个情况的,但是读取不到数据的表现是什么?现在如果数据不存在,会阻塞直到读取到数据的?你说的问题是指这个阻塞吗?
from qconf.
@bigpyer 比如我的应用程序在启动后需要先读取qconf中的一个配置地址,根据这个配置地址来初始化一个长链接,因为qconf也是刚启动嘛,这个时候去读取这个配置,可能会读出来的值为空。这时候我只能使用默认地址,而不是qconf中的最新值。而这个初始化,只在程序启动的时候执行一次,所以即便qconf后续同步下来这个数据了,我也不会再次读取,也就没法使用这个最新配置了。
from qconf.
还有就是我看qconf有个dump文件,agent会定期把共享内存里的所有内容持久化到磁盘上的一个dump文件里。于是我就把容器内的dump文件路径挂载到了宿主机的一个目录上,但是宿主机的目录上只有一部分数据,运行一段时间后,还是有些数据获取不到。
from qconf.
dump仅在共享内存中没有数据且zookeeper也连接不上的时候才会使用,这个动作是agent完成的。
qconf客户端接口获取数据,如果共享内存没有,会等待一段时间。通常这段时间内agent都能正常取到。
你现在的问题是这个时候agent还没有启动。所以尝试保证agent在业务程序之前启动吧
from qconf.
Related Issues (20)
- php7 qconf_manager扩展QConfZK循环操作多个zookeeper报段错误
- python3.7 编译 qconf 扩展 error: command 'clang' failed with exit status 1 HOT 1
- init fail HOT 1
- mac cmake 通过 make 报错了 HOT 6
- qconf获取大量数据失败
- debian10 下编译报错 HOT 1
- how time support etcd
- MacOS 10.15 + Xcode 11.1 编译不过
- mac 启动 Failed to open gdbm file:/usr/local/qconf/dumps/_dump.gdbm; gdbm err:Can't be writer
- 网络中断又恢复后无法拉取配置
- cmake失败报错 HOT 2
- java client多线程调用导致crash
- make error on macOS
- /usr/bin/ld: 找不到 -lpthreads HOT 4
- 更新bash 5的sh启动脚本
- java driver set max buffer 256K in the method of getConf()
- cmake error HOT 3
- Cmake编译报错 HOT 1
- how to solve?
- GO 编译时在此[golang:1.20-alpine]docker镜像内编译失败? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qconf.