google / zoekt

Fast trigram based code search
1.69k stars 113 forks source link

provide -index_cache flag in webserver #48

Open hanwen opened 6 years ago

hanwen commented 6 years ago

the slowness on cold cache of cs.bazel.build since November is explained.

In November, I made a new VM image, with a Persistent Disk holding the repos and index shards, with syncing to a serving SSD. Unfortunately, the webserver flag still pointed to the old location, which was the Persistent Disk, and so it has been serving from networked storage all this time.

To avoid having to setup a sync cronjob correctly, move the cronjob sync-to-SSD functionality into the webserver.