Hi,
Every time I create a database, memsql creates very large partitions log files taking a significant amount of disk space. Why are these files so large if there’s no data in them?
Example in a two-leaf cluster with default_partitions_per_leaf = 8.
I create an empty database "CREATE DATABASE ‘sam_test’;
The following is generated in each of the leaves:
-rw------- 1 celer-uat celer-uat 268435456 Jul 16 08:52 sam_test_11_log_v1_0
-rw------- 1 celer-uat celer-uat 268435456 Jul 16 08:51 sam_test_11_log_v1_65536
-rw------- 1 celer-uat celer-uat 268435456 Jul 16 08:52 sam_test_13_log_v1_0
-rw------- 1 celer-uat celer-uat 268435456 Jul 16 08:51 sam_test_13_log_v1_65536
-rw------- 1 celer-uat celer-uat 268435456 Jul 16 08:52 sam_test_15_log_v1_0
-rw------- 1 celer-uat celer-uat 268435456 Jul 16 08:51 sam_test_15_log_v1_65536
-rw------- 1 celer-uat celer-uat 268435456 Jul 16 08:52 sam_test_1_log_v1_0
-rw------- 1 celer-uat celer-uat 268435456 Jul 16 08:51 sam_test_1_log_v1_65536
-rw------- 1 celer-uat celer-uat 268435456 Jul 16 08:52 sam_test_3_log_v1_0
-rw------- 1 celer-uat celer-uat 268435456 Jul 16 08:51 sam_test_3_log_v1_65536
-rw------- 1 celer-uat celer-uat 268435456 Jul 16 08:52 sam_test_5_log_v1_0
-rw------- 1 celer-uat celer-uat 268435456 Jul 16 08:51 sam_test_5_log_v1_65536
-rw------- 1 celer-uat celer-uat 268435456 Jul 16 08:52 sam_test_7_log_v1_0
-rw------- 1 celer-uat celer-uat 268435456 Jul 16 08:51 sam_test_7_log_v1_65536
-rw------- 1 celer-uat celer-uat 268435456 Jul 16 08:52 sam_test_9_log_v1_0
-rw------- 1 celer-uat celer-uat 268435456 Jul 16 08:51 sam_test_9_log_v1_65536
-rw------- 1 celer-uat celer-uat 67108864 Jul 16 08:52 sam_test_log_v1_0
-rw------- 1 celer-uat celer-uat 67108864 Jul 16 08:52 sam_test_log_v1_16384
That adds up to about 8.5GB worth of disk space for an empty database which is not scalable.
I’m running 7.1.2.
Thanks,
Sam.