diff --git a/services/mana-geocoding/pelias/pelias.json b/services/mana-geocoding/pelias/pelias.json index 0e8ee3ea3..b06280455 100644 --- a/services/mana-geocoding/pelias/pelias.json +++ b/services/mana-geocoding/pelias/pelias.json @@ -12,15 +12,6 @@ "services": { "libpostal": { "url": "http://libpostal:4400" - }, - "placeholder": { - "url": "http://placeholder:4100" - }, - "pip": { - "url": "http://pip:4200" - }, - "interpolation": { - "url": "http://interpolation:4300" } }, "defaultParameters": {} diff --git a/services/mana-geocoding/src/index.ts b/services/mana-geocoding/src/index.ts index 905ce3285..d4833e728 100644 --- a/services/mana-geocoding/src/index.ts +++ b/services/mana-geocoding/src/index.ts @@ -16,5 +16,9 @@ console.log(`Pelias API: ${config.pelias.apiUrl}`); export default { port: config.port, + // Bun's default idleTimeout is 10s — too tight for Pelias cold queries + // that need to hit Elasticsearch and libpostal. 60s is generous enough + // for the worst-case while still cutting off stuck connections. + idleTimeout: 60, fetch: createApp(config).fetch, };