Git Product home page Git Product logo

Comments (4)

missinglink avatar missinglink commented on June 2, 2024

@rjpereira in production we have static DNS addresses for our AWS load balancers in each environment, then those DNS names are stored in a per-stack pelias.json file which is loaded via env var as per https://github.com/pelias/config#production-settings

from config.

missinglink avatar missinglink commented on June 2, 2024

I would prefer not to change the existing implementation of pelias/config to one that supported fallback scenarios as that would add complexity that IMHO could be better handled by the system administrator via scripts.

from config.

missinglink avatar missinglink commented on June 2, 2024

I'm not sure I fully understand, so if I'm way off, let me know.

From what I gather you have an environment with hard dependencies between your service layer and your application layer, presumably the services will have to expose their location to the application somehow.

Am I correct in saying that the issue is converting that service discovery info in to JSON format?

from config.

orangejulius avatar orangejulius commented on June 2, 2024

Hello from over a year in the future.

Since this issue was first opened Pelias has moved towards having many services, so the question of how to configure them has only grown in importance. However I agree with missinglink that we don't intend to support ENV vars for configuring the hosts. We like pelias.json. Without it, there would be far too many ENV vars to configure.

Instead, here are some suggestions. that might be useful by themselves or in combination:

  • Use DNS to provide consistent hostnames for Pelias to use across services
  • Use a load balancer so that needing to change the hostname happens less often
  • Use some mechanism to update pelias.json and restart any API instances when it changes. This is useful anyways for pushing config changes

For geocode.earth we use that last system, using the Kubernetes ConfigMap feature, and tell Kubernetes to re-create our API containers whenever the config changes.

If anyone is stuck figuring out a good way to handle this, let us know, we can probably help.

from config.

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.