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

将Console输出改为Trace输出 #462

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

EsonXie
Copy link
Contributor

@EsonXie EsonXie commented Sep 28, 2022

由于Console输出太多东西,期望改成Trace输出方便扩展

@EsonXie
Copy link
Contributor Author

EsonXie commented Sep 28, 2022

如果可以话能改成ILogger最好。。。。。

@2881099
Copy link
Owner

2881099 commented Sep 28, 2022

这几个输出要考虑兼容.net4.0,回头我测试下。

另外,他们不是疯狂打印,一般问题不大,可能不优雅。

日志可以参考 FreeRedis,是重新开发的,预留了事件。

@EsonXie
Copy link
Contributor Author

EsonXie commented Sep 28, 2022

我之前是用的StackExchange.Redis,由于并发问题改为CSRedis,我们自身对CSRedis做了一些改造用于支持哨兵切换的情况😑
如果FreeRedis能够支持哨兵切换,并且能够让我们平滑过渡的话,我肯定会换的😁

@EsonXie
Copy link
Contributor Author

EsonXie commented Sep 28, 2022

之前哨兵的问题我们做了一些宕机测试,其实CSRedis和FreeRedis都不能很好支持。。。
所以我在外层用CSRedis订阅了哨兵节点,然后每分钟都输出了Hello的消息

@2881099
Copy link
Owner

2881099 commented Sep 28, 2022

FreeRedis 每个模式都支持的,基于 redis6.0 开发,支持更广。

@EsonXie
Copy link
Contributor Author

EsonXie commented Sep 28, 2022

各种模式倒是没问题,主要连接哨兵以后,在运行过程中出现主从切换的话,这两个都不能很好支持,特别是在Docker环境下,出现网络异常或Redis节点宕机的时候可能会导致更严重的问题
关于哨兵集群主从切换,以及可用性这些问题,我之后有时间还是想贡献到FreeRedis上的😁

@2881099
Copy link
Owner

2881099 commented Sep 28, 2022

期待,感谢贡献

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

Successfully merging this pull request may close these issues.

None yet

2 participants