OK, that worked! Thank you.
Anyone knows what we need to do to config ES to work over HTTPS connection? There is an option in Xenforo 2.0 that allows this over https.
@Revenge @eva2000 IPS has added elastic search in the new version. If I'm using localhost do I need to add IPs to CSF? I'm a little confused as to what needs to be done after the install as far as CSF / iptables, etc.
Nothing need to be done to CSF Firewall, if Elasticsearch is running on same server as your forum/script. Only need to if you ran a remote external Elasticsearch server and need to whitelist the remote server's IP (preferably private lan IP as opposed to public IP)
You don't need to do anything in your firewall, because its localhost. It's the same thing as when IPS used Sphinx instead, and most of us also used it in localhost. In my case im going to use Elasticsearch in another server, but i have already configured iptables to only allow connections in elasticsearch port between both servers. Im just waiting for tapatalk to update their plugin to be compatible with 4.3. PS: Xenforo users, did you know Elasticsearch for IPS is not an addon but instead its part of IPS core and as such its free? Jealous?
Ok i try to add this line at elastic config /etc/elasticsearch/elasticsearch.yml : but when i stop and start the elastic i am getting this error: and that line 90 is the above line... Any help? Thank you
Iam also getting that exception. Its when a guest go check something like page 500 of the content of some user. I don't think the solution is to increase that value, as it can increasy way too much the memory consumption. I have opened a ticket with them.
@pamamolf do you have your elasticsearch in an external server or localhost? I was forced to install on localhost because it was slowing down the submitting of new posts by a second or two.
@pamamolf elasticsearch by default uses 5 shards, but they suggest to use only 1 shard per node. Having more than 1 shard in a node will simple slowdown elasticsearch. You can alter the number of shards by creating a template in elasticsearch and then you simple reindex the search data. You just need to run this and you are all set. Code: curl -XPUT http://localhost:9200/_template/content -H 'Content-Type: application/json' -d ' { "template" : "content*", "settings" : { "number_of_shards": 1 }, "mappings" : { "content" : { } } }'
I am confused. Tried this code and result is Code: {"acknowledged":true} Restarted elasticsearch Reindex search after that but output for curl -XGET 'localhost:9200/_cat/shards' is still 5 shards? So how to have only one shard?
curl 'localhost:9200/_stats?human&pretty' With that command right in the beginning what it says about the shards? Mine says this: Code: { "_shards" : { "total" : 2, "successful" : 1, "failed" : 0 Before was: Code: { "_shards" : { "total" : 10, "successful" : 5, "failed" : 0 Another way to check, is to go search for the shards on the disk. Go to this folder: /var/lib/elasticsearch/nodes/0/indices/ Inside that folder you have another one with random chars, enter it. Here if you only see a folder with the name "0", you only have 1 shard. If you see 5 folders, 0, 1, 2, 3 and 4, you have 5 shards.