we are running the consul 1.4.0 cluster in Kubernetes. We noticed the consul is taking automatic snapshots in /consul/data/raft/snapshots directory, is there a way to disable this auto snapshots.
we have deployed a cronjob for taking snapshots.
This version is 9 feature releases behind current. You really should start planning how to upgrade. As it is, you already have a very long list of release notes to review.
No, you cannot disable this, as this is how Consul stores its data, so it is able to be restarted without losing everything it knows.
We observed that it is frequently taking the snapshots, during that time we are seeing memory spike some times pods are getting restarted.
We have allocated 8G of memory to each pod.