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
Rethinkdb reads at 40K records per second #6765
Comments
There's not really enough information to be able to help out with that, but I would recommend putting an awaitable sleep call in whatever you have in your javascript looping over data from rethinkdb. Take a look at this? https://stackoverflow.com/questions/951021/what-is-the-javascript-version-of-sleep |
Hi @traverseda , Thanks again. |
Well if the memory is being used by rethinkdb it can't really be a memory leak in your program. My guess would be rethinkdb is caching your data, not so much leaking memory. Take a look here. If you still get rethinkdb using 90% memory after adjusting the cache size, there's probably a rethinkdb issue. Make sure you're using it on a system with at least 1GB of ram though. Rethinkdb takes advantage of memory for performance reasons, so the more you give it the happier it will be. It will want to use as much ram as it can in order to increase performance. |
You should also explain how you solved the CPU issue, for the sake of anyone who might be reading this in the future. |
That could be a memory leak -- RethinkDB has exhibited that. |
Hi @traverseda , Hi @srh , |
It's very hard to help you if you don't post any more specifics. How big is the database? How many queries are running there? How many reads/updates/writes do you do per second? How fast is the SSD? RAM, CPU? Is your app and database sharing the same server? It's likely this isn't a memory leak, but a low-spec server doing hard durability writes with a slow SSD. Also, RethinkDB performance degrades significantly on larger tables, and the disk bytes written per document increase as the table grows. |
Hi,
I'm stuck in a problem that is, when my rethink db starts reading data, it jumps to the over 40K records per second but even after lowering sails (I'm using sails js application) it keeps it's position (40K records read per second) and keeps CPU usage high (160%)
Please help me if you've any solution for this.
Thanks
The text was updated successfully, but these errors were encountered: