-
Notifications
You must be signed in to change notification settings - Fork 74
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
Allow passing a custom elasticsearch backend url to use for log forwarding #152
Conversation
@@ -28,8 +28,13 @@ fi | |||
|
|||
function install() { | |||
# create cluster logging and elasticsearch resources | |||
log "Creating cluster logging and elastisearch resources" | |||
envsubst < ./files/logging-stack.yml | oc create -f - | |||
if [[ $DEPLOY_ES == "true" ]]; then |
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.
This will skip the logging operator/fluentd setup as well, maybe modify the logging-stack template to selectively install Elasticsearch when DEPLOY_ES is set? Thoughts?
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.
As it stands, if you don't set DEPLOY_ES to true or provide a custom es url then the script will pretty much just run the cleanup and then timeout waiting for the logger to come up. We could
a) key off the custom url only and otherwise default to deploying;
b) Allow it to setup a stub cluster logging instance with pretty much no configuration
c) Make the cleanup optional so it could verify that the cluster logging is "up"
I think option c would provide the most flexibility long term but am open to other options as well
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.
The intention of this variable is to have the ability to just setup the logging operator, fluentd stack when ES is not used as the backend and forward the logs to the custom ES right? This conditional will skip the entire logging stack install like you mentioned. We can tweak the spec to conditionally skip the elasticsearch setup when custom ES url is defined: https://github.com/cloud-bulldozer/e2e-benchmarking/blob/master/workloads/logging/files/logging-stack.yml#L82. Thoughts?
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.
@chaitanyaenr I inverted the if on the install to simply be if the custom es url is defined use it otherwise do the install per normal. Does that resolve your concerns?
46e6394
to
b5c84af
Compare
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
Seems like with the current implementation some CRDs are not initially available
|
@rsevilla87 Yeah I opened an issue about that here: #154 Effectively we're trying to apply the cr to quickly after apply the crd. If you re-run it now it will work without an issue. I was going to look into fixing that outside of this PR as it is pre-existing to this. |
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!
Description
Added the ability for a user to pass an external elasticsearch url to use for a custom log forwarder backend.
Fixes