aboutsummaryrefslogtreecommitdiff
path: root/upstream-config-templates/zen_config.lua.j2
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-10-12 10:17:17 +0200
committerGitHub <[email protected]>2023-10-12 10:17:17 +0200
commit4b97a66d2ea8e75bcf8a93b321514e9050a9ecdd (patch)
tree8220079e7124b0b6395b15b9d1ef449e815682a1 /upstream-config-templates/zen_config.lua.j2
parentadded explicit implementation of IoHash equals operator (#464) (diff)
downloadzen-4b97a66d2ea8e75bcf8a93b321514e9050a9ecdd.tar.xz
zen-4b97a66d2ea8e75bcf8a93b321514e9050a9ecdd.zip
adjust resource usage for dedicated servers (#466)
when dedicated mode is enabled via `--dedicated` or `server.dedicated` then we tune http.sys server settings to be more suitable for a shared server initially we tune two things * the thread pool used to service I/O requests allows a larger number of threads to be created when needed. The minimum thread count is unchanged but in dedicated server mode we double the maximum number of threads allowed * the http.sys request queue length (`HttpServerQueueLengthProperty`) is increased to 50,000 in dedicated mode. The regular default is 1,000
Diffstat (limited to 'upstream-config-templates/zen_config.lua.j2')
-rw-r--r--upstream-config-templates/zen_config.lua.j21
1 files changed, 1 insertions, 0 deletions
diff --git a/upstream-config-templates/zen_config.lua.j2 b/upstream-config-templates/zen_config.lua.j2
index 0417ac318..53c5b4f6e 100644
--- a/upstream-config-templates/zen_config.lua.j2
+++ b/upstream-config-templates/zen_config.lua.j2
@@ -1,6 +1,7 @@
-- Zen Store Lua config
server = {
+ dedicated = true,
datadir = "d:\\ZenCacheShared",
abslog = "d:\\local.log",
debug = false,