provide a default config for smaller setups (tested with 2 GB ram, peaks at 50%)

closes #96
This commit is contained in:
BuckarooBanzay 2023-10-11 17:42:03 +02:00
parent 28119bb1bf
commit 4583880a68

View File

@ -91,9 +91,9 @@ func ParseConfig(filename string) (*Config, error) {
} }
mapblockaccessor := MapBlockAccessorConfig{ mapblockaccessor := MapBlockAccessorConfig{
Expiretime: "15s", Expiretime: "10s",
Purgetime: "30s", Purgetime: "15s",
MaxItems: 500, MaxItems: 50,
} }
defaultoverlays := []string{ defaultoverlays := []string{
@ -119,9 +119,9 @@ func ParseConfig(filename string) (*Config, error) {
Webdev: false, Webdev: false,
WebApi: &webapi, WebApi: &webapi,
Layers: layers, Layers: layers,
RenderingFetchLimit: 10000, RenderingFetchLimit: 500,
RenderingJobs: runtime.NumCPU(), RenderingJobs: runtime.NumCPU(),
RenderingQueue: 100, RenderingQueue: 10,
IncrementalRenderingTimer: "5s", IncrementalRenderingTimer: "5s",
MapObjects: &mapobjs, MapObjects: &mapobjs,
MapBlockAccessorCfg: &mapblockaccessor, MapBlockAccessorCfg: &mapblockaccessor,