Giter Site home page Giter Site logo

Comments (13)

altendky avatar altendky commented on August 17, 2024

It is a thing that has been discussed but I can't say I've got any schedule for implementing it.

from plotman.

jayhohoho2019 avatar jayhohoho2019 commented on August 17, 2024

Would it be possible to run two instances of plotman archive each with its own config.yaml, and a slightly different target definition?

from plotman.

altendky avatar altendky commented on August 17, 2024

Yes, sorry I didn't think more to mention that. It detects based on the site root so if you just mount to two different directories that would cut it. I don't think we actually have a configuration path override though... Definitely a missing feature. I should also have mentioned https://github.com/rjsears/chia_plot_manager. The author uses plotman to plot and their own tooling to do "higher end" archiving (plus whatever other features it has).

from plotman.

jayhohoho2019 avatar jayhohoho2019 commented on August 17, 2024

Thanks for the info. I just need to double the plotman archive throughput at this point so will take a look at the chia plot manager later. I am able to run two instances of plotman archive now each working off a different tmp dir (dst drive), and to a different site root.

from plotman.

jayhohoho2019 avatar jayhohoho2019 commented on August 17, 2024

Yes it'll be more convenient to allow config file override.

from plotman.

jayhohoho2019 avatar jayhohoho2019 commented on August 17, 2024

Actually I think there is some issue there. When 1 instance is running rsync, the other instance doesn't start rsync. But perhaps since I changed the archive sleep time to 10s, each instance from time to time starts rsync around the same minute. I recall the archive.py code is actually checking for the transfer script name and argument list. Any suggestions?

from plotman.

altendky avatar altendky commented on August 17, 2024

plotman does check for the site_root or URL to be in the options of existing rsync processes. Part of the suggestion was to have the different drives under a different site_root so they wouldn't detect rsync processes from the other plotman archiving instance.

To be clear, yes, we are talking about an annoying hacky way to get to what you want (sort of). I'm not suggesting this is a good way for plotman to work.

from plotman.

jayhohoho2019 avatar jayhohoho2019 commented on August 17, 2024

That's exactly how I set this up. Two config files with different site_roots (and different buffer drive paths, and different log directories). The inconvenience is I had to copy the the desired config file to the only location plotman is looking before starting that plotman instance, but the real problem is, it seems, plotman still detects the rsync process run by the other instance, most of the time. This test seems to only fail when the other rsync is started within the same minute. Therefore, I either only see 1 rsync running (most of the time), or see 2 rsync processes that are started at the same hour and minute. Is the code checking for the command_name (rsync in both instances) AND site_root (different by 1 character in both instances)?

So with this setup and the problem, I have increased my archive throughput but by nowhere close to doubling it. The buffer drive Use% is still growing, although at a much slower rate than when only 1 instance was running.

from plotman.

altendky avatar altendky commented on August 17, 2024

if proc.name() == proc_name:
args = proc.cmdline()
for arg in args:
if arg.startswith(dest):
jobs.append(proc.pid)

What are the actual site roots? Is one just the other one plus a character? Perhaps just share both complete config config files.

from plotman.

jayhohoho2019 avatar jayhohoho2019 commented on August 17, 2024

Yes. The second site_root is first $site_root}1. So it's getting a partial match by using startwith I suppose.

from plotman.

jayhohoho2019 avatar jayhohoho2019 commented on August 17, 2024

Is there a function that does exact match? Or I can change site_root to something like appending 2 to it I suppose.

from plotman.

altendky avatar altendky commented on August 17, 2024

Yeah, for now, making it so that neither starts with the other seems best. I'm sure the code could change as well.

from plotman.

jayhohoho2019 avatar jayhohoho2019 commented on August 17, 2024

Ok. So after naming 2 site_roots neither of which starting with the other, both plotman archive instances are firing up 1 rsync regardless of the other instance. To summarize I guess a few things are good to have:

  1. allow config file override
  2. make archive mode polling period configurable, and
  3. make string match exact in the test for transfer script dest

FYI I'm using plotman archive only and it's been working well.

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.