-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make boltdb shipper singleton and some other minor refactoring #1995
make boltdb shipper singleton and some other minor refactoring #1995
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@sandeepsukhani Great work on shipper . Sorry to comment on Merged request. May I ask if my understanding is correct , that with I am trying to store chunks and Index in Azure Blob as a single object store for indexes and chunks.
|
Yes, you are right about |
Thank you very Much @sandeepsukhani. I met with an error today when tried to migrate to azure blob. I first created storage account and then applied Loki config above to use shipper and chunks to be stored in blob but hit the error below.
|
@shapeofarchitect , I am also getting the exact error, but for minio storage I configured. Did you manage to solve that? |
@prateekkhera so the error is a valid one because |
What this PR does / why we need it:
To avoid various problems that we can run into by allowing to run multiple boltdb shipper instance we are making it singleton.
This PR also includes the following minor refactorings:
NewBoltDBIndexClient
function toNewBoltDBIndexClientWithShipper
.prometheus.Registerer
instorage.NewStore
so that it can be set to nil during tests otherwise tests would fail if it is called multiple times.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Checklist