Comments (12)
That does sound like a possible bug. You need to, however, explicitely add the elasticsearch::proxy_nginx
recipe to your run_list
for the proxy to be installed. What kind of installation procedure you have followed?
from elasticsearch.
Thanks for the fast dialog @karmi, the exact role definition looks like:
{
"name": "elasticsearch_server",
"chef_type": "role",
"json_class": "Chef::Role",
"default_attributes": {
"elasticsearch" : {
"min_mem" : "128m",
"max_mem" : "128m"
}
},
"run_list": [
"role[base]",
"recipe[java]",
"recipe[elasticsearch]",
]
}
The nginx version is being set in my nodes/ip.json
:
{
"nginx" : {
"version" : "1.3.3"
},
"postgresql" : {
"password" : {
"postgres" : "***********",
"model_directory" : "***********"
}
},
"run_list": [
"role[base]",
"role[database_server]",
"role[elasticsearch_server]",
"role[application_server]",
"role[redis_server]",
"role[web_server]",
"recipe[imagemagick]",
"recipe[site_virtual_host]"
]
}
The machine, FWIW is a small VPS slice at Linode, thus the obscenely low memory cap (OOM killer is such a bitch).
My next step is to work out how badly the nginx proxy will conflict with my existing web_server
Role, which features nginx
serving classical virtual hosts (virtual hosts as designed in my site_virtual_host
cookbook.
from elasticsearch.
Last word is that I'm using chef-solo via the excellent (newbie tool) knife-solo, effectively it _rsync_s everything up to the server, selects the appropriate node config based on the hostname you SSH to, and then runs chef out of the temporary directory, it's not the fastest way to drive Chef work, but it works essentially well enough for me.
from elasticsearch.
chef-solo
is indeed great, have you catched http://www.elasticsearch.org/tutorials/2012/03/21/deploying-elasticsearch-with-chef-solo.html?
Notice the cookbook has support for chef-solo
provisioning of Vagrant boxes for easy local testing.
from elasticsearch.
Great article @karmi - I'll fly through that, and when I get into the office tomorrow (we're putting an ES backend into a new project this week for MLT searches) - I'll see if I can snatch 20 mins to dive into this cookbook and make it work without the proxy thing.
from elasticsearch.
Do not “fly” through that, try it :)
The cookbook should definitely work without Nginx, if not, I'll fix it.
In any case, it should not conflict with your existing Nginx setup, it just adds a .conf
file.
from elasticsearch.
hehe, point taken :-) I'm up and running now, that's the most important thing - I'll work through it with my pair, he's never used ES before, trying to get ahead and have a clue about driving tomorrow's session.
I can confirm if I remove that variable (nginx version) and skip the proxy cookbook, it fails with an nginx missing download. ( no big surprise there! )
from elasticsearch.
@leehambley Check out https://github.com/karmi/cookbook-elasticsearch/compare/no_nginx — it appears it's perfectly possible to install elasticsearch only with the cookbook, skipping the nginx part?
from elasticsearch.
Completely doing it wrong at my side... not sure why, closing issue.
from elasticsearch.
@leehambley Ping me on IRC when you'll see me -- let's get it sorted out.
from elasticsearch.
Also, watch out for Chef versions -- in my experience, versions above Chef 0.10.8 are badly messed up, particularly 0.10.9, 0.10.10.
from elasticsearch.
Good to know @karmi, thanks!
from elasticsearch.
Related Issues (20)
- Switch from Foodcritic to Cookstyle
- Systemd does not start elasticsearch with Type=notify HOT 5
- Log4j ESJsonLayout not available in ES 6.x
- Support for 6.8.10
- elasticsearch_install don't converge in idempotency state HOT 2
- cluster.initial_master_nodes HOT 3
- deprecated options jvm.options file HOT 3
- Provide support for elasticsearch-oss and custom package name install
- node.roles attribute cannot be set through configuration HOT 1
- allow package to manage it's own init.d/systemd scripts HOT 1
- plugin install fails cause of input dialog/tty
- trigger plugin remove/install when upgrading HOT 2
- Is this cookbook still maintained? HOT 2
- Entire cookbook stopped working with HOT 2
- Stop using Travis CI
- [Ubuntu 20.04] ElasticSearch_install 7.5.1 HOT 1
- Any way to override yum repo in attributes?
- support for ES 8.x? HOT 2
- Dependency Dashboard
- Allow configuration of systemd service Restart directive
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elasticsearch.