Hi
I have a small index of only 100 elements and suddenly it starts to generate 4GB files in /opt/couchbase/var/lib/couchbase/data/@2i/cache-idx-user_*_0.index/mainIndex/ and fill 100% mi hard disk
$ ls -lh /opt/couchbase/var/lib/couchbase/data/@2i/cache-idx-user_4986327002958805671_0.index/mainIndex
total 17G
-rwxr-x--- 1 couchbase couchbase 36 jul 30 12:57 config.json
-rwxr-x--- 1 couchbase couchbase 8,0K ago 4 08:06 header.data
drwxr-x--- 3 couchbase couchbase 4,0K ago 4 07:56 index
-rwxr-x--- 1 couchbase couchbase 4,0G ago 4 07:02 log.00000000000054.data <------ !!!!
-rwxr-x--- 1 couchbase couchbase 4,0G ago 4 06:54 log.00000000000055.data <------ !!!!
-rwxr-x--- 1 couchbase couchbase 4,0G ago 4 07:25 log.00000000000056.data <------ !!!!
-rwxr-x--- 1 couchbase couchbase 4,0G ago 4 07:56 log.00000000000057.data <------ !!!!
-rwxr-x--- 1 couchbase couchbase 1,4G ago 4 08:06 log.00000000000058.data <------ !!!!
- How is it possible to have such a large log size if I only have 100 elements in the index and there is no any activity on the server? (it is a test environment) (the disk fill at night. Nobody was in the office)
The server has less than 10% of space in use and suddenly these files start to be generated and filled to 100% in just a few minutes
-
What logs in should I look at to see whatâs going on?
-
What is the function of these log.00000000000000xx.data files?
-
In the /var/lib/couchbase/data/@2i/xxxxxxxx_index_name_xxxxxxxxx.index folder, what is the difference between /mainIndex and /docIndex?
-
After Filling the server disk, the only solution I have found is to delete these files, do a âDrop Indexâ and then do the âCreate Indexâ again (and it works without any problem for a few days until suddenly, in a few minutes the log.0000000000xx.data is generated a lot of GB).
More info:
- The index is very simple
CREATE INDEX
cache-idx-user
ONcache
(wir_id
,wir_title
,wir_date
,wir_sou_id
,wir_status
,wir_typ_id
) WHERE (type
= âuserâ) WITH { âdefer_buildâ:true }
- Other subfolder:
$ ls -lh /opt/couchbase/var/lib/couchbase/data/@2i/cache-idx-user_4986327002958805671_0.index/mainIndex/index/checkpoint.00000000000412
total 12K
-rwxr-xâ 1 couchbase couchbase 8,0K ago 4 07:56 header.data
-rwxr-xâ 1 couchbase couchbase 4,0K ago 4 07:56 log.00000000000000.data <----- small
-rwxr-xâ 1 couchbase couchbase 31 ago 4 07:56 meta.json
- â/docIndexâ of this index
$ ls -la /opt/couchbase/var/lib/couchbase/data/@2i/cache-idx-user_4986327002958805671_0.index/docIndex
total 15M
-rwxr-xâ 1 couchbase couchbase 36 jul 30 12:57 config.json
-rwxr-xâ 1 couchbase couchbase 8,0K ago 4 07:56 header.data
drwxr-xâ 3 couchbase couchbase 4,0K ago 4 07:56 index
-rwxr-xâ 1 couchbase couchbase 271M ago 4 07:56 log.00000000000000.data
$ ls -la /opt/couchbase/var/lib/couchbase/data/@2i/cache-idx-user_4986327002958805671_0.index/docIndex/index/checkpoint.00000000000416
total 12K
-rwxr-xâ 1 couchbase couchbase 8,0K ago 4 07:56 header.data
-rwxr-xâ 1 couchbase couchbase 4,0K ago 4 07:56 log.00000000000000.data
-rwxr-xâ 1 couchbase couchbase 28 ago 4 07:56 meta.json
- I have more index similar, but only hace problems with one:
$du -sh /opt/couchbase/var/lib/couchbase/data/@2i/*
82M cache-idx-posts_1107430388812631205_0.index
52M cache-IDX-PRIMARY_11659241970044229763_0.index
113M cache-idx-file_16400365949326360127_0.index
17G cache-idx-user_4986327002958805671_0.index <------------- 17 GB !!!
87M cache-idx-tags_18119205706417122373_0.index
93M cache-idx-test_6138298915443446591_0.index
72M persistent-IDX-PRIMARY_2507625354504552406_0.index
620K sessions-IDX-PRIMARY_15825472269477416696_0.index
4,4M MetadataStore
Thanks