-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
feat: allow stream creation from ingestor in distributed deployments #980
feat: allow stream creation from ingestor in distributed deployments #980
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
recheck |
Thank you for the PR @Anirudhxx , we'll review and get back shortly |
@Anirudhxx first of all thank you for sending the PR, I think you have done a great job understanding the codebase very well, secondly, you were able to understand the requirements really well as most of the expectations are met. I have reviewed the code and did a test run to validate your PR, I see a few issues -
please fix and let me know, thanks! |
@nikhilsinhaparseable Pushed 00fa1d3.
|
@Anirudhxx the changes work well, thanks for the same. Please take care of below issues -
steps to reproduce -
you may also have to think of migrating from old standalone deployment to new deployment with endpoint and token in parseable.json and verify. Thanks! |
@Anirudhxx did you get a chance to look at the changes requested to the PR? Thanks! |
Co-authored-by: Akshat Agarwal <[email protected]>
eed3967
to
66d89f4
Compare
# After starting in Standalone mode
anirudh@ubuntu ~/parseable (feat/create-stream-ingestor)> bat --plain ./staging/.parseable.json | jq
{
"version": "v4",
"mode": "s3",
"staging": "/home/anirudh/parseable/staging",
"storage": "http://localhost:9000/parseable",
"deployment_id": "01JCD0AMDVAKRKQRDS7A4HCRSN",
"users": [],
"streams": [],
"server_mode": "All",
"roles": {},
"default_role": null
}
# Restart in Distributed Mode
anirudh@ubuntu ~/parseable (feat/create-stream-ingestor)> bat --plain ./staging/.parseable.json | jq
{
"version": "v4",
"mode": "s3",
"staging": "/home/anirudh/parseable/staging",
"storage": "http://localhost:9000/parseable",
"deployment_id": "01JCD0AMDVAKRKQRDS7A4HCRSN",
"users": [],
"streams": [],
"server_mode": "Query",
"roles": {},
"default_role": null,
"querier_endpoint": null,
"querier_auth_token": null
}
# Restart Again in Distributed Mode
anirudh@ubuntu ~/parseable (feat/create-stream-ingestor)> bat --plain ./staging/.parseable.json | jq
{
"version": "v5",
"mode": "s3",
"staging": "/home/anirudh/parseable/staging",
"storage": "http://localhost:9000/parseable",
"deployment_id": "01JCD0AMDVAKRKQRDS7A4HCRSN",
"users": [],
"streams": [],
"server_mode": "Query",
"roles": {},
"default_role": null,
"querier_endpoint": "0.0.0.0:8000",
"querier_auth_token": "Basic YWRtaW46YWRtaW4="
}
anirudh@ubuntu ~/parseable (feat/create-stream-ingestor)>
|
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.
@Anirudhxx i just figured out that overwriting the Server Mode
in parseable.json in storage from All
to Query
is not happening in the main branch also, we will get it fixed internally.
Your changes are good to merge.
Thanks a lot for the contribution!
Fixes #825.
Description
As per @nikhilsinhaparseable comment in #825 (comment):
querier_auth_token
) and domain/port (querier_endpoint
) in parseable.json that tells you where and how to connect to query serverTODO
: need some help in testing this though)v5
)This PR has: