Comments (4)
@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.
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.
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.
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)
- Invalid apiVersion "1.7" HOT 1
- Tests fail if PELIAS_CONFIG environment variable is set HOT 2
- README does not match code behavior
- Elasticsearch 5.x compatibility HOT 1
- Improve errors when JSON is invalid
- How to disable data sources? HOT 11
- Default whosonfirst.importPostalcodes to true?
- provide a lint tool HOT 1
- fail on npm install pelias-config HOT 2
- Create an example starter pelias.json
- Version 10 of node.js has been released HOT 1
- An in-range update of tap-spec is breaking the build 🚨 HOT 2
- An in-range update of joi is breaking the build 🚨 HOT 3
- An in-range update of jshint is breaking the build 🚨 HOT 1
- Provide a simple API for retrieving properties from config
- Add 'transit' source HOT 1
- remove 'textAnalyzer' HOT 2
- remove Joi? HOT 1
- config in YML format HOT 3
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 config.