Skip to content

Commit a4621ff

Browse files
authored
Merge pull request #584 from swar/development
v.0.1.0
2 parents d5b25b1 + e0d9ad4 commit a4621ff

21 files changed

+874
-143
lines changed

README.RU.md

Lines changed: 80 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#### Plot Manager для засева Chia: https://www.chia.net/
44
[English](README.md) / [Русский](README.RU.md)
55

6-
![The view of the manager](https://i.imgur.com/SmMDD0Q.png "View")
6+
![The view of the manager](https://i.imgur.com/hIhjXt0.png "View")
77

88
##### Development Version: v0.0.1
99

@@ -63,7 +63,51 @@
6363
* Пожалуйста, перешлите этот вопрос в Keybase или на вкладку Discussion.
6464

6565

66-
## Установка
66+
## All Commands [Нужен перевод]
67+
68+
##### Example Usage of Commands
69+
```text
70+
> python3 manager.py start
71+
72+
> python3 manager.py restart
73+
74+
> python3 manager.py stop
75+
76+
> python3 manager.py view
77+
78+
> python3 manager.py status
79+
80+
> python3 manager.py analyze_logs
81+
```
82+
83+
### start
84+
85+
This command will start the manager in the background. Once you start it, it will always be running unless all jobs have had their `max_plots` completed or there is an error. Errors will be logged in a file created `debug.log`
86+
87+
### stop
88+
89+
This command will terminate the manager in the background. It does not stop running plots, it will only stop new plots from getting created.
90+
91+
### restart
92+
93+
This command will run start and stop sequentially.
94+
95+
### view
96+
97+
This command will show the view that you can use to keep track of your running plots. This will get updated every X seconds defined by your `config.yaml`.
98+
99+
### status
100+
101+
This command will a single snapshot of the view. It will not loop.
102+
103+
### analyze_logs
104+
105+
This command will analyze all completed plot logs in your log folder and calculate the proper weights and line ends for your computer's configuration. Just populate the returned values under the `progress` section in your `config.yaml`. This only impacts the progress bar.
106+
107+
108+
## Установка [Нужен перевод]
109+
110+
#### NOTE: If `python` does not work, please try `python3`.
67111

68112
Установка этой библиотеки проста. Ниже я приложил подробные инструкции, которые помогут вам начать работу.
69113

@@ -77,8 +121,10 @@
77121
2. Активация виртуальной среды. Это обязательно делать *каждый раз* открывая новое окно.
78122
* Пример Windows: `venv\Scripts\activate`
79123
* Пример Linux: `. ./venv/bin/activate` или `source ./venv/bin/activate`
124+
* Пример Mac OS: `/Applications/Chia.app/Contents/Resources/app.asar.unpacked/daemon/chia`
80125
3. Убедитесь что появился префикс `(venv)` в подтверждение активации среды. Префикс будет меняться в зависимости от того, как вы её назвали.
81126
5. Установите необходимые модули: `pip install -r requirements.txt`
127+
* If you plan on using Notifications or Prometheus then run the following to install the required modules: `pip install -r requirements-notification.txt`
82128
6. Скопируйте `config.yaml.default` и переименуйте в `config.yaml` в той же директории.
83129
7. Отредактируйте и настройте config.yaml на ваши персональные установки. Ниже приведена дополнительная информация по этому вопросу.
84130
* Вам также нужно будет добавить параметр `chia_location`! Который должен указывать на ваш исполняемый файл chia.
@@ -128,15 +174,31 @@ Plot manager работает на основе идеи заданий. Каж
128174

129175
Различные настройки уведомлений при запуске Plot Manager'а и когда новое поле готово.
130176

177+
### instrumentation [Нужен перевод]
178+
179+
Settings for enabling Prometheus to gather metrics.
180+
181+
* `prometheus_enabled` - If enabled, metrics will be gathered and an HTTP server will start up to expose the metrics for Prometheus.
182+
* `prometheus_port` - HTTP server port.
183+
184+
List of Metrics Gathered
185+
186+
- **chia_running_plots**: A [Gauge](https://prometheus.io/docs/concepts/metric_types/#gauge) to see how many plots are currently being created.
187+
- **chia_completed_plots**: A [Counter](https://prometheus.io/docs/concepts/metric_types/#counter) for completed plots.
188+
131189
### progress
132190

133191
* `phase_line_end` - параметр, который будет использоваться для определения того, когда заканчивается фаза. Предполагается, что этот параметр указывает на порядковый номер строки, на которой завершится фаза. Параметр используется механизмом вычисления прогресса вместе с существующим файлом журнала для вычисления процента прогресса.
134192
* `phase_weight` - вес, который следует присвоить каждой фазе в расчетах хода выполнения. Как правило, фазы 1 и 3 являются самыми длинными фазами, поэтому они будут иметь больший вес, чем другие.
135193

136-
### global
194+
### global [Нужен перевод]
137195
* `max_concurrent` - Максимальное количество полей, которые может засеять ваша система. Менеджер не будет паралелльно запускать больше, чем это количество участков на протяжении всего времени.
196+
* `max_for_phase_1` - The maximum number of plots that your system can run in phase 1.
197+
* `minimum_minutes_between_jobs` - The minimum number of minutes before starting a new plotting job, this prevents multiple jobs from starting at the exact same time. This will alleviate congestion on destination drive. Set to 0 to disable.
198+
199+
### job [Нужен перевод]
138200

139-
### job
201+
Each job must have unique temporary directories.
140202

141203
Настройки, которые будут использоваться каждым заданием. Обратите внимание, что у вас может быть несколько заданий, и каждое задание должно быть в формате YAML, чтобы оно было правильно интерпретировано. Почти все значения здесь будут переданы в исполняемый файл Chia.
142204

@@ -146,7 +208,7 @@ Plot manager работает на основе идеи заданий. Каж
146208
* `max_plots` - Максимальное количество заданий, выполняемых за один запуск менеджера. При любом перезапуске диспетчера эта переменная будет сброшена. Он здесь только для того, чтобы помочь в краткосрочном планировании засева.
147209
* [ОПЦИЯ]`farmer_public_key` - Ваш публичный ключ фермера. Если не указан, менеджер не будет передавать эту переменную исполняемому файлу chia, что приведет к использованию ваших ключей по умолчанию. Этот параметр необходим только в том случае, если на компьютере нет ваших учетных данных chia.
148210
* [ОПЦИЯ]`pool_public_key` - Ваш публичный ключ пула. Аналогично как и выше.
149-
* `temporary_directory` - Временное место для засева. Можно указать только одну папку. Обычно размещается на SSD диске.
211+
* `temporary_directory` - Временное место для засева. Может иметь одно или несколько значений. Обычно размещается на SSD диске. These directories must be unique from one another.
150212
* [ОПЦИЯ]`temporary2_directory` - Может иметь одно или несколько значений. Это необязательный параметр для использования второго временного каталога засева полей Chia.
151213
* `destination_directory` - Может иметь одно или несколько значений. Указывает на финальную директорию куда будет помещено готовое поле. Если вы укажете несколько, готовые поля будут размещаться по одному на каждый следующий диск поочереди.
152214
* `size` - соответствует размеру поля (сложности k). Здесь вам следует указывать например 32, 33, 34, 35 и т.д.
@@ -156,11 +218,24 @@ Plot manager работает на основе идеи заданий. Каж
156218
* `memory_buffer` - Объем памяти, который вы хотите выделить задаче.
157219
* `max_concurrent` - Максимальное количество участков для этой задачи на всё время.
158220
* `max_concurrent_with_start_early` - Максимальное количество участков для этой задачи в любой момент времени, включая фазы, которые начались раньше.
221+
* `initial_delay_minutes` - This is the initial delay that is used when initiate the first job. It is only ever considered once. If you restart manager, it will still adhere to this value.
159222
* `stagger_minutes` - Количество минут ожидания перед запуском следующего задания. Вы можете установить это значение равным нулю, если хотите, чтобы ваши засевы запускались немедленно, когда это позволяют одновременные ограничения
160223
* `max_for_phase_1` - Максимальное число засевов в фазе 1 для этой задачи.
161224
* `concurrency_start_early_phase` - Фаза, в которой вы хотите начать засеивание заранее. Рекомендуется использовать 4.
162225
* `concurrency_start_early_phase_delay` - Максимальное количество минут ожидания до запуска нового участка при обнаружении ранней фазы запуска.
163226
* `temporary2_destination_sync` - Представлять каталог назначения как каталог второй временный каталог. Эти два каталога будут синхронизированы, так что они всегда будут представлены как одно и то же значение.
227+
* `exclude_final_directory` - Whether to skip adding `destination_directory` to harvester for farming. This is a Chia feature.
228+
* `skip_full_destinations` - When this is enabled it will calculate the sizes of all running plots and the future plot to determine if there is enough space left on the drive to start a job. If there is not, it will skip the destination and move onto the next one. Once all are full, it will disable the job.
229+
* `unix_process_priority` - UNIX Only. This is the priority that plots will be given when they are spawned. UNIX values must be between -20 and 19. The higher the value, the lower the priority of the process.
230+
* `windows_process_priority` - Windows Only. This is the priority that plots will be given when they are spawned. Windows values vary and should be set to one of the following values:
231+
* 16384 `BELOW_NORMAL_PRIORITY_CLASS`
232+
* 32 `NORMAL_PRIORITY_CLASS`
233+
* 32768 `ABOVE_NORMAL_PRIORITY_CLASS`
234+
* 128 `HIGH_PRIORITY_CLASS`
235+
* 256 `REALTIME_PRIORITY_CLASS`
236+
* `enable_cpu_affinity` - Enable or disable cpu affinity for plot processes. Systems that plot and harvest may see improved harvester or node performance when excluding one or two threads for plotting process.
237+
* `cpu_affinity` - List of cpu (or threads) to allocate for plot processes. The default example assumes you have a hyper-threaded 4 core CPU (8 logical cores). This config will restrict plot processes to use logical cores 0-5, leaving logical cores 6 and 7 for other processes (6 restricted, 2 free).
238+
164239

165240
### Перевод на Русский
166241
Оригинальный текст на Английском языке Вы можете найти по адресу [https://github.com/swar/Swar-Chia-Plot-Manager](https://github.com/swar/Swar-Chia-Plot-Manager)

0 commit comments

Comments
 (0)