Skip to content
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

Database slowdown over time #133

Open
gh0st42 opened this issue Mar 22, 2018 · 2 comments
Open

Database slowdown over time #133

gh0st42 opened this issue Mar 22, 2018 · 2 comments

Comments

@gh0st42
Copy link

gh0st42 commented Mar 22, 2018

We used serval to distribute sensor data, taking snapshots every 1-5 minutes. This included about 5 journals (temperature, pressure, etc) per sensor node (2 in total) and a 8MP image taken every now and then. After a few days serval became almost unusable.
Listing all rhizome entries takes quite long (rest and cmdline) and inserting new content is almost impossible (all done via rest but one insert takes over a minute).
One node had around 5000 entries and the other around 2800. Restarting serval-dna or calling rhizome clean does not really make it better. We still had plenty diskspace and inodes left on the devices...

I'm not sure whether the problem is the growing journals or the large number of images. Since you guys have more long term experience and heavily use meshms (which are just fancy journals) the bug is probably more related to the total number of files.

@lakeman
Copy link
Member

lakeman commented Mar 22, 2018

Turning on debug.profiling and repeating each of the restful requests might help to pin down where the time is going.

@lakeman
Copy link
Member

lakeman commented Apr 9, 2018

We should probably create subfolders in the rhizome blob directory to limit the size of any single folder.

@lakeman lakeman closed this as completed Apr 9, 2018
@lakeman lakeman reopened this Apr 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants