monero: changes
This commit is contained in:
@@ -26,6 +26,7 @@
|
|||||||
"zfs.zfs_dirty_data_max=${builtins.toString dirty_b}"
|
"zfs.zfs_dirty_data_max=${builtins.toString dirty_b}"
|
||||||
"zfs.zfs_delay_min_dirty_percent=80" # delay write throttling until 80% dirty (default 60%)
|
"zfs.zfs_delay_min_dirty_percent=80" # delay write throttling until 80% dirty (default 60%)
|
||||||
"zfs.zfs_vdev_async_write_max_active=30" # more concurrent async writes to vdevs (default 10)
|
"zfs.zfs_vdev_async_write_max_active=30" # more concurrent async writes to vdevs (default 10)
|
||||||
|
"zfs.zfs_vdev_async_read_max_active=10" # more concurrent async reads for random I/O (default 3)
|
||||||
];
|
];
|
||||||
|
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
|
|||||||
@@ -17,15 +17,18 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
dataDir = service_configs.monero.dataDir;
|
dataDir = service_configs.monero.dataDir;
|
||||||
rpc = {
|
rpc = {
|
||||||
|
address = "0.0.0.0";
|
||||||
port = service_configs.ports.monero_rpc;
|
port = service_configs.ports.monero_rpc;
|
||||||
restricted = true;
|
restricted = true;
|
||||||
};
|
};
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
p2p-bind-port=${builtins.toString service_configs.ports.monero}
|
p2p-bind-port=${builtins.toString service_configs.ports.monero}
|
||||||
|
db-sync-mode=fast:async:1000000000bytes
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = [
|
networking.firewall.allowedTCPPorts = [
|
||||||
service_configs.ports.monero
|
service_configs.ports.monero
|
||||||
|
service_configs.ports.monero_rpc
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user