mapbox / mapnik-pool

manage a pool of mapnik map instances
Other
20 stars 22 forks source link

Acquiring and releasing maps #9

Open Arsakes opened 7 years ago

Arsakes commented 7 years ago

Could you put an example on how to use pool? Does one have to call release explicitely after map.render?

tmcw commented 7 years ago

Hi @Arsakes,

Thanks for the question. Have you seen the example in the readme?

Arsakes commented 7 years ago

@tmcw Yes I did, however, shouldn't this exmaple contain calling for:

pool.release(map)

after rendering is done? Deafault pool size is 8. Without releasing, pool resources are considered used and acquiring from full pool will result in freezeing your node server.