Skip to content
This repository was archived by the owner on Nov 23, 2023. It is now read-only.

Better support for ES running on OpenShift - #1

Open
caruccio wants to merge 7 commits into
foundit:masterfrom
getupcloud:master
Open

Better support for ES running on OpenShift#1
caruccio wants to merge 7 commits into
foundit:masterfrom
getupcloud:master

Conversation

@caruccio

Copy link
Copy Markdown

No description provided.

@caruccio

Copy link
Copy Markdown
Author

@popox you may be interested on this PR :)

Comment thread conf/logstash.conf.erb Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@caruccio defaults to 9200 right?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a typo-o-matic ;) Fixed.

@paulRbr

paulRbr commented Nov 19, 2014

Copy link
Copy Markdown

@caruccio nice, I indeed forgot to adapt this cartridge to make it smooth for users :)

@caruccio

Copy link
Copy Markdown
Author

Hi! Any chance for this PR?

@alexbrasetvik

Copy link
Copy Markdown
Contributor

Hi!

I'm traveling at the moment. I'll have a look within a couple of days. :)

@caruccio

Copy link
Copy Markdown
Author

Cool!
Bon voyage!

Comment thread bin/install

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would it prefer port 80?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check out https://
https://github.com/getupcloud/openshift-cartridge-elasticsearchgithub.com
https://github.com/getupcloud/openshift-cartridge-elasticsearch/
https://github.com/getupcloud/openshift-cartridge-elasticsearchgetupcloud
https://github.com/getupcloud/openshift-cartridge-elasticsearch/
https://github.com/getupcloud/openshift-cartridge-elasticsearchopenshift-
https://github.com/getupcloud/openshift-cartridge-elasticsearchcartridge-
https://github.com/getupcloud/openshift-cartridge-elasticsearch
elasticsearch
https://github.com/getupcloud/openshift-cartridge-elasticsearch

ES is listening on HTTP in that cartridge.

But I agree ES doesn't need to be running on OpenShift.

In bin/install
#1 (diff)
:

\ No newline at end of file
+source $OPENSHIFT_CARTRIDGE_SDK_BASH
+
+if ! [ ${OPENSHIFT_LOGSTASH_ES_HOST} ]; then

  • cat >&2 <<-EOF
  • Missing env var OPENSHIFT_LOGSTASH_ES_HOST.
    
  • Please execute the following command and try again:
    
  •   \$ rhc env set OPENSHIFT_LOGSTASH_ES_HOST=<your.elasticsearch.hostname> -a $OPENSHIFT_APP_NAME -n $OPENSHIFT_NAMESPACE
    
  • EOF
  • exit 1
    +fi
    +
    +if ! [ ${OPENSHIFT_LOGSTASH_ES_PORT} ]; then
  • client_result "Env var OPENSHIFT_LOGSTASH_ES_PORT was not found."
  • client_result "If your Elasticsearch instance is running under OpenShift, chances are it is bound to port 80 instead 9200."

Why would it prefer port 80?


Reply to this email directly or view it on GitHub
https://github.com/foundit/openshift-logstash-cartridge/pull/1/files#r21764358
.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Port 80 is the publicly exposed port. In fact I doubt it allows any other external port.
Since this is an openshift cartridge, makes sense for me to sticky with openshift defaults, assuming user is running it's ES inside openshift too.

@caruccio

caruccio commented Apr 8, 2015

Copy link
Copy Markdown
Author

Hi. Any chances for this to be merged?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants