-
[Support] binhex - slskd
Yeah I wasn't too worried about performance. I'm going for a just work consistently sort of deployment vs the highest performance, and I'm only using 3 connections. Which is why I ended up going for separate containers too. Just figured I'd mention it for if anyone was running out of connections on a supported service (or maybe a service with very limited connections but much less limited ports?), or really really wanted a single container solution. I mainly posted to mention the bug since it bothered me enough while I was playing around.
-
-
[Support] binhex - slskd
Hi binhex Gluetun does currently have an option to request multiple ports, for supported services. For instance ProtonVPN can have up to 5 incoming ports per connection (set VPN_PORT_FORWARDING_PORTS_COUNT=5 in gluetun). I was able to test this works on existing containers by modifying one of the portset scripts to use .ports[1] instead of .port, and had both qbittorrent and slskd sharing one gluetun container. There were a few issues however: None of the containers will natively check other ports, they all just check "port" so only try for the first one. There would need to be an option to pick the port index you want it to use, as detecting used ports automatically probably isn't reliable. If one of the containers detect a port is externally inaccessible they restart the VPN, causing all the other containers to drop out. Obviously this is correct with the assumption that there is only one port, and anyway if one port is dead the others may be too. The issue for if this was to become a supported feature is more around all the containers fighting to restart the VPN at different times causing VPN restart loops. Eventually they calmed down once they got in sync (although I was only testing 2 containers here) and it seemed to stay stable for at least the few hours it was running. A solution may just be to make the timing looser so they aren't all trying to restart as quickly, to give one restart time to finish. Ideally gluetun would centrally manage the healthcheck and connecting containers wouldn't worry about it, but they would need a way to register/deregister the ports they are using so gluetun knows which ones to check are still up. The second issue really is the kicker, and may make it not worth it to support as a feature, vs using separate containers that aren't that difficult to setup nor use much resources. The only real advantage is enabling more connections. ProtonVPN is limited to 10 connections, so you'd have to use half of them if you have 5 containers that need incoming connections, vs only a single connection with 5 incoming ports. When I was playing around with this I did run into a minor existing bug: The port check for slskd is too early. It will check if the VPN port is up before slskd has started listening to it, always triggering a unnecessary VPN restart. qbittorrent doesn't seem to check the port externally as part of its startup, instead waiting 60 seconds for the first check and so doesn't have this issue. See the logs below where I have highlighted the important lines. For slskd I modified external_verify_incoming_port in the portset script to always return 0 for the external check, so even though the log says the port is inaccessible it continues starting up and successfully listens on that port making the subsequent check succeed, proving the check is too early. slskd.log qbittorrent.log Thanks for all your work on these containers. :)
-
ZFS pool and docker
Not sure if you've got anywhere with this, came here googling and ended up figuring out a solution. Unraid sets all the parameters it uses for docker directly on the flags in the service file in /etc/rc.d/rc.docker (symlink to /usr/local/etc/rc.d/rc.docker), which is where it chooses the storage driver: The issue here is that even if you were to persist the daemon.json by putting it in /boot/config and creating a script to copy it back on boot, you'd still not be able to change the storage driver as docker does not allow you to override the flags (and won't even start at all): From what I can tell the service file is actually kept in /boot/bzfirmware, which unpacks to the /usr directory on boot. To modify the original file, you'd need to change the file within the bzfirmware archive, then update the checksum (assuming that's possible). Not great, and your changes would get overridden when updating unraid! A slightly more practical solution would be to modify the unpacked file during boot, using a script something like the below which you'd execute from /boot/config/go: # Comment out existing BACKINGFS line, and add BACKINGFS=xfs sed -i "s/^BACKINGFS=.*$/#&\nBACKINGFS=xfs/" /etc/rc.d/rc.docker Which results in this, and a happy docker: Overall not that big of a hassle, but shame unraid doesn't let you configure this yourself.
Majr
Members
-
Joined
-
Last visited