On 15 Jan 2020, at 9:00, Patrick Mézard wrote:
Hello,
I have a devpi server where we have recently deleted a lot of old package versions, using devpi-client. The data directory now looks like:
7.6 GiB [##########] /.indices 956.5 MiB [# ] .sqlite 461.4 MiB [ ] /+files
Is this expected? Is there any command to run to rebuild/purge the index?
Do you have a lot of documentation uploaded? If not, then this seems way too big. Could it be that it is still indexing? Check that first by looking at the status page, top, the log and whether the files in .indices are changing. With recent versions (web >=4 and server 5.x) you can also check the json status output for some internals with curl -H "Accept: application/json" http://.../+status What kind of files are in .indices? For me there is a toc, a writelock and some seg files of varying size for a total of ~450MB. With devpi-web 4.x there is the devpi-clear-search-index command. For older devpi-web there is the --recreate-search-index option for devpi-server. For both you need to shut down devpi-server and start it again after running the command. Regards, Florian Schulze