Troubleshooting High CPU and Memory Usage in Zinc Service
TLDR Zygimantas experienced high CPU and memory usage in zinc service while querying large datasets. Hengfei offered suggestions to optimize and test for local disk and S3 usage. Gaby and Prabhat discussed SIMD tag performance.




May 19, 2023 (1 week ago)
Zygimantas
08:19 AMHengfei
08:20 AMHengfei
08:20 AMHengfei
08:21 AMZygimantas
08:21 AMHengfei
08:21 AMHengfei
08:22 AMZygimantas
08:22 AMZygimantas
08:22 AMto
2023-05-19T11:22:25:08+03:00
Hengfei
08:22 AMZygimantas
08:23 AMHengfei
08:23 AMHengfei
08:23 AMZygimantas
08:23 AMHengfei
08:24 AMHengfei
08:25 AMZygimantas
08:25 AMZygimantas
08:25 AMZygimantas
08:26 AM
Hengfei
08:26 AMZygimantas
08:27 AMRAM 64 GB DDR4
Disk:2 x 512 GB NVMe S
Zygimantas
08:27 AMHengfei
08:28 AMCompressed Size 38,210 MB
Zygimantas
08:31 AMHengfei
08:33 AMZO_MEMORY_CACHE_MAX_SIZE=20480
set the memory cache limit to 20GB, and then query all data again, to see if it can work.
Zygimantas
08:35 AMHengfei
08:36 AMZygimantas
09:21 AMHengfei
09:22 AMZygimantas
09:25 AMHengfei
09:26 AMZygimantas
09:51 AMZygimantas
09:52 AMZygimantas
10:01 AMZygimantas
10:03 AMHengfei
10:04 AMset
ZO_MEMORY_CACHE_ENABLED=false
or, set a small size:
ZO_MEMORY_CACHE_MAX_SIZE=10240
Hengfei
10:05 AMZygimantas
10:09 AMZygimantas
10:09 AMHengfei
10:09 AMZygimantas
10:09 AMHengfei
10:11 AMor in the server side, you also should see some error.
Zygimantas
10:12 AMHengfei
10:13 AMHengfei
10:14 AMZygimantas
10:17 AMHengfei
10:19 AMHengfei
10:20 AMZygimantas
10:22 AMHengfei
10:24 AMHengfei
10:25 AMHengfei
10:25 AMHengfei
10:38 AM
Gaby
11:11 AMHengfei
11:11 AMHengfei
11:12 AMZygimantas
11:17 AMHengfei
11:18 AM
Gaby
11:22 AMHengfei
11:23 AMGaby
11:26 AMHengfei
11:29 AMAVX512
is better.
Hengfei
11:29 AMneon
Gaby
11:32 AM
Gaby
11:32 AMPrabhat
01:29 PMPrabhat
01:40 PMGaby
02:08 PMZincObserve
Similar Threads
Improving CPU Utilization During Bulk Ingestion in Zinc
Ayush experiences high CPU usage during bulk ingestion in Zinc and seeks optimization. Hengfei recommends adjusting the flush WAL to index interval. Ayush doesn't see significant improvement, requests sync API, but none is available.
ZO Kubernetes Issues: Query Log Error and Adding Users
Sa had issues with querying logs in ZO on Kubernetes and creating users. Hengfei provided solutions for both problems, including updating with a dev version and setting memory cache values.


Vector Crashes with Timeouts during ZO Ingestion
Gaby experienced Vector crashes and timeouts during ZO ingestion. Prabhat suggested disabling alerts, and Gaby found better performance without alerts and by adjusting batch and buffer settings.

Integrating ZincObserver and Resolving Log Issues
sparrow faced issues with ZincObserver integration, log filtering, and missing logs. Ashish and Hengfei provided solutions, including using str_match and an updated image. A future release will provide more error responses for ingestion.

Elasticsearch vs Zinc for 40TB Dataset
Josh asks if zinc works for a 40TB dataset. Prabhat replies that zinc is not suitable due to single node limitation but suggests using zinc-observe for petabyte scale data.