Comments (5)
keep_alive: 75
listen_addresses: '0.0.0.0:3000'
worker_processes: 8
cache_size_mb: 8
# Database configuration. This can also be a list of PG configs.
postgres:
- connection_string: postgres://postgres:postgres@localhost:5411/db
default_srid: 4326
- connection_string: postgres://postgres:postgres@localhost:5422/db
default_srid: 4326
from martin.
@veschberwilli there are two answers to your question:
- if you have different data in two different databases, martin can publish them as two separate sources, just like @sharkAndshark showed above (thx!)
- if you have identical data in two different databases, i.e. mirrors / replicas, and simply want to speed up tile serving because of performance or stability concerns, then no, martin does not support load balancing between multiple databases. You can still get the same result if you configure one of the standard high availability load balancers, and point Martin to it instead of going directly to the database. A quick googling gave me this blog post that mentions multiple load balancers.
from martin.
@veschberwilli there are two answers to your question:
if you have different data in two different databases, martin can publish them as two separate sources, just like @sharkAndshark showed above (thx!)
if you have identical data in two different databases, i.e. mirrors / replicas, and simply want to speed up tile serving because of performance or stability concerns, then no, martin does not support load balancing between multiple databases. You can still get the same result if you configure one of the standard high availability load balancers, and point Martin to it instead of going directly to the database. A quick googling gave me this blog post that mentions multiple load balancers.
Maybe we could document this under the 3.1 PostgreSQL Connection though user could find a clue in the description about configuration file.
from martin.
Sure, would be great, thanks!
from martin.
Hey @sharkAndshark and @nyurik ,
thanks a lot for the quick response and for proviing the code snippet for the config.
Helps a lot!
from martin.
Related Issues (20)
- Add file extension to individual tile URL
- Output valid TileJSON for PostgreSQL Function Sources HOT 2
- Failed local installation due to mismatched types compilation error HOT 1
- What happens when a new materialized view / table added to the database? HOT 1
- db error: ERROR: column ix.indnkeyatts does not exist HOT 6
- Detect old postgresql versions and warn user HOT 2
- version `GLIBC_2.33' not found (required by mbtiles) HOT 6
- martin-cp doc source param HOT 3
- Improve mbtiles diff validation, add new metadata field, usability
- Reduce README, moving more things to the book
- Improve docs with recommended use cases for novice users
- ghcr.io/maplibre/martin:main not found HOT 3
- Fix broken docs links
- Add a tutorial for novice user
- Martin panics at start due to Postgres pool issue HOT 7
- RUSTSEC-2024-0320: yaml-rust is unmaintained. HOT 1
- automatic discovery of tables and functions have error HOT 3
- Issues starting the Docker version
- Font endpoint gives 404 but the font seems loaded HOT 2
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 martin.