如果在cassandra.yaml中启用了auto_snapshot,这些快照将在什么时候被删除
If auto_snapshot is enabled in cassandra.yaml, when these snapshots will be deleted
如果我们在 cassandra.yaml 中设置 auto_snapshot: true
,然后删除一些 table,那么将创建特定 table 的快照,对吗?那么这些快照什么时候会被删除呢?我们需要通过 运行 脚本手动删除它们吗?或者是否有一个设置可以让我在一段时间后自动删除它?
so when these snapshots will be deleted?
自动?从来没有。
Do we need to delete them manually by running scripts?
是的。这可能是一个长期问题,因此最好让脚本 运行 处理这个问题。事实上,DataStax docs have a recommendation on this:
When taking a snapshot, previous snapshot files are not automatically deleted. You should remove old snapshots that are no longer needed.
The nodetool clearsnapshot command removes all existing snapshot files from the snapshot directory of each keyspace. You should make it part of your back-up process to clear old snapshots before taking a new one.
如果我们在 cassandra.yaml 中设置 auto_snapshot: true
,然后删除一些 table,那么将创建特定 table 的快照,对吗?那么这些快照什么时候会被删除呢?我们需要通过 运行 脚本手动删除它们吗?或者是否有一个设置可以让我在一段时间后自动删除它?
so when these snapshots will be deleted?
自动?从来没有。
Do we need to delete them manually by running scripts?
是的。这可能是一个长期问题,因此最好让脚本 运行 处理这个问题。事实上,DataStax docs have a recommendation on this:
When taking a snapshot, previous snapshot files are not automatically deleted. You should remove old snapshots that are no longer needed.
The nodetool clearsnapshot command removes all existing snapshot files from the snapshot directory of each keyspace. You should make it part of your back-up process to clear old snapshots before taking a new one.