siacentral / host-manager

User-friendly desktop app for Sia hosts. Provides easy configuration, better financials, and smart alerts to make hosting simpler.
https://siacentral.com/host-manager
GNU Affero General Public License v3.0
69 stars 14 forks source link

maxcollateral configuration #51

Closed MarkoPaasila closed 3 years ago

MarkoPaasila commented 3 years ago

I don't see an option to configure maxcollateral. It seems to be the only way to limit the size (in Bytes) of a contract - which is important to me as a big contract saturates my internet connection for a month.

For some reason, if I set maxcollateral with ´siac host config maxcollateral´, it is soon changed back to the earlier value - possibly by the running host-manager. So is there a field for maxcollateral which I just haven't noticed?

n8maninger commented 3 years ago

There is not, it was pruned when the screen was redone since it's a little confusing with how it works. It's now calculated to allow a maximum of 2TB per contract based on your max duration and collateral. The plan is to simplify the base settings even further and offer an "advanced" mode for power users, I just created #52 to track it.

maxcollateral won't do much to limit your bandwidth usage, renters will just form multiple contracts with your host. If you're having bandwidth issues you should look at setting a rate limit with siac ratelimit.

Are you sure the bandwidth is coming from the host module and not syncing traffic from the gateway? There was a bug in the gateway module in v1.5.5 that caused excessive peer bandwidth usage, updating to v1.5.6 dramatically dropped my bandwidth usage

MarkoPaasila commented 3 years ago

Thanks! Does host-manager still incidentally configure maxcollateral even though it is removed from the front-end?

What I was trying to solve with maxcollateral wasn't bandwidth, but that one single big contract sets the price for a whole month, because it saturates my capacity. But yes, maxcollateral won't solve the problem as the peer can simply do the same by making many contracts.

n8maninger commented 3 years ago

It updates any time collateral is updated or if collateral is pinned