GithubHelp home page GithubHelp logo

Comments (4)

epubreader avatar epubreader commented on September 28, 2024

docker service create \ --name pika-slave \ --publish 9223:9221 \ --mount type=bind,source=/opt/pika/conf/pika.slave.conf,target=/pika/conf/pika.conf \ --mount type=bind,source=/opt/pika/db,target=/pika/db \ --mount type=bind,source=/opt/pika/dump,target=/pika/dump \ --mount type=bind,source=/opt/pika/log,target=/pika/log \ --mount type=bind,source=/opt/pika/dbsync,target=/pika/dbsync \ --network back \ --constraint 'node.labels.name==mongodb2' \ --mode global \ --restart-condition on-failure \ --with-registry-auth \ pikadb/pika:3.5.3 \

我用的是docker swarm, 然后新增slave节点时, 会全量同步, 把dbsync重命名为db 这一步, 会报错,之前的版本是没有问题的
--mount type=bind,source=/opt/epub/pika/log,target=/pika/log
--mount type=bind,source=/opt/epub/pika/dbsync,target=/pika/dbsync \

from pika.

Issues-translate-bot avatar Issues-translate-bot commented on September 28, 2024

Bot detected the issue body's language is not English, translate it automatically.


docker service create \ --name pika-slave \ --publish 9223:9221 \ --mount type=bind,source=/opt/epub/pika/conf/pika.slave.conf,target=/pika/conf/pika.conf \ --mount type=bind,source=/opt/epub/pika/db,target=/pika/db \ --mount type=bind,source=/opt/epub/pika/dump,target=/pika/dump \ --mount type=bind,source=/opt/epub/pika/log,target=/pika/log \ --mount type=bind,source=/opt/epub/pika/dbsync,target=/pika/dbsync \ --network back \ --constraint 'node.labels.name==mongodb2' \ --mode global \ --restart-condition on-failure \ --with-registry-auth \ pikadb/pika:3.5.3 \

I use docker swarm, and then when adding a slave node, it will be fully synchronized. When renaming dbsync to db, an error will be reported. There was no problem with the previous version.
--mount type=bind,source=/opt/epub/pika/log,target=/pika/log
--mount type=bind,source=/opt/epub/pika/dbsync,target=/pika/dbsync \

from pika.

cheniujh avatar cheniujh commented on September 28, 2024

补充一个误删除的内容:
image

from pika.

cheniujh avatar cheniujh commented on September 28, 2024

Bot detected the issue body's language is not English, translate it automatically.

docker service create \ --name pika-slave \ --publish 9223:9221 \ --mount type=bind,source=/opt/epub/pika/conf/pika.slave.conf,target=/pika/conf/pika.conf \ --mount type=bind,source=/opt/epub/pika/db,target=/pika/db \ --mount type=bind,source=/opt/epub/pika/dump,target=/pika/dump \ --mount type=bind,source=/opt/epub/pika/log,target=/pika/log \ --mount type=bind,source=/opt/epub/pika/dbsync,target=/pika/dbsync \ --network back \ --constraint 'node.labels.name==mongodb2' \ --mode global \ --restart-condition on-failure \ --with-registry-auth \ pikadb/pika:3.5.3 \

I use docker swarm, and then when adding a slave node, it will be fully synchronized. When renaming dbsync to db, an error will be reported. There was no problem with the previous version. --mount type=bind,source=/opt/epub/pika/log,target=/pika/log --mount type=bind,source=/opt/epub/pika/dbsync,target=/pika/dbsync \

这里将pika的各个主要目录都做了mount,挂载到了不同的文件系统,这样会带来很多麻烦,一个是你的case:不能跨越文件系统rename导致全量同步失败,二是做bgsave生成dump时,原来是同一个文件系统生成硬链接即可,这样跨越文件系统会实际发生copy。

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.