GithubHelp home page GithubHelp logo

日志问题 about pika HOT 6 CLOSED

openatomfoundation avatar openatomfoundation commented on May 13, 2024
日志问题

from pika.

Comments (6)

KernelMaker avatar KernelMaker commented on May 13, 2024

这个是主从同步的binlog,不用手动删除,pika会根据配置自动删除,如果自动删除失效,可以检查一下该节点是否有挂slave,可能由于slave占的同步点比较靠前导致前面的文件都没法自动删除

from pika.

life191919 avatar life191919 commented on May 13, 2024

怎么看slave的同步点

from pika.

life191919 avatar life191919 commented on May 13, 2024

如果手动删除了,会有什么影响,主从同步会失效吗?还需要重新做一次主从吗?

from pika.

CatKang avatar CatKang commented on May 13, 2024

不可以手动删除,如果是主可能导致已有的同步线程同步失败

from pika.

life191919 avatar life191919 commented on May 13, 2024

同步失败后还能恢复吗?还是说只能重新再创建一台从了?
还有就是如何查看slave的同步点?以及如果同步点比较靠前导致前面的文件都没法自动删除的情况如何处理?

from pika.

CatKang avatar CatKang commented on May 13, 2024

1,如果由于手动删除了主的binlog导致同步失败,可以将主上之前的binlog全部都删除,所有的从重新salveof no, slaveof 来重新建立主从关系
2,在slave上执行info命令,其中binlog_offset看到的就是当前的同步点
3,正常情况下slave会在同步过程中不断的后移自己的同步点,从而master这边就可以删除较老的文件。如果一直有slave占用较早的同步点,可能是slave有异常情况发生。如果真的发生了,我们再依情况讨论吧

from pika.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.