Slackbot
01/05/2023, 8:28 AMSumit Khaitan
01/05/2023, 8:30 AMbash-5.1$ df -h
Filesystem Size Used Available Use% Mounted on
overlay 48.3G 34.3G 14.0G 71% /
tmpfs 64.0M 0 64.0M 0% /dev
tmpfs 31.4G 0 31.4G 0% /sys/fs/cgroup
shm 64.0M 0 64.0M 0% /dev/shm
/dev/sda1 48.3G 34.3G 14.0G 71% /etc/hosts
/dev/sda1 48.3G 34.3G 14.0G 71% /dev/termination-log
/dev/sda1 48.3G 34.3G 14.0G 71% /etc/hostname
/dev/sda1 48.3G 34.3G 14.0G 71% /etc/resolv.conf
/dev/sda1 48.3G 34.3G 14.0G 71% /opt/druid/var
/dev/sdc 3.9G 6.6M 3.8G 0% /opt/druid/var/druid
tmpfs 56.6G 12.0K 56.6G 0% /var/run/secrets/kubernetes.io/serviceaccount
tmpfs 31.4G 0 31.4G 0% /proc/acpi
tmpfs 64.0M 0 64.0M 0% /proc/kcore
tmpfs 64.0M 0 64.0M 0% /proc/keys
tmpfs 64.0M 0 64.0M 0% /proc/timer_list
tmpfs 64.0M 0 64.0M 0% /proc/sched_debug
tmpfs 31.4G 0 31.4G 0% /proc/scsi
tmpfs 31.4G 0 31.4G 0% /sys/firmwareMaytas Monsereenusorn
01/05/2023, 8:56 AMSumit Khaitan
01/05/2023, 8:57 AMVijay Narayanan
01/05/2023, 9:34 AMLaksh Singla
01/05/2023, 10:33 AMjava.io.tmpdir. Setting the value to the disk with free space might help. Also did you run the df -h during the ingestion that throwed the error or post the failure?Sumit Khaitan
01/05/2023, 10:36 AMSumit Khaitan
01/05/2023, 10:47 AMSumit Khaitan
01/05/2023, 10:47 AMSumit Khaitan
01/05/2023, 10:50 AMjava.io.tmpdir being set in java opts of middle manager in this values.yaml. Let me set it and trySumit Khaitan
01/05/2023, 10:52 AM-<http://Djava.io|Djava.io>.tmpdir=var/tmp @Laksh Singla @Vijay NarayananVijay Narayanan
01/05/2023, 11:36 AMSumit Khaitan
01/05/2023, 11:41 AM/opt/druid/var/druid/segment-cache
bash-5.1$ cd /opt/druid/var/druid
bash-5.1$ cd segment-cache/
bash-5.1$ ls -lrth
total 0
bash-5.1$ pwd
/opt/druid/var/druid/segment-cacheVijay Narayanan
01/05/2023, 11:43 AMSumit Khaitan
01/05/2023, 12:03 PMVijay Narayanan
01/05/2023, 12:49 PMLaksh Singla
01/06/2023, 3:41 AMSumit Khaitan
01/06/2023, 4:31 AM/dev/sdc 3.9G 2.7G 1.1G 71% /opt/druid/var/druid
On checking at this path, I saw all the segments are getting downloaded on the middle manager from deep store. And eventually the disk is getting out of memory. As the disk attached to middle manager is only of 4GB
bash-5.1$ pwd
/opt/druid/var/druid/task/index_parallel_rms_logs_query_performance_kkmnpjac_2023-01-06T04:17:09.726Z/work/indexing-tmp/rms_logs_query_performance
bash-5.1$ ls -lrth
total 252K
drwxr-sr-x 3 druid druid 4.0K Jan 6 04:17 2022-12-01T01:00:00.000Z_2022-12-01T02:00:00.000Z
drwxr-sr-x 3 druid druid 4.0K Jan 6 04:17 2022-12-01T02:00:00.000Z_2022-12-01T03:00:00.000Z
drwxr-sr-x 3 druid druid 4.0K Jan 6 04:17 2022-12-01T03:00:00.000Z_2022-12-01T04:00:00.000Z
drwxr-sr-x 3 druid druid 4.0K Jan 6 04:17 2022-12-01T04:00:00.000Z_2022-12-01T05:00:00.000Z
drwxr-sr-x 3 druid druid 4.0K Jan 6 04:17 2022-12-01T05:00:00.000Z_2022-12-01T06:00:00.000Z
drwxr-sr-x 3 druid druid 4.0K Jan 6 04:17 2022-12-01T06:00:00.000Z_2022-12-01T07:00:00.000Z
drwxr-sr-x 3 druid druid 4.0K Jan 6 04:18 2022-12-01T07:00:00.000Z_2022-12-01T08:00:00.000Z
drwxr-sr-x 3 druid druid 4.0K Jan 6 04:18 2022-12-01T08:00:00.000Z_2022-12-01T09:00:00.000Z
drwxr-sr-x 3 druid druid 4.0K Jan 6 04:18 2022-12-01T09:00:00.000Z_2022-12-01T10:00:00.000Z
drwxr-sr-x 3 druid druid 4.0K Jan 6 04:18 2022-12-01T10:00:00.000Z_2022-12-01T11:00:00.000Z
[9:59 AM] Does this means middle manager has to have a disk of size ~total size of the segment ?Maytas Monsereenusorn
01/06/2023, 4:43 AMMaytas Monsereenusorn
01/06/2023, 4:43 AMVijay Narayanan
01/06/2023, 5:03 AM-Djava.io.tmpdir to some location that has more space