Remove index from all Vespa cluster nodes

304 Views Asked by At

Is there a way to remove an index (its documents) from all the nodes of the same cluster ?

For now, I'm following this command:

$ /opt/vespa/bin/vespa-stop-services && /opt/vespa/bin/vespa-remove-index -force && /opt/vespa/bin/vespa-start-services

But it only removes the documents from the current node, and I am forced to run it on each node of the cluster.

1

There are 1 best solutions below

1
On BEST ANSWER

This is the quickest way to remove all docs, yes. Make sure to stop all nodes so nodes do not sync while doing it. There is no global purge all docs feature - it would be handy, though.

The alternative is to use visit to get all ids, then create a feed to purge the docs. It normally takes longer, but kind of easier, depending on number of nodes. Kristian, Vespa Team