New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The minimum requirements for the server are configured #4145
Comments
|
This is quite annoying btw, since using so many memory for only about 500 connections is definitely a problem. |
|
Having the same problem on a VPS with 512MB of RAM. |
|
|
Hi @Stebalien, thank you for your answer. Is this a better option than I saw on another issue the option to Are those good options? Or those options does not contribute to keep a functional IPFS network? |
By default, your node will act as a DHT (distributed hash table) server. This means it will store and serve small bits of data to the network. This is how we distribute: IPNS records, content provider records (who has what content), peer address records (to map peer IDs to IP addresses, etc. This usually doesn't actually take up that much memory. However, constantly answering DHT queries can significantly increase CPU usage.
I assume you mean lowering the connection limit. If so, yes for memory usage (but less so for CPU usage).
This will cause your node to advertise only pinned content, not random content that you happen to have cached. Basically, your node will occasionally (1m after starting and every 12h thereafter) will submit provider records to the DHT for every piece of data you're storing. This will help other nodes find data on your machine. Impact:
So, it's up to you. However, I kind of doubt this will have much impact. You're probably better off just lowering the connection limits. |
|
Now I cannot even compile it due to OOM killer This is on DigitalOcean VPS: |
|
@Stebalien, thank you for the long answer. It helps me to understand a little bit more about IPFS. I've just set the new ConnMgr values and hope its make my daemon stop get killed by out of memory errors. Really appreciate. |
|
@Stebalien so I finally updated go-ipfs to 0.4.13, but it still consumes all memory and gets killed. Then I changed the config to (not sure what all these means): ...
"Swarm": {
"AddrFilters": null,
"ConnMgr": {
"GracePeriod": "",
"HighWater": 100,
"LowWater": 0,
"Type": "none"
},
"DisableBandwidthMetrics": false,
"DisableNatPortMap": false,
"DisableRelay": false,
"EnableRelayHop": false
},
...and ipfs daemon indeed consumes less memory. Let's see if it survives the day :) |
|
@zignig using |
|
@Kubuxu I didn't touch this parameter. Whatever, it got destroyed by OOM killer again. |
|
Ahh, right, |
|
@Kubuxu setting |
|
This is odd, I still have a lot of connections: and it's growing. I double checked the config again: "Swarm": {
"AddrFilters": null,
"ConnMgr": {
"GracePeriod": "",
"HighWater": 100,
"LowWater": 50,
"Type": "none"
}, |
|
@zinid try to keep the GracePeriod as "20s" and Type as "basic" and restart the daemon after changes. |
|
@paulogr thanks a lot, now much better. However, memory is still growing (albeit much slower). |
|
Great! I see the memory comsuption still growing too, let's see how it happens. |
|
Closing due to age. Memory usage has improved significantly and we've fixed most known memory leaks. If you're still having this issue, please open a new issue. |
|
I'm having a similar problem right now. Running a server on a VPS with two cores and 1GB of RAM + 1GB swap, process always seems to get killed when I check the next day. This was with v0.12.0. Reducing Swarm.ConnMgr.HighWater does seem to solve it... This has puzzled me for quite a while, it would be nice to make this information is more readily available to new users with small machines, if it's not easy to prevent the program to get killed |

metal-young commentedAug 15, 2017
Version information:
ipfs version --all
go-ipfs version: 0.4.10-
Repo version: 5
System version: amd64/linux
Golang version: go1.8.3
Type:
Etc
Severity:
Critical
Description:
My server configuration is 1 core, 512M memory
But when i execute
ipfs daemonThe server becomes very crowded
So, what kind of configuration should I upgrade to make the service run smoothly?
The text was updated successfully, but these errors were encountered: