-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathecosystem.config.tmpl.js
34 lines (34 loc) · 1.47 KB
/
ecosystem.config.tmpl.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// DO NOT EDIT THIS FILE DIRECTLY
// This file is a template for the ecosystem.config.js file that should be created in the same directory.
// Replace the placeholders with your own values and save it as ecosystem.config.js.
// The ecosystem.config.js file is used by PM2 to manage the processes.
// To start the miner process, run `pm2 start ecosystem.config.js --only miner`.
// To start the validator process, run `pm2 start ecosystem.config.js --only validator`.
module.exports = {
apps: [
{
name: "miner",
script: "miner.py",
interpreter: "python3", // replace with "python3" if you don't use a virtual environment
cwd: "neurons",
kill_timeout: 3000, // just to allow the miner to clean up before being killed
args: [
"--netuid 2",
"--wallet.name {your_miner_key_name}", // replace with your miner key name
"--wallet.hotkey {your_miner_hotkey_name}", // replace with your miner hotkey name
].join(" "),
},
{
name: "validator",
script: "validator.py",
interpreter: "python3", // replace with "python3" if you don't use a virtual environment
cwd: "neurons",
kill_timeout: 3000, // just to allow the miner to clean up before being killed
args: [
"--netuid 2",
"--wallet.name {your_validator_key_name}", // replace with your validator key name
"--wallet.hotkey {your_validator_hotkey_name}", // replace with your validator hotkey name
].join(" "),
},
],
};