Code Monkey home page Code Monkey logo

Comments (15)

rwynn avatar rwynn commented on July 18, 2024 1

The syntax is the same for the connection string in the TOML file or when passed on the command line.

According to

https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-node.html

It seems that all nodes know about one another and can forward requests appropriately. So I'm assuming you can pick any one.

If you are using es5 and gridfs replication it seems it would be best to setup a dedicated node/nodes for ingestion according to that doc.

from monstache.

rwynn avatar rwynn commented on July 18, 2024

Can you try supplying the argument elasticsearch-pem-file

flag.StringVar(&configuration.ElasticPemFile, "elasticsearch-pem-file", "", "Path to a PEM file for secure connections to elasticsearch")

You would never know because I failed to document this.

from monstache.

Crispy1975 avatar Crispy1975 commented on July 18, 2024

Will give it a go this evening.

from monstache.

Crispy1975 avatar Crispy1975 commented on July 18, 2024

@rwynn it worked perfectly, thanks. Now replicating over TLS. 👍

from monstache.

rwynn avatar rwynn commented on July 18, 2024

Great. Just FYI you can put this in your TOML file or pass it as a flag on the command line. Simple options work either way. I will close this issue once I've added the docs for the mongo and elasticsearch pem file options.

from monstache.

Crispy1975 avatar Crispy1975 commented on July 18, 2024

Thanks. Slightly off-topic, but relating to the config options. Does the syntax for the ES connection string as per the Go client remain the same in the TOML file?

"https://user:[email protected]:9200", "https://user:[email protected]:9200", "..."

Or will the client sniff out the other nodes given one?

from monstache.

rwynn avatar rwynn commented on July 18, 2024

Looked into this a bit more and the elastigo go client connection supports a Hosts array in addition to the connection string. Monstache is not surfacing the ability to set the hosts array currently. I will take a look at putting this in. It would be an array of host names in addition to the connection string. Looks like elastigo then chooses a host from the pool based on some heuristics (previously failed?) for each request.

from monstache.

Crispy1975 avatar Crispy1975 commented on July 18, 2024

We would be able to test this whenever it's available, have a few clusters running. 👍

from monstache.

rwynn avatar rwynn commented on July 18, 2024

@Crispy1975 Are you looking for a copy of each index request to go to N hosts? Or are you looking to configure a pool of hosts and each index request would go to one from the pool?

from monstache.

rwynn avatar rwynn commented on July 18, 2024

The best way to do multiple clusters I think would be to run a monstache process for each cluster. For nodes within a cluster a single monstache process can send requests to a pool of nodes using the previously mentioned Hosts setting on the connection. That would be a new config option.

from monstache.

Crispy1975 avatar Crispy1975 commented on July 18, 2024

Yeah, we are running different installs of monstache for each cluster to partition data. This works best for us.

from monstache.

rwynn avatar rwynn commented on July 18, 2024

Sounds good. If you are using the resume feature make sure to set the resume-name to something unique for each process (cluster) otherwise they will overwrite one another.

I need to fix an issue with using multiple processes combined with the resume feature combined with the multi-worker feature. But that's probably not a combination you are using.

from monstache.

Crispy1975 avatar Crispy1975 commented on July 18, 2024

Thanks for the heads-up with that, will be sure to make sure the resume-name is unique.

from monstache.

rwynn avatar rwynn commented on July 18, 2024

@Crispy1975,
Just checkin in to see how things are going with monstache. Have you had any pain points using it? Any suggestions for improvements? Thanks.

from monstache.

Crispy1975 avatar Crispy1975 commented on July 18, 2024

All good so far, we haven't seen any issues at this point. :)

from monstache.

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.