-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
disk utilization of MANIFEST file increases after the restart #3666
Comments
Was able to repro the same issue with yb-ctl and 2.0.10 release. Created a few tables first (no rows in them). Initially, each tablet's size is pretty small:
Looking at one of the table directories, it showed the following: Note: See that the "total" is 28K and each file is pretty small.
Now, after a yb-ctl stop/start. Notice that the file sizes are still small, but the "total" goes up to 4.1M. And du also reports higher usage.
|
This difference upon restart is specific to the MANIFEST* file. See the difference in ls and du reported usage of the file (size of file vs. size on disk). Size of file: 66 bytes
and size on disk: 4MB
|
Using gdb on the yb-tserver restart, and setting a breakpoint on the
|
Looking a bit deeper into above stack: yugabyte-db/src/yb/rocksdb/db/version_set.cc Line 2268 in 37bb2f8
yugabyte-db/src/yb/rocksdb/util/options.cc Line 264 in 37bb2f8
I think so fixing this should be a simple matter of making preallocate size of manifest files much smaller to something like 32KB (instead of 4MB). |
Summary: Set default manifest preallocation to 64k instead of 4M Test Plan: eyeball Reviewers: kannan, bogdan Reviewed By: bogdan Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D8086
Fixed in 50aaf8d |
Hi.
I create 100 tables and than restart cluster, I see that tserver folder increase:
@kmuthukk reproduced same issue
I use docker cluster with Ubuntu 18.04 ext4 base disk and volumes mount
The text was updated successfully, but these errors were encountered: