swar / Swar-Chia-Plot-Manager
- пятница, 7 мая 2021 г. в 00:26:37
This is a Cross-Platform Plot Manager for Chia Plotting that is simple, easy-to-use, and reliable.
This is a cross-platform Chia Plot Manager that will work on the major operating systems. This is not a plotter. The purpose of this library is to manage your plotting and kick off new plots with the settings that you configure. Everyone's system is unique so customization is an important feature that was engraved into this library.
This library is simple, easy-to-use, and reliable to keep the plots generating.
This library has been tested for Windows and Linux.
This library took a lot of time and effort in order to get it before you today. Consider sponsoring or supporting the library. This is not necessary but more a kind gestures.
Please do not use GitHub issues for questions or support regarding your own personal setups. Issues should pertain to actual bugs in the code and ideas. It has been tested to work on Windows, Linux, and Mac OS by numerous people at this point. So any questions relating to tech support, configuration setup, or things pertaining to your own personal use cases should be posted at any of the links below.
python manager.py restart
command or separately you can stop and start manager again. Please note that your job counts will be reset and the temporary2 and destination directories order will be reset.manager
and view
will not be able to identify the old job. If you are changing job directories while having active plots, please change the max_plots
for the current job to 0 and make a separate job with the new directories. I do not recommend changing directories while plots are running.temporary2_destination_sync
?The installation of this library is straightforward. I have attached detailed instructions below that should help you get started.
git clone
this repo or download it.cd
into the main library folder.
cd C:\Users\Swar\Documents\Swar-Chia-Plot-Manager
python -m venv venv
venv
can be renamed to whatever you want. I prefer venv
because it's a standard.venv\Scripts\activate
. ./venv/bin/activate
or source ./venv/bin/activate
(venv)
prefix. The prefix will change depending on what you named it.pip install -r requirements.txt
config.yaml.default
and name it as config.yaml
in the same directory.chia_location
as well! This should point to your chia executable.python manager.py start
python manager.py view
The configuration of this library is unique to every end-user. The config.yaml
file is where the configuration will live.
This plot manager works based on the idea of jobs. Each job will have its own settings that you can configure and customize. No two drives are unique so this will provide flexibility for your own constraints and requirements.
This is a single variable that should contain the location of your chia executable file. This is the blockchain executable.
C:\Users\<USERNAME>\AppData\Local\chia-blockchain\app-1.1.2\resources\app.asar.unpacked\daemon\chia.exe
/usr/lib/chia-blockchain/resources/app.asar.unpacked/daemon/chia
/home/swar/chia-blockchain/venv/bin/chia
These are the config settings that will only be used by the plot manager.
check_interval
- The number of seconds to wait before checking to see if a new job should start.log_level
- Keep this on ERROR to only record when there are errors. Change this to INFO in order to see more detailed logging. Warning: INFO will write a lot of information.folder_path
- This is the folder where your log files for plots will be saved.These are the settings that will be used by the view.
check_interval
- The number of seconds to wait before updating the view.datetime_format
- The datetime format that you want displayed in the view. See here for formatting: https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codesinclude_seconds_for_phase
- This dictates whether seconds are included in the phase times.include_drive_info
- This dictates whether the drive information will be showed.include_cpu
- This dictates whether the CPU information will be showed.include_ram
- This dictates whether the RAM information will be showed.include_plot_stats
- This dictates whether the plot stats will be showed.These are different settings in order to send notifications when the plot manager starts and when a plot has been completed.
phase_line_end
- These are the settings that will be used to dictate when a phase ends in the progress bar. It is supposed to reflect the line at which the phase will end so the progress calculations can use that information with the existing log file to calculate a progress percent.phase_weight
- These are the weight to assign to each phase in the progress calculations. Typically, Phase 1 and 3 are the longest phases so they will hold more weight than the others.max_concurrent
- The maximum number of plots that your system can run. The manager will not kick off more than this number of plots total over time.These are the settings that will be used by each job. Please note you can have multiple jobs and each job should be in YAML format in order for it to be interpreted correctly. Almost all the values here will be passed into the Chia executable file.
Check for more details on the Chia CLI here: https://github.com/Chia-Network/chia-blockchain/wiki/CLI-Commands-Reference
name
- This is the name that you want to give to the job.max_plots
- This is the maximum number of jobs to make in one run of the manager. Any restarts to manager will reset this variable. It is only here to help with short term plotting.farmer_public_key
- Your farmer public key. If none is provided, it will not pass in this variable to the chia executable which results in your default keys being used. This is only needed if you have chia set up on a machine that does not have your credentials.pool_public_key
- Your pool public key. Same information as the above.temporary_directory
- Only a single directory should be passed into here. This is where the plotting will take place.temporary2_directory
- Can be a single value or a list of values. This is an optional parameter to use in case you want to use the temporary2 directory functionality of Chia plotting.destination_directory
- Can be a single value or a list of values. This is the final directory where the plot will be transferred once it is completed. If you provide a list, it will cycle through each drive one by one.size
- This refers to the k size of the plot. You would type in something like 32, 33, 34, 35... in here.bitfield
- This refers to whether you want to use bitfield or not in your plotting. Typically, you want to keep this as true.threads
- This is the number of threads that will be assigned to the plotter. Only phase 1 uses more than 1 thread.buckets
- The number of buckets to use. The default provided by Chia is 128.memory_buffer
- The amount of memory you want to allocate to the process.max_concurrent
- The maximum number of plots to have for this job at any given time.max_concurrent_with_start_early
- The maximum number of plots to have for this job at any given time including phases that started early.stagger_minutes
- The amount of minutes to wait before the next job can get kicked off. You can even set this to zero if you want your plots to get kicked off immediately when the concurrent limits allow for it.max_for_phase_1
- The maximum number of plots on phase 1 for this job.concurrency_start_early_phase
- The phase in which you want to start a plot early. It is recommended to use 4 for this field.concurrency_start_early_phase_delay
- The maximum number of seconds to wait before a new plot gets kicked off when the start early phase has been detected.temporary2_destination_sync
- This field will always submit the destination directory as the temporary2 directory. These two directories will be in sync so that they will always be submitted as the same value.