Giter Site home page Giter Site logo

Comments (12)

karmi avatar karmi commented on July 18, 2024

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.

leehambley avatar leehambley commented on July 18, 2024

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.

leehambley avatar leehambley commented on July 18, 2024

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.

karmi avatar karmi commented on July 18, 2024

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.

leehambley avatar leehambley commented on July 18, 2024

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.

karmi avatar karmi commented on July 18, 2024

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.

leehambley avatar leehambley commented on July 18, 2024

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.

karmi avatar karmi commented on July 18, 2024

@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.

leehambley avatar leehambley commented on July 18, 2024

Completely doing it wrong at my side... not sure why, closing issue.

from elasticsearch.

karmi avatar karmi commented on July 18, 2024

@leehambley Ping me on IRC when you'll see me -- let's get it sorted out.

from elasticsearch.

karmi avatar karmi commented on July 18, 2024

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.

leehambley avatar leehambley commented on July 18, 2024

Good to know @karmi, thanks!

from elasticsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.