Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

想问一下是否支持通过远程连接redis分析内存呢? #41

Closed
wellslai opened this issue Aug 28, 2024 · 5 comments
Closed

想问一下是否支持通过远程连接redis分析内存呢? #41

wellslai opened this issue Aug 28, 2024 · 5 comments

Comments

@wellslai
Copy link

wellslai commented Aug 28, 2024

如题,感谢楼主的代码付出,没有的话就自己包装啦

@HDT3213
Copy link
Owner

HDT3213 commented Aug 28, 2024

现在还不支持。你是无法登录 redis 部署的服务器拿到 rdb 文件吗?

@wellslai
Copy link
Author

主要是线上有两千多套redis,想平台化操作 如果能远程分析,这样就可以把程序放在一台机器上分析了

@HDT3213
Copy link
Owner

HDT3213 commented Aug 28, 2024

emm,比较容易实现的方案是在脚本里写个 scp 命令把 rdb 拷贝过来。

另外一种麻烦的做法是在分析的机器上起一个 redis-server,通过 slaveof 命令设为从库从而获得 rdb 文件,不过这种做法会比较费时间

@HDT3213
Copy link
Owner

HDT3213 commented Aug 28, 2024

我这里倒是有一套模拟 redis 从库的代码,这个要接起来就更费时间了

@wellslai
Copy link
Author

我这里倒是有一套模拟 redis 从库的代码,这个要接起来就更费时间了

哦 好吧 这个我自己包装下好了 感谢感谢

@HDT3213 HDT3213 closed this as completed Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants