Skip to content

Commit

Permalink
provide example shell pipeline in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
ggilmore committed Nov 19, 2022
1 parent 76a18b6 commit 828806c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmd/zoekt-sourcegraph-indexserver/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,13 @@ func debugCmd() *ffcli.Command {
to trigger one merge operation at a time.
wget -q -O - http://localhost:6072/debug/delete?id=[REPOSITORY_ID]
delete all of the shards associated with the given repository id. You can find the id associated with a
repository via the "/debug/indexed" route.
delete all of the shards associated with the given repository id.
You can find the id associated with a repository via the "/debug/indexed" route.
If you need to delete multiple repositories at once, you can create a small shell pipeline. See the following example
(that removes the first listed repository from the ""/debug/indexed" route for inspiration):
> wget -q -O - http://localhost:6072/debug/indexed | awk '{print $1}' | tail -n +2 | head -n 1 | xargs -I {} -- wget -q -O - "http://localhost:6072/debug/delete?id={}"
wget -q -O - http://localhost:6072/debug/queue
list the repositories in the indexing queue, sorted by descending priority.
Expand Down

0 comments on commit 828806c

Please sign in to comment.