Comments (6)
这个是主从同步的binlog,不用手动删除,pika会根据配置自动删除,如果自动删除失效,可以检查一下该节点是否有挂slave,可能由于slave占的同步点比较靠前导致前面的文件都没法自动删除
from pika.
怎么看slave的同步点
from pika.
如果手动删除了,会有什么影响,主从同步会失效吗?还需要重新做一次主从吗?
from pika.
不可以手动删除,如果是主可能导致已有的同步线程同步失败
from pika.
同步失败后还能恢复吗?还是说只能重新再创建一台从了?
还有就是如何查看slave的同步点?以及如果同步点比较靠前导致前面的文件都没法自动删除的情况如何处理?
from pika.
1,如果由于手动删除了主的binlog导致同步失败,可以将主上之前的binlog全部都删除,所有的从重新salveof no, slaveof 来重新建立主从关系
2,在slave上执行info命令,其中binlog_offset看到的就是当前的同步点
3,正常情况下slave会在同步过程中不断的后移自己的同步点,从而master这边就可以删除较老的文件。如果一直有slave占用较早的同步点,可能是slave有异常情况发生。如果真的发生了,我们再依情况讨论吧
from pika.
Related Issues (20)
- info keyspace's result is wrong HOT 2
- master和slave在进行全量同步时,master 侧的 info replication 显示的状态为 not syncing,容易让人疑惑,建议优化
- slave 节点在做主从全量同步过程中,客户端与SLAVE建立的会话未达到默认超时时间(60秒)链接就不可用了 HOT 1
- Remove the key lock of the Redis layer and optimize the lock of the DB layer
- codis-dashboard sentinel 自动选新主时,基于SLAVE的 slave_repl_offset 数据进行判断,该字段在 pika 中不存在,导致可能选出错误的新主节点 HOT 1
- DSR direct server return for codis proxy
- info replication 显示格式问题,db0 后面没有冒号,与其他参数项的格式不一致,不方便文本识别和解析
- delbackup may delete dump still in use
- tls 1.3 for codis proxy & codis fe HOT 1
- 353 bug hgetall返回值异常
- tls 1.3 for pika server
- PFADD命令抛异常
- 从库卡死 HOT 1
- 353测试,geohash抛出异常
- codis-fe Group正常,但是仍然显示OUT OF SYNC 状态
- 配置文件支持关闭wal日志 HOT 1
- 增加一个管理员命令处理线程
- 移除336 的一些没有用的线程及config中的配置信息
- support Redis stream storage just in floyd
- Pika On KubeBlocks 实现了 Pika Operator 设定的功能,需要清理老项目
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 pika.