[Bug]: etcd auto compaction not enabled in Milvus's Ubuntu package #16511
Labels
kind/bug
Issues or changes related a bug
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
stale
indicates no udpates for 30 days
Is there an existing issue for this?
Environment
Current Behavior
When I insert approximately 10 million vectors over the course of 3 days, Milvus crashes with the following log statement:
Expected Behavior
When I insert approximately 10 million vectors over the course of 3 days, Milvus shouldn't crash.
Steps To Reproduce
Anything else?
The problem seems to be that etcd's
quota-size-bytes
(default=2GB) was exceeded and etcd's auto-compaction was not enabled.The issue has been reported before (#5519, #6753) and as a fix the Milvus team enabled etcd's auto compaction for Docker and Helm (#5519 (comment)).
However, it is not enabled in the Milvus standalone Ubuntu package.
On startup milvus-etcd logs:
Workaround
ExecStart
in/lib/systemd/system/milvus-etcd.service
to:ExecStart=/usr/bin/milvus-etcd --data-dir /var/lib/milvus/etcd-data --auto-compaction-retention '1000' --auto-compaction-mode 'revision' --quota-backend-bytes '4294967296'
sudo systemctl milvus stop
sudo systemctl milvus-etcd stop
sudo systemctl daemon-reload
sudo systemctl milvus start
Now milvus-etcd logs:
(Note:
1µs
is an implementation detail of etcd and apparently not a bug, see etcd-io/etcd#9337)The text was updated successfully, but these errors were encountered: