[FEATURE REQUEST] Upload speed limit / schedule options.
prefislt opened this issue · 9 comments
I don't know if this possible but can you add some sort of upload speed limit and/or schedule options to config?
Because right now it's using all servers upload bandwidth, players get kicked and databases disconnects while uploading backup to Google Drive.
Hi!
Actually, the new release DriveBackupV2 v1.1.0 addresses both of these issues.
You can specify a list of dates and a time you want the server to backup at, similar to the alarm function on your smartphone.
You can also configure the priority of the backup thread. This is relative to the default, so if you do -2, it will be two less than the default.
I submitted the release for review on Bukkit last night, so it could take a few days to get approved. If you don’t want to wait, you can snag it from the releases tab of this GitHub.
Let me know if this fixes your problem,
Max
Great but how threads priority will reduce upload speed? Issue right now is that if I uploading pretty big backup files to Google Drive it's using my whole server nodes network capacity and other servers on the same node can have issues because of that.
I'm on shared hosting. It have 1 Gbps network bandwidth.
Plugin uploaded files with like +50 MB/s speed then databases started to timed out, very high ping
for players and etc. I want limit upload speed to like 10 MB/s so I'm not cause any issues to other users on the same node.
Try setting the thread priority to -4, the minimum.
Players timing out could be due to the server being overloaded, and not able to respond fast enough to the incoming requests. With a lower thread priority, the server will prioritize responding to the incoming requests over backing up.
1 Gbps is more than enough to handle responding to players on multiple servers and backing up at a fast speed simultaneously, which is why I don't think this is responsible for the issue you are having.
To use the features added in the new version, like this one, you must remove the config.yml
from your server and restart it, so it can generate a new config.yml
with the new settings. You can copy your old settings over manually.
Even if you are sharing hardware with other users, your server host should have a virtualization service in place that prevents you from using more than your fair share of bandwidth.