I'm creating a Java web server on the Google App Engine to do full text search on my database. Before I can search, I have to add all my database entries to an index. I should only have to do this once because the index is stored in persistent storage. Even if GCP creates a new instance of my Java server, the index should still be there (right?).
My question is, how do I set up my program so it will only create the index once? I've tried using Warming Services, but as I understand it that will be called every time a new instance is created, so there'd be redundant calls to my index creation code