Skip to content

avisi-apps/crux-google-cloud-storage

Repository files navigation

Crux Google Cloud Storage Checkpoints

Usage

If you want to quickly try it out you should follow the Official Crux installation.

Add a dependency

Make sure to first add this module as a dependency:

Clojars Project

Configure

And after that you can add a checkpointer which uses Google Cloud Storage

EDN

{:crux/index-store
 {:kv-store
  {:crux/module 'crux.rocksdb/->kv-store
   :checkpointer {:crux/module 'crux.checkpoint/->checkpointer
                  :store {:crux/module 'avisi-apps.crux.google-cloud-storage.checkpoint/->cp-store
                          :storage-options {:crux/module 'avisi-apps.crux.google-cloud-storage.checkpoint/->storage-options
                                            :project "<your-project>"}
                          :bucket "<your-bucket>"}
                  :approx-frequency (Duration/ofHours 6)}}}
 }

For more information about configuring Checkpoints see: https://opencrux.com/reference/checkpointing.html

Developer

Releasing

First make sure the pom is up-to-date run

$ clojure -Spom

Edit the pom to have the wanted version and commit these changes. Create a tag for the version for example:

$ git tag <your-version>
$ git publish origin <your-version>

Make sure you have everything setup to release to clojars by checking these instructions. After this is al done you can release by running:

$ mvn deploy

About

Adds support for checkpointing crux index to google-cloud-storage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published