-
Notifications
You must be signed in to change notification settings - Fork 63
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
Add MySQL / MariaDB / MongoDB option #157
Comments
Enabled AOF (google redis persistance) which causes data to persist across reboots. Turns out the RDB just starts at low memory (< 5MB) and as shares are submitted, the memory fills up -- this is a security issue, DoS can be achieved by mining enough shares to fill memory. This is bad design from the beginning, to stuff everything into the memory which most people are limited. Memory has some limit, and thus we should not be using Redis Memory Cache in this way. Proper database is severely needed. |
Data Sample:
Judging by the amount of, and structure of the table and the data, NOMP should have used a proper database from the beginning. All this share data will eat up limited system memory in no time. I am just learning NodeJS, but I will look into this for v1.1.4 if not yet completed by someone else. I have a PHP & MySQL background, this should help. Only need to learn how to access MySQL from NodeJS (Google will help) Adding MySQL and doing a performance/efficiency audit is recommended as others have reported performance issues and this is likely to be the cause. This is another feature which I will eventually push to NOMP/BootNOMP repos for all to use :) |
moved to #30 |
I run NOMP on a VPS which has limited memory, and has SWAP mounted to /dev/null
Either init.js or Redis is causing memory to be full.
Can we add in either MySQL / MariaDB / MongoDB option please? It is not good to only have Redis because it is a cache program, NOT a database.
Also there are problems with saving data for reboot. "redis-cli save" does not seem to work. It may be with the way the server just kills the redis process, I will look into it further and post back here.
Easiest fix is to enable more DB options.
Duplicates:
https://github.com/foxer666/node-open-mining-portal/issues/150
zone117x/node-open-mining-portal#644
#140
Thanks
The text was updated successfully, but these errors were encountered: