Giter Site home page Giter Site logo

Comments (7)

altendky avatar altendky commented on July 18, 2024

6 and 4 are weird numbers vs. 1 and 0. But, note that the index: parameter belongs directly in archiving: not archiving: env:. But, since you didn't share your config as requested in the template, I just have to guess at this being the problem.

from plotman.

jayhohoho2019 avatar jayhohoho2019 commented on July 18, 2024

Configs from both machines copied below. So it looks like the index is in the right place. Note I never noticed this issue prior to the upgrade to v0.5. As to the index values, I thought as long as they are different that's Ok. Could you confirm? My eventual setup will have multiple plotters (6 at least) using rsyncd mode to a file server which is running local_rsync. Each will have a unique index. This setup is supposed to be supported, correct?

archiving:
  index: 4
  target: local_rsync
  env:
    command: rsync
    site_root: /mnt/farm
archiving:
  index: 6
  target: rsyncd
  env:
    site_root: /mnt/farm
   ...

from plotman.

altendky avatar altendky commented on July 18, 2024

It looks like it presently just saturates based on the length of the list of drives with available space.

index = min(arch_cfg.index, len(available) - 1)

So if you have three archive drives with free space and indexes four and six, both will end up archiving the the third drive. I think perhaps that should change to a modulus or something, maybe. But even then if you pick two arbitrary numbers they might end up referencing the same disk.

How many free disks do you have? Starting with screenshots and full configuration files can help avoid the need for back and forth on questions like this.

from plotman.

jayhohoho2019 avatar jayhohoho2019 commented on July 18, 2024

I see. My free disk count changes over time when some are filled, and eventually unmounted and moved (and replaced by new free disks). When this issue happened, there were only 2 HDs that had free space under site_root. So it looks like both ended up getting an index value of 1.

from plotman.

jayhohoho2019 avatar jayhohoho2019 commented on July 18, 2024

I'll change the index values to 0 and 1 for now. That makes sense. When number of plotters goes up I'll increment the index accordingly.

from plotman.

altendky avatar altendky commented on July 18, 2024

If I switch it to modulus rather than limit then you would be able to just use 0, 1, 2, 3, ... indexes and still get the best spread possible since the actual disks used would be 0, 1, 0, 1, ... instead of the present 0, 1, 1, 1, ....

See the change to modulus in #855.

from plotman.

jayhohoho2019 avatar jayhohoho2019 commented on July 18, 2024

from plotman.

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.